Add external repository in Project

I wanted to work against Apache snapshots instead of default repo

So here is what i did

In project pom.xml add the following settings

 

<project>….

<repositories>
        <repository>
            <id>apache.snapshot</id>
            <url>https://repository.apache.org/content/repositories/snapshots//</url>
        </repository>
    </repositories>

 

</project>

Now you can use this inside your project

 

Something like

 

<dependency>
            <groupId>org.apache.mahout</groupId>
            <artifactId>mahout-core</artifactId>
            <version>0.8-SNAPSHOT </version>
        </dependency>

No comments:

Post a Comment

Please share your views and comments below.

Thank You.