-
Notifications
You must be signed in to change notification settings - Fork 41.2k
spring-boot-maven-plugin - attached/main artifact error message #2060
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
Comments
Are you able to share your POM file, or better still a project that replicates the issue? Could you also run the build with the |
Unfortunately, I am not able to share the project right now. I would have to remove parts to squeeze it. Otherwise, here are 3 gists:
|
Sorry, wrong button click. Please re-tag the issue with the "waiting-for-feedback" label. |
well you gave some feedback, didn't you? I had a quick look to your pom and there's nothing out of the ordinary. I am not 100% sure that hard-coding the layout to war is a good idea as it's auto-detected anyway. I'll have a look |
No need for your project, I was able to reproduce the issue by creating a sample war project from start.spring.io and pasting your pom instead... |
I am not sure I understand what you're trying to do exactly. You want to deploy the "main" artifact as a regular war (non executable) and have the bootify version as a separate artifact, is that right? If that's what you want to do, finalName is definitely not the option for that (though I reckon it's confusing). Try to replace that by If you don't want the bootify version at all, just don't use the repackage goal. |
(feedback: indeed, I gave some. I thought it was because I accidentally closed the ticket) |
Thanks Stéphane, it is indeed what I was looking for, and it works by replacing finalName parameter by classifier. So on my side, I am satisfied with your explanation. It is indeed not a bug, we can close the ticket. Thanks a lot again! |
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:
However, given the required configuration parameter finalName, the .war file is well repackaged:
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.
The text was updated successfully, but these errors were encountered: