我一直無法找到有關此問題的具體答案。Maven插件依賴關係
我已經成功地安裝修補的行家使用手動插件JAR文件(osxappbundle)執行以下操作:
mvn install:install-file -Dfile=osxappbundle-maven-plugin-1.0-alpha-4-SNAPSHOT.jar -Dpackaging=jar -DgroupId=org.codehaus.mojo -DartifactId=osxappbundle-maven-plugin -Dversion=1.0-alpha-4-SNAPSHOT -DgeneratePom=true
當插件在POM,特別「束」的簡稱,我收到錯誤:
Unable to load the mojo 'bundle' in the plugin 'org.codehaus.mojo:osxappbundle-maven-plugin:1.0-alpha-4-SNAPSHOT'. A required call is missing: org/apache/velocity/exception/MethodInvocationException.
org.apache.velocity肯定是安裝在我的本地程序存儲庫(.m2目錄),但沒有找到。如果我手動將類文件添加到它們被發現的jar文件中,所以這表明它不能使用本地存儲庫解決依賴關係。
我認爲這是因爲我手動安裝了jar文件。
如果手動安裝了jar,它是否只解析依賴關係,如果它們在jar中而不是在外面看?
該插件在這樣的POM引用:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>osxappbundle-maven-plugin</artifactId>
<version>1.0-alpha-4-SNAPSHOT</version>
<configuration>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
向我們展示如何引用這個插件在POM – jtomaszk
問題更新。 – CAM79