Maven for Eclipse by Sanjay Shah

Maven for Eclipse by Sanjay Shah

Author:Sanjay Shah [Shah, Sanjay]
Language: eng
Format: azw3, mobi, epub
Publisher: Packt Publishing
Published: 2014-08-24T16:00:00+00:00


We can bind other goals to the phases of the clean lifecycle. Suppose we want to echo some message on the pre-clean phase; we can achieve this by binding the maven-antrun-plugin:run goal to this phase, which can be done as follows:

</project> ........... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>precleanid</id> <phase>pre-clean</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <echo>Hello am in pre-clean phase</echo> </tasks> </configuration> </execution>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.