[ 
http://jira.codehaus.org/browse/MRPM-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228163#action_228163
 ] 

Robert Munteanu commented on MRPM-78:
-------------------------------------

In reply to comment #8:
> I am a bit confused. How can you need the dependencies to run in the IDE, but
> not in the RPM?

The IDE situation is straightforward - all dependencies needed, so I won't 
insist on that.

As for the RPM, I will try and outline the situation:

# we have a base 'container' application - application-server like; it is 
deployed as an RPM, and includes all its dependencies;
# we have an 'programs' application - you can think of them as EJBs; they are 
deployed as an RPM, which puts the 'programs' dependencies where the 
'container' expects them to be.

If I enable transitive dependencies of the 'container' when imported in the 
'programs', they will be deployed once per RPM. That is not all that bad, but 
if they specify different dependency versions, then the jars will be present 
twice, and all classpath hell will be upon us.

That's why I exclude all the transitive dependencies manually _just in the RPM_.

> Another option would be to separate out the rpm as its own project (instead 
> of a
> secondary artifact). This approach more closely follows maven's idea of one
> project = one artifact. This also might simplify your dependency picture.

So that would allow me to control the dependency using the standard 
build/dependendencies/dependency tag, right? But I still won't have a simple 
'excludeTransitive' setting IIRC.

> As far as I can tell, the rpm-maven-plugin matches the functionality of other
> assembly type plugins (such as war, assembly, etc.) for resolving and 
> including
> dependencies (direct and transitive). I am not inclined to re-invent the wheel
> here. Especially since the desired outcome can be achieved in multiple ways
> (with various levels of effort).

True, I understand that. If you prefer to close this issue, feel free to do so 
and thank you for your help.


> Option to exclude transitive dependencies of an excluded artifact
> -----------------------------------------------------------------
>
>                 Key: MRPM-78
>                 URL: http://jira.codehaus.org/browse/MRPM-78
>             Project: Mojo RPM Plugin
>          Issue Type: Improvement
>          Components: rpm
>    Affects Versions: 2.0.1
>            Reporter: Robert Munteanu
>            Assignee: Brett Okken
>
> For the moment it is not possible to filter out a dependency and all its 
> transitive dependencies. This is useful when I try to 'combine' classpaths 
> from two RPMs, and I want to make sure that they don't clash.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to