Is anyone else having any success with ear projects? Whenever I try to do an upate sources on an ear project with some modules defined, it barfs. If you remove all modules, it does not barf. Both ejbModules and webapp modules will break it. Anything inside hte modules tag will break it. My pom is below

2/8/07 4:42:22 PM MST: Reading /ear-project/pom.xml
2/8/07 4:42:22 PM MST: Generating sources /ear-project/pom.xml
2/8/07 4:42:22 PM MST: [INFO] Scanning for projects...
2/8/07 4:42:22 PM MST: [INFO] ----------------------------------------------------------------------------
2/8/07 4:42:22 PM MST: [INFO] Building EAR
2/8/07 4:42:22 PM MST: [INFO]    task-segment: [process-test-resources]
2/8/07 4:42:22 PM MST: [INFO] ---------------------------------------------------------------------------- 2/8/07 4:42:22 PM MST: ERROR project-execute : com.tomax.portal:ear-project:ear:5.3.1-SNAPSHOT ( task-segment: [process-test-resources] ) : Error configuring: org.apache.maven.plugins:maven-ear-plugin. Reason: Unable to parse the created DOM for plugin configuration 2/8/07 4:42:22 PM MST: ERROR reactor-execute : V:\m2eclipse\ear-project : Error configuring: org.apache.maven.plugins:maven-ear-plugin. Reason: Unable to parse the created DOM for plugin configuration 2/8/07 4:42:22 PM MST: [INFO] ------------------------------------------------------------------------
2/8/07 4:42:22 PM MST: [ERROR] BUILD ERROR
2/8/07 4:42:22 PM MST: [INFO] ------------------------------------------------------------------------ 2/8/07 4:42:22 PM MST: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-ear-plugin:2.2

Pom:

<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>foo.group</groupId>
   <artifactId>ear-project</artifactId>
   <name>EAR</name>
   <version>5.3.1-SNAPSHOT</version>
   <packaging>ear</packaging>

   <build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-ear-plugin</artifactId>
               <!-- <version>2.2</version>  -->

               <configuration>

                   <displayName>
                       My Enterprise Application
                   </displayName>
                   <modules>
                       <webModule>
                           <groupId>com.tomax.ops</groupId>
<artifactId>ops-webapp-hibernate-startup</artifactId>
                           <contextRoot>hibernate-startup</contextRoot>
                       </webModule>
                   </modules>
               </configuration>
           </plugin>
       </plugins>
   </build>

   <dependencies>
       <dependency>
           <groupId>com.tomax.ops</groupId>
           <artifactId>ops-webapp-hibernate-startup</artifactId>
           <version>1.0-SNAPSHOT</version>
           <type>war</type>
       </dependency>
   </dependencies>
</project>

I have verified that putting anything inside the <modules> tag is what causes it to break. This works on the command line just fine. Removing spaces or reorganizing the tags does not seem to have any impact.

-James


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to