我一直无法找到有关此问题的具体答案。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