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

[jira] Created: (FELIX-1240) BundlePlugin fails in combination with apt-plugin

BundlePlugin fails in combination with apt-plugin
-------------------------------------------------

                 Key: FELIX-1240
                 URL: https://issues.apache.org/jira/browse/FELIX-1240
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-2.0.0
            Reporter: Kristian Koehler


Hi 

in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 

Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:

--- 8< ---
[INFO] [bundle:bundle]
[ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
[ERROR] Error(s) found in bundle configuration
--- 8< ---

The file name is 'myfile' and not 'myfile~'!

The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
These duplicate entries are generated within the bundle-plugin.

I will attach a patch for this.

Kristian


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


[jira] Updated: (FELIX-1240) BundlePlugin fails in combination with apt-plugin

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

Kristian Koehler updated FELIX-1240:
------------------------------------

    Attachment: FELIX-1240_150609.txt

the patch

> BundlePlugin fails in combination with apt-plugin
> -------------------------------------------------
>
>                 Key: FELIX-1240
>                 URL: https://issues.apache.org/jira/browse/FELIX-1240
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: Kristian Koehler
>         Attachments: FELIX-1240_150609.txt
>
>
> Hi 
> in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 
> Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:
> --- 8< ---
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
> [ERROR] Error(s) found in bundle configuration
> --- 8< ---
> The file name is 'myfile' and not 'myfile~'!
> The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
> These duplicate entries are generated within the bundle-plugin.
> I will attach a patch for this.
> Kristian

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


[jira] Resolved: (FELIX-1240) BundlePlugin fails in combination with apt-plugin

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

Stuart McCulloch resolved FELIX-1240.
-------------------------------------

    Resolution: Duplicate

Duplicate of FELIX-1262, applied similar patch except used a LinkedHashSet to preserve the resource ordering.

> BundlePlugin fails in combination with apt-plugin
> -------------------------------------------------
>
>                 Key: FELIX-1240
>                 URL: https://issues.apache.org/jira/browse/FELIX-1240
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: Kristian Koehler
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-2.0.1
>
>         Attachments: FELIX-1240_150609.txt
>
>
> Hi 
> in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 
> Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:
> --- 8< ---
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
> [ERROR] Error(s) found in bundle configuration
> --- 8< ---
> The file name is 'myfile' and not 'myfile~'!
> The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
> These duplicate entries are generated within the bundle-plugin.
> Apt will generate the file. This will be copied to the build dest dir and then included in the Include-Resource header...
> I will attach a patch for this.
> Kristian

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


[jira] Updated: (FELIX-1240) BundlePlugin fails in combination with apt-plugin

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

Kristian Koehler updated FELIX-1240:
------------------------------------

    Description: 
Hi 

in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 

Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:

--- 8< ---
[INFO] [bundle:bundle]
[ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
[ERROR] Error(s) found in bundle configuration
--- 8< ---

The file name is 'myfile' and not 'myfile~'!

The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
These duplicate entries are generated within the bundle-plugin.

Apt will generate the file. This will be copied to the build dest dir and then included in the Include-Resource header...

I will attach a patch for this.

Kristian


  was:
Hi 

in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 

Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:

--- 8< ---
[INFO] [bundle:bundle]
[ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
[ERROR] Error(s) found in bundle configuration
--- 8< ---

The file name is 'myfile' and not 'myfile~'!

The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
These duplicate entries are generated within the bundle-plugin.

I will attach a patch for this.

Kristian



> BundlePlugin fails in combination with apt-plugin
> -------------------------------------------------
>
>                 Key: FELIX-1240
>                 URL: https://issues.apache.org/jira/browse/FELIX-1240
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: Kristian Koehler
>         Attachments: FELIX-1240_150609.txt
>
>
> Hi 
> in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 
> Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:
> --- 8< ---
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
> [ERROR] Error(s) found in bundle configuration
> --- 8< ---
> The file name is 'myfile' and not 'myfile~'!
> The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
> These duplicate entries are generated within the bundle-plugin.
> Apt will generate the file. This will be copied to the build dest dir and then included in the Include-Resource header...
> I will attach a patch for this.
> Kristian

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


[jira] Updated: (FELIX-1240) BundlePlugin fails in combination with apt-plugin

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

Stuart McCulloch updated FELIX-1240:
------------------------------------

    Fix Version/s: maven-bundle-plugin-2.0.1
         Assignee: Stuart McCulloch

Scheduling for the next maintenance release (2.0.1)

> BundlePlugin fails in combination with apt-plugin
> -------------------------------------------------
>
>                 Key: FELIX-1240
>                 URL: https://issues.apache.org/jira/browse/FELIX-1240
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: Kristian Koehler
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-2.0.1
>
>         Attachments: FELIX-1240_150609.txt
>
>
> Hi 
> in our maven build we use the apt-maven-plugin to generate some resources. These resources should be included in the resulting bundle jar file. 
> Running maven with 'clean install' works great, but running 'mvn compile install' fails with a exception like:
> --- 8< ---
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not exist: target/generated-sources/apt/META-INF/myfile~
> [ERROR] Error(s) found in bundle configuration
> --- 8< ---
> The file name is 'myfile' and not 'myfile~'!
> The '~' gets appended within the BND implementation if there are duplicate haeder entries for the bundle file (in this case Include-Resource) to make them unique.
> These duplicate entries are generated within the bundle-plugin.
> Apt will generate the file. This will be copied to the build dest dir and then included in the Include-Resource header...
> I will attach a patch for this.
> Kristian

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