Hi,

I have created a servicemix Service Engine with maven and my pom has
dependency(client-stubs-runtime) to a jar which I need during runtime. 
Here's my project pom
/<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <artifactId>DA-test</artifactId>
                <groupId>test.DA.implementation</groupId>
                <version>DYNAMIC-SNAPSHOT</version>
        </parent>

        <groupId>test.DA.implementation.DAServiceEngine</groupId>
        <artifactId>da-se</artifactId>
        <packaging>jbi-component</packaging>
        <version>1.0</version>
        <name>Service Engine for DA</name>

        <properties>
                <xbean-version>3.4.3</xbean-version>
                <servicemix-version>3.2.3</servicemix-version>
        </properties>

        <dependencies>
                <dependency>
                        <groupId>com.test.interface</groupId>
                        <artifactId>client-stubs-runtime</artifactId>
                        <version>2.0.8.312</version>
                        <classifier>client</classifier>
                </dependency>           
        </dependencies>
        <build>
                <resources>
                        <resource>
                                <directory>src/main/resources</directory>
                        </resource>
                </resources>
                <plugins>
                        <plugin>
                                <groupId>org.apache.servicemix.tooling</groupId>
                                <artifactId>jbi-maven-plugin</artifactId>
                                <extensions>true</extensions>
                                <version>4.5</version>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.xbean</groupId>
                                <artifactId>maven-xbean-plugin</artifactId>
                                <version>${xbean-version}</version>
                                <executions>
                                        <execution>
                                                <configuration>
                                                        <namespace>
                                                                
http://com.test.DA/1.0
                                                        </namespace>
                                                </configuration>
                                                <goals>
                                                        <goal>mapping</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
</project>
/

Here is the pom file of my dependency:
/<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.test.interface</groupId>
    <artifactId>open_modules</artifactId>
    <version>2.0.8.312</version>
  </parent>
  
   <artifactId>client-stubs-runtime</artifactId>
  <packaging>ejb</packaging>
  <name>Dummy stubs</name>

 <build>
                <plugins>
                <plugin>
                <artifactId>maven-ejb-plugin</artifactId>
                <configuration>
                    <ejbVersion>3.0</ejbVersion>
                    <generateClient>true</generateClient>
                </configuration>
            </plugin>
            <plugin>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <configuration>
                        <verbose>true</verbose>
                <compilerVersion>1.5</compilerVersion>
                        <source>1.5</source>
                        <target>1.5</target>
                      </configuration>
                </plugin>
                </plugins>
        </build>
        <dependencies>
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>javaee-api</artifactId>
            <version>5.0-2</version>
            <scope>provided</scope>
        </dependency>
                <dependency>
                        <groupId>com.test.interface</groupId>
            <artifactId>client-dummy</artifactId>
           <version>${project.version}</version>
                </dependency>
        </dependencies>
        <profiles>

                <profile>
                        <id>ejbdeploy</id>
                        <build>
                                <plugins>
                                        <plugin>
                                                
<artifactId>maven-antrun-plugin</artifactId>
                                                <executions>
                                                        <execution>
                                                                <id>create EJB 
3.0 client stubs</id>
                                                                <goals>
                                                                        
<goal>run</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
        </profiles>
</project>/

But, when I build my project, this jar is not getting packaged eventhough it
gets downloaded to my local repository. I didnt find it in the lib folder of
the generated resource. I tried giving scope as runtime for my dependency
and even that doesnt help. I need this jar only for runtime usage. 
When I try to add the same dependency for servicemix service unit, it works
fine. 

Is there a solution to this?



--
View this message in context: 
http://maven.40175.n5.nabble.com/Dependent-jars-not-packaged-in-a-servicemix-service-engine-tp5727005.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to