Skip to main content


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] Fri, 11 March 2011 02:56 Go to next message
No real name is currently offline No real nameFriend
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.
icon9.gif  Re: classifier dependency not working? [message #660087 is a reply to message #659103] Wed, 16 March 2011 18:37 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2011
Junior Member
Is this forum still active? Don't see much traffic. Sad
Re: classifier dependency not working? [message #660094 is a reply to message #659103] Wed, 16 March 2011 19:06 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 97
Registered: July 2009
Member
it might confuse Eclipse, because when a war depends on another war it
tries to do war overlay. It's better with Maven to have 2 projects, one
jar with the classes and a war depending on it

On 3/11/11 3:56 AM, aarosso@gmail.com wrote:
> 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.
Previous Topic:Dependency management with Nexus references
Next Topic:Problem with maven build for SWTBot Tests
Goto Forum:
  


Current Time: Wed Apr 24 16:46:30 GMT 2024

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top