我正在尝试在我的 Maven 项目中使用此依赖项。
我在 pom.xml 中添加了以下内容
<pluginRepository>
<id>sonatype-oss-public</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<dependency>
<groupId>com.sandwormz</groupId>
<artifactId>closure-compiler-maven-plugin</artifactId>
<version>LATEST</version>
<scope>compile</scope>
</dependency>
但是我的构建因以下日志而失败
[INFO] ------------------------------------------------------------------------
[INFO] Building TradeSim 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/groups/public/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml (709 B at 1.1 KB/sec)
Downloading: https://oss.sonatype.org/content/groups/public/com/sandwormz/closure-compiler-maven-plugin/0.0.2-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/groups/public/com/sandwormz/closure-compiler-maven-plugin/0.0.2-SNAPSHOT/closure-compiler-maven-plugin-0.0.2-SNAPSHOT.pom
[WARNING] The POM for com.sandwormz:closure-compiler-maven-plugin:jar:0.0.2-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.821s
[INFO] Finished at: Wed Oct 16 17:49:58 IST 2013
[INFO] Final Memory: 7M/115M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin com.sandwormz:closure-compiler-maven-plugin:0.0.2-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.sandwormz:closure-compiler-maven-plugin:jar:0.0.2-SNAPSHOT: Could not find artifact com.sandwormz:closure-compiler-maven-plugin:pom:0.0.2-SNAPSHOT in sonatype-oss-public (https://oss.sonatype.org/content/groups/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
但是在下面的链接中,我可以查看插件。
https://oss.sonatype.org/content/groups/public/com/sandwormz/maven.closure.plugin/0.0.2-SNAPSHOT/