[
https://issues.apache.org/jira/browse/MNG-6162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838438#comment-15838438
]
Karl Heinz Marbaise commented on MNG-6162:
------------------------------------------
A WAR can not be used as a dependency which has transitive dependencies. Only
JAR's will work...cause a WAR is not usable on classpath...
What confused me as you say that the transitive dependencies are correctly
bundled ? Do you mean that the WAR file is included into the WAR or are you
really talking about the JAR`s? If do the same having a dependency of war into
a WAR project the dependent war is not packaged into the WAR ? Can you give an
example project for that?
> Maven dependency:tree doesn't show transitive dependencies of
> <type>war</type> dependency
> ------------------------------------------------------------------------------------------
>
> Key: MNG-6162
> URL: https://issues.apache.org/jira/browse/MNG-6162
> Project: Maven
> Issue Type: Bug
> Components: Dependencies
> Affects Versions: 3.3.9
> Reporter: Marek Gregor
>
> When I have following dependency:
> {code:xml}
> <dependency>
> <groupId>com.company.project</groupId>
> <artifactId>project-war-artifact</artifactId>
> <version>1.0-SNAPSHOT</version>
> *<type>war</type>*
> </dependency>
> {code}
> then running dependency:tree will print:
> {noformat}
> com.company.project:complete-web:war:1.0-SNAPSHOT
> [INFO] +- com.company.project:project-war-artifact:war:1.0-SNAPSHOT:compile
> [INFO] +-...
> {noformat}
> but will not show transitive dependencies of module project-war-artifact. In
> spite of this state, transitive dependencies are correctly bundled to final
> artifact (in this case complete-web.war).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)