This is an interesting problem.
The reason you don't get the WAR's dependencies is because they are not
transitive because they are included in the WAR.
Is it possible to pull them fomr WEB-INF/lib? I assume you need to
remove them from there anyway.
The other alternative is to create a new packaging (something better
than skinny-war :), which is transitive and doesn't include them when
packaged.
- Brett
Mike Perham wrote:
Given an Artifact, how to I get its set of dependent artifacts?
I'm trying to modify the EAR plugin to support "skinny" WARs i.e. WARs
which have nothing in WEB-INF/lib but rather reference JARs packaged in
their parent EAR. In other to do this, I need to be able to get the
dependencies for each module. I can call project.getArtifacts() but
that only returns my WARs. How do I get the runtime dependencies for
each of those WARs so I can copy those into the EAR?
mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]