|
|
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 am currently living in Pittsburgh, PA, working as a Senior Technical Consultant for Summa, and studying as a part-time graduate student in Philosophy at Carnegie Mellon University. My thoughts here are mostly on software development, but trying to take a few insights from philosophy, psychology, economics, and decision sciences to help us understand better why we do what we do...and how to do it better. I maintain two pet projects: codersCV and PMDReports. Check 'em out!
|
Comments (0)
None so far!
|
|