Discussion:
[tycho-user] Tycho doesn't recognize product ID. Unable to create RCP app zip folder
khady lo seck
2017-04-11 19:33:00 UTC
Permalink
Hello,

Need a bit of guidance as to how to enable Tycho to recognize that the
product with specified ID does indeed exist. Has anyone encountered this
issue before?


[INFO] com.company.maven.parent ........................... SUCCESS [
2.276 s]
[INFO] com.company.bbcode.parser .......................... SUCCESS [
3.251 s]
[INFO] com.company.toolkit ....................................... SUCCESS
[ 3.645 s]
[INFO] com.company.eclipse.toolkit ........................... SUCCESS [
2.835 s]
[INFO] com.company.export.folder ............................ SUCCESS [
3.204 s]
[INFO] com.company.export.iar ................................. SUCCESS [
2.916 s]
[INFO] com.company.component.model.git ............... SUCCESS [ 2.450 s]
[INFO] com.company.model ....................................... SUCCESS [
2.825 s]
[INFO] com.company.gui.selector .............................. SUCCESS [
4.383 s]
[INFO] com.company.parser ...................................... SUCCESS [
2.706 s]
[INFO] com.company.oauth2.connector .................... SUCCESS [ 2.298 s]
[INFO] com.company.plugin ...................................... SUCCESS [
5.277 s]
[INFO] com.company.rcp .......................................... FAILURE [
2.874 s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 01:06 min
[INFO] Finished at: 2017-04-11T15:18:44-04:00
[INFO] Final Memory: 154M/872M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-p2-director-plugin:1.0.0:materialize-products
(create-distributions) on project com.company.rcp: Product with id
'com.company.rcp.product.product' does not exist in the project -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :com.company.rcp


The .product file saved in the rcp com.company.rcp project

[image: Inline image 1]
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Mickael Istria
2017-04-12 08:26:17 UTC
Permalink
Is your .product file correctly named <productName>.product, so
com.company.rcp.product.product.product ?
https://wiki.eclipse.org/Tycho/eclipse-repository#Source_files
--
Mickael Istria
Eclipse developer for Red Hat Developers <http://developers.redhat.com>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
khady lo seck
2017-04-12 12:10:29 UTC
Permalink
Yes as seen in the attached screenshot in the original message.
Post by Mickael Istria
Is your .product file correctly named <productName>.product, so
com.company.rcp.product.product.product ?
https://wiki.eclipse.org/Tycho/eclipse-repository#Source_files
--
Mickael Istria
Eclipse developer for Red Hat Developers <http://developers.redhat.com>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
khady lo seck
2017-04-12 12:11:58 UTC
Permalink
Is there a way to print all detected .product file ID's in the system? A
mvn goal perhaps?
Post by khady lo seck
Yes as seen in the attached screenshot in the original message.
Post by Mickael Istria
Is your .product file correctly named <productName>.product, so
com.company.rcp.product.product.product ?
https://wiki.eclipse.org/Tycho/eclipse-repository#Source_files
--
Mickael Istria
Eclipse developer for Red Hat Developers <http://developers.redhat.com>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
khady lo seck
2017-04-13 19:52:58 UTC
Permalink
The pom needs to specify eclipse-repository instead of eclipse-plugin.
Answering to my own question in case someone else stumbles across this.

Khady
Post by khady lo seck
Hello,
Need a bit of guidance as to how to enable Tycho to recognize that the
product with specified ID does indeed exist. Has anyone encountered this
issue before?
[INFO] com.company.maven.parent ........................... SUCCESS [
2.276 s]
[INFO] com.company.bbcode.parser .......................... SUCCESS [
3.251 s]
[INFO] com.company.toolkit .......................................
SUCCESS [ 3.645 s]
[INFO] com.company.eclipse.toolkit ........................... SUCCESS [
2.835 s]
[INFO] com.company.export.folder ............................ SUCCESS [
3.204 s]
[INFO] com.company.export.iar ................................. SUCCESS [
2.916 s]
[INFO] com.company.component.model.git ............... SUCCESS [ 2.450 s]
[INFO] com.company.model ....................................... SUCCESS
[ 2.825 s]
[INFO] com.company.gui.selector .............................. SUCCESS [
4.383 s]
[INFO] com.company.parser ...................................... SUCCESS
[ 2.706 s]
[INFO] com.company.oauth2.connector .................... SUCCESS [ 2.298 s]
[INFO] com.company.plugin ...................................... SUCCESS
[ 5.277 s]
[INFO] com.company.rcp .......................................... FAILURE
[ 2.874 s]
[INFO] ------------------------------------------------------------
------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------
------------
[INFO] Total time: 01:06 min
[INFO] Finished at: 2017-04-11T15:18:44-04:00
[INFO] Final Memory: 154M/872M
[INFO] ------------------------------------------------------------
------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-
director-plugin:1.0.0:materialize-products (create-distributions) on
project com.company.rcp: Product with id 'com.company.rcp.product.product'
does not exist in the project -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/
MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :com.company.rcp
The .product file saved in the rcp com.company.rcp project
[image: Inline image 1]
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117 <(438)%20830-4117>
--
Best regards,

*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Loading...