L.S., Not sure what the problem is, but from the stacktrace it looks like the plugin is failing to determine the correct name of the file for the service unit in the local Maven repository. Could you run a "mvn -version" so we get a bit more information about your environment?
Also, I never actually used the jbi-service-unit packaging type in my own pom.xml files. Could you try removing the <type> element from the SU dependencies to see if that fixes the problem? If this doesn't help either, could you run a "mvn -X clean install" to get more logging and check if there's any additional information in there? Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/5/21 subh <[email protected]>: > > I am consistently gettng this error while i try to build my SA, can anyone > give some idea as to what am i doing wrong? > > My SA POM.xml has the following dependencies > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.apache.camel</groupId> > <artifactId>camel-core</artifactId> > <version>2.0-M1</version> > </dependency> > <dependency> > <groupId>org.apache.servicemix</groupId> > <artifactId>servicemix-core</artifactId> > <version>3.2.3</version> > </dependency> > <dependency> > <groupId>org.apache.servicemix</groupId> > <artifactId>servicemix-jbi</artifactId> > <version>3.2.3</version> > </dependency> > <dependency> > <groupId>com.fqsvc.esb</groupId> > <artifactId>eip</artifactId> > <version>0.0.1</version> > <type>jbi-service-unit</type> > <scope>compile</scope> > </dependency> > <dependency> > <groupId>com.fqsvc.esb</groupId> > <artifactId>filepoller</artifactId> > <version>0.0.1</version> > <type>jbi-service-unit</type> > <scope>compile</scope> > </dependency> > <dependency> > <groupId>com.fqsvc.esb</groupId> > <artifactId>jms</artifactId> > <version>0.0.1</version> > <type>jbi-service-unit</type> > <scope>compile</scope> > </dependency> > <dependency> > <groupId>com.fqsvc.esb</groupId> > <artifactId>restposter</artifactId> > <version>0.0.1</version> > <type>jbi-service-unit</type> > <scope>compile</scope> > </dependency> > <dependency> > <groupId>com.fqsvc.esb</groupId> > <artifactId>router</artifactId> > <version>0.0.1</version> > <type>jbi-service-unit</type> > <scope>compile</scope> > </dependency> > <dependency> > <groupId>com.fqsvc.esb</groupId> > <artifactId>email</artifactId> > <version>0.0.1</version> > <type>jbi-service-unit</type> > <scope>compile</scope> > </dependency> > </dependencies> > > ERROR log > ========== > > [INFO] Generating jbi.xml > [WARNING] POM for 'org.apache.ws.security:wss4j:pom:1.5.2:compile' is > invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 > POM. for project org.apache.ws.security:wss4j at C:\Documents and > Settings\sdasgupta\.m2\repository\org\apache\ws\security\wss4j\1.5.2\wss4j-1.5.2.pom > [WARNING] POM for 'org.apache.ws.security:wss4j:pom:1.5.2:compile' is > invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 > POM. for project org.apache.ws.security:wss4j at C:\Documents and > Settings\sdasgupta\.m2\repository\org\apache\ws\security\wss4j\1.5.2\wss4j-1.5.2.pom > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] String index out of range: -1 > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > at java.lang.String.substring(String.java:1938) > at > org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.generateJbiDescriptor(GenerateServiceAssemblyDescriptorMojo.java:212) > at > org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.execute(GenerateServiceAssemblyDescriptorMojo.java:158) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > -- > View this message in context: > http://www.nabble.com/SA-assembly-build-failing-tp23657484p23657484.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
