Please use the user list for this kind of question!

Your master POM should have a type of 'pom' I guess with the list of
modules to build. Then you need to add a sub-project for the EAR.

The warModule should be named webModule.

If you still have the problem, run maven with the -e switch to check
what's going on.

Cheers,
Stéphane




On 6/1/06, karim33 <[EMAIL PROTECTED]> wrote:

hi all;

is it possible to execute modules (ejb,war,...) from my ear pom:

-project
        -pom.xml
        -ejb
        -common
        -webapp

i want launch the differente subproject ant create my ear in the pom.xml
<packaging>ear</packaging>

i used the plugin below but i've the error:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[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] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 46 seconds
[INFO] Finished at: Thu Jun 01 16:55:34 CEST 2006
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------




<plugin>
   <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-ear-plugin</artifactId>
         <configuration>
                <modules>
                 <javaModule>
                  <groupId>hgpp_src</groupId>
                      <artifactId>commonhgpp</artifactId>
                 </javaModule>

                 <ejbModule>
                  <groupId>ejb_jar</groupId>
                      <artifactId>ejb_jar</artifactId>
                 </ejbModule>
        <warModule>
                      <groupId>${produit}_war</groupId>
              <artifactId>portlets${produit}</artifactId>
        </warModule>

        </modules>
       </configuration>
 </plugin>


can u help me pls?
--
View this message in context: 
http://www.nabble.com/execute+project+from+ear-t1717263.html#a4663648
Sent from the Maven - Dev forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
.::You're welcome ::.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to