Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(java): trim spaces from pom.xml fields #7658

Closed
DmitriyLewen opened this issue Oct 7, 2024 Discussed in #7581 · 0 comments · Fixed by #7747
Closed

fix(java): trim spaces from pom.xml fields #7658

DmitriyLewen opened this issue Oct 7, 2024 Discussed in #7581 · 0 comments · Fixed by #7747
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@DmitriyLewen
Copy link
Contributor

Description

mvn ignores extra spaces in fields (artifactId, GroupId, etc.) of pom.xml files.
We need to use same logic.

example:

...
    <dependencies>
        <dependency>
            <groupId> com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind </artifactId>
            <version>2.18.0</version>
            <exclusions>
                <exclusion>
                    <groupId> com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-annotations </artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>
</project>
[INFO] --- dependency:3.7.0:tree (default-cli) @ test2 ---
[INFO] test3:test2:pom:1.0-SNAPSHOT
[INFO] \- com.fasterxml.jackson.core:jackson-databind:jar:2.18.0:compile
[INFO]    \- com.fasterxml.jackson.core:jackson-core:jar:2.18.0:compile

Discussed in #7581

@DmitriyLewen DmitriyLewen added the kind/bug Categorizes issue or PR as related to a bug. label Oct 7, 2024
@DmitriyLewen DmitriyLewen self-assigned this Oct 7, 2024
@knqyf263 knqyf263 added this to the v0.57.0 milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants