在我的<plugin>
我有以下<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<excludeScope>system</excludeScope>
<excludes>META-INF/*.SF</excludes>
<excludes>META-INF/*.DSA</excludes>
<excludes>META-INF/*.RSA</excludes>
<excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>
<outputDirectory>${project.build.directory}/classes/lib/</outputDirectory>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
部分:
mvn clean install -U
但是,每当我使用 $.each(data, function(index, item) {
$("#statement tbody").append("<tr>"+
"<td>" + item.category + "</td>"+
"<td>" + item.transaction_date + "</td>"+
"<td>" + item.debit + "</td>"+
"<td>" + item.credit + "</td>"+
"<td>" + item.Balance + "</td>"+
"</tr>");
});
$("#statement").table( "rebuild" );
构建项目时,会将某些.SF,.DSA和.RSA复制到构建的jar文件中,我需要手动删除它们。
如何解决这个问题?
答案 0 :(得分:0)
标签
<excludes>META-INF/*.SF,META-INF/*.DSA,META-INF/*.RSA</excludes>