You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Oliver Glowa (Jira)" <ji...@apache.org> on 2022/12/07 13:17:00 UTC
[jira] [Updated] (MNG-7621) Parameter '-f' causes ignores 'maven.config' on windows
[ https://issues.apache.org/jira/browse/MNG-7621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Glowa updated MNG-7621:
------------------------------
Description:
Hello,
first of all, I didn't find a ticket, related to the possible bug I found (keyword "-f" and "maven.config")
[https://issues.apache.org/jira/issues/?jql=project%20%3D%20MNG%20AND%20text%20~%20maven.config%20AND%20text%20~%20-f]
h1. Analysis
Here the problem I found:
When executing maven with parameter "-f" without a file name (e.g. "pom.xml") any ".mvn\maven.config" is ignored.
{noformat}
call mvn -f maven-test clean verify{noformat}
When the filename is added, the "maven.config" will be recognized.
{noformat}
call mvn -f maven-test\pom.xml clean verify{noformat}
The problem occurs only on a windows commandline, not under linux (cygwin) shell.
Test with
* Maven 3.6.3 / Maven 3.8.6
* OpenJDK 17
* Windows 10 64Bit
* Cygwin 64Bit
{noformat}
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Programme-2\apache-maven\apache-maven\bin\..
Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: C:\Programme-2\openjdk\jdk
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Programme-2\apache-maven\apache-maven-3.8.6
Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: C:\Programme-2\openjdk\jdk
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{noformat}
An example project is added (call "build.bat")
{noformat}
https://github.com/ollily/maven-test.git{noformat}
was:
*
* Hello,
I didnot find a ticket related to the possible bug I found (keyword "-f" and "maven.config")
[https://issues.apache.org/jira/issues/?jql=project%20%3D%20MNG%20AND%20text%20~%20maven.config%20AND%20text%20~%20-f]
Here the problem I found:
When executing maven with parameter "-f" without a file name (e.g. "pom.xml") any ".mvn\maven.config" is ignored.
{noformat}
call mvn -f maven-test clean verify{noformat}
When the filename is added, the "maven.config" will be recognized.
{noformat}
call mvn -f maven-test\pom.xml clean verify{noformat}
The problem occurs only on a windows commandline, not under linux (cygwin) shell.
Test with
* Maven 3.6.3 / Maven 3.8.6
* OpenJDK 17
* Windows 10 64Bit
* Cygwin 64Bit
{noformat}
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Programme-2\apache-maven\apache-maven\bin\..
Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: C:\Programme-2\openjdk\jdk
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Programme-2\apache-maven\apache-maven-3.8.6
Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: C:\Programme-2\openjdk\jdk
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{noformat}
An example project is added (call "build.bat")
{noformat}
https://github.com/ollily/maven-test.git{noformat}
> Parameter '-f' causes ignores 'maven.config' on windows
> -------------------------------------------------------
>
> Key: MNG-7621
> URL: https://issues.apache.org/jira/browse/MNG-7621
> Project: Maven
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.8.3, 3.8.6
> Environment: Windows 10 64Bit EE
> Cygwin 64Bit
> Reporter: Oliver Glowa
> Priority: Minor
> Labels: maven
>
> Hello,
> first of all, I didn't find a ticket, related to the possible bug I found (keyword "-f" and "maven.config")
> [https://issues.apache.org/jira/issues/?jql=project%20%3D%20MNG%20AND%20text%20~%20maven.config%20AND%20text%20~%20-f]
> h1. Analysis
> Here the problem I found:
> When executing maven with parameter "-f" without a file name (e.g. "pom.xml") any ".mvn\maven.config" is ignored.
> {noformat}
> call mvn -f maven-test clean verify{noformat}
> When the filename is added, the "maven.config" will be recognized.
>
>
> {noformat}
> call mvn -f maven-test\pom.xml clean verify{noformat}
>
> The problem occurs only on a windows commandline, not under linux (cygwin) shell.
> Test with
> * Maven 3.6.3 / Maven 3.8.6
> * OpenJDK 17
> * Windows 10 64Bit
> * Cygwin 64Bit
> {noformat}
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: C:\Programme-2\apache-maven\apache-maven\bin\..
> Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: C:\Programme-2\openjdk\jdk
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
> Maven home: C:\Programme-2\apache-maven\apache-maven-3.8.6
> Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: C:\Programme-2\openjdk\jdk
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> {noformat}
> An example project is added (call "build.bat")
>
> {noformat}
> https://github.com/ollily/maven-test.git{noformat}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)