GraphStream Users

Archives de la liste Aide


Nightly builds in Maven


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: "users AT graphstream-project.org" <users AT graphstream-project.org>
  • Subject: Nightly builds in Maven
  • Date: Thu, 11 Apr 2013 23:20:04 +0200

Hi,

Nightly builds of gs-core/algo/ui can now be accessed as snapshots in Maven dependencies.

You just have to edit the pom.xml of your project which is using GraphStream and to follow one of these methods :

1. Extending the Sonatype OSS pom :

You just have to set the parent section in the POM of your project :
1
2
3
4
5
<parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
</parent>
2. Adding snapshot repositories :

You have to add the Sonatype snapshot repository in your POM :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<repositories>
        <repository>
                <releases>
                        <enabled>false</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>warn</checksumPolicy>
                </releases>
                <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>never</updatePolicy>
                        <checksumPolicy>fail</checksumPolicy>
                </snapshots>
                <id>sonatype-nexus-snapshots</id>
                <name>Sonatype Nexus Snapshots</name>
                <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                <layout>default</layout>
        </repository>
</repositories>

Then, just use the snapshot version of GraphStream in your dependencies and Maven will try to retrieve the last snapshot when you are building your project :
1
2
3
4
5
6
<dependency>
        <groupId>org.graphstream</groupId>
        <artifactId>gs-core</artifactId>
        <version>1.2-SNAPSHOT</version>
        <optional>false</optional>
</dependency>


Regards.
Guilhelm

--
Guilhelm Savin
PhD Student of Computer Science


  • Nightly builds in Maven, guilhelm savin, 11/04/2013

Archives gérées par MHonArc 2.6.16.

Top of page