HornetQ 2.4 standalone with REST
d.yoldov Nov 10, 2014 5:44 AMHi!
I'm following the instructions to generate a HornetQ 2.4.0 with REST webapp to be deployed on a servlet container. I'm using the POM provided in the docs:
<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>org.somebody</groupId> <artifactId>myapp</artifactId> <packaging>war</packaging> <name>My App</name> <version>0.1-SNAPSHOT</version> <repositories> <repository> <id>jboss</id> <url>http://repository.jboss.org/nexus/content/groups/public/</url> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.hornetq</groupId> <artifactId>hornetq-core</artifactId> <version>2.3.0-SNAPSHOT</version> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty</artifactId> <version>3.4.5.Final</version> </dependency> <dependency> <groupId>org.hornetq</groupId> <artifactId>hornetq-jms</artifactId> <version>2.3.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.jboss.spec.javax.jms</groupId> <artifactId>jboss-jms-api_2.0_spec</artifactId> <version>1.0.0.Final</version> </dependency> <dependency> <groupId>org.hornetq.rest</groupId> <artifactId>hornetq-rest</artifactId> <version>2.3.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-jaxrs</artifactId> <version>2.3.4.Final</version> </dependency> <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-jaxb-provider</artifactId> <version>2.3.4.Final</version> </dependency> </dependencies> </project>
Trying to build it with Maven , I get :
Downloading: http://repository.jboss.org/nexus/content/groups/public/org/hornetq
/hornetq-core/2.3.0-SNAPSHOT/hornetq-core-2.3.0-SNAPSHOT.pom
[WARNING] The POM for org.hornetq:hornetq-core:jar:2.3.0-SNAPSHOT is missing, no
dependency information available.
and then :
[ERROR] Failed to execute goal on project myapp: Could not resolve dependen
cies for project org.somebody:myap:war:1.0: The following artifacts could
not be resolved: org.hornetq:hornetq-core:jar:2.3.0-SNAPSHOT, org.hornetq:hornet
q-jms:jar:2.3.0-SNAPSHOT, org.hornetq.rest:hornetq-rest:jar:2.3.0-SNAPSHOT: Coul
d not find artifact org.hornetq:hornetq-core:jar:2.3.0-SNAPSHOT in jboss (http:/
/repository.jboss.org/nexus/content/groups/public/) -> [Help 1]
I realize this may be a problem with Maven, but because it seems that the 2.3.0-SNAPSHOT really doesn't exist on the repo, I've decided to ask. I've tried running Maven with -U, but this didn't change anything. Can you guys help me find out what I'm missing ?
Also - what is the reason for the hornetq-jms-core and hornetq-jms-rest jars to be version 2.3.0-SNAPSHOT ? Shouldn't they match HornetQ's version - 2.4.0Final ?
If I manage to build it, would it be compatible with HornetQ 2.4.0 consumers ?
Thanks in advance,
Dimitar