Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B969F200498 for ; Tue, 29 Aug 2017 09:46:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7CBE16384D; Tue, 29 Aug 2017 07:46:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8A15E163847 for ; Tue, 29 Aug 2017 09:46:07 +0200 (CEST) Received: (qmail 79903 invoked by uid 500); 29 Aug 2017 07:46:06 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 79894 invoked by uid 99); 29 Aug 2017 07:46:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2017 07:46:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 14AADC2906 for ; Tue, 29 Aug 2017 07:46:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YnKWzhSZ2Wz8 for ; Tue, 29 Aug 2017 07:46:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A1EC25F6C3 for ; Tue, 29 Aug 2017 07:46:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 752CAE0ECD for ; Tue, 29 Aug 2017 07:46:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A9B832415D for ; Tue, 29 Aug 2017 07:46:00 +0000 (UTC) Date: Tue, 29 Aug 2017 07:46:00 +0000 (UTC) From: =?utf-8?Q?Thorsten_Sch=C3=B6ning_=28JIRA=29?= To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AXIS2-5873) "Apache Axis2 - Distribution" doesn't build on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 29 Aug 2017 07:46:08 -0000 [ https://issues.apache.org/jira/browse/AXIS2-5873?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Thorsten Sch=C3=B6ning updated AXIS2-5873: ------------------------------------- Description:=20 "distribution/pom.xml" contains embedded Groovy and uses Maven build proper= ties to access some paths, which resolve to some string using "\" on Window= s. The problem is that these strings contain only one "\", which is valid i= n XML, but are forwarded to Groovy code, where those strings become invalid= . {CODE} [INFO] --- gmavenplus-plugin:1.5:execute (check-webapp-content) @ distribut= ion --- [DEBUG] Configuring mojo org.codehaus.gmavenplus:gmavenplus-plugin:1.5:exec= ute from plugin realm ClassRealm[plugin>org.codehaus.gmavenplus:gmavenplus-= plugin:1.5, parent: sun.misc.Launcher$AppClassLoader@5c647e05] [DEBUG] Configuring mojo 'org.codehaus.gmavenplus:gmavenplus-plugin:1.5:exe= cute' with include-project-test-dependencies configurator --> [DEBUG] (f) allowSystemExits =3D false [DEBUG] (f) bindPropertiesToSeparateVariables =3D true [DEBUG] (f) continueExecuting =3D false [DEBUG] (f) mojoExecution =3D org.codehaus.gmavenplus:gmavenplus-plugin:1= .5:execute {execution: check-webapp-content} [DEBUG] (f) pluginArtifacts =3D [...] [DEBUG] (f) project =3D MavenProject: org.apache.axis2:distribution:1.8.0= -SNAPSHOT @ C:\Users\tschoening\Documents\Eclipse\Java Axis2\axis2\modules\= distribution\pom.xml [DEBUG] (f) scripts =3D [import java.util.jar.* def jar =3D new JarInputStream(new File= InputStream("C:\Users\tschoening\.m2\repository\org\apache\axis2\axis2-weba= pp\1.8.0-SNAPSHOT\axis2-webapp-1.8.0-SNAPSHOT.war")) def expected =3D new HashSet() def entry while(entry =3D jar.nextJarEntry) { expected.add(entry.name) } jar.close() jar =3D new JarInputStream(new FileInpu= tStream("C:\Users\tschoening\Documents\Eclipse\Java Axis2\axis2\modules\dis= tribution\target/axis2-1.8.0-SNAPSHOT/dist/axis2.war")) while(entry =3D jar.nextJarEntry) { if (!expected.remove(entry.name)) { throw new Error("Unexpected ent= ry in Web app: " + entry.name) } } if (!expected.empty) { throw new Error("Missing entries in= Web app: " + expected) } jar.close()] [DEBUG] (f) session =3D org.apache.maven.execution.MavenSession@3d904e9c [DEBUG] (f) skipTests =3D false [DEBUG] (f) sourceEncoding =3D UTF-8 [DEBUG] -- end configuration -- [INFO] Using Groovy 2.4.4 to perform execute. [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO] [INFO] Apache Axis2 - Distribution ........................ FAILURE [ 49.23= 7 s] [INFO] Samples parent POM ................................. SKIPPED [INFO] JAXWS - Starting from Java Example ................. SKIPPED [INFO] JAXWS Addressbook Service .......................... SKIPPED [INFO] JAXWS Calculator Service ........................... SKIPPED [INFO] JAXWS Interop Sample ............................... SKIPPED [INFO] JAXWS Samples - Echo, Ping, MTOM ................... SKIPPED [INFO] Apache Axis2 -JAXWS Version Service ................ SKIPPED [INFO] Apache Axis2 Transport-HTTPS sample ................ SKIPPED [INFO] httpsService ....................................... SKIPPED [INFO] httpsClient ........................................ SKIPPED [INFO] Apache Axis2 Transport-JMS sample .................. SKIPPED [INFO] jmsService ......................................... SKIPPED [INFO] databinding-tests .................................. SKIPPED [INFO] jaxbri-tests ....................................... SKIPPED [INFO] echo ............................................... SKIPPED [INFO] webapp-tests ....................................... SKIPPED [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 51.245 s [INFO] Finished at: 2017-08-28T19:27:47+02:00 [INFO] Final Memory: 60M/459M [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.= 5:execute (check-webapp-content) on project distribution: Error occurred wh= ile calling a method on a Groovy class from classpath. InvocationTargetExce= ption: startup failed: [ERROR] Script1.groovy: 3: unexpected char: '\' @ line 3, column 89. [ERROR] Stream(new FileInputStream("C:\Users\tsc [ERROR] ^ [ERROR] [ERROR] 1 error [ERROR] -> [Help 1] {CODE} The attached patch fixes the problem by using "%url%" instead of "%file%", = because that can be converted to a path at runtime easily. Please note that= while the value is named "%url%", I'm not creating an instance of the "URL= " class in Java to parse that string, but using "URI" instead directly, bec= ause that's what's needed by the "File" CTOR anyway in the end. You might c= onsider that unclean, I think the difference is academic and it works as is= for me. So feel free to change it as necessary. was: "distribution/pom.xml" contains embedded Groovy and uses Maven build proper= ties to access some paths, which resolve to some string using "\" on Window= s. The problem is that these strings contain only one "\", which is valid i= n XML, but are forwarded to Groovy code, where those strings become invalid= . {CODE} [INFO] --- gmavenplus-plugin:1.5:execute (check-webapp-content) @ distribut= ion --- [DEBUG] Configuring mojo org.codehaus.gmavenplus:gmavenplus-plugin:1.5:exec= ute from plugin realm ClassRealm[plugin>org.codehaus.gmavenplus:gmavenplus-= plugin:1.5, parent: sun.misc.Launcher$AppClassLoader@5c647e05] [DEBUG] Configuring mojo 'org.codehaus.gmavenplus:gmavenplus-plugin:1.5:exe= cute' with include-project-test-dependencies configurator --> [DEBUG] (f) allowSystemExits =3D false [DEBUG] (f) bindPropertiesToSeparateVariables =3D true [DEBUG] (f) continueExecuting =3D false [DEBUG] (f) mojoExecution =3D org.codehaus.gmavenplus:gmavenplus-plugin:1= .5:execute {execution: check-webapp-content} [DEBUG] (f) pluginArtifacts =3D [org.codehaus.gmavenplus:gmavenplus-plugi= n:maven-plugin:1.5:, org.codehaus.groovy:groovy-all:jar:2.4.4:runtime, org.= apache.maven:maven-plugin-api:jar:2.2.1:compile, org.apache.maven:maven-pro= ject:jar:2.2.1:compile, org.apache.maven:maven-settings:jar:2.2.1:compile, = org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-mo= del:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager:jar:2.2.1:co= mpile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, o= rg.codehaus.plexus:plexus-interpolation:jar:1.11:compile, org.codehaus.plex= us:plexus-utils:jar:1.5.15:compile, org.apache.maven:maven-artifact:jar:2.2= .1:compile, org.apache.maven:maven-core:jar:2.2.1:compile, org.apache.maven= :maven-plugin-parameter-documenter:jar:2.2.1:compile, org.slf4j:slf4j-jdk14= :jar:1.5.6:runtime, org.slf4j:slf4j-api:jar:1.5.6:runtime, org.slf4j:jcl-ov= er-slf4j:jar:1.5.6:runtime, org.apache.maven.reporting:maven-reporting-api:= jar:2.2.1:compile, org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile, o= rg.apache.maven.doxia:doxia-logging-api:jar:1.1:compile, org.apache.maven:m= aven-repository-metadata:jar:2.2.1:compile, org.apache.maven:maven-error-di= agnostics:jar:2.2.1:compile, commons-cli:commons-cli:jar:1.2:compile, org.a= pache.maven:maven-plugin-descriptor:jar:2.2.1:compile, org.codehaus.plexus:= plexus-interactivity-api:jar:1.0-alpha-4:compile, org.apache.maven:maven-mo= nitor:jar:2.2.1:compile, classworlds:classworlds:jar:1.1:compile, org.sonat= ype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexu= s-cipher:jar:1.4:compile, org.apache.maven.shared:file-management:jar:1.2.1= :compile, org.apache.maven.shared:maven-shared-io:jar:1.1:compile, org.apac= he.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:compile, org.codehaus.ple= xus:plexus-container-default:jar:1.6:compile, org.apache.xbean:xbean-reflec= t:jar:3.7:compile, com.google.collections:google-collections:jar:1.0:compil= e, org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile, org.apache.mav= en:maven-plugin-registry:jar:2.2.1:runtime, org.fusesource.jansi:jansi:jar:= 1.11:runtime, jline:jline:jar:2.12.1:runtime, org.apache.ant:ant:jar:1.9.4:= runtime, org.apache.ant:ant-launcher:jar:1.9.4:runtime, org.apache.ivy:ivy:= jar:2.4.0:runtime] [DEBUG] (f) project =3D MavenProject: org.apache.axis2:distribution:1.8.0= -SNAPSHOT @ C:\Users\tschoening\Documents\Eclipse\Java Axis2\axis2\modules\= distribution\pom.xml [DEBUG] (f) scripts =3D [import java.util.jar.* def jar =3D new JarInputStream(new File= InputStream("C:\Users\tschoening\.m2\repository\org\apache\axis2\axis2-weba= pp\1.8.0-SNAPSHOT\axis2-webapp-1.8.0-SNAPSHOT.war")) def expected =3D new HashSet() def entry while(entry =3D jar.nextJarEntry) { expected.add(entry.name) } jar.close() jar =3D new JarInputStream(new FileInpu= tStream("C:\Users\tschoening\Documents\Eclipse\Java Axis2\axis2\modules\dis= tribution\target/axis2-1.8.0-SNAPSHOT/dist/axis2.war")) while(entry =3D jar.nextJarEntry) { if (!expected.remove(entry.name)) { throw new Error("Unexpected ent= ry in Web app: " + entry.name) } } if (!expected.empty) { throw new Error("Missing entries in= Web app: " + expected) } jar.close()] [DEBUG] (f) session =3D org.apache.maven.execution.MavenSession@3d904e9c [DEBUG] (f) skipTests =3D false [DEBUG] (f) sourceEncoding =3D UTF-8 [DEBUG] -- end configuration -- [INFO] Using Groovy 2.4.4 to perform execute. [INFO] --------------------------------------------------------------------= ---- [INFO] Reactor Summary: [INFO] [INFO] Apache Axis2 - Distribution ........................ FAILURE [ 49.23= 7 s] [INFO] Samples parent POM ................................. SKIPPED [INFO] JAXWS - Starting from Java Example ................. SKIPPED [INFO] JAXWS Addressbook Service .......................... SKIPPED [INFO] JAXWS Calculator Service ........................... SKIPPED [INFO] JAXWS Interop Sample ............................... SKIPPED [INFO] JAXWS Samples - Echo, Ping, MTOM ................... SKIPPED [INFO] Apache Axis2 -JAXWS Version Service ................ SKIPPED [INFO] Apache Axis2 Transport-HTTPS sample ................ SKIPPED [INFO] httpsService ....................................... SKIPPED [INFO] httpsClient ........................................ SKIPPED [INFO] Apache Axis2 Transport-JMS sample .................. SKIPPED [INFO] jmsService ......................................... SKIPPED [INFO] databinding-tests .................................. SKIPPED [INFO] jaxbri-tests ....................................... SKIPPED [INFO] echo ............................................... SKIPPED [INFO] webapp-tests ....................................... SKIPPED [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 51.245 s [INFO] Finished at: 2017-08-28T19:27:47+02:00 [INFO] Final Memory: 60M/459M [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.= 5:execute (check-webapp-content) on project distribution: Error occurred wh= ile calling a method on a Groovy class from classpath. InvocationTargetExce= ption: startup failed: [ERROR] Script1.groovy: 3: unexpected char: '\' @ line 3, column 89. [ERROR] Stream(new FileInputStream("C:\Users\tsc [ERROR] ^ [ERROR] [ERROR] 1 error [ERROR] -> [Help 1] {CODE} The attached patch fixes the problem by using "%url%" instead of "%file%", = because that can be converted to a path at runtime easily. Please note that= while the value is named "%url%", I'm not creating an instance of the "URL= " class in Java to parse that string, but using "URI" instead directly, bec= ause that's what's needed by the "File" CTOR anyway in the end. You might c= onsider that unclean, I think the difference is academic and it works as is= for me. So feel free to change it as necessary. > "Apache Axis2 - Distribution" doesn't build on Windows > ------------------------------------------------------ > > Key: AXIS2-5873 > URL: https://issues.apache.org/jira/browse/AXIS2-5873 > Project: Axis2 > Issue Type: Bug > Components: modules > Affects Versions: 1.8.0 > Environment: Windows 10 Pro x86-64, JDK 1.8 x86-64 > Reporter: Thorsten Sch=C3=B6ning > Attachments: support Windows paths for distribution.patch > > > "distribution/pom.xml" contains embedded Groovy and uses Maven build prop= erties to access some paths, which resolve to some string using "\" on Wind= ows. The problem is that these strings contain only one "\", which is valid= in XML, but are forwarded to Groovy code, where those strings become inval= id. > {CODE} > [INFO] --- gmavenplus-plugin:1.5:execute (check-webapp-content) @ distrib= ution --- > [DEBUG] Configuring mojo org.codehaus.gmavenplus:gmavenplus-plugin:1.5:ex= ecute from plugin realm ClassRealm[plugin>org.codehaus.gmavenplus:gmavenplu= s-plugin:1.5, parent: sun.misc.Launcher$AppClassLoader@5c647e05] > [DEBUG] Configuring mojo 'org.codehaus.gmavenplus:gmavenplus-plugin:1.5:e= xecute' with include-project-test-dependencies configurator --> > [DEBUG] (f) allowSystemExits =3D false > [DEBUG] (f) bindPropertiesToSeparateVariables =3D true > [DEBUG] (f) continueExecuting =3D false > [DEBUG] (f) mojoExecution =3D org.codehaus.gmavenplus:gmavenplus-plugin= :1.5:execute {execution: check-webapp-content} > [DEBUG] (f) pluginArtifacts =3D [...] > [DEBUG] (f) project =3D MavenProject: org.apache.axis2:distribution:1.8= .0-SNAPSHOT @ C:\Users\tschoening\Documents\Eclipse\Java Axis2\axis2\module= s\distribution\pom.xml > [DEBUG] (f) scripts =3D [import java.util.jar.* > def jar =3D new JarInputStream(new Fi= leInputStream("C:\Users\tschoening\.m2\repository\org\apache\axis2\axis2-we= bapp\1.8.0-SNAPSHOT\axis2-webapp-1.8.0-SNAPSHOT.war")) > def expected =3D new HashSet() > def entry > while(entry =3D jar.nextJarEntry) { > expected.add(entry.name) > } > jar.close() > jar =3D new JarInputStream(new FileIn= putStream("C:\Users\tschoening\Documents\Eclipse\Java Axis2\axis2\modules\d= istribution\target/axis2-1.8.0-SNAPSHOT/dist/axis2.war")) > while(entry =3D jar.nextJarEntry) { > if (!expected.remove(entry.name))= { > throw new Error("Unexpected e= ntry in Web app: " + entry.name) > } > } > if (!expected.empty) { > throw new Error("Missing entries = in Web app: " + expected) > } > jar.close()] > [DEBUG] (f) session =3D org.apache.maven.execution.MavenSession@3d904e9= c > [DEBUG] (f) skipTests =3D false > [DEBUG] (f) sourceEncoding =3D UTF-8 > [DEBUG] -- end configuration -- > [INFO] Using Groovy 2.4.4 to perform execute. > [INFO] ------------------------------------------------------------------= ------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Axis2 - Distribution ........................ FAILURE [ 49.= 237 s] > [INFO] Samples parent POM ................................. SKIPPED > [INFO] JAXWS - Starting from Java Example ................. SKIPPED > [INFO] JAXWS Addressbook Service .......................... SKIPPED > [INFO] JAXWS Calculator Service ........................... SKIPPED > [INFO] JAXWS Interop Sample ............................... SKIPPED > [INFO] JAXWS Samples - Echo, Ping, MTOM ................... SKIPPED > [INFO] Apache Axis2 -JAXWS Version Service ................ SKIPPED > [INFO] Apache Axis2 Transport-HTTPS sample ................ SKIPPED > [INFO] httpsService ....................................... SKIPPED > [INFO] httpsClient ........................................ SKIPPED > [INFO] Apache Axis2 Transport-JMS sample .................. SKIPPED > [INFO] jmsService ......................................... SKIPPED > [INFO] databinding-tests .................................. SKIPPED > [INFO] jaxbri-tests ....................................... SKIPPED > [INFO] echo ............................................... SKIPPED > [INFO] webapp-tests ....................................... SKIPPED > [INFO] ------------------------------------------------------------------= ------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------= ------ > [INFO] Total time: 51.245 s > [INFO] Finished at: 2017-08-28T19:27:47+02:00 > [INFO] Final Memory: 60M/459M > [INFO] ------------------------------------------------------------------= ------ > [ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:= 1.5:execute (check-webapp-content) on project distribution: Error occurred = while calling a method on a Groovy class from classpath. InvocationTargetEx= ception: startup failed: > [ERROR] Script1.groovy: 3: unexpected char: '\' @ line 3, column 89. > [ERROR] Stream(new FileInputStream("C:\Users\tsc > [ERROR] ^ > [ERROR] > [ERROR] 1 error > [ERROR] -> [Help 1] > {CODE} > The attached patch fixes the problem by using "%url%" instead of "%file%"= , because that can be converted to a path at runtime easily. Please note th= at while the value is named "%url%", I'm not creating an instance of the "U= RL" class in Java to parse that string, but using "URI" instead directly, b= ecause that's what's needed by the "File" CTOR anyway in the end. You might= consider that unclean, I think the difference is academic and it works as = is for me. So feel free to change it as necessary. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org