Having some problems with that...

 
**************************************************************************************************************
        C:\tmp\earbuilderproj>m2 install
        [INFO] 
----------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] 
----------------------------------------------------------------------------
        [INFO] Reason: Edge between 'Vertex{label='com.myco.apps:proj1'}' 
and 'Vertex{label='com.myco.apps:proj1'}' introduces to cycle in the graph 
        com.myco.apps:proj1 --> com.myco.apps:proj1
        [INFO] 
----------------------------------------------------------------------------
        [INFO] Total time: < 1 second
        [INFO] Finished at: Thu Sep 01 13:31:46 EDT 2005
        [INFO] Final Memory: 1M/2M
        [INFO] 
----------------------------------------------------------------------------
 
**************************************************************************************************************

Not sure what I am doing wrong...

This is the pom.xml file that is within the earbuilderproj directory:

********************************************************************************************************************
<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.myco.apps</groupId>
   <artifactId>doctrackbuilder</artifactId>
   <packaging>ear</packaging>
   <version>1.0</version>
   <name>sub projects</name>
   <modules>
          <module>proj2</module>
          <module>proj1</module>
   </modules>
   <dependencies>
                <dependency>
                        <groupId>com.myco.apps</groupId>
                        <artifactId>proj2</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <type>war</type>
                </dependency>
                <dependency>
                        <groupId>com.myco.apps</groupId>
                        <artifactId>proj1</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <type>war</type>
                </dependency>
        </dependencies>
</project>
********************************************************************************************************************

Does that look right?

Eric Starr







Kenney Westerhof <[EMAIL PROTECTED]> 
09/01/2005 12:02 PM

Please respond to
"Maven Users List" <users@maven.apache.org>


To
Maven Users List <users@maven.apache.org>
cc

Subject
Re: [m2] Ear Plugin problem... Generating EAR from two  WARs(subprojects)





In your root project (earbuilder) you need to specify:

- two dependencies on the two war projects, with <type>war</type>
- specify <packaging>ear</packaging>
- use m2 install. That way the lifecycle assosiated with packaging ear
kicks in and your application.xml gets generated automatically.
SourceID:NT000032BA 


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

Reply via email to