java - Maven GPG plugin not signing sources and javadoc jars -
i'm attempting release project's artifacts sonatype using maven. i'm using maven gpg plugin sign artifacts, it's not signing sources , javadoc jars (just main jar), required sonatype. here's think relevant parts of pom.xml:
<plugins> ... <plugin> <artifactid>maven-source-plugin</artifactid> <executions> <execution> <id>attach-sources</id> <phase>install</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactid>maven-javadoc-plugin</artifactid> <executions> <execution> <id>attach-javadocs</id> <phase>install</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-gpg-plugin</artifactid> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> ... </plugins>
is there way tell sign these others jars too?
these changes pom solved problem:
<plugins> ... <plugin> <artifactid>maven-source-plugin</artifactid> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactid>maven-javadoc-plugin</artifactid> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-gpg-plugin</artifactid> <version>1.4</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> ... </plugins>
java maven pom.xml gnupg sonatype
No comments:
Post a Comment