GraphStream Users

Archives de la liste Aide


Re: Maven versioning issues


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: Dave Murray-Rust <d.murray-rust AT ed.ac.uk>
  • Cc: graphstream-users AT litislab.fr
  • Subject: Re: Maven versioning issues
  • Date: Mon, 20 Apr 2015 10:12:49 +0000

It should fallback to 1.2 since the dependency version range include 1.2 but not 1.3... It's the dark side of maven. We recently changed the way that modules are included, using ${project.version}, but I don't know what is really the best way to do that. We still have work to do with these bloody POMs :'(

Sorry for the API doc. We are actually rethinking the "web" part of the project. The new version of the website will be hosted on Github (https://graphstream.github.io). The API is already available here : http://data.graphstream-project.org/api/gs-core/

Le lun. 20 avr. 2015 à 11:17, Dave Murray-Rust <d.murray-rust AT ed.ac.uk> a écrit :

> On 20 Apr 2015, at 09:52, guilhelm savin <guilhelm.savin AT gmail.com> wrote:
>
> Hi Dave,
>
> And thanks.
> This sounds strange... gs-core does not depend on any other gs-* modules, and gs-ui depends on core and algo with the same version number.

OK, had a quick look - my version of .m2/repository/org/graphstream/gs-ui/1.2/gs-ui-1.2.pom has:
                <dependency>
                        <groupId>org.graphstream</groupId>
                        <artifactId>gs-core</artifactId>
                        <version>[1.2,1.3)</version>
                        <optional>false</optional>
                </dependency>
                <dependency>
                        <groupId>org.graphstream</groupId>
                        <artifactId>gs-algo</artifactId>
                        <version>[1.2,1.3)</version>
                        <optional>false</optional>
                </dependency>
So I guess it's going for the 1.3-SNAPSHOT and not finding it. I would have hoped that maven would then fall back to 1.2, but I'll admit to being hazy on the details.

> I do not understand why the snapshots 1.3 have disapear.. I guess that maybe they are deleted when the version is released... I will try to find out why !
>
> The only API change I can remember between 1.2 and 1.3 is about the Viewer. Updating your code to these changes "should" be easy :)

It was easy-ish ;) - I couldn't find a document of the changes, and I think the API docs on the site are still v1.2. If anyone else is trying to figure out where the Viewer classes have gone, this is how I found them:

unzip -t ~/.m2/repository/org/graphstream/gs-core/1.3/gs-core-1.3.jar | grep Viewer

Cheers,
dave


>
> Thanks for reporting, and sorry for the troubles...
> Cheers.
>
> Guilhelm
>
> Le lun. 20 avr. 2015 à 10:39, Dave Murray-Rust <d.murray-rust AT ed.ac.uk> a écrit :
> Hi graphstreamers,
>
> The library is great, loving it.
>
> Just writing to point out an issue deploying my code. I was using version 1.2, but when I installed on a friends machine, it turns out that the gs-core and/or gs-ui packages are referencing the gs-algo 1.3-SNAPSHOT package, which is not currently available from the repo.
>
> The fix seemed to be to upgrade to 1.3, but the API has changed as packages have been moved around, so we had to do some code changes to get things running.
>
> I guess the real issue is that a) the 1.2 packages depended on 1.3-SNAPSHOT, and b) that 1.3-SNAPSHOT has disappeared.
>
> Just letting you know.
>
> Thanks!
> dave
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>


--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




Archives gérées par MHonArc 2.6.16.

Top of page