your tests are failing... so you never get past the test phase On 25 October 2011 14:34, laredotornado-3 <[email protected]> wrote: > Hi, > > I'm using Maven 3.0.3. I'm trying to copy my WAR file to a container before > I run integration tests. So I thought I'd bind the copying of the WAR file > in the package phase like so > > > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <configuration> > <tasks> > <echo > message="Task running" /> > <property > name="warFile" > value="target/${project.artifactId}-${project.version}.${project.packaging}" > /> > <property > name="destDir" value="${CATALINA_HOME}/webapps" /> > <copy > todir="${destDir}"> > <file > file="${warFile}" /> > </copy> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > > but the copying never happens (I never see the echo message either). Below > is the result of running "mvn clean install". Can anyone tell why my antrun > task isn't running? > > - Dave > > =============================== Output of running mvn clean install > ================================= > [INFO] Scanning for projects... > [WARNING] > [WARNING] Some problems were encountered while building the effective model > for com.myco.pplus2:pplus2:war:1.0-SNAPSHOT > [WARNING] 'build.plugins.plugin.version' for > org.codehaus.cargo:cargo-maven2-plugin is missing. @ line 107, column 12 > [WARNING] > [WARNING] It is highly recommended to fix these problems because they > threaten the stability of your build. > [WARNING] > [WARNING] For this reason, future Maven versions might no longer support > building such malformed projects. > [WARNING] > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building pplus2 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ pplus2 --- > [INFO] Deleting C:\Documents and Settings\E18538\workspace\pplus2\target > [INFO] > [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ > pplus2 --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 37 resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ pplus2 > --- > [INFO] Compiling 17 source files to C:\Documents and > Settings\E18538\workspace\pplus2\target\classes > [INFO] > [INFO] --- maven-resources-plugin:2.4.3:testResources > (default-testResources) @ pplus2 --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 8 resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ > pplus2 --- > [INFO] Compiling 9 source files to C:\Documents and > Settings\E18538\workspace\pplus2\target\test-classes > [INFO] > [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ pplus2 --- > [INFO] Surefire report directory: C:\Documents and > Settings\E18538\workspace\pplus2\target\surefire-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.myco.clearing.commons.xml.XMLNodeTest > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.734 sec > Running com.myco.pplus2.util.XmlToHtmlServiceTest > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.453 sec > Running com.myco.pplus2.web.SaveIntegrationTest > Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 11.297 sec > <<< FAILURE! > Running com.myco.pplus2.web.SaveXmlServletTest > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec > Running com.myco.pplus2.web.TableIntegrationTest > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.797 sec > <<< FAILURE! > Running com.myco.pplus2.web.XmlToHtmlIntegrationTest > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.406 sec > <<< FAILURE! > Running com.myco.pplus2.web.XmlToHtmlServletTest > Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.031 sec > > Results : > > Tests in error: > testSave(com.myco.pplus2.web.SaveIntegrationTest): Unable to locate > element: {"method":"id","selector":"filename"}; duration or timeout: 32 > milliseconds > For documentation on this error, please visit: > http://seleniumhq.org/exceptions/no_such_element.html > Build info: version: '2.6.0', revision: '13840', time: '2011-09-13 16:51:41' > System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', > java.version: '1.6.0_27' > Driver info: driver.version: RemoteWebDriver > testReset(com.myco.pplus2.web.SaveIntegrationTest): Unable to locate > element: {"method":"id","selector":"filename"}; duration or timeout: 15 > milliseconds > For documentation on this error, please visit: > http://seleniumhq.org/exceptions/no_such_element.html > Build info: version: '2.6.0', revision: '13840', time: '2011-09-13 16:51:41' > System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', > java.version: '1.6.0_27' > Driver info: driver.version: RemoteWebDriver > testSortTable(com.myco.pplus2.web.TableIntegrationTest): Unable to locate > element: {"method":"id","selector":"filename"}; duration or timeout: 0 > milliseconds > For documentation on this error, please visit: > http://seleniumhq.org/exceptions/no_such_element.html > Build info: version: '2.6.0', revision: '13840', time: '2011-09-13 16:51:41' > System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', > java.version: '1.6.0_27' > Driver info: driver.version: RemoteWebDriver > testSubmitData(com.myco.pplus2.web.XmlToHtmlIntegrationTest): Unable to > locate element: {"method":"id","selector":"filename"}; duration or timeout: > 16 milliseconds > For documentation on this error, please visit: > http://seleniumhq.org/exceptions/no_such_element.html > Build info: version: '2.6.0', revision: '13840', time: '2011-09-13 16:51:41' > System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', > java.version: '1.6.0_27' > Driver info: driver.version: RemoteWebDriver > > Tests run: 22, Failures: 0, Errors: 4, Skipped: 1 > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 29.313s > [INFO] Finished at: Tue Oct 25 08:27:00 CDT 2011 > [INFO] Final Memory: 12M/28M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on > project pplus2: There are test failures. > [ERROR] > [ERROR] Please refer to C:\Documents and > Settings\E18538\workspace\pplus2\target\surefire-reports for the individual > test results. > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Trouble-getting-antrun-plugin-to-run-in-package-phase-tp4936230p4936230.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
