blob: 88ae4989182b81aa7d2f709c501ae8d015c7cdcd [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
-->
<faqs xmlns="http://maven.apache.org/FML/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 https://maven.apache.org/xsd/fml-1.0.1.xsd"
id="FAQ" title="Frequently Asked Questions">
<part id="General">
<faq id="about">
<question>What is Jarsigner?</question>
<answer>
<p>
You can read more about this tool in the offical guide:
<a href="https://docs.oracle.com/javase/7/docs/technotes/tools/solaris/jarsigner.html">jarsigner - JAR Signing and Verification Tool</a>.
</p>
</answer>
</faq>
<faq id="single-archive">
<question>Is it possible to sign a single archive file?</question>
<answer>
<p>
Signing or verifying a Java archive which is neither a project artifact
nor an attached artifact can be done by using the <code>archive</code> parameter
of the <a href="sign-mojo.html"><code>sign</code></a> and <a href="verify-mojo.html"><code>verify</code></a> goals. If
this parameter is set, the goals will process the specified archive and will not process any project
artifacts.
</p>
</answer>
</faq>
<faq id="unsign">
<question>How can I unsign JARs before re-signing them with my key?</question>
<answer>
<p>
To remove any existing signatures from the JARs before signing with your own key, simply set the parameter
<a href="sign-mojo.html#removeExistingSignatures"><code>removeExistingSignatures</code></a> of the
<a href="sign-mojo.html"><code>sign</code></a> mojo to <code>true</code>. The resulting JAR will then appear
to be signed exactly once.
</p>
</answer>
</faq>
<faq id="sign_and_assembly">
<question>Why if I want to sign an artifact and then assembly there is some problem under windows?</question>
<answer>
<p>
To fix the problem, just move the assembly execution so it comes <strong>after</strong> the jarsigner execution in the pom.
</p>
<p>
The whole story of the problem can be found in <a href="https://issues.apache.org/jira/browse/MJARSIGNER-13">MJARSIGNER-13</a> issue.
</p>
</answer>
</faq>
</part>
</faqs>