Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Problems with CDT fragments

It should be possible to build environment-specific fragments on any
system, assuming the build itself does not require any native tools,
libraries, etc. See intergration test [1] for details.

If individual fragments much be built in their respective environments,
then you need to ether move them to separate builds or use maven
profiles to only build relevant projects. Aggregating build results from
multiple environments to a single p2 repository will likely be tricky as
Tycho does not currently provide a nice way to share binary build
results, at least not yet.

[1] https://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/TYCHO242multiplatformReactor



--
Regards,
Igor

On 11-06-03 4:59 PM, Schaefer, Doug wrote:
One more piece of information. If we remove the environments that don’t
match the filter, it works. How do we specify that a module should only
be built for the environments it’s supposed to be built for?

Doug.

*From:*tycho-dev-bounces@xxxxxxxxxxx
[mailto:tycho-dev-bounces@xxxxxxxxxxx] *On Behalf Of *Schaefer, Doug
*Sent:* Friday, June 03, 2011 3:54 PM
*To:* Tycho developers list
*Subject:* Re: [tycho-dev] Problems with CDT fragments

I cut off the root cause of the exception.

Caused by: org.eclipse.core.runtime.CoreException: Problems resolving
provisioning plan.

at
org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:85)

But then you probably know that. J

Thanks,
Doug.

*From:*tycho-dev-bounces@xxxxxxxxxxx
[mailto:tycho-dev-bounces@xxxxxxxxxxx] *On Behalf Of *Schaefer, Doug
*Sent:* Friday, June 03, 2011 3:44 PM
*To:* tycho-dev@xxxxxxxxxxx
*Subject:* [tycho-dev] Problems with CDT fragments

Dave Carver sent me your way.

He and I have tried to build pom’s for CDT to build with tycho. I’ve ran
into an issue with our fragments. I have the
target-platform-configuration set as follows:

<plugin>

<groupId>org.eclipse.tycho</groupId>

<artifactId>target-platform-configuration</artifactId>

<version>${tycho-version}</version>

<configuration>

<resolver>p2</resolver>

<environments>

<environment>

<os>linux</os>

<ws>gtk</ws>

<arch>x86</arch>

</environment>

…

I have a standard plug-in POM for our fragment which has an OSGI filter
of (osgi.os=linux). I get the following exception. Any thoughts?

[ERROR] Internal error: java.lang.RuntimeException: "Problems resolving
provisioning plan.": ["org.eclipse.cdt.core.linux 5.2.0.qualifier cannot
be installed in this environment because its filter is not applicable."]
-> [Help 1]

org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: "Problems resolving provisioning plan.":
["org.eclipse.cdt.core.linux 5.2.0.qualifier cannot be installed in this
environment because its filter is not applicable."]

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

…

Doug.



_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev


Back to the top