[
https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730288#action_12730288
]
Stuart McCulloch commented on FELIX-1262:
-----------------------------------------
Fixed in r793541 - the Bnd Tool update in bundleplugin 2.0.0 introduced a
change in how it handled duplicate clauses in instructions. Duplicate clauses
are now suffixed with ~ to distinguish them, unfortunately this means any
duplicate entries in the Include-Resource instruction also end up with ~ at the
end (because the clause parser is generic). This then causes the build to fail
because there's no such file ending in ~.
This only seems to happen when using the assembly:assembly goal... possibly
because the additional execution adds the same remote resources to the project
artifacts, and the maven project code doesn't check for duplicate resource
entries in the list. The fix effectively removes any duplicates before the
instruction gets to the Bnd Tool.
I'll deploy a build of 2.0.1-SNAPSHOT in case you want to test the fix (or you
can build from the current trunk)
> [regression] shared archive resources cannot be found
> -----------------------------------------------------
>
> Key: FELIX-1262
> URL: https://issues.apache.org/jira/browse/FELIX-1262
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.0.0
> Reporter: Oleg Kalnichevski
> Assignee: Stuart McCulloch
> Fix For: maven-bundle-plugin-2.0.1
>
> Attachments: maven.log
>
>
> HttpCore OSGi bundle can no longer be built after the bundle plugin got
> upgraded from 1.4.3 to 2.0.0
> http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/
> The problem goes away if I manually downgrade plugin version to 1.4.3
> Could you please have a look?
> Oleg
> ------------------------------------
> [INFO] Building HttpCore OSGi bundle
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> C:\data\src\apache.org\httpcomponents\httpcore\httpcore-osgi\src\main\resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> C:\data\src\apache.org\httpcomponents\httpcore\httpcore-osgi\src\test\resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [surefire:test]
> [INFO] Tests are skipped.
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle
> org.apache.httpcomponents:httpcore-osgi:bundle:4.1-SNAPSHOT : Input file does
> not exist: target/maven-shared-archive-resources/META-INF/DEPENDENCIES~
> [ERROR] Error building bundle
> org.apache.httpcomponents:httpcore-osgi:bundle:4.1-SNAPSHOT : Input file does
> not exist: target/maven-shared-archive-resources/META-INF/LICENSE~
> [ERROR] Error building bundle
> org.apache.httpcomponents:httpcore-osgi:bundle:4.1-SNAPSHOT : Input file does
> not exist: target/maven-shared-archive-resources/META-INF/NOTICE~
> [ERROR] Error(s) found in bundle configuration
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error(s) found in bundle configuration
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.