Created
May 27, 2018 14:43
-
-
Save bobvanderlinden/960203d38475c4e0ffe861b049bbc107 to your computer and use it in GitHub Desktop.
go-offline failure case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.maven.test</groupId> | |
<artifactId>main</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>My Dependency Test</name> | |
<description/> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>2.5.2</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.codehaus.plexus</groupId> | |
<artifactId>plexus-container-default</artifactId> | |
<version>1.6</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>2.5.2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.plexus</groupId> | |
<artifactId>plexus-container-default</artifactId> | |
<version>1.6</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf $PWD/.m2 | |
mkdir -p $PWD/.m2/repository | |
mvn -Dmaven.repo.local=$PWD/.m2/repository org.apache.maven.plugins:maven-dependency-plugin:3.1.0:go-offline | |
mvn -Dmaven.repo.local=$PWD/.m2/repository --offline install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment