Barrie https://maven.apache.org/guides/development/guide-testing-development-plugins.html
suggests setting up profile in settings.xml to enable or disable snapshots then invoke mvn profile mvn -pProfileWithoutSnapshot did you try configuring profile in settings.xml? Martin ______________________________________________ > Date: Fri, 21 Aug 2015 11:09:24 +0930 > Subject: maven-remote-resources-plugin downloads from disabled repositories > From: baerr...@gmail.com > To: dev@maven.apache.org > > I'm tinkering with maven-scm and when I build it locally via > ../maven-scm/maven-scm-plugin> mvn -X clean install -Drat.skip > > Maven attempts to download the snapshot metadata for it's the already > installed snapshot files. (This is probably because I'm running inside a > module and not at the top level) > > I've attempted to disable apache.snapshots in settings.xml as I dont want > any snapshot I haven't built myself. > > The configuration debugs indicate that the repositories are are disabled - > but Maven still attempts to get the metadata. It looks like > maven-remote-resources-plugin is the culprit. > > Does anyone else see this? > > I've only recently re-setup my Mac to cut code, so its possible I've not > got something configured correctly. > > > mvn -v > Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; > 2014-12-15T03:59:23+10:30) > Maven home: /usr/local/Cellar/maven/3.2.5/libexec > Java version: 1.6.0_65, vendor: Apple Inc. > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home > Default locale: en_US, platform encoding: MacRoman > OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac" > > The debug output: > > [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process' with > basic configurator --> > [DEBUG] (f) appendedResourcesDirectory = > /Users/barrie/ide/maven/maven-scm/maven-scm-plugin/src/main/appended-resources > [DEBUG] (f) attachToMain = true > [DEBUG] (f) attachToTest = true > [DEBUG] (f) attached = true > [DEBUG] (f) basedir = /Users/barrie/ide/maven/maven-scm/maven-scm-plugin > [DEBUG] (f) encoding = UTF-8 > [DEBUG] (f) excludeTransitive = false > [DEBUG] (f) includeProjectProperties = false > [DEBUG] (f) includeScope = runtime > [DEBUG] (f) localRepository = id: local > url: file:///Users/barrie/.m2/repository/ > layout: default > snapshots: [enabled => true, update => always] > releases: [enabled => true, update => always] > > [DEBUG] (f) outputDirectory = > /Users/barrie/ide/maven/maven-scm/maven-scm-plugin/target/maven-shared-archive-resources > [DEBUG] (f) remoteArtifactRepositories = [ id: central > url: https://repo.maven.apache.org/maven2 > layout: default > snapshots: [enabled => false, update => never] > releases: [enabled => true, update => daily] > , id: apache.snapshots > url: https://repository.apache.org/content/groups/snapshots-group > layout: default > snapshots: [enabled => false, update => never] > releases: [enabled => false, update => never] > ] > [DEBUG] (f) resourceBundles = [org.apache:apache-jar-resource-bundle:1.4] > [DEBUG] (f) resources = [Resource {targetPath: null, filtering: false, > FileSet {directory: > /Users/barrie/ide/maven/maven-scm/maven-scm-plugin/src/main/resources, > PatternSet [includes: {}, excludes: {}]}}] > [DEBUG] (f) runOnlyAtExecutionRoot = false > [DEBUG] (f) skip = false > [DEBUG] (f) useDefaultFilterDelimiters = true > [DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession@569c6f2 > [DEBUG] (f) project = MavenProject: > org.apache.maven.plugins:maven-scm-plugin:1.9.5-SNAPSHOT @ > /Users/barrie/ide/maven/maven-scm/maven-scm-plugin/pom.xml > [DEBUG] -- end configuration -- > > ... > > [DEBUG] > org.apache.maven.scm:maven-scm-provider-svntest:jar:1.9.5-SNAPSHOT:test > (selected for test) > [DEBUG] org.apache.maven.scm:maven-scm-test:jar:1.9.5-SNAPSHOT:test > (selected for test) > [DEBUG] Building project for > org.apache.maven.scm:maven-scm-manager-plexus:jar:1.9.5-SNAPSHOT:compile > [DEBUG] Using transporter WagonTransporter with priority -1.0 for > https://repository.apache.org/content/groups/snapshots-group/ > [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for > https://repository.apache.org/content/groups/snapshots-group/ > Downloading: > https://repository.apache.org/content/groups/snapshots-group/org/apache/maven/scm/maven-scm-managers/1.9.5-SNAPSHOT/maven-metadata.xml > [DEBUG] Writing tracking file > /Users/barrie/.m2/repository/org/apache/maven/scm/maven-scm-managers/1.9.5-SNAPSHOT/resolver-status.properties > [WARNING] Could not transfer metadata > org.apache.maven.scm:maven-scm-managers:1.9.5-SNAPSHOT/maven-metadata.xml > from/to apache.snapshots ( > https://repository.apache.org/content/groups/snapshots-group/): > java.lang.RuntimeException: Could not generate DH keypair > org.eclipse.aether.transfer.MetadataTransferException: Could not transfer > metadata > org.apache.maven.scm:maven-scm-managers:1.9.5-SNAPSHOT/maven-metadata.xml > from/to apache.snapshots ( > https://repository.apache.org/content/groups/snapshots-group/): > java.lang.RuntimeException: Could not generate DH keypair > > I'm ignoring the known error with DH crypto problems - I just want it to > not try to download snapshots...