| Summary: | Update Dependencies Dialog throws IllegalArgumentException if maven project is stored within Jazz source control | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | matt_ponsford |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | antoine.de.troostembergh, igor, matt_ponsford, Michael.Valenta, remy.suen, salonzo |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
matt_ponsford
Selecting 'Update Project Configuration' also throws the same exception. I am marking this as WONTFIX because m2e development team does not have resources to investigate RTC integration problems. We will gladly accept a quality patch (with corresponding automated regression tests) that addresses the issue, so please feel free to reopen this bugzilla if you indent to work on a fix. Created attachment 209437 [details]
Patch that fixes this issue on the m2e-1.0.x stream.
I've uploaded a compiled version of the jar on Jazz.net https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=190623 It will only work for the specified version of the plugin of course. Feel free to create a testcase if you have the time, right now I don't. We do not accept patches specific to thirdparty commercial products in m2e core. Please refactor the patch to either remove any jazz-specific logic. I am not familiar with jazz, but this may require new m2e extensions API. Also, the patch has to have associated test(s) if you want us to consider it. Created attachment 209754 [details]
Patch that fixes this issue on the m2e-1.0.x stream without RTC specific coding.
Hello,
You could change the code to use the Eclipse API to retrieve the projects location instead of relying on the getLocationURI on the project. This way whatever the format of the URI, you will always retrieve the correct location. The EFS class allows you to achieve this.
Is this acceptable for you? Personally I don't care, I have a working version now. It is just to help whoever might encounter the same problem.
I have the same problem (using RTC 3.0 with Eclipse Helios and m2e 1.0) According to the Jazz team (see https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=190623) the solution lies with a slight modification of m2e-core code. The patch provided seems totally acceptable since it only uses Eclipse API. Is there any chance to have it applied in m2e 1.1.x ? reopened for consideration. Comment on attachment 209754 [details] Patch that fixes this issue on the m2e-1.0.x stream without RTC specific coding. Applied the patch. Thank you. http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=38fae6d9c40314f410f338c8f759aa627927c916 applied |