maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian E. Fox" <bri...@reply.infinity.nu>
Subject RE: dependency:copy-dependencies and parent projects
Date Fri, 09 May 2008 01:36:16 GMT
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


Mime
View raw message