|
|
Maven - Wrong Packaging Type
|
|
|
| |
November 23rd 2009
|
I was using Maven, and I had a web project already built...and I was trying to add a business module within it, like this:
/my-web-proj/
pom.xml
my-bus-layer/
pom.xml
Within the business layer's pom.xml, I declared "my-web-proj" to be the parent, but was getting the error below. The problem, I believe, is that a project with a packaging type of 'war' cannot be a parent project. Instead, all examples seem to show this instead:
/my-proj/
pom.xml
my-bus-layer/
pom.xml
my-web-layer/
pom.xml
org.apache.maven.reactor.MavenExecutionException: Parent:
my-web-proj:my-bus-layer:war:DEV_SIO_20091028 of project:
my-web-proj:my-bus-layer has wrong packaging: war.
Must be 'pom'. for project my-web-proj:my-bus-layer
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
|
|
I'm currently living in Pittsburgh, PA, working as a Senior Technical Consultant for Summa, and just finished up my Masters degree in Philosophy. (thesis here!) My blog is mostly on understanding how to better analyze, make, and influence decisions in the world of enterprise software development. Subscribe here or write me at ben_northrop at yahoo dot com.
|
Comments (0)
None so far!
|
|