maven 3 - Failure to find org.spockframework:spock-core:jar:1.0-groovy-2.3-SNAPSHOT in Spock Example project -
With Groovy 2.3 support, trying to use Scope through GMWen (Maven 3.1.1) and I Having difficulty snapshot dependency. I have the same error when I try to run a scope example project on which the same dependency is set. & Lt; Group & gt; Org.spockframework & lt; / Group & gt; & Lt; ArtifactId & gt; Spock core & lt; / ArtifactId> & Lt; Version & gt; 1.0-GruVi-2.3-snapshot and lt; / Edition & gt; & Lt; Scope & gt; Trial & lt; / Scope & gt; & Lt; / Dependencies & gt;
I have a SNAPSHOT repository which is specified as a spokyz example:
But whenever I run mvn clean test
, I still run:
ERROR] Failed to execute target on project- Example: Whether the dependency for the project org.spockframework is not resolved: spock-example: Jar: 1.0-SNAPSHOT: failure to find org.spockframework: spock-core: jar: 1.0-groovy-2.3-SNAPSHOT cached in local store Had not been resolved, until resolution_sprn's update interval expires or can be retrieved -> [Help1]
If I just 0. I use the 7-groovy-2.0 version, but I want Groovy 2.3 because it appears as a compastestic gravity 2.0 is not working properly for my project.
Edit:
Just notice a failure, before the build fails:
[Warning] Org.spockframework: spock -core: jar: 1.0-groovy-2.3-SNAPSHOT is unavailable, no dependency information is available
So based on the comments of Mr Nedarviers, I found that settings.xml is required to use a mirror for my current P rosa which does not know about Scope SNPSHOT space. To reconfigure my company's proxy settings, I had to do the following to not use a mirror in my global settings.xml
.
& lt; Mirror & gt; & Lt; Mirror & gt; & Lt; ID & gt; Nexus_sprn & lt; / Id & gt; & Lt; MirrorOf> *,! Nexus_public, Project lib- directory, Spokes-Snapshot & lt ;! / MirrorOf> & Lt; URL & gt; MIRROR_URL_REMOVED & lt; / URL & gt; & Lt; / Mirror & gt; & Lt; / Mirror & gt;
...
& lt; Repository & gt; & Lt; ID & gt; Spok-Snapshot & lt; / Id & gt; & Lt; URL & gt; Http: //oss.sonatype.org/content/repositories/snapshots/< / URL & gt; & Lt; Snapshot & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; / Snapshot & gt; & Lt; / Stores & gt;
Here is not certain about the proper etiquette, but I will leave this reply here for the future unless it is unnecessary that there is no consensus.
Comments
Post a Comment