pom.xml – antrun

...
   <build>       
       <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>vypis</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <tasks>
                                <echo message="Project is ${pom.version}"/>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
       </plugins>
   </build>
...
14/38