Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Update pom.xml #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update pom.xml #258

wants to merge 1 commit into from

Conversation

rahmanusta
Copy link

maven-dependency-plugin uses single \ as file separator on Windows, but single \ is illegal for properties files. For that build fails on Windows. I set it to forward slash, and it builds on Windows.

maven-dependency-plugin uses single \ as file separator on Windows, but single \ is illegal for properties files. For that build fails on Windows. I set it to forward slash, and it builds on Windows.
@pavelbucek pavelbucek self-assigned this Feb 20, 2017
@pavelbucek pavelbucek added the OCA label Feb 20, 2017
@pavelbucek
Copy link
Member

Sorry for the delay..

The problem with issues like this is finding a windows box for verification.

@pavelbucek
Copy link
Member

how is this reproducible? I just downloaded jersey 2.x and standard "mvn clean install" does seem to work without any issues (* ok, some test is failing because of character encoding, but without tests, I achieved successful build).

my env:

mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\Users\pavel\work\opt\apache-maven-3.3.9\bin..
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_121\jre
Default locale: cs_CZ, platform encoding: Cp1250
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

@rahmanusta
Copy link
Author

It is reproducible on my system :)

C:\Users\usta\jersey>mvn install -DskipTests -rf :reload
Picked up _JAVA_OPTIONS: -Duser.language=en -Duser.country=US
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] jersey-examples-reload
[INFO] jersey-examples-rx-client-webapp
[INFO] jersey-examples-server-async
[INFO] jersey-examples-server-async-managed
[INFO] jersey-examples-server-async-standalone
[INFO] jersey-examples-server-async-standalone-client
[INFO] jersey-examples-server-async-standalone-webapp
[INFO] jersey-examples-server-sent-events
[INFO] jersey-examples-servlet3-webapp
[INFO] jersey-examples-simple-console
[INFO] jersey-examples-shortener-webapp
[INFO] jersey-examples-sparklines
[INFO] jersey-examples-sse-item-store-webapp
[INFO] jersey-examples-sse-twitter-aggregator
[INFO] jersey-examples-system-properties
[INFO] jersey-examples-tonegen
[INFO] jersey-examples-moxy
[INFO] jersey-test-framework-maven-custom-enforcer-rules
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jersey-examples-reload 3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ reload ---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.16:check (verify) @ reload ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-dependency-plugin:2.8:build-classpath (default) @ reload ---
[INFO] Wrote classpath file 'C:\Users\usta\jersey\examples\reload\target\classpath.properties'.
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (read-project-properties) @ reload ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jersey-examples-reload ............................. FAILURE [ 11.905 s]
[INFO] jersey-examples-rx-client-webapp ................... SKIPPED
[INFO] jersey-examples-server-async ....................... SKIPPED
[INFO] jersey-examples-server-async-managed ............... SKIPPED
[INFO] jersey-examples-server-async-standalone ............ SKIPPED
[INFO] jersey-examples-server-async-standalone-client ..... SKIPPED
[INFO] jersey-examples-server-async-standalone-webapp ..... SKIPPED
[INFO] jersey-examples-server-sent-events ................. SKIPPED
[INFO] jersey-examples-servlet3-webapp .................... SKIPPED
[INFO] jersey-examples-simple-console ..................... SKIPPED
[INFO] jersey-examples-shortener-webapp ................... SKIPPED
[INFO] jersey-examples-sparklines ......................... SKIPPED
[INFO] jersey-examples-sse-item-store-webapp .............. SKIPPED
[INFO] jersey-examples-sse-twitter-aggregator ............. SKIPPED
[INFO] jersey-examples-system-properties .................. SKIPPED
[INFO] jersey-examples-tonegen ............................ SKIPPED
[INFO] jersey-examples-moxy ............................... SKIPPED
[INFO] jersey-test-framework-maven-custom-enforcer-rules .. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.196 s
[INFO] Finished at: 2017-03-02T17:08:47+03:00
[INFO] Final Memory: 184M/675M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (read-project-properties) on project reload: Execution read-project-properties of goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties failed: Malformed \uxxxx encoding. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

C:\Users\usta\jersey>mvn -v
Picked up _JAVA_OPTIONS: -Duser.language=en -Duser.country=US
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T18:41:47+03:00)
Maven home: C:\Users\usta\apache-maven-3.3.9
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: C:\Users\usta\jdk8-112\jre
Default locale: en_US, platform encoding: Cp1254
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

@pavelbucek
Copy link
Member

not happening on my box - couldn't it be related to your settings? Seems like "another" encoding issue, but manifested in a weird way. It's even using same version of the offending plugin.

The only difference I see is the Jersey version (3.0-SNAPSHOT vs 2.26-SNAPSHOT), but that should not matter.

C:\Users\pavel\work\jersey\jersey-2.x>mvn install -DskipTests -rf :reload
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] jersey-examples-reload
[INFO] jersey-examples-rx-client-webapp
[INFO] jersey-examples-server-async
[INFO] jersey-examples-server-async-managed
[INFO] jersey-examples-server-async-standalone
[INFO] jersey-examples-server-async-standalone-client
[INFO] jersey-examples-server-async-standalone-webapp
[INFO] jersey-examples-server-sent-events
[INFO] jersey-examples-servlet3-webapp
[INFO] jersey-examples-simple-console
[INFO] jersey-examples-shortener-webapp
[INFO] jersey-examples-sparklines
[INFO] jersey-examples-sse-item-store-webapp
[INFO] jersey-examples-sse-twitter-aggregator
[INFO] jersey-examples-system-properties
[INFO] jersey-examples-tonegen
[INFO] jersey-examples-moxy
[INFO] jersey-test-framework-maven-custom-enforcer-rules
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jersey-examples-reload 2.26-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ reload ---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.16:check (verify) @ reload ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-dependency-plugin:2.8:build-classpath (default) @ reload ---
[INFO] Skipped writing classpath file 'C:\Users\pavel\work\jersey\jersey-2.x\examples\reload\target\classpath.properties'. No changes found.
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (read-project-properties) @ reload ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reload ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\pavel\work\jersey\jersey-2.x\examples\reload\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reload ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reload ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\pavel\work\jersey\jersey-2.x\examples\reload\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reload ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ reload ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reload ---
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ reload ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ reload ---
[INFO] Installing C:\Users\pavel\work\jersey\jersey-2.x\examples\reload\target\reload.jar to C:\Users\pavel.m2\repository\org\glassfish\jersey\examples\reload\2.26-SNAPSHOT\reload-2.26-SNAPSHOT.jar
[INFO] Installing C:\Users\pavel\work\jersey\jersey-2.x\examples\reload\pom.xml to C:\Users\pavel.m2\repository\org\glassfish\jersey\examples\reload\2.26-SNAPSHOT\reload-2.26-SNAPSHOT.pom
[INFO] Installing C:\Users\pavel\work\jersey\jersey-2.x\examples\reload\target\reload-sources.jar to C:\Users\pavel.m2\repository\org\glassfish\jersey\examples\reload\2.26-SNAPSHOT\reload-2.26-SNAPSHOT-sources.jar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants