You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2010/07/29 16:12:16 UTC

[jira] Commented: (FELIX-2493) Wrong version of imported packages in generated manifest file

    [ https://issues.apache.org/jira/browse/FELIX-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893624#action_12893624 ] 

Justin Edelson commented on FELIX-2493:
---------------------------------------

this isn't a bug. those are the correct package versions. Sling only uses SNAPSHOTs for bundle versions, not package versions.

> Wrong version of imported packages in generated manifest file
> -------------------------------------------------------------
>
>                 Key: FELIX-2493
>                 URL: https://issues.apache.org/jira/browse/FELIX-2493
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.1
>            Reporter: Davide Maestroni
>
> A pom.xml containing the following dependencies:
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.felix</groupId>
>             <artifactId>org.osgi.core</artifactId>
>             <version>1.4.0</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.felix</groupId>
>             <artifactId>org.osgi.compendium</artifactId>
>             <version>1.4.0</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.engine</artifactId>
>             <version>2.0.7-SNAPSHOT</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.commons.auth</artifactId>
>             <version>0.9.0-SNAPSHOT</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.commons.json</artifactId>
>             <version>2.0.5-SNAPSHOT</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.jackrabbit</groupId>
>             <artifactId>jackrabbit-jcr-commons</artifactId>
>             <version>2.0.0</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.jcr</groupId>
>             <artifactId>jcr</artifactId>
>             <version>2.0</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>javax.servlet</groupId>
>             <artifactId>servlet-api</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-api</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.api</artifactId>
>             <version>2.0.9-SNAPSHOT</version>
>             <type>bundle</type>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.commons.mime</artifactId>
>             <version>2.1.4</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.servlets.post</artifactId>
>             <version>2.0.5-SNAPSHOT</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.sling</groupId>
>             <artifactId>org.apache.sling.jcr.resource</artifactId>
>             <version>2.0.7-SNAPSHOT</version>
>             <type>bundle</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>commons-codec</groupId>
>             <artifactId>commons-codec</artifactId>
>             <version>20041127.091804</version>
>             <type>jar</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.powermock.api</groupId>
>             <artifactId>powermock-api-easymock</artifactId>
>             <version>1.3.7</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.powermock.modules</groupId>
>             <artifactId>powermock-module-junit4-legacy</artifactId>
>             <version>1.3.7</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.14</version>
>             <type>jar</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-log4j12</artifactId>
>             <version>1.5.2</version>
>             <type>jar</type>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>         	<groupId>org.apache.jackrabbit</groupId>
>         	<artifactId>jackrabbit-api</artifactId>
>         	<version>2.0.0</version>
>         	<type>bundle</type>
>         	<scope>compile</scope>
>         </dependency>
>         <dependency>
>         	<groupId>javax.mail</groupId>
>         	<artifactId>mail</artifactId>
>         	<version>1.4</version>
>         	<type>jar</type>
>         	<scope>compile</scope>
>         </dependency>
>     </dependencies>
> produces as output in the generated MANIFEST.MF file the following attribute:
> Import-Package: com.mozaikmultimedia.cms.renderer,com.mozaikmultimedia
>  .cms.renderer.util,javax.jcr;version="2.0.0",javax.jcr.lock;version="
>  2.0.0",javax.jcr.nodetype;version="2.0.0",javax.jcr.query;version="2.
>  0.0",javax.jcr.query.qom;version="2.0.0",javax.jcr.version;version="2
>  .0.0",javax.mail,javax.mail.internet,javax.management,javax.net.ssl,j
>  avax.servlet,javax.servlet.http,org.apache.sling.api;version="2.1.0",
>  org.apache.sling.api.request;version="2.1.0",org.apache.sling.api.res
>  ource;version="2.1.0",org.apache.sling.api.servlets;version="2.1.0",o
>  rg.apache.sling.api.wrappers;version="2.1.0",org.apache.sling.commons
>  .auth.spi;version="1.0.0",org.apache.sling.commons.json;version="2.0.
>  5",org.apache.sling.commons.json.io;version="2.0.5",org.apache.sling.
>  commons.mime;version="2.1.4",org.osgi.framework;version="1.5.0",org.o
>  sgi.service.component;version="1.1.0",org.slf4j;version="1.5.2"
> In particular:
> org.apache.sling.api;version="2.1.0",
> org.apache.sling.api.request;version="2.1.0",
> org.apache.sling.api.res ource;version="2.1.0",
> org.apache.sling.api.servlets;version="2.1.0",
> org.apache.sling.api.wrappers;version="2.1.0",
> org.apache.sling.commons.auth.spi;version="1.0.0"
> are inconsistent with the SNAPSHOT dependencies thus causing errors during the deploy.

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