Hi Martin,
Thank you very much, it worked for me.
Evgeniya
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of SCHREIBER.Martin
Sent: Friday, April 7, 2017 9:54 AM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Cc: Anton Kolesov <Anton.Kolesov@xxxxxxxxxxxx>
Subject: Re: [tycho-user] Missing requirement issue
Hi Evgeniya,
the version in the MANIFEST.MF must match the version from the pom.
In your pom.
In com.arc.embeddedcdt.rxtx/META-INF/MANIFEST you have:
Bundle-Version: 2016.9.0
This means you have to have the same version in your pom:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.arc.cdt</groupId>
<artifactId>plugin</artifactId>
<version>0.0.0-SNAPSHOT</version>
</parent>
<artifactId>com.arc.embeddedcdt.rxtx</artifactId>
<version>2016.9.0</version>
<packaging>eclipse-plugin</packaging>
</project>
The same issue exists in the other plugins.
If you want to use SNAPSHOTS (meaning that Maven/Tycho does replace “SNAPSHOT” with the build timestamp), you have to use:
Bundle-Version: 2016.9.0.qualifier
In your MANIFEST.MF and
<version>2016.9.0-SNAPSHOT</version> in your poms.
There are 2 other issues:
1)
A typo in the pom.xml of (com.arc.embeddedcdt), the artifactId must match the Bundle-Symbolic-Name. In your pom the artifactId is com.arc.embedded.cdt but the bundle name is without the dot before “cdt”.
2)
Within your build.properties you do have directories and files listed, that do not exist in that plugins. The build will fail if you have there files and directories, that are not there (e.g. the “/bin”).
3)
The version of the feature must match the version within the feature.xml and the <artifactId> in /feature/pom.xml must match the feature id. Update the /feature/pom.xml to:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.arc.cdt</groupId>
<artifactId>plugin</artifactId>
<version>0.0.0-SNAPSHOT</version>
</parent>
<artifactId>com.arc.cdt.feature</artifactId>
<version>2016.9.0</version>
<packaging>eclipse-feature</packaging>
</project>
Correcting all that issues, I am able to build your stuff. I sent you a pull request for the changes….
Hth
Martin
Keerthivasan,
Thank you very much, I made changes according to your last reply and build has gone further. Now I have such error
“[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.26.0:validate-version (default-validate-version) on project com.arc.embeddedcdt.rxtx:
OSGi version 2016.9.0 must have .qualifier qualifier for SNAPSHOT builds -> [Help 1]”.
I removed .qualifier from MANIFEST.MF to avoid conflict with SNAPSHOT, when I got this error I returned .qualifier but got such error
“[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.26.0:validate-version (default-validate-version) on project com.arc.embeddedcdt.rxtx:
Unqualified OSGi version 2016.9.0.qualifier must match unqualified Maven version 0.0.0-SNAPSHOT for SNAPSHOT builds -> [Help 1]”. Could you please help me with it (
https://github.com/foss-for-synopsys-dwc-arc-processors/arc_gnu_eclipse/tree/moving_to_tycho_2 )?
Thanks,
Evgeniya
The category xml should looks like this below.
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<site>
|
|
|
<feature " id="
com.arc.cdt.feature" version="0.0.0">
|
|
|
<category name="com.arc.cdt"/>
|
|
|
</feature>
|
|
|
<category-def name="com.arc.cdt" label="ARC GNU Tools Support"/>
|
|
Also in the
pom.xml, uncomment the line 10 and list all the plugin module needs to build at compile time
Create a pom.xml inside the feature folder(
https://github.com/foss-for-synopsys-dwc-arc-processors/arc_gnu_eclipse/tree/moving_to_tycho_2/feature ) and make packaging type
eclipse-feature
Thank you
Keerthivasan C
Keerthivasan,
I made changes according to your answer (
https://github.com/foss-for-synopsys-dwc-arc-processors/arc_gnu_eclipse/tree/moving_to_tycho_2
) but I still have the same error with the 0.0.0 version. “[ERROR] Software being installed: repository raw:0.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.0-SNAPSHOT
[ERROR] Missing requirement: repository raw:0.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.0-SNAPSHOT requires 'plugin.feature.group 0.0.0' but it could not be found”
Evgeniya
Hello Evgeniya,
In category.xml, there is version attribute for the feature element .
Ø
The value of the version attribute should not ends with
.qualifier because during build time , the .qualifier will gets replaced by timestamp. So the best way could be mention only the version like (2016.9.0) or open version like (0.0.0).
Ø
Make sure the feature added in category should be in folder format not as jar format.
Thank you
Best Regards,
Keerthivasan
Hi all,
I am trying to build the feature and update site (eclipse repository) with the Maven/Tycho. I have an error “[ERROR] Software being installed: repository raw:2016.9.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):2016.9.0-SNAPSHOT
[ERROR] Missing requirement: repository raw:2016.9.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):2016.9.0-SNAPSHOT requires 'plugin.feature.group [2016.9.0,2016.9.1)' but it could not be found”. Could you please help me to puzzle out what
is wrong with my configuration? It is located here --
https://github.com/foss-for-synopsys-dwc-arc-processors/arc_gnu_eclipse/tree/moving_to_tycho_2 .
Thank you!
Evgeniya