Can't skip plugin to run even if tests are skipped and phase is set to test.
----------------------------------------------------------------------------
Key: MJBOSS-57
URL: http://jira.codehaus.org/browse/MJBOSS-57
Project: Maven 2.x JBoss Plugin
Issue Type: Bug
Affects Versions: 1.4.1
Reporter: Robert Andersson
The plugin will run even if you set a phase that has anything to do with test
(pre-test, post-test, test, integration-test) and choose to skip the tests
(maven.test.skip=true).
In the example below you don“t want to deploy the ear to jboss if you choose to
skip the tests.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.4.1</version>
<configuration>
<jbossHome>${JBOSS_HOME}/</jbossHome>
<port>8090</port>
<hostName>${jboss.hostName}</hostName>
</configuration>
<executions>
<execution>
<id>jboss-deploy</id>
<phase>pre-test</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<fileNames>
<fileName>${basedir}/../ear/target/ear.ear</fileName>
</fileNames>
</configuration>
</execution>
</executions>
</plugin>
I have seen other plugins work this way (sql-maven-plugin), so I consider this
a bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email