-
Notifications
You must be signed in to change notification settings - Fork 188
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
Remove tycho.mode=maven #676
Comments
Isn't m2e still using it? |
m2e build is currently using this but the goal is to get rid of it with tycho 2.7 |
That's right. But I think Tycho should still support cases like the current first build step of m2e. These are edge-cases no question, but it can be handy to build a project with a partly different configuration to for example generate some resource in advance. I suspect the problem to be that the module containing the target-platform definition does not participate in the build, but I have not verified that. |
It indeed worked to add the tp-module in the The only problem left is, that it does not work when the Do you think the project setup could fall back to the pom.xml (which I think has to be present in such cases)?
|
You don't need a target platform at all, but as I said I actually don't see any reason why one want to use tycho but disable it afterwards? Actually the 2.7. release was meant for handling those "edge-cases" in a more maven friendly way, thats why classpath calculation is now moved to the regular build-phase.
When the manifest needs to be generated, you should use the maven-bundle-plugin packaging and not eclipse-plugin packaging. If packages from that generation are to be consumed in the same reactor build, you additionally need to enable See for example https://github.com/eclipse/tycho/tree/master/tycho-its/projects/mixed.reactor for a mixed reactor build. |
When thinking about it again, that reasonable and I think you are right. |
Sure its a bit work-in-progress but I hope we can get this working at least for m2e 2.0 and tycho 3.0 ... |
Wouldn't that lead to having the very long target resolution back for commands like "help:effective-pom"? I thought running those really non tycho specific goals quickly was the main reason for introducing that mode... |
@Bananeweizen I agree with you. It sounds like it will create some noticeable slowdowns to pure Maven (just clean, help:, etc.) workflows. |
@Bananeweizen @akurtakov We already have special handling for "clean only" workflow, so it would be better to add automatically detection of those instead of having some mostly magic property. Beside that, the goal is to speed up the early stages and delay actual resolution to the appropriate maven phases so this might become even irrelevant in the future at all, see |
I forgot about the special handling of clean. Speeding up things by default when identified without having to know about special switch like tycho.mode=maven sounds even better. |
@laeubi as there doesn't seem to be any interest in keeping it, feel free to go on and remove it. |
@akurtakov its on my list, but will take some more time I'll remove the milestone for now. |
@akurtakov I'm fine with removing it also. In fact, using only some non Tycho goal in a Tycho project happens so seldom that I myself also completely forget to add the magic property then. Therefore I've not really been using this in practice. Some automated detection instead of a property would surely work better for more users, since they don't have to know anything about the differences then. |
This was helpful for cases where tycho resolution is not needed but very few people are aware of it and thus not widely used. As custom support to exclude "clean" (probably the most widely used) has been added the reasons to have it diminished significantly. If there is need for more to be excluded it should be done like for "clean" rather than rely on undocumented property. Fixes eclipse-tycho#676
This was helpful for cases where tycho resolution is not needed but very few people are aware of it and thus not widely used. As custom support to exclude "clean" (probably the most widely used) has been added the reasons to have it diminished significantly. If there is need for more to be excluded it should be done like for "clean" rather than rely on undocumented property. Fixes #676
I somehow missed this issue earlier-on and just noticed this after the removal got merged. This would be causing considerable issues in our workflows. We currently have ~800 artifacts in our build and the target platform consists of many We have several workflows, in which we used
These workflows are now impacted severely:
From the looks of it the removal of Can you reconsider adding it back, and instead giving it a proper documentation / disclaimer? (At least until significant progress has been made on #839) |
Can we have a deal here? I revert, you help us by documenting it as you seem to be a person using it extensively. |
Reverted with 9673011 |
Thank you!
Sure. I will provide a pull-request. |
In my recent experience, using "tycho.mode=maven" was the only way to run dependency:go-offline correctly... otherwise, I get errors trying to resolve from Maven central non-existing artifacts of the shape
the name of the non existing Maven artifact to resolve is likely to change if I run the build again... |
@LorenzoBettini can you open a dedicated bug for this, maybe with an example or even provide an integration-test to demonstrate the issue? |
Another usecase is offline handling of operations like cleaning and help. In my experience Tycho usually fails on any kind of P2 problems including network. |
This is no longer true since Tycho 3.x with the improved http cache: here also, if you see any issues please don't hesitate to report them (at best provide an integration-test to demonstrate the issue), especially with Tycho 5 things will likely change a lot and we will drop all things with unclear usecase and/or missing integration-test coverage. |
Following command worked for me with Maven mode, but not anymore (missing manifest dependency breaks set-version even in offline mode). Should I create a separate issue, or is this a direct consequence of Maven mode removal?
|
We have if you can enhance this to show the issue it would be great and much easier to analyze and make sure it does not break in the future. |
Sorry I'm late to the party - I use this flag for clean, tycho-versions-plugin and with a license/copyright header update plugin. |
@drsgoodall can you check with latest Tycho that it is still required? |
With Tycho 4.0.4 these goals all run quickly without the tycho.mode flag. |
We should no longer support
tycho.mode=maven
it was often used to package an update-site in a regular maven build or to build "mixed reactors", for both we already have better solutions now.The text was updated successfully, but these errors were encountered: