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

Reply via email to