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 10:03:05 UTC

[jira] Created: (SMX4-158) Missing JBI descriptor

Missing JBI descriptor
----------------------

                 Key: SMX4-158
                 URL: https://issues.apache.org/activemq/browse/SMX4-158
             Project: ServiceMix 4
          Issue Type: Bug
    Affects Versions: 4.0-m1, 4.0-m2
            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}
<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>
{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] Updated: (SMX4-158) Missing JBI descriptor

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

Lars Heinemann updated SMX4-158:
--------------------------------

    Description: 
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?

  was:
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}
<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>
{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?


> Missing JBI descriptor
> ----------------------
>
>                 Key: SMX4-158
>                 URL: https://issues.apache.org/activemq/browse/SMX4-158
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m1, 4.0-m2
>            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.