Problem with the "mvn test" command missing EJB client jar artifact
Arun Merum
Greenhorn
Joined: Aug 31, 2010
Posts: 7
posted
0
Hi,
I have a multi module project where in my webModule depends on the ejbModule's ejb-client jar file.
While the mvn package and mvn release commands seem to be okay, mvn test gives me the cannot-find-the-artifact error that too after running all the test cases.
However if I modify the dependency type from ejb-client to client in the webModule's pom.xml file, the mvn test command works fine. But even with the mvn surefire-report report command would give me the cannot-find-the-artifact error for the ejbModule.
I had had enough googling and donno what to do. Is there anybody who had faced this error before? Thanks in advance.
Webmodule's pom.xml file
ejbModule's pom.xml file
parent pom.xml file
Regards,
Arun
This message was edited 1 time. Last update was at by Arun Merum
OK, the best thing to do is to read the free online PDF "Maven the Definitive Guide" by Sonatype (who have many Maven core committers working for them).
In particular take a look at what the different scopes mean (compile, test, provided etc).
Hint: You might need to change one of the compile scopes to a runtime scope....
Arun Merum
Greenhorn
Joined: Aug 31, 2010
Posts: 7
posted
0
Hi,
Anyways thanks for your concern. I am done with my analysis with the scopes and the maven complete guide book. I had tried setting the scope of the ejb-client to test, runtime, provided and compile but without success.
Merci beaucoup
Arun
This message was edited 1 time. Last update was at by Arun Merum
Arun Merum
Greenhorn
Joined: Aug 31, 2010
Posts: 7
posted
0
Hi,
Anyways thanks for your concern. I am done with my analysis with the scopes and the maven complete guide book. I had tried setting the scope of the ejb-client to test, runtime, provided and compile but without success.
Merci beaucoup
Arun
subject: Problem with the "mvn test" command missing EJB client jar artifact