felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kriens (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-660) "Class in different directory than declared" error when bundle classes in a directory other than bundle root
Date Mon, 02 Feb 2009 10:06:00 GMT

     [ https://issues.apache.org/jira/browse/FELIX-660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Kriens resolved FELIX-660.
--------------------------------

    Resolution: Fixed

Applied the patch in bnd-310

> "Class in different directory than declared" error when bundle classes in a directory
other than bundle root
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-660
>                 URL: https://issues.apache.org/jira/browse/FELIX-660
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.0, maven-bundle-plugin-1.4.1
>         Environment: Maven version: 2.0.9
> Java version: 1.6.0_04
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Gopalakrishnan U
>            Assignee: Peter Kriens
>             Fix For: maven-bundle-plugin-1.6.0
>
>         Attachments: FELIX-660-20090129.patch, FELIX-660-BND-PATCH.txt, test_felix_660.zip
>
>
> Per the message http://www.mail-archive.com/users@felix.apache.org/msg01814.html in Felix
mailing list, 
> When classes are not in a subdirectory under bundle root bundle:bundle fail with the
error like:
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle test:test:bundle:0.0.1-SNAPSHOT : Class in different directory
than declared. Path from class name is test/Test.class but the path in the jar is /test/Test.class
from Jar:dot
> [ERROR] Error building bundle test:test:bundle:0.0.1-SNAPSHOT : Class in different directory
than declared. Path from class name is test/Test.class but the path in the jar is /test/Test.class
from Jar:dot
> [ERROR] Error(s) found in bundle configuration
> [ERROR] 
> My maven-bundle-plugin configuration is :
>   <plugins>
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>                        
>                         <Include-Resource>{maven-resources},classes=target/classes</Include-Resource>
>                         <Implementation-Title>Test</Implementation-Title>
>                         <Implementation-Version>${pom.version}</Implementation-Version>
>                         <Implementation-Vendor>XXX</Implementation-Vendor>
>                         <Implementation-Vendor-Id>XXX</Implementation-Vendor-Id>
>                         <Private-Package>test*</Private-Package>
>                         <Bundle-ClassPath>classes</Bundle-ClassPath>
>                     </instructions>
>                 </configuration>
>             </plugin>   
>         </plugins>  
> A simple test project is attached. Run "mvn install" to recreate the problem.

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


Mime
View raw message