[ https://issues.apache.org/jira/browse/FELIX-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587555#action_12587555 ]
Stuart McCulloch commented on FELIX-532: ---------------------------------------- I ran some further tests and it does matter which target level is used. With the compiler plugin defaults: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.3</source> <target>1.1</target> </configuration> </plugin> the manifest contains the additional import, but if I bump the target to: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.3</source> <target>1.2</target> </configuration> </plugin> then this import disappears - so there must be some subtle difference in the bytecode between 1.1 and 1.2 > 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 > Assignee: Stuart McCulloch > 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.