1
私は、アセンブリプラグインを使用して、mavenプロジェクトでモジュールの1つのzipにアプレットのリストをパッケージ化しています。ここでのpom.xmlは次のとおりです。Maven 3でアセンブリプラグインでjarsignプラグインを使用
私も彼らがパッケージ化される前に、私はここにjarsignプラグインを使用することができ、jarファイルを署名し、そしてどのようにすることです必要なもの<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<artifactId>applets-deploy</artifactId>
<name>deploy</name>
<dependencies>
<dependency>
<groupId>com.activx.lims</groupId>
<artifactId>applets-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.activx.lims</groupId>
<artifactId>ceplot-applet</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
......
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/resources.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
? jarファイルがビルドプロセス中に一時的に格納されている場所を見つけることができません。 ありがとう、
しかし、私はjarsignerプラグインで "archiveDirectory"を指定する必要がありますが、私はすべてのjarsで作成された中間作業ディレクトリを見つけることができないようです。 –
[jarsignerプラグインの最初の使用例](http://maven.apache.org/plugins/maven-jarsigner-plugin/usage.html)を試しましたか?それはあなたが瓶の署名までに求めているようにする方法を正確に示しています。その後、アセンブリプラグインが署名付きのjarファイルをピックアップしていることを確認するだけです。 –