Hmm, not a simple fix. It now fails on portable. And if I set the <phase> to pre-integration-test, then I get the error below.
Not sure how to resolve this at the moment. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (woas:copy-woas) on project jspwiki-portable: An Ant BuildException has occured: The following error occurred while executing this line: [ERROR] C:\digitalspider\jspwiki\code\jspwiki-trunk\jspwiki-portable\build.xml:63: C:\digitalspider\jspwiki\code\jspwiki-trunk\jsp wiki-portable\target\unpack\jspwiki-war does not exist. [ERROR] around Ant part ...<ant antfile="C:\digitalspider\jspwiki\code\jspwiki-trunk\jspwiki-portable/build.xml" target="woas:copy -woas"/>... @ 6:114 in C:\digitalspider\jspwiki\code\jspwiki-trunk\jspwiki-portable\target\antrun\build-main.xml On Wed, Aug 5, 2015 at 11:44 PM, David Vittor <dvit...@gmail.com> wrote: > I've managed to recreate the problem. > > mvn clean package works, but > mvn clean test does not > > seems to be a problem here in the *pom.xml* > > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-dependency-plugin</artifactId> > <executions> > <!-- Unpack the JSP Wiki Pages --> > <execution> > <id>unpack-wikipages-private</id> > <phase>generate-resources</phase> > <goals> > <goal>unpack</goal> > </goals> > > Documentation: > https://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html > > Lifecycle phases = > http://maven.apache.org/ref/3.3.3//maven-core/lifecycles.html > > I've changed the <phase> to package, and I think that solves the problem. > > We always run package to create the war file so I think this is ok. > > I've checked this into SVN, and I think it should work. Feel free to > update if you think there is a better way. > > Cheers, > David V > > > On Wed, Aug 5, 2015 at 5:18 AM, Dirk Frederickx <dirk.frederi...@gmail.com > > wrote: > >> Trying to run >> >> mvn clean test >> >> >> But getting this error : >> >> [INFO] Apache JSPWiki .................................... SUCCESS >> [0.678s] >> >> [INFO] Apache JSPWiki initial wiki pages builder ......... SUCCESS >> [0.021s] >> >> [INFO] Apache JSPWiki initial wiki pages (de) ............ SUCCESS >> [0.345s] >> >> [INFO] Apache JSPWiki initial wiki pages (en) ............ SUCCESS >> [0.059s] >> >> [INFO] Apache JSPWiki initial wiki pages (es) ............ SUCCESS >> [0.054s] >> >> [INFO] Apache JSPWiki initial wiki pages (fi) ............ SUCCESS >> [0.036s] >> >> [INFO] Apache JSPWiki initial wiki pages (fr) ............ SUCCESS >> [0.050s] >> >> [INFO] Apache JSPWiki initial wiki pages (it) ............ SUCCESS >> [0.058s] >> >> [INFO] Apache JSPWiki initial wiki pages (nl) ............ SUCCESS >> [0.064s] >> >> [INFO] Apache JSPWiki initial wiki pages (pt_BR) ......... SUCCESS >> [0.055s] >> >> [INFO] Apache JSPWiki initial wiki pages (ru) ............ SUCCESS >> [0.043s] >> >> [INFO] Apache JSPWiki initial wiki pages (zh_CN) ......... SUCCESS >> [0.048s] >> >> [INFO] Apache JSPWiki Main War ........................... FAILURE >> [1.798s] >> >> [INFO] Apache JSPWiki portable ........................... SKIPPED >> >> [INFO] jspwiki-it-builder ................................ SKIPPED >> >> [INFO] jspwiki-selenium-tests ............................ SKIPPED >> >> [INFO] jspwiki-it-test-custom ............................ SKIPPED >> >> [INFO] jspwiki-it-test-custom-absolute-urls .............. SKIPPED >> >> [INFO] jspwiki-it-test-custom-jdbc ....................... SKIPPED >> >> [INFO] jspwiki-it-test-cma ............................... SKIPPED >> >> [INFO] jspwiki-it-test-cma-jdbc .......................... SKIPPED >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [INFO] BUILD FAILURE >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [INFO] Total time: 3.631s >> >> [INFO] Finished at: Tue Aug 04 20:52:10 CEST 2015 >> >> [INFO] Final Memory: 25M/540M >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack >> (unpack-wikipages-private) on project jspwiki-war: Artifact has not been >> packaged yet. When used on reactor artifact, unpack should be executed >> after packaging: see MDEP-98. -> [Help 1] >> >> >> >> Any suggestions ? >> >> >> >> dirk >> > >