JBI Maven plugin is unable to manage several SU based on the same component in 
the same SA
------------------------------------------------------------------------------------------

                 Key: SM-1906
                 URL: https://issues.apache.org/activemq/browse/SM-1906
             Project: ServiceMix
          Issue Type: Bug
          Components: tooling
            Reporter: Jean-Baptiste Onofré


I have a SA composed by the following SU:
- SU1 based on CXF-SE component
- SU2 based on CXF-SE component
- SU3 based on HTTP component

Using JBI Maven plugin 4.0, I have no problem to build this SA:
mvn install
[...]
[INFO] Determining component name for service unit note-service-bos-su
[INFO] Project MavenProject: 
org.apache.servicemix:servicemix-cxf-se:2009.01.1-fsb-SNAPSHOT @  packaged 
jbi-component
[INFO] Determining component name for service unit note-service-ff-su
[INFO] Project MavenProject: 
org.apache.servicemix:servicemix-cxf-se:2009.01.1-fsb-SNAPSHOT @  packaged 
jbi-component
[INFO] Determining component name for service unit note-service-http-listener-su
[INFO] Project MavenProject: 
org.apache.servicemix:servicemix-http:2009.01.1-fsb-SNAPSHOT @  packaged 
jbi-component
[INFO] [jbi:generate-depends-file {execution: default-generate-depends-file}]
[INFO] Created: 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/target/classes/META-INF/maven/dependencies.properties
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (ISO-8859-1 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/src/main/resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (ISO-8859-1 actually) to copy filtered 
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jbi:jbi-service-assembly {execution: default-jbi-service-assembly}]
[INFO] Generating service assembly 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/target/note-service-sa-2009.3.00.rc3-SNAPSHOT.zip
[INFO] Building jar: 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/target/note-service-sa-2009.3.00.rc3-SNAPSHOT.zip
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/target/note-service-sa-2009.3.00.rc3-SNAPSHOT.jar
[INFO] [install:install {execution: default-install}]
[INFO] Installing 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/target/note-service-sa-2009.3.00.rc3-SNAPSHOT.jar
 to 
/home/jb/.m2/repository/com/fimasys/fsb/profinance/services/note-service/note-service-sa/2009.3.00.rc3-SNAPSHOT/note-service-sa-2009.3.00.rc3-SNAPSHOT.zip
[INFO] Installing 
/home/jb/workspace/pf-fsb-services/note-service/note-service-sa/target/note-service-sa-2009.3.00.rc3-SNAPSHOT.zip
 to 
/home/jb/.m2/repository/com/fimasys/fsb/profinance/services/note-service/note-service-sa/2009.3.00.rc3-SNAPSHOT/note-service-sa-2009.3.00.rc3-SNAPSHOT.zip
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------


Now, using JBI Maven plugin 4.1, I have the following error:

[INFO] Generating jbi.xml
[INFO] Determining component name for service unit note-service-bos-su
[INFO] Project MavenProject: commons-lang:commons-lang:2.1 @  packaged jar
[INFO] Project MavenProject: org.springframework:spring-context:2.5.6 @  
packaged jar
[INFO] Project MavenProject: commons-beanutils:commons-beanutils-core:1.7.0 @  
packaged jar
[INFO] Project MavenProject: 
org.apache.servicemix:servicemix-cxf-se:2009.01.1-fsb-SNAPSHOT @  packaged 
jbi-component
[INFO] Determining component name for service unit note-service-ff-su
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The service unit note-service-ff-su does not have a dependency which is 
packaged as a jbi-component or a project property 'componentName'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------


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

Reply via email to