Open glassfishrobot opened 13 years ago
Reported by lfischer
jan.eerdekens said: I've encountered a similar issue and I also can't revert my Maven version. The difference I get is that if I use an empty settings.xml file, bypassing our company's Nexus, everything works. When using our Nexus I get the aforementioned error.
yodamad said: Hi
I was facing the same problem. I found a solution, hope it can help : I disable the proxy for Apache Snapshots in my Nexus. Then i clear my repository of all disfunctionning plugins. Finally, i run my mvn command with -U to force repository index updates, and then it works fine !!!
Mat
This issue was imported from java.net JIRA MAVEN_GLASSFISH_PLUGIN-11
Using the maven-glassfish-plugin version 2.1 together with Maven version 3.0.3, I get this error:
[ERROR] Failed to execute goal org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy (default-cli) on project comp1-ear: Execution default-cli of goal org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy failed: Plugin org.glassfish.maven.plugin:maven-glassfish-plugin:2.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.glassfish.maven.plugin:maven-glassfish-plugin:jar:2.1 (): Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:3.0-SONATYPE-688946: Could not find artifact org.apache.maven:maven-parent:pom:9-SNAPSHOT
Something is wrong, when there are SNAPSHOT-dependencies on a released maven plugin.
Running with Maven 2.2.1, everything is fine, but I can not switch back to this version.
Environment
Maven version 3.0.3
Affected Versions
[current]