Thank you for the responses. I found how what was wrong. I was using a version 
of maven assembly plugin that was too old. On changing it from 2.4 to version 
2.5.2 it started working. Well, almost. There is still an issue. The network I 
am using is unreliable, so sometimes the sign command fails because it fails to 
contact the timestamp service. The unreliability nobbles me on both windows and 
linux. How do I add retries please?

-----Original Message-----
From: Martin Gainty <mgai...@hotmail.com>
Sent: 03 April 2019 15:19
To: Maven Users List <users@maven.apache.org>
Subject: EXTERNAL: Re: maven-jarsigner-plugin 3.0.0 rename fails on WIndows, is 
ok on linux

see below

________________________________
From: Marlow, Andrew <andrew.mar...@fisglobal.com.INVALID>
Sent: Tuesday, April 2, 2019 3:36 AM
To: users@maven.apache.org
Cc: marlow.age...@gmail.com
Subject: maven-jarsigner-plugin 3.0.0 rename fails on WIndows, is ok on linux


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.

MG>first enable write permission to the maven user jarsigning the
MG>affected jar drop to command line and type dir /X *.jar
AXIOM-~1.JAR                                      axiom-dom-1.3.jar


MG>so in my case i can use jarsigner on shortened axiom-dom-1.3.jar
MG>located in current folder provided i grant write access for mgainty
MG>to AXIOM-~1
cacls AXIOM-~1.JAR /G mgainty:W
Are you sure (Y/N)?yes
axiom-dom-1.3.0.jar

MG>hth



        <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: andrew.mar...@fisglobal.com<mailto:andrew.mar...@fisglobal.com>
FIS | Empowering the Financial World [cid:image001.png@01D112FA.C4A77D90] 
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FFIStoday&amp;data=02%7C01%7CAndrew.Marlow%40fisglobal.com%7Cc1fefc7baab24eea5a8d08d6b83f68d0%7Ce3ff91d834c84b15a0b418910a6ac575%7C0%7C0%7C636898979812923675&amp;sdata=hWGvYY7RnI4Q12uMTvq2fqBbXF7BtPjz2x3XpD5%2Bex0%3D&amp;reserved=0>
 [cid:image002.png@01D112FA.C4A77D90] 
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FFISGlobal&amp;data=02%7C01%7CAndrew.Marlow%40fisglobal.com%7Cc1fefc7baab24eea5a8d08d6b83f68d0%7Ce3ff91d834c84b15a0b418910a6ac575%7C0%7C0%7C636898979812923675&amp;sdata=8qydJ3Ye3pfBYrF9fRZwtPdv2ozIxozrQJGb4v47XOo%3D&amp;reserved=0>
 [cid:image003.png@01D112FA.C4A77D90] 
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Ffis&amp;data=02%7C01%7CAndrew.Marlow%40fisglobal.com%7Cc1fefc7baab24eea5a8d08d6b83f68d0%7Ce3ff91d834c84b15a0b418910a6ac575%7C0%7C0%7C636898979812923675&amp;sdata=8tpo1mZhnjLGFY9nADBtzesQjXJtcBAXtJT7EYx9hy0%3D&amp;reserved=0>

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.).
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.).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to