| Summary: | The commnd line argument (properties) to mvn fails on Windows | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Ramesh Gunjal <rameshg282> | ||||||
| Component: | Tycho | Assignee: | Project Inbox <tycho-inbox> | ||||||
| Status: | RESOLVED INVALID | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | eostroukhov, igor | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 208615 [details]
Sample project to repro the issue
Created attachment 208616 [details]
Debug log
Out of curiosity, why do you need to explicitly specify os/ws/arch ? Could this be a name collision? Did you try to use some other variable names, e.g. ${param.os} etc.?
(In reply to comment #3) > Out of curiosity, why do you need to explicitly specify os/ws/arch ? used to identify the platform information at runtime, used in POM (In reply to comment #4) > Could this be a name collision? Did you try to use some other variable names, > e.g. ${param.os} etc.? Yes, it fails for any variable. Any wany I got it working by just enclosing the D parameters in double quotes. E.g. > mvn "-Dtycho.version=0.12.0" "-Dmake.destination=C:/src/built" "-Declipse.arch=x86" "-Declipse.os=win32" Then I suppose that this was a problem with the Windows command prompt and not Maven or Tycho. |
Build Identifier: 20110916 The command line arguments (-Declipse.os, -Declipse.ws, -Dmaven.repo.local ...); passed to mvn are not read properly on Windows. It works fine on Linux and Mac OSX. I am running following commands using dos prompt on Windows 7 32-bit > cd C:\src\sample > mvn -Dtycho.version=0.12.0 -Dmake.destination=C:/src/built -Declipse.arch=x86 -Declipse.os=win32 -Declipse.ws=win32 -Dmaven.repo.local=C:/src/tools/maven/repository -o clean package -X The debug log says (attaching) [DEBUG] Using local repository at C:\src\sample\true [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\src\sample\true Whereas I use different path in my command "-Dmaven.repo.local=C:/src/tools/maven/repository" It seems maven is not able to read these properties properly on Windows, the string "true" is returned. The properties -Declipse.arch/os/ws are used to identify the platform information at runtime. Those are used in my POM unde target-platform-configuration. It also fails without offline (-o) flag. Pasting some related part from debug log ----------------- [DEBUG] target-platform-configuration for MavenProject: com.xxx.sample:com.xxx.sample:1.0.0.qualifier @ C:/src/sample/com.xxx.sample/pom.xml: <?xml version="1.0" encoding="UTF-8"?> <configuration> <resolver>p2</resolver> <environments> <environment> <os>true</os> <ws>true</ws> <arch>true</arch> </environment> </environments> </configuration> ----------------- Reproducible: Always Steps to Reproduce: 1. cd to sample directory 2. Run > mvn -Dtycho.version=0.12.0 -Dmake.destination=C:/src/built -Declipse.arch=x86 -Declipse.os=win32 -Declipse.ws=win32 -Dmaven.repo.local=C:/src/tools/maven/repository -o clean package 3.