-
Notifications
You must be signed in to change notification settings - Fork 193
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
Restoring the option to ignore p2 mirrors via the Maven settings #3295
Restoring the option to ignore p2 mirrors via the Maven settings #3295
Conversation
Please use eclipse.p2.mirrors property instead here. Also it seems your are working on an outdated master branch. |
b7ba020
to
a47c112
Compare
eclipse.p2.mirrors is the new tycho.disableP2Mirrors? Do we want to support both or only the latest? Shall I also update the FAQ? https://github.com/eclipse-tycho/tycho/wiki/Frequently-asked-questions#how-do-i-disable-p2-mirrors
Ah, you moved to main, will update |
a47c112
to
d1f537e
Compare
...in/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManagerAgentFactory.java
Outdated
Show resolved
Hide resolved
...in/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManagerAgentFactory.java
Outdated
Show resolved
Hide resolved
...in/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManagerAgentFactory.java
Show resolved
Hide resolved
@vogella the next bugfix release will happen at end of this month, do you plan to finish your work here so it can be included? |
Looking into it now |
d1f537e
to
e277ed2
Compare
Thanks for the ping and happy new year to you. |
...in/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManagerAgentFactory.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be a method that encapsulates the retrival of a property, the both code pathes manly differ in the property name used, so something like:
String deprecatedValue = getMirrorProperty("tycho.disableP2Mirrors");
String newValue = getMirrorProperty("eclipse.p2.mirrors");
currently the logic for both properties is duplicated what makes it hard to follwo what happens and to check for the fallbacks (e.g. session)
@vogella can you make sure the pom.xml change is reverted and apply the suggestions, it seems usefull to include this in the enxt bugfix release. |
Is tomorrow timing-wise ok? Today I'm working outside Eclipse world |
Yes we still have some days until release, I just don'T want to delay it forever as theres always something new :-D |
eclipse.p2.mirrors option Commit 7e6d595 has removed the option for tycho.disableP2Mirrors to use the settings.xml to disable the usage of p2 mirrors. See https://github.com/eclipse-tycho/tycho/wiki/Frequently-asked-questions#how-do-i-disable-p2-mirrors
e277ed2
to
ca5ea44
Compare
I updated the change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now and build is green.
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Commit 7e6d595 has removed the option to use the settings.xml to disable the usage of p2 mirrors.
See https://github.com/eclipse-tycho/tycho/wiki/Frequently-asked-questions#how-do-i-disable-p2-mirrors
Restores this option and give the command line option priority.