Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » classifier dependency not working?
classifier dependency not working? [message #659103] Thu, 10 March 2011 21:56 Go to previous message
No real name is currently offline No real name
Messages: 2
Registered: March 2011
Junior Member
Hi,

I'm having problems getting a <classifier> dependency in pom.xml file to work. It works fine using maven standalone but not when using IAM/Q4E.

In one project I'm using the 'attachClasses' directive in the maven-war-plugin to create a jar file. In the repository this creates a war artifact and a jar artifact with a classifier of 'classes' (this is configurable).

In a second project (also of type war) I'm including this dependency:

<dependency>
<groupId>group</groupId>
<artifactId>project1</artifactId>
<version>1.0-SNAPSHOT</version>
<classifier>classes</classifier>
</dependency>

When I build this project using 'mvn install' it works fine. When I load the project in Eclipse it doesn't seem to bring in the dependency.

Is it possible to get this to work? If so, how can I troubleshoot. I would rather not refactor our structure to split it into 2 projects as there is no other reason to do this other than this issue.

Thanks.
 
Read Message
Read Message icon9.gif
Read Message
Previous Topic:Dependency management with Nexus references
Next Topic:Problem with maven build for SWTBot Tests
Goto Forum:
  


Current Time: Sat May 18 16:31:22 EDT 2013

Powered by FUDForum. Page generated in 0.01596 seconds