I would make the maven-utils into a jar project that produced a library
of all of the utils and build that once.
Then each of the projects that needs these libraries would have a single
dependency on your new "utils" jar.
I would remove the word maven from the name since these utilitiies have
nothing to do with Maven
Ron
On 03/12/2010 8:35 AM, Brian Fox wrote:
dependency:copy-dependencies sounds like what you want.
On Fri, Dec 3, 2010 at 7:41 AM, amaresh mourya<amaresh.mou...@gmail.com> wrote:
Hi,
<dependencyManagement>
<dependencies>
<!-- Internal project dependencies -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>maven-utils</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Third-party software -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!-- Java EE -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
thanks for reply, I would like to know if the above transitive dependencies
would have been in<dependencies> section rather that<dependencyManagement>
of maven-utils-parent-1.0.pom. Should I expect dependency:go-offline to
download them too, when I am running this goal on projectA's pom.xml (that
have dependency over maven-utils-parent-1.0 )
thanks,
Amaresh
On Fri, Dec 3, 2010 at 5:47 PM, Stefan Seidel<ssei...@vub.de> wrote:
On Fri, 3 Dec 2010 17:39:23 +0530
amaresh mourya<amaresh.mou...@gmail.com> wrote:
No, running dependency:go-offline didn't do the job. It just downloads
plug-ins and immediate dependencies.
It downloads all dependencies, these are not dependencies.
And this maven-utils-parent-1.0.pom (in my local repository) has few
dependencies in<dependencyManagement>. Is it possible to download
these
You should read
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Managementwhich
says "the dependency management section is a mechanism for
centralizing dependency information."
So, to make it more clear: these are NOT dependencies. That's why they're
not downloaded with the above command.
[...] Is there any other command which can download all dependencies
including below ones..
Yes declare them as dependencies in your own pom.xml - because of the
dependencyManagement entries, you will only need groupId, artifactId and
maybe type.
Stefan
--
Mit freundlichen Grüßen,
Stefan Seidel
Software-Entwickler
________________________
VUB Printmedia GmbH
Chopinstraße 4, 04103 Leipzig
tel. +49 (341) 9 60 50 93
fax. +49 (341) 9 60 50 92
mail. ssei...@vub.de
web. www.vub.de
VUB Printmedia GmbH
HRB Köln 24015
GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org