JBoss Community

Re: EAP6.1/JBoss7 Snowdrop and Camel

created by dako ak in Snowdrop - View the full discussion

Thank you for your help. The dependencies are not in scope provided, but I add no classpath entries to my jar. Thats my pom.xml:

 

<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>

 

    <groupId>de.mycompany.myspringcamel</groupId>

    <artifactId>myspringcamel</artifactId>

    <packaging>jar</packaging>

    <version>1.0</version>

    <name>MySpringCamel</name>

 

    <properties>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <camel.version>2.10.0</camel.version>

        <spring.version>3.0.5.RELEASE</spring.version>

    </properties>

 

    <dependencies>

 

        <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>slf4j-log4j12</artifactId>

            <version>1.5.11</version>

        </dependency>

 

        <dependency>

            <groupId>org.springframework</groupId>

            <artifactId>spring-core</artifactId>

            <version>${spring.version}</version>

        </dependency>

 

        <dependency>

            <groupId>org.springframework</groupId>

            <artifactId>spring-context</artifactId>

            <version>${spring.version}</version>

        </dependency>

 

        <dependency>

            <groupId>org.springframework.security</groupId>

            <artifactId>spring-security-config</artifactId>

            <version>${spring.version}</version>

        </dependency>

 

        <dependency>

            <groupId>org.apache.camel</groupId>

            <artifactId>camel-core</artifactId>

            <version>${camel.version}</version>

        </dependency>

 

        <dependency>

            <groupId>org.apache.camel</groupId>

            <artifactId>camel-spring</artifactId>

            <version>${camel.version}</version>

        </dependency>

 

    </dependencies>

 

    <build>

        <plugins>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-compiler-plugin</artifactId>

                <version>2.3.2</version>

                <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                </configuration>

            </plugin>

 

            <plugin>

                <artifactId>maven-clean-plugin</artifactId>

                <version>2.2</version>

                <executions>

                    <execution>

                        <phase>initialize</phase>

                        <goals>

                            <goal>clean</goal>

                        </goals>

                    </execution>

                </executions>

            </plugin>

 

            <plugin>

                <artifactId>maven-jar-plugin</artifactId>

                <configuration>

                    <finalName>MySpringCamel</finalName>

 

                    <outputDirectory>createdJar</outputDirectory>

 

                    <archive>

                        <addMavenDescriptor>false</addMavenDescriptor>

                    </archive>

                </configuration>

            </plugin>

 

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-dependency-plugin</artifactId>

                <executions>

                    <execution>

                        <id>copy-dependencies</id>

                        <phase>package</phase>

                        <goals>

                            <goal>copy-dependencies</goal>

                        </goals>

                        <configuration>

                            <outputDirectory>createdJar/lib</outputDirectory>

                            <overWriteReleases>false</overWriteReleases>

                            <overWriteSnapshots>true</overWriteSnapshots>

                        </configuration>

                    </execution>

                </executions>

            </plugin>

 

        </plugins>

       

    </build>

 

</project>

Reply to this message by going to Community

Start a new discussion in Snowdrop at Community