You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Victor Salaman (JIRA)" <ji...@apache.org> on 2008/01/21 12:31:22 UTC

[jira] Created: (CAMEL-301) spring.handlers and spring.schemas are not being merged in the uberjar

spring.handlers and spring.schemas are not being merged in the uberjar
----------------------------------------------------------------------

                 Key: CAMEL-301
                 URL: https://issues.apache.org/activemq/browse/CAMEL-301
             Project: Apache Camel
          Issue Type: Improvement
    Affects Versions: 1.2.0, 1.3.0
            Reporter: Victor Salaman
            Priority: Minor


The build process is not merging spring.schemas and spring.handlers from the component modules, rendering some of the spring support useless. Due to this, for a while I've had to use the individual jars, and all the repetitive maven dependency exclusions in the POM are just insane! 

Therefore I've replaced maven-bundle-plugin locally with maven-shade-plugin (now that beta-1 is released!) such as:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>1.0-beta-1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <shadedGroupFilter>org.apache.camel</shadedGroupFilter>
                            <shadedArtifactAttached>false</shadedArtifactAttached>
                            <createSourcesJar>false</createSourcesJar>
                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                            <createDependencyReducedPom>true</createDependencyReducedPom>
                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/spring.handlers</resource>
                                </transformer>
                                <transformer
                                        implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/spring.schemas</resource>
                                </transformer>
                            </transformers>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

and now it works properly (but now is not a osgi bundle!). I don't really know if the bundle plugin is able to append resources, but it'd be nice if we fixed this before 1.3 is released.

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


[jira] Resolved: (CAMEL-301) spring.handlers and spring.schemas are not being merged in the uberjar

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

Hadrian Zbarcea resolved CAMEL-301.
-----------------------------------

    Fix Version/s: 1.3.0
       Resolution: Fixed

Thanks for the pointer.  Actually the bundle plugin was an old one.

As osgi bundles go.  I got them all fixed, it's just the manifest of the uber jar that's not generated properly.  I hope to get this fixed and get a 1.3.0 out this week.

> spring.handlers and spring.schemas are not being merged in the uberjar
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-301
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-301
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Victor Salaman
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>             Fix For: 1.3.0
>
>
> The build process is not merging spring.schemas and spring.handlers from the component modules, rendering some of the spring support useless. Due to this, for a while I've had to use the individual jars, and all the repetitive maven dependency exclusions in the POM are just insane! 
> Therefore I've replaced maven-bundle-plugin locally with maven-shade-plugin (now that beta-1 is released!) such as:
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-shade-plugin</artifactId>
>                 <version>1.0-beta-1</version>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>shade</goal>
>                         </goals>
>                         <configuration>
>                             <shadedGroupFilter>org.apache.camel</shadedGroupFilter>
>                             <shadedArtifactAttached>false</shadedArtifactAttached>
>                             <createSourcesJar>false</createSourcesJar>
>                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
>                             <createDependencyReducedPom>true</createDependencyReducedPom>
>                             <transformers>
>                                 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                                     <resource>META-INF/spring.handlers</resource>
>                                 </transformer>
>                                 <transformer
>                                         implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                                     <resource>META-INF/spring.schemas</resource>
>                                 </transformer>
>                             </transformers>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
> and now it works properly (but now is not a osgi bundle!). I don't really know if the bundle plugin is able to append resources, but it'd be nice if we fixed this before 1.3 is released.

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


[jira] Assigned: (CAMEL-301) spring.handlers and spring.schemas are not being merged in the uberjar

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

Hadrian Zbarcea reassigned CAMEL-301:
-------------------------------------

    Assignee: Hadrian Zbarcea

> spring.handlers and spring.schemas are not being merged in the uberjar
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-301
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-301
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Victor Salaman
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>
> The build process is not merging spring.schemas and spring.handlers from the component modules, rendering some of the spring support useless. Due to this, for a while I've had to use the individual jars, and all the repetitive maven dependency exclusions in the POM are just insane! 
> Therefore I've replaced maven-bundle-plugin locally with maven-shade-plugin (now that beta-1 is released!) such as:
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-shade-plugin</artifactId>
>                 <version>1.0-beta-1</version>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>shade</goal>
>                         </goals>
>                         <configuration>
>                             <shadedGroupFilter>org.apache.camel</shadedGroupFilter>
>                             <shadedArtifactAttached>false</shadedArtifactAttached>
>                             <createSourcesJar>false</createSourcesJar>
>                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
>                             <createDependencyReducedPom>true</createDependencyReducedPom>
>                             <transformers>
>                                 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                                     <resource>META-INF/spring.handlers</resource>
>                                 </transformer>
>                                 <transformer
>                                         implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                                     <resource>META-INF/spring.schemas</resource>
>                                 </transformer>
>                             </transformers>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
> and now it works properly (but now is not a osgi bundle!). I don't really know if the bundle plugin is able to append resources, but it'd be nice if we fixed this before 1.3 is released.

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


[jira] Commented: (CAMEL-301) spring.handlers and spring.schemas are not being merged in the uberjar

Posted by "Victor Salaman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41097#action_41097 ] 

Victor Salaman commented on CAMEL-301:
--------------------------------------

By adding a new transformer this also fixes CAMEL-268 issue:

                                <transformer
                                        implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>META-INF/services/org/apache/camel/TypeConverter</resource>
                                </transformer>


> spring.handlers and spring.schemas are not being merged in the uberjar
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-301
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-301
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Victor Salaman
>            Priority: Minor
>
> The build process is not merging spring.schemas and spring.handlers from the component modules, rendering some of the spring support useless. Due to this, for a while I've had to use the individual jars, and all the repetitive maven dependency exclusions in the POM are just insane! 
> Therefore I've replaced maven-bundle-plugin locally with maven-shade-plugin (now that beta-1 is released!) such as:
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-shade-plugin</artifactId>
>                 <version>1.0-beta-1</version>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>shade</goal>
>                         </goals>
>                         <configuration>
>                             <shadedGroupFilter>org.apache.camel</shadedGroupFilter>
>                             <shadedArtifactAttached>false</shadedArtifactAttached>
>                             <createSourcesJar>false</createSourcesJar>
>                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
>                             <createDependencyReducedPom>true</createDependencyReducedPom>
>                             <transformers>
>                                 <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                                     <resource>META-INF/spring.handlers</resource>
>                                 </transformer>
>                                 <transformer
>                                         implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                                     <resource>META-INF/spring.schemas</resource>
>                                 </transformer>
>                             </transformers>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
> and now it works properly (but now is not a osgi bundle!). I don't really know if the bundle plugin is able to append resources, but it'd be nice if we fixed this before 1.3 is released.

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