[ 
https://issues.apache.org/jira/browse/FELIX-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552316
 ] 

Stuart McCulloch commented on FELIX-306:
----------------------------------------

hmm, are you sure you're using the 1.1.0-SNAPSHOT? because with the following 
test POM:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd"; 
xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

  <modelVersion>4.0.0</modelVersion>
  <groupId>examples</groupId>
  <artifactId>version.test</artifactId>
  <version>1.1.0-incubator-SNAPSHOT</version>

  <packaging>bundle</packaging>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>1.1.0-SNAPSHOT</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Private-Package>*</Private-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <pluginRepositories>
    <pluginRepository>
      <id>ops4j-snapshots</id>
      <url>http://repository.ops4j.org/mvn-snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>

  <dependencies>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>2.2.3</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>

</project>

I get the following manifest:

Manifest-Version: 1.0

Created-By: 1.4.2_15 (Sun Microsystems Inc.)

Bnd-LastModified: 1197860624509

Bundle-Version: 1.1.0.incubator-SNAPSHOT

Bundle-Name: Unnamed - examples:version.test:bundle:1.1.0-incubator-SN
APSHOT

Private-Package: org.objectweb.asm,org.objectweb.asm.signature

Ant-Version: Apache Ant 1.6.5

Originally-Created-By: 1.5.0_07-b03 (Sun Microsystems Inc.)

Bundle-ManifestVersion: 2

Bundle-SymbolicName: examples.version.test

Implementation-Title: ASM

Tool: Bnd-0.0.213

Implementation-Version: 2.2.3

Implementation-Vendor: France Telecom R&D



where the version appears correct: 1.1.0.incubator-SNAPSHOT

> Bundle plugin is incorrectly converting version numbers
> -------------------------------------------------------
>
>                 Key: FELIX-306
>                 URL: https://issues.apache.org/jira/browse/FELIX-306
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>            Reporter: Richard S. Hall
>            Assignee: Stuart McCulloch
>            Priority: Minor
>
> The bundle plugin appears to be converting version numbers incorrectly. For 
> example:
>     0.9.0-incubator-SNAPSHOT
> Is being converted to:
>     0.9.0.incubator_SNAPSHOT
> Only the first '-' should be converted to a '.' to be compatible with OSGi, 
> the remaining '-' characters to not need to be converted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to