You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ClaudioLazo <cl...@gmail.com> on 2006/11/20 21:52:36 UTC

Re: [M2] Problem with maven-ear-plugin: Artifact[_:_:ejb] is not a dependency of the project.

Hi,

You will also need to specify <version>2.1</version> in the dependency
declaration.

That worked for me,

Claudio


Henry S. Isidro wrote:
> 
> Hi Stefan,
> 
> Try adding <type>ejb</type> in your dependency declarations.
> 
> HTH,
> Henry
> 
> Stefan Rademacher wrote:
>> Hello,
>> 
>> I have a problem, when I try creating an EAR file, that includes two
>> EJB modules. Nobody else seems to have this issue, so there might be an
>> easy solution...
>> 
>> I have a project with packaging=ear and two projects with
>> packaging=ejb. When I package the ejb projects separately, there are no
>> errors. But when I want to package the ear-project (see pom below), I
>> get the error "Artifact[de.hhla.smd:hhla.smd.bwaclient:ejb] is not a
>> dependency of the project." But I added the two ejb projects as
>> dependencies of my ear project.
>> 
>> Could anybody tell me, what I'm doing wrong?
>> 
>> Thanks a lot for your help!
>> Regards,
>> Stefan
>> 
>> POM of the EAR project:
>> ------------------------------------
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> 	<modelVersion>4.0.0</modelVersion>
>> 	<groupId>de.hhla.smd</groupId>
>> 	<artifactId>hhla.smd.provider</artifactId>
>> 	<name>hhla.smd.provider</name>
>> 	<version>1.0-beta-1-SNAPSHOT</version>
>> 	<packaging>ear</packaging>
>> 	<dependencies>
>> 		<dependency>
>> 			<groupId>de.hhla.smd</groupId>
>> 			<artifactId>hhla.smd.aisclient</artifactId>
>> 			<version>1.0-beta-1-SNAPSHOT</version>
>> 		</dependency>
>> 		<dependency>
>> 			<groupId>de.hhla.smd</groupId>
>> 			<artifactId>hhla.smd.bwaclient</artifactId>
>> 			<version>1.0-beta-1-SNAPSHOT</version>
>> 		</dependency>
>> 	</dependencies>
>> 	<build>
>> 		<plugins>
>> 			<plugin>
>> 				<groupId>org.apache.maven.plugins</groupId>
>> 				<artifactId>maven-ear-plugin</artifactId>
>> 				<configuration>
>> 					<modules>
>> 						<ejbModule>
>> 							<groupId>de.hhla.smd</groupId>
>> 							<artifactId>hhla.smd.bwaclient</artifactId>
>> 						</ejbModule>
>> 						<ejbModule>
>> 							<groupId>de.hhla.smd</groupId>
>> 							<artifactId>hhla.smd.aisclient</artifactId>
>> 						</ejbModule>
>> 					</modules>
>> 				</configuration>
>> 			</plugin>
>> 		</plugins>
>> 	</build>
>> </project>
>> 
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-M2--Problem-with-maven-ear-plugin%3A-Artifact-_%3A_%3Aejb--is-not-a-dependency-of-the-project.-tf927556s177.html#a7450410
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org