Skip to content

Instantly share code, notes, and snippets.

@tgs
Created February 10, 2012 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgs/1789999 to your computer and use it in GitHub Desktop.
Save tgs/1789999 to your computer and use it in GitHub Desktop.
Demo of a bug in Tycho staged 0.14.0, version checking is stricter than auto version updating
source.. = src/
output.. = target/classes/
bin.includes = META-INF/,\
.
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: manifest-version-bug
Bundle-SymbolicName: manifest-version-bug
Bundle-Version: 1
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.resc.tycho.demo</groupId>
<artifactId>manifest-version-bug</artifactId>
<version>1</version>
<packaging>eclipse-plugin</packaging>
<properties>
<tychoVersion>0.14.0</tychoVersion>
</properties>
<pluginRepositories>
<pluginRepository>
<id>tycho-0.14.0-staged</id>
<url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-004/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tychoVersion}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
@tgs
Copy link
Author

tgs commented Feb 10, 2012

Of course, MANIFEST.MF should go in the META-INF directory, but gists can't have subdirectories :-(

@tgs
Copy link
Author

tgs commented Feb 10, 2012

The bug:
mvn install
fails because it wants the pom to have 1.0.0 to "match" the MANIFEST's Bundle-Version: 1

But,
mvn org.eclipse.tycho:tycho-versions-plugin:0.14.0:update-pom
doesn't set the pom version to 1.0.0.

@oberlies
Copy link

Is there a bugzilla entry for this bug? We track the Tycho bugs here: https://bugs.eclipse.org/bugs/query.cgi?format=specific;product=Tycho

@tgs
Copy link
Author

tgs commented Feb 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment