Struggling with maven build on a hello world SwitchYard project
tungtd Oct 3, 2014 6:03 AMHi everyone,
I'm totally new to SwitchYard. I'm using JBoss Developer Studio. I can't use maven to build the empty SwitchYard project was created by JBoss Developer Studio.
This is my pom.xml file
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.switchyard</groupId> <artifactId>soap-hello-switchyard-jms</artifactId> <version>0.0.1-SNAPSHOT</version> <name>com.example.switchyard:soap-hello-switchyard-jms</name> <properties> <switchyard.version>1.1.1-p5-redhat-1</switchyard.version> </properties> <dependencies> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-bean</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-bpel</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-core</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-file</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-ftp</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-http</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-jca</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-jms</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-jpa</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-mail</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-netty</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-resteasy</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-sca</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-quartz</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-soap</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-camel-sql</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-test-mixin-hornetq</artifactId> <version>${switchyard.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-test-mixin-http</artifactId> <version>${switchyard.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-test-mixin-naming</artifactId> <version>${switchyard.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-test-mixin-smooks</artifactId> <version>${switchyard.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.switchyard</groupId> <artifactId>switchyard-api</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard</groupId> <artifactId>switchyard-transform</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard</groupId> <artifactId>switchyard-validate</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard</groupId> <artifactId>switchyard-plugin</artifactId> <version>${switchyard.version}</version> </dependency> <dependency> <groupId>org.switchyard</groupId> <artifactId>switchyard-test</artifactId> <version>${switchyard.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.switchyard.components</groupId> <artifactId>switchyard-component-test-mixin-cdi</artifactId> <version>${switchyard.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.switchyard</groupId> <artifactId>switchyard-plugin</artifactId> <version>${switchyard.version}</version> <executions> <execution> <goals> <goal>configure</goal> </goals> </execution> </executions> <configuration> <scannerClassNames> <param>org.switchyard.transform.config.model.TransformSwitchYardScanner</param> </scannerClassNames> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <debug>true</debug> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> </configuration> </plugin> </plugins> </build> </project>
The mvn commands always get failure:
The following artifacts could not be resolved: org.jboss.web:jbossweb:jar:7.0.16.Final, com.sun.xml.bind:jaxb-impl:jar:2.2.5-redhat-4: Failure to find org.jboss.web:jbossweb:jar:7.0.16.Final in http://maven.repository.redhat.com/techpreview/all/ was cached in the local repository, resolution will not be reattempted until the update interval of redhat-techpreview-all-repository has elapsed or updates are forced -> [Help 1]
I was try to delete the artifact's folder and run mvn clean test -U but that does not work. I try on another machine as well. Neither do they work.
Please help me solve this!
Thanks,