Skip to content

spring-boot-maven-plugin - attached/main artifact error message #2060

Closed
@DimitriHautot

Description

@DimitriHautot

Hello,

I tried to boot-ify an existing web application, with success.

Then I am now trying to change the project to deliver a .war file again. The spring-boot-maven-plugin output an error message:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.1.9.RELEASE:repackage (default) on project rod-web-bootify: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.1.9.RELEASE:repackage failed: For artifact {be.rtbf.radio.rod:rod-web-bootify:1.2-SNAPSHOT:war}: An attached artifact must have a different ID than its corresponding main artifact. -> [Help 1]

However, given the required configuration parameter finalName, the .war file is well repackaged:

-rw-r--r-- 1 Dimitri staff 31633041 4 déc 17:34 rod-web-bootify##1.2-SNAPSHOT.dih-bootified.war
-rw-r--r-- 1 Dimitri staff 92815 4 déc 17:34 rod-web-bootify##1.2-SNAPSHOT.jar
-rw-r--r-- 1 Dimitri staff 29072903 4 déc 17:34 rod-web-bootify##1.2-SNAPSHOT.war

I don't know where the problem lies, but the error message is inaccurate: the boot-ified war has been produced, and its content is indeed self-executable.

Spring version: 4.0.8.RELEASE.
Spring-boot-* versions: 1.1.9.RELEASE, 1.1.8.RELEASE
Maven versions: 3.2.1, 3.2.3
This (https://stackoverflow.com/questions/26101652/maven-package-error-an-attached-artifact-must-have-a-different-id-than-its-corr) issue show the same problem, with version 1.1.5 of spring-boot-*.

If needed, I can provide more information.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions