我必须建立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