[ https://jira.codehaus.org/browse/MNG-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shane StClair updated MNG-1991:
-------------------------------
Attachment: war-deps.tar
Comment duplicated on MWAR-253, but example project is also relevant here so I'll cross-post.
Example project attached (also at https://github.com/srstclair/war-deps) shows the current
behavior, meaning that transitive dependencies of the war dependency are not available on
the classpath (the war-deps-via-war module's tests fail). I agree that transitive dependencies
should be resolved for war dependencies.
Currently the best workaround I can come up with is to declare a second dependency on the
war's pom, which does add transitive dependencies to the classpath (see war-deps-overlay).
Is that the recommended approach?
> Can't get transitive dependencies from a war pom when this war is added as a depdency
of a project
> --------------------------------------------------------------------------------------------------
>
> Key: MNG-1991
> URL: https://jira.codehaus.org/browse/MNG-1991
> Project: Maven
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 2.0.2
> Reporter: Emmanuel Venisse
> Attachments: war-deps.tar
>
>
> I have a project (continuum-core-it) that need to use all transitive dependencies of
a war (continuum-webapp). If i add the war as a dependency of the project with packaging war,
war dependencies aren't shown by project, maven doesn't try to resolve them and doesn't add
them in classpath.
> If if replace packaging from war to pom, all dependencies are resolved and added to classpath.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)
|