2
我使用Maven 3.0.4以及Jython 2.5.2和Pygments 1.5(通過一個雞蛋)。我已經配置了Jython的編譯Maven的插件作爲,Maven版本的區別:使用jython時準備並安裝jar
<plugin>
<groupId>net.sf.mavenjython</groupId>
<artifactId>jython-compile-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jython</goal>
</goals>
</execution>
</executions>
<configuration>
<libraries>
<!-- Install the latest pygments library -->
<param>Pygments</param>
</libraries>
</configuration>
運行MVN安裝創建的JAR包含Pygments來做庫在庫文件嵌入到。這確保我所有的代碼都能正常工作。
當我運行mvn發行版時,該問題開始:準備命令。在這種情況下,只有我的代碼進入JAR內部,並且庫被忽略。如果我看看目標/類文件夾,它包含我的代碼和所需的pygments庫。
關於我可能會失蹤或做錯的任何想法?