[MWRAPPER-106] Consistent semantics
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- powershell, shell
- Domain
- build-system
Research direction
Compare the mvnw and mvnw.cmd scripts and the maven-wrapper.properties input handling. Reproduce the duplicate distributionUrl case from the issue, then trace how each wrapper parses the properties file. Done means both scripts have consistent duplicate-property semantics and the wrapper starts Maven without the shown error.
Written by the indexing model from the issue text.
Description
Delany opened MWRAPPER-106 and commented
Two scripts are provided: mvnw and mvnw.cmd. Presumably the only difference between them is one is used on Linux OS and the other on Windows OS.
They should not have different requirements of the maven-wrapper.properties file, for example.
mvnw allows a property to be repeated, while mvnw.cmd will fail the build with an error if a duplicate is defined:
ConvertFrom-StringData : Data item 'distributionUrl' in line 'distributionUrl=https://nexus.synope.com/repository/tools/maven/apache-maven-3.9.2-SNAPSHOT-bin.zip' is already defined.
At line:54 char:91
+ ... vn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distri ...
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [ConvertFrom-StringData], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ConvertFromStringDataCommand
ECHO is on.
Cannot start maven from wrapper
Affects: 3.2.0
- Dominant language
- Java
- Stars
- 254
- Forks
- 78
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-wrapper
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/maven-wrapper#442 ·
-
priority:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/maven-wrapper#280 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
apache/maven-wrapper#441 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apache/maven-wrapper#425 · 1 comment · 4 reactions ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
apache/maven-wrapper#424 ·
All issues in apache/maven-wrapper
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100