You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Lars Heinemann (JIRA)" <ji...@apache.org> on 2008/11/18 11:51:05 UTC

[jira] Created: (SM-1695) Missing component descriptor

Missing component descriptor
----------------------------

                 Key: SM-1695
                 URL: https://issues.apache.org/activemq/browse/SM-1695
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-components
    Affects Versions: 4.0
            Reporter: Lars Heinemann


While trying to get my own components to work under SMX4 I discovered, that the JBI descriptors are missing in my jar files.
I investigated on this issue and found, that I missed the following plugins in my maven pom:

{quote}{noformat}
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <id>copy-legal</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.apache.servicemix.legal</groupId>
                  <artifactId>legal</artifactId>
                  <version>${servicemix-legal-version}</version>
                  <type>xml</type>
                  <outputDirectory>target/legal/</outputDirectory>
                </artifactItem>
              </artifactItems>
              <stripVersion>true</stripVersion>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.apache.servicemix.legal</groupId>
            <artifactId>legal</artifactId>
            <version>${servicemix-legal-version}</version>
            <type>xml</type>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <artifactId>maven-remote-resources-plugin</artifactId>
        <version>1.0</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.servicemix</groupId>
            <artifactId>servicemix-build</artifactId>
            <version>1.0</version>
          </dependency>
        </dependencies>
        <executions>
          <!-- First execution for standard (jar) packaging -->
          <execution>
            <id>std-packaging</id>
            <goals>
              <goal>process</goal>
            </goals>
            <configuration>
              <resourceBundles>
                <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
              </resourceBundles>
              <supplementalModels>
                <supplementalModel>target/legal/legal.xml</supplementalModel>
              </supplementalModels>
              <properties>
                <addLicense>true</addLicense>
                <addArtifact>true</addArtifact>
                <projectName>Apache ServiceMix</projectName>
              </properties>
            </configuration>
          </execution>
          <!-- Second execution for JBI packaging -->
          <execution>
            <id>jbi-packaging</id>
            <goals>
              <goal>process</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}-installer</outputDirectory>
              <resourceBundles>
                <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
              </resourceBundles>
              <supplementalModels>
                <supplementalModel>target/legal/legal.xml</supplementalModel>
              </supplementalModels>
              <properties>
                <addLicense>true</addLicense>
                <addArtifact>true</addArtifact>
                <projectName>Apache ServiceMix</projectName>
              </properties>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
{noformat}{quote}

Afterwards I tried to adapt the servicemix components-pom to behave the same way as my one and removed the above plugins. After building it and then the components of SMX I found that the jbi.xml is missing now in the servicemix components as well so it seems to be correct, that these plugins are responsible for placing the jbi.xml inside the jar.

In my eyes this is a "bug". If the jbi.xml is placed in the jar shouldn't depend on the above plugins.

Any thoughts?

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


[jira] Resolved: (SM-1695) Missing component descriptor

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann resolved SM-1695.
--------------------------------

    Resolution: Won't Fix
      Assignee: Lars Heinemann

The jbi.xml (JBI descriptor) is not wanted inside the component OSGi bundles. They came in through an error with 
the legal plugin. gnodet fixed this problem already.

> Missing component descriptor
> ----------------------------
>
>                 Key: SM-1695
>                 URL: https://issues.apache.org/activemq/browse/SM-1695
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-components
>    Affects Versions: 4.0
>            Reporter: Lars Heinemann
>            Assignee: Lars Heinemann
>
> While trying to get my own components to work under SMX4 I discovered, that the JBI descriptors are missing in my jar files.
> I investigated on this issue and found, that I missed the following plugins in my maven pom:
> {quote}{noformat}
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-dependency-plugin</artifactId>
>         <version>2.0</version>
>         <executions>
>           <execution>
>             <id>copy-legal</id>
>             <phase>generate-resources</phase>
>             <goals>
>               <goal>copy</goal>
>             </goals>
>             <configuration>
>               <artifactItems>
>                 <artifactItem>
>                   <groupId>org.apache.servicemix.legal</groupId>
>                   <artifactId>legal</artifactId>
>                   <version>${servicemix-legal-version}</version>
>                   <type>xml</type>
>                   <outputDirectory>target/legal/</outputDirectory>
>                 </artifactItem>
>               </artifactItems>
>               <stripVersion>true</stripVersion>
>             </configuration>
>           </execution>
>         </executions>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.servicemix.legal</groupId>
>             <artifactId>legal</artifactId>
>             <version>${servicemix-legal-version}</version>
>             <type>xml</type>
>           </dependency>
>         </dependencies>
>       </plugin>
>       <plugin>
>         <artifactId>maven-remote-resources-plugin</artifactId>
>         <version>1.0</version>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.servicemix</groupId>
>             <artifactId>servicemix-build</artifactId>
>             <version>1.0</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <!-- First execution for standard (jar) packaging -->
>           <execution>
>             <id>std-packaging</id>
>             <goals>
>               <goal>process</goal>
>             </goals>
>             <configuration>
>               <resourceBundles>
>                 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
>               </resourceBundles>
>               <supplementalModels>
>                 <supplementalModel>target/legal/legal.xml</supplementalModel>
>               </supplementalModels>
>               <properties>
>                 <addLicense>true</addLicense>
>                 <addArtifact>true</addArtifact>
>                 <projectName>Apache ServiceMix</projectName>
>               </properties>
>             </configuration>
>           </execution>
>           <!-- Second execution for JBI packaging -->
>           <execution>
>             <id>jbi-packaging</id>
>             <goals>
>               <goal>process</goal>
>             </goals>
>             <configuration>
>               <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}-installer</outputDirectory>
>               <resourceBundles>
>                 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
>               </resourceBundles>
>               <supplementalModels>
>                 <supplementalModel>target/legal/legal.xml</supplementalModel>
>               </supplementalModels>
>               <properties>
>                 <addLicense>true</addLicense>
>                 <addArtifact>true</addArtifact>
>                 <projectName>Apache ServiceMix</projectName>
>               </properties>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>       <plugin>
> {noformat}{quote}
> Afterwards I tried to adapt the servicemix components-pom to behave the same way as my one and removed the above plugins. After building it and then the components of SMX I found that the jbi.xml is missing now in the servicemix components as well so it seems to be correct, that these plugins are responsible for placing the jbi.xml inside the jar.
> In my eyes this is a "bug". If the jbi.xml is placed in the jar shouldn't depend on the above plugins.
> Any thoughts?

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