You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am creating an issue because I am working currently with maven-tycho-plugin for a bunch of OSGI bundles, and I have a small problem to include preliminary instructions in my maven build before tycho's dependency resolution.
The problem is :
Tycho (or potentially plexus) ties its resolution to the validate phase (as described in this file, which is the first executed phase
I am packaging my bundles as eclipse-plugin (so the resolution is done for all of them)
All further plugins executions tied to the validate phase are executed afterwards (in accordance to Maven's lifecycle description)
So in my case, as I want to download a jar that is referenced locally in one of my bundle's classpath before Tycho's dependency resolution, it does not work for the first build (but works for the second one as the jar is available then).
I found this issue that references a similar problem, but the concerned pom is packaged as pom and I tried overriding tycho-maven-plugin's executions to tie all validate-related ids (org.eclipse.tycho:tycho-packaging-plugin:${project.version}:build-qualifier,org.eclipse.tycho:tycho-packaging-plugin:${project.version}:validate-id, org.eclipse.tycho:tycho-packaging-plugin:${project.version}:validate-version) to the initialize phase instead :
Tycho actually runs as an extension outside the regular life-cycle.
in my case, as I want to download a jar that is referenced locally in one of my bundle's classpath
classpath resolution should take place in the compile phase, so maybe you can explain a bit more about your "download" and why there is no other way to provide it to your build (e.g. as a maven dependency).
Theoretically it should work to have an (empty) default file in the repo that is later on overwritten ...
Hi, I am creating an issue because I am working currently with maven-tycho-plugin for a bunch of OSGI bundles, and I have a small problem to include preliminary instructions in my maven build before tycho's dependency resolution.
The problem is :
So in my case, as I want to download a jar that is referenced locally in one of my bundle's classpath before Tycho's dependency resolution, it does not work for the first build (but works for the second one as the jar is available then).
I found this issue that references a similar problem, but the concerned pom is packaged as pom and I tried overriding tycho-maven-plugin's executions to tie all validate-related ids (org.eclipse.tycho:tycho-packaging-plugin:${project.version}:build-qualifier,org.eclipse.tycho:tycho-packaging-plugin:${project.version}:validate-id, org.eclipse.tycho:tycho-packaging-plugin:${project.version}:validate-version) to the initialize phase instead :
Without further success.
If you have any insight or idea to solve this issue, or if my question is not relevant, feel free to answer.
Thanks for reading !
The text was updated successfully, but these errors were encountered: