0
是新來Maven
依賴...Maven的包含在可執行的JAR
試圖創建一個簡單的applet
。
包括
applet
的依賴關係。 爲此,我曾嘗試:<repository> <id>lib</id> <name>lib</name> <releases> <enabled>true</enabled> <checksumPolicy>ignore</checksumPolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <url>file://${project.basedir}/lib</url> </repository>
我已經列入下我的項目結構的
lib
文件夾這些文件。 這個庫包含幾個jar
文件和JNI dll
,我需要在我的applet
中使用。 有沒有更好的選擇來創建repository
比上面,請分享?包裝小程序
jar
與依賴關係。 爲此,我曾嘗試:<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>jar-with-dependencies</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration>
我希望上面來包裝我的依賴關係到一個單一的jar
,但情況並非如此。 生成的jar
文件大小犯規包含依賴jar
文件。(我可以說怎麼把大小jar
文件的仍然是既jars
有和沒有依賴關係不變相同)
我是在做正確的方式與Maven
?
謝謝'shade'和'maven'對我來說是非常新的,我花了一些時間來學習'maven',因爲我發現它對我的應用程序來說很有用,檢查上面的我已經嘗試過,並建議我如果有些事情需要改變..再次感謝您的時間。 – 2012-07-18 09:37:52