Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho product not including native launchers in 0.11.*

Sorry to re-post the same question, but does anyone have any suggestions for what to look for?  Everything compiles after removing the target platform (and adding the P2 repositories to the POM), but the product will just not build with Tycho 0.13.0.
 
I'm afraid I don't see anything in the build output or log that helps me know where to look for things to try.

-- 
Eduardo

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Eduardo Kortright
Sent: Thursday, September 29, 2011 2:12 PM
To: Tycho user list
Subject: Re: [tycho-user] Tycho product not including native launchers in 0.11.*

Adding the workaround for the optional bundles resolved the compilation problem.

I'm afraid I'm still having trouble with building the product, however.   The  http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool  page says to ignore the Mirror tool warning if it is a result of a feature patch, but I don't know how to tell if that is the case.  Our product is based on a feature, so useFeatures has to be true; not sure why we have plugins specified in the .product file; if their being ignored is a problem I would expect to see some reference to them, though, and there's nothing I can see.

=================== This is the maven output for the product module:

[INFO] ------------------------------------------------------------------------
[INFO] Building com.xxx.xxx.product 2.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ com.xxx.xxx.product --- [INFO] [INFO] --- tycho-packaging-plugin:0.13.0:build-qualifier (default-build-qualifier) @ com.xxx.xxx.product --- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean-1) @ com.xxx.xxx.product --- [INFO] [INFO] --- tycho-p2-publisher-plugin:0.13.0:publish-products (default-publish-products) @ com.xxx.xxx.product --- [INFO] "publishing result": ["The product specifies bundles although useFeatures is true. These bundles are ignored."] [INFO] [INFO] --- tycho-p2-publisher-plugin:0.13.0:publish-categories (default-publish-categories) @ com.xxx.xxx.product --- [INFO] [INFO] --- tycho-p2-repository-plugin:0.13.0:assemble-repository (default-assemble-repository) @ com.xxx.xxx.product --- [WARNING] Mirror tool: "Problems resolving provisioning plan.": ["Unable to satisfy dependency from XXX 2.2.0.2291346 to tooling.source.default [1.0.0].", "Unable to satisfy dependency from XXX 2.2.0.2291346 to toolingXXX.configuration [2.2.0.2291346].", "Unable to satisfy dependency from XXX 2.2.0.2291346 to tooling.osgi.bundle.default [1.0.0].", "Unable to satisfy dependency from XXX 2.2.0.2291346 to tooling.org.eclipse.update.feature.default [1.0.0].", "Unable to satisfy dependency from XXX 2.2.0.2291346 to toolingXXX.application [2.2.0.2291346].", "Unable to satisfy dependency from XXX 2.2.0.2291346 to config.a.jre.javase [1.6.0]."] [WARNING] More information on the preceding warning(s) can be found here:
[WARNING] - http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.13.0:archive-repository (default-archive-repository) @ com.xxx.xxx.product --- [INFO] Building zip: C:\development\src\xxx\trunk-tycho13\xxx.client\com.xxx.xxx.product\target\com.xxx.xxx.product.zip
[INFO]
[INFO] --- tycho-p2-director-plugin:0.13.0:materialize-products (materialize-products) @ com.xxx.xxx.product --- [INFO] Calling director with arguments: [-metadatarepository, file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.product/target/publisherRepository/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.context.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.tasks.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.client/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.monitor.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.commons.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.monitor.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.help/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.commons.net/target/,file:/C:/development/src/xxx/trunk
 -tycho13/xxx.client/com.xxx.xxx.tasks.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.context.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.feature/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.exams/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.tasks.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.imaging/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.commons.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.product/target/targetPlatformRepository/, -artifactrepository, file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.product/target/publisherRepository/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.context.core/target/,file:/C:/develop
 ment/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.tasks.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.client/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.monitor.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.commons.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.monitor.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.help/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.commons.net/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.context.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.feature/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.cli
 ent/com.xxx.xxx.tasks.core/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.exams/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.tasks.ui/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.imaging/target/,file:/C:/development/src/xxx/trunk-tycho13/xxx.client/com.xxx.xxx.tasks.commons.ui/target/,file:/resolution-context-artifacts@C:%5Cdevelopment%5Csrc%5Cxxx%5Ctrunk-tycho13%5Cxxx.client%5Ccom.xxx.xxx.product,file:/c:/development/maven/repository/, -installIU, XXX, -destination, C:\development\src\xxx\trunk-tycho13\xxx.client\com.xxx.xxx.product\target\products\XXX\win32\win32\x86, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, win32, -p2.ws, win32, -p2.arch, x86] Installation failed.

=================== This is what was in the log file:

!SESSION 2011-09-29 08:48:23.515 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments:  -eclipse.keyring C:\development\cygwin\tmp\tycho159229278620251651secure_storage
Command-line arguments:  -eclipse.keyring C:\development\cygwin\tmp\tycho159229278620251651secure_storage

!ENTRY org.eclipse.equinox.p2.director.app 4 0 2011-09-29 08:48:23.516 !MESSAGE The installable unit XXX has not been found.
!SESSION 2011-09-29 12:58:12.602 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments:  -eclipse.keyring C:\development\cygwin\tmp\tycho6225822562785798681secure_storage
Command-line arguments:  -eclipse.keyring C:\development\cygwin\tmp\tycho6225822562785798681secure_storage

!ENTRY org.eclipse.equinox.p2.director.app 4 0 2011-09-29 12:58:12.613 !MESSAGE The installable unit XXX has not been found.
!SESSION 2011-09-29 13:16:36.140 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments:  -eclipse.keyring C:\development\cygwin\tmp\tycho4306779946876740293secure_storage
Command-line arguments:  -eclipse.keyring C:\development\cygwin\tmp\tycho4306779946876740293secure_storage

!ENTRY org.eclipse.equinox.p2.director.app 4 0 2011-09-29 13:16:36.141 !MESSAGE The installable unit XXX has not been found.


--
Eduardo

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Eduardo Kortright
Sent: Thursday, September 29, 2011 8:57 AM
To: Tycho user list
Subject: Re: [tycho-user] Tycho product not including native launchers in 0.11.*

OK, I've figured out what causes some plugins not to get pulled in.  In the MANIFEST.MF for the plugin that would not compile, some dependencies were listed as optional:

Require-Bundle: org.eclipse.core.runtime,  org.eclipse.core.expressions,  org.eclipse.jface.text,  org.eclipse.ui,  org.eclipse.ui.editors;resolution:=optional,
 org.eclipse.ui.forms;resolution:=optional,
 org.eclipse.ui.browser;resolution:=optional

I removed the ";resolution:=optional" part and now the plugin compiles with no problems.  Not sure why they were marked as optional if the code actually depends on them, but that is another story.  I'm reporting this here in case it helps somebody else out there.

Of course, now my product is not building for some reason.  If I can't figure out what's wrong I'll be back.  In any case, I really appreciate the time everyone has taken to read through my questions and offer suggestions.

--
Eduardo

NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



Back to the top