You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Randall Fidler <ra...@testadvantage.com> on 2006/12/11 16:49:24 UTC
Maven EAR plugin issue
Hello,
Looking for some insight regarding the maven ear plugin.
Project setup is:
+ App pom (contains sub-project module entries)
- commons (creates jar with POJOs), let's say it's maven id is
'my.commons'
- ejb jar, maven id is 'my.ejb'
- service, creates an 'ear' <-- ear plugin sits here
For now I'm just trying to use the following to include the POJOs and the
ejb jar
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<modules>
<ejbModule>
<groupId>myGroup</groupId>
<artifactId>my.ejb</artifactId>
</ejbModule>
<jarmodule>
<groupId> myGroup </groupId>
<artifactId>my.commons</artifactId>
</jarmodule>
</modules>
</configuration>
</plugin>
While produces an error stating:
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven
-ear-plugin:2.2
Cause: Class 'org.apache.maven.plugin.ear.EarModule' cannot be instantiated
Using the maven "-e" switch shows that it has a problem with DOM, which I
assume is a parsing error of the configuration:
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven
-ear-plugin:2.2
Cause: Class 'org.apache.maven.plugin.ear.EarModule' cannot be instantiated
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring:
org.a
pache.maven.plugins:maven-ear-plugin. Reason: Unable to parse the created
DOM fo
r plugin configuration
Also, if I take out the the modules it runs, which is obviously because it
doesn't have anything to do, i.e. this works fine:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<modules>
</modules>
</configuration>
</plugin>
Knowing that, could this issue be I'm missing a field for the modules? I.e.
ejbModule and jarModule?
Any help is appreciated.
Best regards,
Randall
NOTE:
Top level pom has:
<packaging>pom</packaging>
<modules>
<module>commons</module> <-- my.commons
<module>server</module> <-- my.ejb
<module>service</module> <-- contains ear build
</modules>