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>

 

BEGIN:VCARD
VERSION:2.1
N:Fidler;Randall
FN:Randall Fidler
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050926T075331Z
END:VCARD

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to