You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Keith Bonawitz <bo...@naviasystems.com> on 2008/05/08 21:05:48 UTC

dependency:copy-dependencies and parent projects

Is there any way for dependency:copy-dependencies and
dependency:unpack-dependencies to consider parents (and all ancestors)
as dependencies?

Alternately, is there a way to automatically/implicitly add the parent
the parent as a dependency?  I tried adding:
	<dependencies>
		...
		<dependency>
			<groupId>${project.parent.groupId}</groupId>
			<artifactId>${project.parent.artifactId}</artifactId>
			<version>${project.parent.version}</version>
			<scope>compile</scope>
			<type>pom</type>
		</dependency>
	</dependencies>

To a common ancestor pom for my organization's projects, but this
resulted in errors:
'dependencies.dependency.artifactId' with value
'${project.parent.artifactId}' does not match a valid id pattern.
'dependencies.dependency.groupId' with value
'${project.parent.groupId}' does not match a valid id pattern.

Thanks so much to this community for all the help the last couple days,
Keith

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


RE: dependency:copy-dependencies and parent projects

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Currently, no. Adding the parents as dependencies though is a little
scary because it could cause some recursion in transitive dep
resolution. You can however use dependency:copy or unpack and list them
in the artifactItems list to do what you want.

-----Original Message-----
From: bonawitz@gmail.com [mailto:bonawitz@gmail.com] On Behalf Of Keith
Bonawitz
Sent: Thursday, May 08, 2008 12:06 PM
To: Maven Users List
Subject: dependency:copy-dependencies and parent projects

Is there any way for dependency:copy-dependencies and
dependency:unpack-dependencies to consider parents (and all ancestors)
as dependencies?

Alternately, is there a way to automatically/implicitly add the parent
the parent as a dependency?  I tried adding:
	<dependencies>
		...
		<dependency>
			<groupId>${project.parent.groupId}</groupId>
	
<artifactId>${project.parent.artifactId}</artifactId>
			<version>${project.parent.version}</version>
			<scope>compile</scope>
			<type>pom</type>
		</dependency>
	</dependencies>

To a common ancestor pom for my organization's projects, but this
resulted in errors:
'dependencies.dependency.artifactId' with value
'${project.parent.artifactId}' does not match a valid id pattern.
'dependencies.dependency.groupId' with value
'${project.parent.groupId}' does not match a valid id pattern.

Thanks so much to this community for all the help the last couple days,
Keith

---------------------------------------------------------------------
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