我必須建立jar文件具有所有依賴性和log4j.properties文件。Maven的罐子所有的依賴和log4j.properties文件
我正在尋找的計算器,但沒有運氣的答案。
現在我正在構建具有所有依賴關係的jar,但是現在我不知道如何告訴maven將log4j.properties文件移動到ma * .jar文件中的META-INF目錄中。我的聚甲醛的
部分,其產生與依賴的jar:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<mainClass>MainClass</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
我有什麼才能做到與所有的依賴和log4j.properties文件罐子?
哪裏文件在當前項目結構坐? – Romski 2013-02-21 12:35:56
log4j.properties位於src/main/resources中 – wojtek88 2013-02-21 12:57:39