Skip to content

Instantly share code, notes, and snippets.

@bobvanderlinden
Created May 27, 2018 14:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobvanderlinden/960203d38475c4e0ffe861b049bbc107 to your computer and use it in GitHub Desktop.
Save bobvanderlinden/960203d38475c4e0ffe861b049bbc107 to your computer and use it in GitHub Desktop.
go-offline failure case
<?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>
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