You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "James Rowe (JIRA)" <ji...@apache.org> on 2008/04/10 11:20:06 UTC
[jira] Updated: (FELIX-532) Package inheritance dependencies are
not imported when maven-compiler-plugin is defined in build
[ https://issues.apache.org/jira/browse/FELIX-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Rowe updated FELIX-532:
-----------------------------
Attachment: package-inheritance-test.zip
The attached test case contains a module called package-inheritance-test, which demonstrates the problem. With the maven-compiler-plugin in the build, the Import-Package directive in the manifest looks like:
Import-Package: javax.sql,mypackage,org.springframework.jdbc.core;version="2.5"
When the maven-compiler-plugin is removed, the manifest contains:
Import-Package: javax.sql,mypackage,org.springframework.jdbc.core;vers
ion="2.5",org.springframework.jdbc.support;version="2.5"
It doens't matter which source/target version is specified either.
> Package inheritance dependencies are not imported when maven-compiler-plugin is defined in build
> ------------------------------------------------------------------------------------------------
>
> Key: FELIX-532
> URL: https://issues.apache.org/jira/browse/FELIX-532
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.0
> Environment: JDK 1.5.0_14 on Windows XP
> Reporter: James Rowe
> Priority: Minor
> Attachments: package-inheritance-test.zip
>
>
> When maven-compiler-plugin is explicitly added to the build, inheritance dependencies are not resolved. For example, the attached test case uses org.springframework.jdbc.core.JdbcTemplate, which extends org.springframework.jdbc.support.JdbcAccessor (note the superclass lives in a different package). The method we invoke is defined on JdbcAccessor, hence the inheritance dependency. When the compiler plugin is included in the build, the bundle plugin fails to import the inherited org.springframework.jdbc.support package dependency. When the compiler plugin is taken out of the build, the bundle plugin correctly imports it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.