小编Kar*_*ick的帖子

部署Maven项目抛出java.util.zip.ZipException:无效的LOC头(错误的签名)

当我运行我时,我得到以下异常mvn install.我甚至删除了本地存储库并再次运行获得相同的异常.

[错误]无法执行目标org.apache.maven.plugins:maven-shade-plugin:2.1:项目核心上的阴影(默认) - 批处理:创建阴影jar时出错:无效的LOC标题(错误签名) - > [帮助1 ]

<?xml version="1.0" encoding="UTF-8"?>
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-shade-plugin</artifactId>
   <version>2.1</version>
   <configuration>
      <skipTests>true</skipTests>
   </configuration>
   <executions>
      <execution>
         <phase>package</phase>
         <goals>
            <goal>shade</goal>
         </goals>
         <configuration>
            <artifactSet>
               <excludes>
                  <exclude>commons-logging:commons-logging:jar:*</exclude>
               </excludes>
            </artifactSet>
            <filters>
               <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                     <!-- workaround for a spring issues -->
                     <exclude>META-INF/*.SF</exclude>
                     <exclude>META-INF/*.DSA</exclude>
                     <exclude>META-INF/*.RSA</exclude>
                     <!-- don't want to pick up any other log4j.xml -->
                     <exclude>log4j.xml</exclude>
                  </excludes>
               </filter>
            </filters>
            <!-- May be needed to work around another issue in Spring -->
            <transformers>
               <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                  <resource>META-INF/spring.handlers</resource>
               </transformer>
               <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> …
Run Code Online (Sandbox Code Playgroud)

deployment jar java-ee maven

156
推荐指数
6
解决办法
24万
查看次数

如何将值传递给Jenkins的Ansible剧本

我需要将值传递给Jenkins的Ansible playbook yml

请你帮助我好吗 ?

在此输入图像描述

jenkins jenkins-plugins ansible

4
推荐指数
2
解决办法
1万
查看次数

标签 统计

ansible ×1

deployment ×1

jar ×1

java-ee ×1

jenkins ×1

jenkins-plugins ×1

maven ×1