You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Chen <tc...@tampabay.rr.com> on 2003/12/12 17:56:13 UTC
ear Module breaks multiproject
Maven 1.0 rc1
I'm not sure what I did wrong.
My multiproject works fine until I try to drop in an ear module.
The structure is as so:
C:\projects\MITFactoryGui\modules\ear>
I get this when running: maven multiproject:install
+----------------------------------------
| Executing multiproject:install-callback MIT Factory Ear Module
| Memory: 37M/56M
+----------------------------------------
BUILD FAILED
File...... file:/C:/Documents and
Settings/chengt/.maven/plugins/maven-multiproject-plugin-1.1/
Element... maven:reactor
Line...... 174
Column.... 9
Unknown goal "multiproject:install-callback"
Total time: 48 seconds
Finished at: Fri Dec 12 11:49:56 EST 2003
-------------------------------------------------------------
But all the other projects will build just fine.
The only 2 files in the module are project.xml and project.properties
Their content are below:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<extends>../../project.xml</extends>
<!-- a unique name for this project -->
<groupId>MITFactory</groupId>
<id>MITFactory</id>
<!-- a short but descriptive name for the project -->
<name>MIT Factory Ear Module</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-SNAPSHOT -->
<currentVersion>1.0</currentVersion>
<package>com.nielsenmedia.mitfactory.backend</package>
<description>
MIT Factory GUI Service
</description>
<!-- a short description of what the project does -->
<shortDescription>Deployable ear for MIT Factory</shortDescription>
<!-- jar files the project is dependent on -->
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.8</version>
<url>http://jakarta.apache.org/log4j.html</url>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
</dependencies>
<!-- build information for the project -->
<build>
<nagEmailAddress>chengt@nielsenmedia.com</nagEmailAddress>
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory/>
<unitTest/>
<resources/>
</build>
</project>
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}
maven.multiproject.type=ear
Anyone know what I am doing wrong?
Thanks,
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: ear Module breaks multiproject
Posted by Tim Chen <tc...@tampabay.rr.com>.
Sorry this was my stupid mistake. I had named the EAR project id the
same as the main project id.
Usually when I do this (copy and paste bloop) I do it among 2
subprojects.. It's pretty obvious when you do that because the build
will skip one of the subprojects but I guess when it's between the main
and a child project it causes other issues. :-/
Thanks :)
Tim Chen
tchen@tampabay.rr.com
-----Original Message-----
From: Jefferson K. French [mailto:jeff@frenches.org]
Sent: Saturday, December 13, 2003 12:17 AM
To: Maven Users List
Subject: Re: ear Module breaks multiproject
Do you have any dependencies to build your EAR in your main project.xml?
If so, that could be the problem since your ear/project.xml will inherit
the dependencies.
Jeff
On Fri, 12 Dec 2003, at 13:02:49 [GMT -0500] Tim Chen wrote:
> I followed the link on someone else post and trimmed by project.xml
> and
> project.properties.
> I found that I get the error regardless of whether the type is a jar
or
> an ear.
> Any ideas what might cause a plugin to lose it's goal definitions?
> +----------------------------------------
> | Executing multiproject:install-callback MIT Factory Ear Module
> | Memory: 37M/51M
> +----------------------------------------
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/chengt/.maven/plugins/maven-multiproject-plugin-1.1/
> Element... maven:reactor
> Line...... 174
> Column.... 9
> Unknown goal "multiproject:install-callback"
> Total time: 39 seconds
> Finished at: Fri Dec 12 12:59:53 EST 2003
> Thanks.
> -Tim
> maven.multiproject.type=ear
> maven.ear.appxml.generate=true
> --------------------
> <?xml version="1.0"?>
> <project>
> <extend>${basedir}/../../project.xml</extend>
> <!-- a unique name for this project -->
> <groupId>MITFactory</groupId>
> <id>MITFactory</id>
> <name>MIT Factory Ear Module</name>
> <description>Sample EAR project.</description>
> <shortDescription>Sample EAR project</shortDescription>
> <dependencies>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryBackend</artifactId>
> <version>${pom.currentVersion}</version>
> <type>ejb</type>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryCommon</artifactId>
> <version>${pom.currentVersion}</version>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryService</artifactId>
> <version>${pom.currentVersion}</version>
> <type>sar</type>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryDatasource</artifactId>
> <version>${pom.currentVersion}</version>
> <type>sar</type>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> </dependencies>
> </project>
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ear Module breaks multiproject
Posted by "Jefferson K. French" <je...@frenches.org>.
Do you have any dependencies to build your EAR in your main
project.xml? If so, that could be the problem since your
ear/project.xml will inherit the dependencies.
Jeff
On Fri, 12 Dec 2003, at 13:02:49 [GMT -0500] Tim Chen wrote:
> I followed the link on someone else post and trimmed by project.xml and
> project.properties.
> I found that I get the error regardless of whether the type is a jar or
> an ear.
> Any ideas what might cause a plugin to lose it's goal definitions?
> +----------------------------------------
> | Executing multiproject:install-callback MIT Factory Ear Module
> | Memory: 37M/51M
> +----------------------------------------
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/chengt/.maven/plugins/maven-multiproject-plugin-1.1/
> Element... maven:reactor
> Line...... 174
> Column.... 9
> Unknown goal "multiproject:install-callback"
> Total time: 39 seconds
> Finished at: Fri Dec 12 12:59:53 EST 2003
> Thanks.
> -Tim
> maven.multiproject.type=ear
> maven.ear.appxml.generate=true
> --------------------
> <?xml version="1.0"?>
> <project>
> <extend>${basedir}/../../project.xml</extend>
> <!-- a unique name for this project -->
> <groupId>MITFactory</groupId>
> <id>MITFactory</id>
> <name>MIT Factory Ear Module</name>
> <description>Sample EAR project.</description>
> <shortDescription>Sample EAR project</shortDescription>
> <dependencies>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryBackend</artifactId>
> <version>${pom.currentVersion}</version>
> <type>ejb</type>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryCommon</artifactId>
> <version>${pom.currentVersion}</version>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryService</artifactId>
> <version>${pom.currentVersion}</version>
> <type>sar</type>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> <dependency>
> <groupId>${pom.groupId}</groupId>
> <artifactId>MITFactoryDatasource</artifactId>
> <version>${pom.currentVersion}</version>
> <type>sar</type>
> <properties>
> <ear.bundle>true</ear.bundle>
> </properties>
> </dependency>
> </dependencies>
> </project>
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ear Module breaks multiproject
Posted by Tim Chen <tc...@tampabay.rr.com>.
I followed the link on someone else post and trimmed by project.xml and
project.properties.
I found that I get the error regardless of whether the type is a jar or
an ear.
Any ideas what might cause a plugin to lose it's goal definitions?
+----------------------------------------
| Executing multiproject:install-callback MIT Factory Ear Module
| Memory: 37M/51M
+----------------------------------------
BUILD FAILED
File...... file:/C:/Documents and
Settings/chengt/.maven/plugins/maven-multiproject-plugin-1.1/
Element... maven:reactor
Line...... 174
Column.... 9
Unknown goal "multiproject:install-callback"
Total time: 39 seconds
Finished at: Fri Dec 12 12:59:53 EST 2003
Thanks.
-Tim
maven.multiproject.type=ear
maven.ear.appxml.generate=true
--------------------
<?xml version="1.0"?>
<project>
<extend>${basedir}/../../project.xml</extend>
<!-- a unique name for this project -->
<groupId>MITFactory</groupId>
<id>MITFactory</id>
<name>MIT Factory Ear Module</name>
<description>Sample EAR project.</description>
<shortDescription>Sample EAR project</shortDescription>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>MITFactoryBackend</artifactId>
<version>${pom.currentVersion}</version>
<type>ejb</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>MITFactoryCommon</artifactId>
<version>${pom.currentVersion}</version>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>MITFactoryService</artifactId>
<version>${pom.currentVersion}</version>
<type>sar</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>MITFactoryDatasource</artifactId>
<version>${pom.currentVersion}</version>
<type>sar</type>
<properties>
<ear.bundle>true</ear.bundle>
</properties>
</dependency>
</dependencies>
</project>
-Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org