You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Brown <da...@davidwbrown.name> on 2008/07/15 18:35:14 UTC
child project jar has wrong packaging exception from parent project: how-to-fix?
Hello maven dev, gurus and users. I have a curious situation from attempting to create a jar of the generated /CLASSES directory as generated from the parent project pom.xml. The existing parent project directory and pom.xml executes correctly and generates the expected (dot).war. In the parent directory I have a second sub-directory named: ./jar as the child project directory. The child project directory has its own pom.xml w/ the sole purpose of generating a (dot).jar file referencing selected classes generated in the parent project directory. The child project pom.xml returns the following exception condition upon execution of: mvn install. TIA and please advise, David.
********************************************************************************************
Project ID: fds-app:upload-jar
Reason: Parent: fds-app:upload-war:war:null of project: fds-app:upload-jar has wrong packaging: war. Must be 'pom'. for project fds-app:upload-jar
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parent: fds-app:upload-war:war:null of project: fds-app:upload-jar has wrong packaging: war. Must be 'pom'. for project fds-app:upload-jar
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376)
*********************************************************************************************
Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last.
Henry David Thoreau - Walden - 1845
Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last.
Henry David Thoreau - Walden - 1845
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org