Dimitris Papangelis [
https://community.jboss.org/people/papangdim] created the discussion
"Bom's dependencies not picked up when running test phase in maven"
To view the discussion, visit:
https://community.jboss.org/message/756792#756792
--------------------------------------------------------------
Hi there,
I have been trying for quite some time now to get jms to work after migrating from as5 to
as7. After looking up at the as7 quickstarts (helloworld-jms) i managed to make it work.
The fact that i was based on the quickstarts means that i added the bom in my
project's pom as well.
The bom looks llike that:
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-jms-client-bom</artifactId>
<version>7.1.1.Final</version>
<type>pom</type>
</dependency>
Everything works fine and my project can build and run with no problem at, but I recently
started running the fest GUI tests that I have written and i get a ClassNotFoundException
in org.jnp.interfaces.NamingContextFactory. I know that this comes from the
quickstart's bom which means that during maven's test phase it doesnt get picked
up in order to provide me with the classes that are needed. I (think) i confirmed this by
adding jbossall-client as a dependency and that works fine with the tests. I also tried
adding <scope>test</scope> in the bom and it doesnt seem to work either.
Any ideas?
thanks D.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/756792#756792]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]