Hi,
No, running dependency:go-offline didn't do the job. It just downloads
plug-ins and immediate dependencies.


$ mvn dependency:go-offline
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] ---------------------------------------------------------------------
[INFO] Building Unnamed - Application10:Project2:jar:1.0-SNAPSHOT
[INFO]    task-segment: [dependency:go-offline]
[INFO] ---------------------------------------------------------------------
[INFO] Preparing dependency:go-offline
[INFO] [dependency:resolve-plugins]
[INFO] Plugin Resolved: maven-compiler-plugin-2.0.2.jar
[INFO]     Plugin Dependency Resolved: maven-plugin-api-2.0.jar
[INFO]     Plugin Dependency Resolved: plexus-utils-1.0.4.jar
[INFO]     Plugin Dependency Resolved: plexus-compiler-api-1.5.3.jar
[INFO]     Plugin Dependency Resolved: plexus-compiler-manager-1.5.3.jar
[INFO]     Plugin Dependency Resolved: plexus-compiler-javac-1.5.3.jar
[INFO]     Plugin Dependency Resolved: maven-artifact-2.0.jar
[INFO] [dependency:go-offline]
[INFO] Resolved: cactus-maven-1.7.jar
[INFO] Resolved: maven-utils-parent-1.1.pom
[INFO] ---------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ---------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Dec 03 17:41:41 IST 2010
[INFO] Final Memory: 8M/19M
[INFO] ---------------------------------------------------------------------


Thanks,
Amaresh

On Fri, Dec 3, 2010 at 5:22 PM, Niels B Nielsen <
[email protected]> wrote:

> would dependency:go-offline work?
>
> Regards
>
> -----Original Message-----
> From: amaresh mourya [mailto:[email protected]]
> Sent: 03 December 2010 11:21
> To: Maven Users List
> Subject: How to download transitive dependencies
>
> Hi All,
>
> I have a project(A) containing pom.xml and that have a dependency of
>    <dependency>
>      <groupId>ca.grimoire.maven</groupId>
>      <artifactId>maven-utils-parent</artifactId>
>      <version>1.0</version>
>      <type>pom</type>
>    </dependency>
>
> And this maven-utils-parent-1.0.pom (in my local repository) has few
> dependencies in <dependencyManagement>. Is it possible to download these
> dependencies via some command. As when I run dependency:resolve on pom.xml
> of project A, I got ca.grimoire.maven:maven-utils-parent:pom:1.0 in my
> local
> repository. Is there any other command which can download all dependencies
> including below ones..
>
>
> <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
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to