java清单文件包含maven-xxxxx.jar依赖项jar文件
我尝试使用maven jar插件从maven构建清单文件。我看到的是一些maven-???????.jar文件包含在内。如何排除这些mave jar依赖文件 例如lib/maven-project-2.2.0.jar和lib/maven依赖树 -2.1.jar 请参见下面我的清单文件(CLASP路径) 谢谢 约翰 这是我的pom文件java清单文件包含maven-xxxxx.jar依赖项jar文件,java,maven,Java,Maven,我尝试使用maven jar插件从maven构建清单文件。我看到的是一些maven-???????.jar文件包含在内。如何排除这些mave jar依赖文件 例如lib/maven-project-2.2.0.jar和lib/maven依赖树 -2.1.jar 请参见下面我的清单文件(CLASP路径) 谢谢 约翰 这是我的pom文件 <plugin> <groupId>org.apache.maven.plugins<
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>pre-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
<excludeGroupIds>junit,org.apache.maven,org.codehaus.sonar,org.codehaus.plexus,org.testfx,org.reflections</excludeGroupIds>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>nl.ict.psa.eqp.sc_rdt.MainApplication</mainClass>
<classpathPrefix>lib</classpathPrefix>
</manifest>
<manifestEntries>
<Implementation-Title>PSA ECS SCRDT</Implementation-Title>
<Implementation-Version>3.0.0</Implementation-Version>
<Implementation-Vendor>ICT Automatisering Nederland B.V.</Implementation-Vendor>
</manifestEntries>
</archive>
<excludes>
<exclude>*.exe</exclude>
<exclude>*.bat</exclude>
<exclude>assembly/**</exclude>
<exclude>css/**</exclude>
</excludes>
</configuration>
</plugin>
org.apache.maven.plugins
maven依赖插件
3.0.0
复制依赖项
预包装
复制依赖项
${project.build.directory}/lib
真的
junit,org.apache.maven,org.codehaus.sonar,org.codehaus.plexus,org.testfx,org.reflections
真的
org.apache.maven.plugins
maven jar插件
2.4
真的
nl.ict.psa.eqp.sc\U rdt.main应用程序
解放党
PSA ECS SCRDT
3.0.0
荷兰ICT自动化公司。
*.exe
*蝙蝠先生
装配/**
css/**
您是否正在尝试构建胖jar?请显示您的pom文件…我添加了pom文件的插件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>pre-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
<excludeGroupIds>junit,org.apache.maven,org.codehaus.sonar,org.codehaus.plexus,org.testfx,org.reflections</excludeGroupIds>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>nl.ict.psa.eqp.sc_rdt.MainApplication</mainClass>
<classpathPrefix>lib</classpathPrefix>
</manifest>
<manifestEntries>
<Implementation-Title>PSA ECS SCRDT</Implementation-Title>
<Implementation-Version>3.0.0</Implementation-Version>
<Implementation-Vendor>ICT Automatisering Nederland B.V.</Implementation-Vendor>
</manifestEntries>
</archive>
<excludes>
<exclude>*.exe</exclude>
<exclude>*.bat</exclude>
<exclude>assembly/**</exclude>
<exclude>css/**</exclude>
</excludes>
</configuration>
</plugin>