You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2009/06/21 22:28:07 UTC

[jira] Created: (FELIX-1262) [regression] shared archive resources cannot be found

[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


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.


[jira] Updated: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated FELIX-1262:
-------------------------------------

    Attachment: maven.log

> [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.


[jira] Reopened: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski reopened FELIX-1262:
--------------------------------------


Stuart,

Many thanks for looking into the issue. It turned out the problem occurs only when building release assemblies using the following command:

mvn package assembly:assembly

Please find the log attached to this ticket.

Oleg

> [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.


[jira] Commented: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Closed: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch closed FELIX-1262.
-----------------------------------

    Resolution: Cannot Reproduce

I can't reproduce this locally - the build still passes when I change httpcore-osgi/pom.xml to use 2.0.0 instead of 1.4.3.
I'm also confused about the files ending with ~ ... they are presumably resource files but I don't see them when I build.

If you can still reproduce this on your machine could you build with "mvn clean install -X > LOG" and send me the file?

> [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
>
>
> 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.


[jira] Commented: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Patrick Forhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761336#action_12761336 ] 

Patrick Forhan commented on FELIX-1262:
---------------------------------------

Forcing the non-duplicated version of Service-Component works:
  <Service-Component>OSGI-INF/serviceComponents.xml</Service-Component>

It's a bit hacky, though, since SCR is generating everything...

> [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.


[jira] Assigned: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch reassigned FELIX-1262:
---------------------------------------

    Assignee: Stuart McCulloch

> [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
>
>
> 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.


[jira] Commented: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Patrick Forhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761328#action_12761328 ] 

Patrick Forhan commented on FELIX-1262:
---------------------------------------

With maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4.0, I seem to be getting much the same problem when the maven-release-plugin does this:
 mvn clean verify install --no-plugin-updates -P development

I get these messages in debug:
[DEBUG] Final Manifest:
[DEBUG] ------------------------------------------------------------------------
[DEBUG] Service-Component: OSGI-INF/serviceComponents.xml,OSGI-INF/serviceComponents.xml
[DEBUG] Export-Package: org.bjc.osgi.foundation.cache
[DEBUG] Built-By: paf2009
[DEBUG] Manifest-Version: 1.0
[DEBUG] Tool: Bnd-0.0.357
[DEBUG] Bundle-Name: org.bjc.osgi.foundation.cache
[DEBUG] Created-By: Apache Maven Bundle Plugin
[DEBUG] Bundle-Vendor: BJC HealthCare
[DEBUG] Build-Jdk: 1.6.0_02
[DEBUG] Bundle-Version: 1.13.0.RC1-SNAPSHOT
[DEBUG] Bnd-LastModified: 1254427683151
[DEBUG] Bundle-ManifestVersion: 2
[DEBUG] Bundle-Description: Caching bundle
[DEBUG] Import-Package: net.sf.ehcache,org.apache.log4j
[DEBUG] Bundle-SymbolicName: org.bjc.es.org.bjc.osgi.foundation.cache
[DEBUG] ------------------------------------------------------------------------
[WARNING] Warning building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Did not find matching referal for org.springfr
amework.*
[ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR:
 OSGI-INF/serviceComponents.xml~
[ERROR] Error(s) found in bundle configuration

> [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.


[jira] Updated: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-1262:
------------------------------------

    Fix Version/s: maven-bundle-plugin-2.0.1

Investigate this as part of the next maintenance release schedule

> [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
>             Fix For: maven-bundle-plugin-2.0.1
>
>
> 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.


[jira] Closed: (FELIX-1262) [regression] shared archive resources cannot be found

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch closed FELIX-1262.
-----------------------------------

    Resolution: Fixed

Fix has been deployed to 2.0.1-20090713.111558-1 on https://repository.apache.org/content/repositories/snapshots and will be in 2.0.1

> [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.