'[ERROR] No plugin found for prefix 'wadl' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories'
當:我試圖從部分參考以下鏈接「的Maven插件使用」
生成Java文件https://wadl.java.net/wadl2java.html
'[ERROR] No plugin found for prefix 'wadl' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories'
當:我試圖從部分參考以下鏈接「的Maven插件使用」
生成Java文件https://wadl.java.net/wadl2java.html
你能確保你的pom.xml有以下資料庫,插件庫和依賴?
<repositories>
<repository>
<id>wadl-repository</id>
<name>WADL Maven Repository</name>
<url>https://wadl.dev.java.net/nonav/repository/</url>
</repository>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
</repository>
<repository>
<id>wadl-snapshots</id>
<name>WADL Snapshots Repository</name>
<url>https://wadl.dev.java.net/nonav/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>wadl-snapshots</id>
<name>WADL Snapshots Repository</name>
<url>https://wadl.dev.java.net/nonav/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.jvnet.ws.wadl</groupId>
<artifactId>wadl-core</artifactId>
<version>1.1.6</version>
</dependency>
</dependencies>
我有同樣的問題。對我來說,問題在於,爲了讓Maven解決前綴wadl
的問題,您需要將插件組添加到您的settings.xml
。
<pluginGroups>
<pluginGroup>org.jvnet.ws.wadl</pluginGroup>
</pluginGroups>
這意味着,當你運行wadl:generate
命令它也將看org.jvnet.ws.wadl
組中的一場比賽。
向我們展示您的pom – VedX