-
Notifications
You must be signed in to change notification settings - Fork 24
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
Eclipse Maven Install fails to replace built .war file, even with -SNAPSHOT version #191
Comments
Please could you post the entire log, redacting areas you wouldn't want us to see? If you can post your project, or point us at a sample project with a similar structure, that would also be appreciated. |
Sure. Re-running now.
|
I can reproduce this, including without Spring, so that's not the confounding factor. Same issue exists at 1.0.3. Not sure what, if anything, has changed. We'll get a fix out. |
Thanks Ben! I'm a novice at these things, and it sounded like it should have worked, hence I thought I'd better ask! |
This should be resolved in plugin version |
I changed the pom to refer to the new plugin and it says "Could not find artifact com.ibm.cics:cics-bundle-maven-plugin:jar:1.0.4-SNAPSHOT". Do I need to do anything other than just updating the pom.xml to say com.ibm.cics Also, should issues be closed without the raiser agreeing, or even being given a chance to comment? I had no idea this had happened, or that there was a fix waiting. It seems a bit disjointed. |
Follow the instructions for using snapshot versions here. |
I don't remember closing it manually - I am pretty sure it was part of the Github process automation. Hopefully you at least got the email from Ben saying that a fix was available in the SNAPSHOT! Maybe you got one saying the work item was closed, too... I'll try and remember to comment when we merge items, if not. |
I've just tried the -SNAPSHOT 1.0.4 version with my local -SNAPSHOT version and it overwrites correctly. Good job! |
Excellent, glad to hear it. We don't have a fine granularity of issue states. And in an open source project, you can't rely on reporters verifying. We reproduced the issue, added tests to fail on the issue, and fixed the issue.
This (and the notification of closure) was your notification that something had changed - if you didn't get notified, please check your notification settings, such as email! |
I have a Maven Java project in Eclipse, and I select the project, then "Run As->Maven install"
This runs, and "packages the webapp", "assembles the webapp","processes the war project","builds the war",
When it comes to "spring-boot-maven-plugin:2.5.4:repackage (repackage)
[INFO] Replacing main artifact with repackaged archive" it fails.
[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:1.0.2:bundle-war (default) on project Error writing bundle resource
If I re-run with -X I find out it is because it already exists.
This is apparently normal Maven behaviour, as it should not replace the same version. I can re-version (but that makes no sense for a development project) OR I can add -SNAPSHOT to the end of the version.
I add -SNAPSHOT to the end of the version and it works... because it creates a new file.
I do it again... and it fails because it already exists.
If I do "maven clean install" it works. Shouldn't -SNAPSHOT replace this file?
The text was updated successfully, but these errors were encountered: