Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] is there something changed in the target-platform mojo?

ok found the problem


that is the commit (i am trying to sign our executable with our certificate before everything is really build)

so in the child.pom i added: tycho-p2-publisher-plugin in mvn phase generate-resources

but i needed to have the target platform then before that, so i added in the parent.pom (target-platform-configuration)

<executions>
<execution>
<phase>generate-resources</phase>
<id>default-target-platform</id>
<goals>
<goal>target-platform</goal>
</goals>
</execution>
</executions>

also to be generate-resources 
but for some reasons that is now not done before
it first does all the stuff in  tycho-p2-publisher-plugin which is in the child.pom then the parent pom  target platform
for some reason that is switched 

but the fix is to just use generate-sources phase for the target.
then it is before


 




On Fri, 30 Jul 2021 at 19:37, Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:


The itest project

https://github.com/eclipse/tycho/tree/master/tycho-its/projects/product.installation

might be a good starting point, it contains different items like
plugins, features and so on...

Am 30.07.21 um 18:35 schrieb Johan Compagner:
> hmm,
>
> this is a bit more tricky to setup i guess..
>
> I can try, but a lot more stuff is needed (like an actual product
> plugin, target plugin)
>
>
> On Fri, 30 Jul 2021 at 18:25, Christoph Läubrich <laeubi@xxxxxxxxxxxxxx
> <mailto:laeubi@xxxxxxxxxxxxxx>> wrote:
>
>     ANy special configuration? I'm asking this because none of the itest
>     fails but we have some product builds there, can you try to reproduce
>     this case using any of the itest examples so it can be analyzed in
>     isolation?
>
>     Am 30.07.21 um 16:19 schrieb Johan Compagner:
>      > the order seems to be changed...
>      >
>      > if i look at the goals list i see in 23
>      >
>     that org.eclipse.tycho:target-platform-configuration:2.3.0:target-platform
>
>      > (default-target-platform) is after the clean and
>      >
>     before org.eclipse.tycho:tycho-p2-publisher-plugin:2.3.0:publish-osgi-ee
>
>      > (default-publish-osgi-ee)
>      >
>      > but in 24 i
>      >
>     see org.eclipse.tycho:target-platform-configuration:2.4.0:target-platform
>     (default-target-platform)
>      >
>     after org.eclipse.tycho:tycho-p2-publisher-plugin:2.4.0:attach-artifacts
>
>      > (default-attach-artifacts)
>      >
>      > so instead of it is the 3rd goal in 23
>      > it suddenly the 7th goal in 24
>      >
>      >
>      > On Fri, 30 Jul 2021 at 15:54, Christoph Läubrich
>     <laeubi@xxxxxxxxxxxxxx <mailto:laeubi@xxxxxxxxxxxxxx>
>      > <mailto:laeubi@xxxxxxxxxxxxxx <mailto:laeubi@xxxxxxxxxxxxxx>>> wrote:
>      >
>      >     Can you run the build with -X option to see if there are any
>     additional
>      >     error information?
>      >
>      >     Am 30.07.21 um 15:35 schrieb Johan Compagner:
>      >      > hi,
>      >      >
>      >      > below is what i get compared 2.3 against 2.4
>      >      >
>      >      > i can't really find anything in the release notes for this.
>      >     Should i do
>      >      > something now my self with the
>     target-platform-configuration ?
>      >      >
>      >      > tycho 2.3:
>      >      >
>      >      >
>      >      > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
>      >      > com.servoy.eclipse.product ---
>      >      > [INFO]
>      >      > [INFO] ---
>     tycho-packaging-plugin:2.3.0:build-qualifier-aggregator
>      >      > (default-build-qualifier-aggregator) @
>     com.servoy.eclipse.product ---
>      >      > [INFO] The project's OSGi version is 2021.9.0.3700_rc
>      >      > [INFO]
>      >      > [INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @
>      >      > com.servoy.eclipse.product ---
>      >      > [INFO]
>      >      > [INFO] --- target-platform-configuration:2.3.0:target-platform
>      >      > (default-target-platform) @ com.servoy.eclipse.product ---
>      >      > [INFO]
>      >      > [INFO] --- tycho-p2-publisher-plugin:2.3.0:publish-osgi-ee
>      >      > (default-publish-osgi-ee) @ com.servoy.eclipse.product ---
>      >      > [INFO] Published profile IUs: [config.a.jre.javase 11.0.0,
>      >     a.jre.javase
>      >      > 11.0.0]
>      >      > [WARNING] No system packages found in profile nor
>     toolchain for
>      >      > JavaSE-15, using current JRE system packages.
>      >      > This can cause faulty dependency resolution, consider adding a
>      >      > definition for a 'jdk' with id=JavaSE-15 in your
>     toolchains.xml
>      >      > [INFO] Published profile IUs: [config.a.jre.javase 15.0.0,
>      >     a.jre.javase
>      >      > 15.0.0]
>      >      > [WARNING] No system packages found in profile nor
>     toolchain for
>      >      > JavaSE-16, using current JRE system packages.
>      >      > This can cause faulty dependency resolution, consider adding a
>      >      > definition for a 'jdk' with id=JavaSE-16 in your
>     toolchains.xml
>      >      > [INFO] Published profile IUs: [config.a.jre.javase 16.0.0,
>      >     a.jre.javase
>      >      > 16.0.0]
>      >      > [INFO]
>      >      > [INFO] --- tycho-p2-publisher-plugin:2.3.0:publish-products
>      >      > (default-publish-products) @ com.servoy.eclipse.product ---
>      >      >
>      >      >
>      >      >
>      >      > tycho 2.4:
>      >      >
>      >      > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
>      >      > com.servoy.eclipse.product ---
>      >      > [INFO]
>      >      > [INFO] ---
>     tycho-packaging-plugin:2.4.0:build-qualifier-aggregator
>      >      > (default-build-qualifier-aggregator) @
>     com.servoy.eclipse.product ---
>      >      > [INFO] The project's OSGi version is 2021.9.0.3700_rc
>      >      > [INFO]
>      >      > [INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @
>      >      > com.servoy.eclipse.product ---
>      >      > [INFO]
>      >      > [INFO] --- tycho-p2-publisher-plugin:2.4.0:publish-osgi-ee
>      >      > (default-publish-osgi-ee) @ com.servoy.eclipse.product ---
>      >      >
>      >      > [ERROR] Failed to execute goal
>      >      >
>     org.eclipse.tycho:tycho-p2-publisher-plugin:2.4.0:publish-osgi-ee
>      >      > (default-publish-osgi-ee) on project
>     com.servoy.eclipse.product:
>      >      > Publisher failed. Verify your
>     target-platform-configuration and
>      >      > executionEnvironment are suitable for proper resolution:
>     Target
>      >     platform
>      >      > is missing -> [Help 1]
>      >      >
>      >      > --
>      >      > Johan Compagner
>      >      > Servoy
>      >      >
>      >      > _______________________________________________
>      >      > tycho-user mailing list
>      >      > tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
>     <mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>>
>      >      > To unsubscribe from this list, visit
>      > https://www.eclipse.org/mailman/listinfo/tycho-user
>     <https://www.eclipse.org/mailman/listinfo/tycho-user>
>      >     <https://www.eclipse.org/mailman/listinfo/tycho-user
>     <https://www.eclipse.org/mailman/listinfo/tycho-user>>
>      >      >
>      >     _______________________________________________
>      >     tycho-user mailing list
>      > tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
>     <mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>>
>      >     To unsubscribe from this list, visit
>      > https://www.eclipse.org/mailman/listinfo/tycho-user
>     <https://www.eclipse.org/mailman/listinfo/tycho-user>
>      >     <https://www.eclipse.org/mailman/listinfo/tycho-user
>     <https://www.eclipse.org/mailman/listinfo/tycho-user>>
>      >
>      >
>      >
>      > --
>      > Johan Compagner
>      > Servoy
>      >
>      > _______________________________________________
>      > tycho-user mailing list
>      > tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
>      > To unsubscribe from this list, visit
>     https://www.eclipse.org/mailman/listinfo/tycho-user
>     <https://www.eclipse.org/mailman/listinfo/tycho-user>
>      >
>     _______________________________________________
>     tycho-user mailing list
>     tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
>     To unsubscribe from this list, visit
>     https://www.eclipse.org/mailman/listinfo/tycho-user
>     <https://www.eclipse.org/mailman/listinfo/tycho-user>
>
>
>
> --
> Johan Compagner
> Servoy
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user


--
Johan Compagner
Servoy

Back to the top