Install Nexus and these problem (and a lot of other ones) go away.
Out of the box, it will find all of the common dependencies and you can
add more 3rd party repos if you need some odd stuff.
You will save yourself a lot of grief and false starts with maven if you
get Nexus going early in the project.
Ron
On 17/06/2010 3:04 AM, amaresh mourya wrote:
Hi All,
I have maven-utils-parent-1.0.pom and this have<dependencyManagement> as
shown below. Not by reading this pom I am in need to download all its
dependencies (jar files). One way is that I try downloading(using
ArtifactResolver's resolve method) from central, but it is possible that
these dependencies doesn't exist in central.
My question is : how would I know where to look for these dependencies, by
reading pom(maven-utils-parent-1.0.pom)?. Is there any way to extract
repositories information where these dependencies can be found.??
<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,
Amaresh
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org