Hello all,
I am working on a computer without Internet access and I am trying to setup a simple offline Maven local windows repository which would hold all my personal jars. My goal is to use Maven without any central repository, but only a local repository used only by me.Is it possible to do this with Maven? I've tried to put a <repository> tag in my pom to no avail.
The problem I encountered is that each time I launch a 'mvn' command (such as mvn compile, mvn build, mvn package....) it tries to download some plugin files from the Internet (such as org.apache.maven.plugins:maven-resources-plugin:pom:2.2 ) and since I don't have it I get an error such as +'Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-resources-plugin:pom:2.2'+
I am really stuck here could anybody help me out?
Thanks in advance,
Jimmy
Here is my pom:
<?xml version="1.0"?>
<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">
<repositories>
<repository>
<id>myRepository</id>
<url>D:\workspaces\mvc\repository</url>
</repository>
</repositories>
<modelVersion>4.0.0</modelVersion>
<groupId>com.jimmy.boyd</groupId>
<artifactId>mywebapp</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>my webapp</name>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>2.5.4</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>