I recently started using maven. so this question might sound basic. This question came up when I was browsing through some code using cargo plug-in.
In the following snippet of maven plugin in pom.xml, that i extracted from here, my understanding is as follows:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
[Cargo plugin configuration goes in here]
</configuration>
</plugin>
This plug in bound to
pre-integration-test
andpost-integration-test
phase of build LifeCycle, which also means when I runmvn install
this will be executed.The goals (start and stop) of this plug-in gets executed during these phases respectively
Q1:: Does the
<id>start-container</id>
has any relevance? what's its purpose & importance?Q2:: How do I know what are the different goals available for a plug-in. In this case for
cargo plug-in
I see in one of the codes in my work,<goal>redeploy</goal>
is used. so I am wondering how to find information on these specific goals and other goals available. I did look at online documentation. I did not find any. possible that I did not search in the right place.