Maven GPG插件-在两个不同的阶段对工件进行签名

时间:2018-12-21 14:37:49

标签: maven sign maven-gpg-plugin

我有一个Maven项目,其中我使用Maven GPG插件签署了工件。 我想:

  • 组装一些战争
  • 签名
  • 在一个zip文件中压缩战争
  • 签名压缩文件

我尝试做这样的事情:

    <plugin>
     <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-gpg-plugin</artifactId>
         <version>1.6</version>
           <executions>
             <execution>
               <id>sign-artifacts</id>
               <phase>verify</phase>
               <goals>
               <goal>sign</goal>
              </goals>
             </execution>   
             <execution>
               <id>sign-artifacts-post</id>
               <phase>install</phase>
               <goals>
               <goal>sign</goal>
              </goals>
              <configuration>
                <excludes>**/*.asc</excludes>
              </configuration>
             </execution>
            </executions>
          </plugin>

但是它对生成文件(filename.asc.asc)的asc文件进行了两次签名

一些提示?

0 个答案:

没有答案