Skip to content

Creating Pom leaves ":" in artifactId leading to Maven issues  #357

@jakestebbins

Description

@jakestebbins

In DepsModel the packaging is concatenated to the artifactID which causes issues with the maven pom spec "no strange symbols" seems to include colons.

I'm specifically hitting this issue when I'm using mvn dependency:tree e.g. [ERROR] 'dependencies.dependency.artifactId' for com.github.jnr:jffi:jar:native:jar with value 'jffi:jar:native' does not match a valid id pattern.

Is there a way to either concat this differently or possibly use the label in CreatePom.scala? https://maven.apache.org/ref/3.9.4/maven-model/maven.html#class_dependency

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions