Hi, (apologies on the late response)
the error most probably cames from not having the wikipages neither in your local m2 repo nor in Central repo (as the current version is 2.10.2-snapshot and currently it's only at the ASF's snapshots repo). Doing an mvn clean install once should fix the issue, after that any mvn clean test should run ok. As for changing the phase to package, I think it should remain either at process-resources or process-test-resources (probably the latter): changing to package avoids the error, but, if I recall correctly, the wikipages were unpacked so some unit test(s) could use them. In fact, if changing to package does not break the build, either the appropiate test(s) needs to be fixed or the wikipages unpackage action can be deleted. May be the wikipages should be released at a different pace than the main build, so they're available at central anytime? It's not that they change a lot.. best regards, jp On Wed, Aug 5, 2015 at 4:15 PM, David Vittor <[email protected]> wrote: > Found a way to make this work, change all the <phase> in portable to > "package". Not sure if this affects anyone else though. > > Cheers, > David V > > > On Thu, Aug 6, 2015 at 12:05 AM, David Vittor <[email protected]> wrote: > > > 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 <[email protected]> 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 < > >> [email protected]> 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 > >>> > >> > >> > > >
