------ Usage ------ Christian Schulte ------ 08 April 2009 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Usage Some brief examples on how to use this plugin. * Signing a project artifact and attachments If you need to sign a project artifact and all attached artifacts, just configure the sign goal appropriately in your <<>> for the signing to occur automatically during the package phase. +-----------------+ ... ... org.apache.maven.plugins maven-jarsigner-plugin ${project.version} sign sign /path/to/the/keystore Alias name Store password Key password ... ... +-----------------+ <> you can encrypt <<>> and <<>> using the maven encryption mechanism. See {{{Maven encryption guide}http://maven.apache.org/guides/mini/guide-encryption.html}}. * Verifying the signature of a project artifact and attachments If you need to verify the signatures of a project artifact and all attached artifacts, just configure the verify goal appropriately in your <<>> for the verification to occur automatically during the verify phase. +-----------------+ ... ... org.apache.maven.plugins maven-jarsigner-plugin ${project.version} verify verify true true ... ... +-----------------+ * How to disable attachment processing +-----------------+ mvn ... -Djarsigner.attachments=false +-----------------+ * How to disable the Jarsigner Plugin +-----------------+ mvn ... -Djarsigner.skip=true +-----------------+ For full documentation, please see the respective {{{./plugin-info.html}goal documentation}}. * How to use encrypted password Since version 1.3, you can pass to the plugin some password encrypted by the maven encryption mechanism.