Hello everyone,

I am trying to use the maven jarsigner to sign my jars. I've added the pom 
fragment shown below. It works on linux. However on windows I get the error:

Jarsigner: attempt to rename jarname to jarname.orig failed.

Any ideas what I'm doing wrong? I'm using Oracle JDK8 and maven 3.6.0. I've 
googled and some people say they got this error and removing the verify step 
made it work. I tried that and it didn't work for me.

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jarsigner-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
                <execution>
                    <id>sign</id>
                    <goals>
                        <goal>sign</goal>
                    </goals>
                </execution>
                <execution>
                    <id>verify-jars</id>
                    <goals>
                        <goal>verify</goal>
                    </goals>
                </execution>

            </executions>
            <configuration>
                <keystore>mykeystore</keystore>
                <alias>myalias</alias>
                <storepass>mystorepass</storepass>
                <tsa>url-of-timestamp-service </tsa>
            </configuration>
        </plugin>

Andrew Marlow
Consultant developer, Apex
38th Floor, 25 Canada Square,
Canary Wharf, London E14 5LQ
T:  020-8081-2367 / 07966-451-521
E: [email protected]<mailto:[email protected]>
FIS | Empowering the Financial World [cid:[email protected]] 
<https://www.facebook.com/FIStoday> [cid:[email protected]] 
<https://twitter.com/FISGlobal> [cid:[email protected]] 
<https://www.linkedin.com/company/fis>
FIS Apex (UK) Limited * Registered in England and Wales No. 3573008 * 
Registered Office: 38th floor, 25 Canada Square, London, E14 5LQ, United Kingdom
[50_3]

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. FIS is a trading name of the following 
companies: Fidelity Information Services Ltd (registered in England 
No.02225203), FIS Payments (UK) Ltd (No.04215488), FIS Asiapacrim Holdings Ltd 
(No.06707320), Certegy Card Services Ltd (No.03517639) and Efunds International 
Ltd (No.01930117), all with their registered office at Floor 1, 51/53 Hagley 
Road, Birmingham B16 8TU, United Kingdom; and FIS Payments (Ireland) Ltd 
(registered in Ireland No.126879), with its registered office at 25/28 North 
Wall Quay, Dublin 1, D01 H104, Ireland. FIS Payments (UK) Ltd is authorised and 
regulated by the Financial Conduct Authority; some services are covered by the 
Financial Ombudsman Service (in the UK). Calls to and from the companies may be 
recorded for quality purposes. All of the above companies are part of FIS 
(Fidelity National Information Services Inc.).

Reply via email to