Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Bug 374349 - Add real label, description, etc. to generated source feature

Hello,
can somebody tell me, when the source feature is build, why in com.my.feature-1.2.3-p2metadata.xml in local repository is missing the label variable for source feature? Beacuse of that , when the update site is created, the label is missing and only the non-source feature has defined label.

I have the correct version of tycho in parrent pom.xml:
<properties>
  <tycho-version>0.17.0-SNAPSHOT</tycho-version>
</properties>

in my feature, the pom.xml is:
<parent>
...
</parent>

	<groupId>com.myGroup</groupId>
	<artifactId>com.my.feature</artifactId>
	<version>1.2.3</version>
	<packaging>eclipse-feature</packaging>
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-source-feature-plugin</artifactId>
				<version>$tycho-version</version>
				<executions>
					<execution>
						<id>source-feature</id>
						<phase>package</phase>
						<goals>
							<goal>source-feature</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<excludes>
						<feature id="com.excluded.feature"/>
					</excludes>
				</configuration>
			</plugin>	

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-plugin</artifactId>
				<version>$tycho-version</version>
				<executions>
					<execution>
						<!-- Don't attach (default) metadata before the source-feature execution.-->
						<id>default-p2-metadata-default</id>
						<configuration>
							<attachP2Metadata>false</attachP2Metadata>
						</configuration>
					</execution>
					<execution>
						<!-- Do attach metadata after the source-feature execution.-->
						<id>attach-p2-metadata</id>
						<goals>
							<goal>p2-metadata</goal>
						</goals>
						<phase>package</phase>
					</execution>
..
....		


content of com.my.feature-1.2.3-p2metadata.xml:

<unit id='com.my.feature.feature.group' version='1.2.3' singleton='false'>
    <update id='com.my.feature.feature.group' range='[0.0.0,1.2.3)' severity='0'/>
    <properties size='8'>
      <property name='org.eclipse.equinox.p2.name' value='%label'/>
      <property name='org.eclipse.equinox.p2.description' value='My description'/>
      <property name='org.eclipse.equinox.p2.provider' value='Me Developer'/>
      <property name='org.eclipse.equinox.p2.type.group' value='true'/>
      <property name='maven-groupId' value='com.myGroup'/>
      <property name='maven-artifactId' value='com.my.feature'/>
      <property name='maven-version' value='1.2.3'/>
      <property name='df_LT.label' value='A Feature'/>
    </properties>
...
...

and source feature:

<unit id='com.my.feature.source.feature.group' version=1.2.3' singleton='false'>
    <update id=com.my.feature.source.feature.group' range='[0.0.0,1.2.3)' severity='0'/>
    <properties size='5'>
      <property name='org.eclipse.equinox.p2.type.group' value='true'/>
      <property name='maven-groupId' value='com.myGroup'/>
      <property name='maven-artifactId' value='com.my.feature'/>
      <property name='maven-version' value='1.2.3'/>
      <property name='maven-classifier' value='sources-feature'/>
    </properties>

so, why is the org.eclipse.equinox.p2 properties missing? 





---------- Původní zpráva ----------
Od: Mickael Istria 
Datum: 4. 12. 2012
Předmět: Re: [tycho-user] Bug 374349 - Add real label, description, etc. to generated source feature


On 12/04/2012 12:23 PM,
e92-330cd@xxxxxxxxx wrote:



in the target/my.feature.source.jar is:

 

feature.xml

feature.properties


What would be interesting would be to check the content of these
files.



If content is correct, it means that your repository does not
contain the feature that was just built. Check Ids and versions.

-- 

Mickael Istria

Eclipse developer at JBoss,
by Red Hat

My blog - My Tweets




Back to the top