you can also...

  try running mvn site:site, it will generate a documentation site for
your webapp project.
  check the link Project Documentation -> Dependencies, for the
dependency tree.

  the new war plugin ( 2.1-SNAPSHOT ) only includes the dependencies
with a runtime scope,
  you can exclude dependencies from being included to the war by
changing the scope to
  compile or test.

  as for the war plugin documentation, there's a new one in the trunk. I
hope it's more
  informative than the current one. You can wait for a couple of days
for the maven site
  to be updated or you can get it from the trunk and generate the site
for it. =)
 
   svn -co
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-war-plugin
war-plugin
   mvn site:site 
  
   the generated site is under "target/site", look for the index.html
there.
  

pete marvin



Adam Hardy wrote:
> Bob Arnott on 04/07/06 14:57, wrote:
>> I'm currently in Maven dependency hell, with a WAR file that is huge
>> due to loads of useless third party library dependencies. 
>
> Generally speaking, you should be able to dig your way out of this
> dependency hell. Are you sure that you have given all your
> dependencies the correct scope? For instance, any jars needed only for
> testing, or which are supplied by the appserver should be marked so
> with the scope tag.
> Secondly, when using big framework jars such as spring.jar, try using
> just the deconstructed modular jars you need (if they are provided)
> rather than the whole kit and caboodle.
>
>> P.S. Is there a tool to show me where all the dependencies come form...?
>> i.e. a graphing tool or something that shows what is a dependency of
>> what.
>
> Run mvn -X package and look at the indented references to jars. Each
> main dependency starts on the left and for each transitive dependency,
> a new line with an indentation is added.
>
> Hope that helps,
> Adam
>
> ---------------------------------------------------------------------
> 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]

Reply via email to