Hi, i'm using Aether to get the available versions of an artifact so far so good...but currently i have line in the code which i would like to solve in a different way instead of hard coding it:
Artifact artifact = new DefaultArtifact( "com.soebes.subversion.sapm", "sapm", null, "[0,)"); RemoteRepository repo = new RemoteRepository( "central", "default", "http://repo1.maven.org/maven2/" ); VersionRangeRequest rangeRequest = new VersionRangeRequest(); rangeRequest.setArtifact( artifact ); rangeRequest.addRepository( repo ); VersionRangeResult rangeResult = system.resolveVersionRange( session, rangeRequest ); List versions = rangeResult.getVersions(); The line i wan't to do different is the following: RemoteRepository repo = new RemoteRepository( "central", "default", "http://repo1.maven.org/maven2/" ); Isn't there a better solution to the information about the repositories from the current settings.xml file or from the system configuration settings.xml file. Does exist an example how to load the settings.xml of the user and the system configuration to create the above repository configuration? Many thanks in advance Kind regards Karl Heinz Marbaise ----- Kind regards Karl Heinz Marbaise ---- http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/Maven-Aether-Repositories-from-settings-xml-tp4315216p4315216.html Sent from the Maven - Users mailing list archive at Nabble.com.