I seems that this plugin is used for executables, projects with a main.  My
project is deployed to a webapp that is developed by another company.  And I
don't want to mix our project with theirs (we don't have much control over
their project).  So my plan is:

1 install their project (a webapp)
2 build our project and create a zip containing the project's JAR, the
dependencies, and configuration files
3 deploy our project to the webapp

I'm stuck on 2.  I have it done but the only problem is all my dependencies
are in the binary distribution:

  <postGoal
    name="dist:prepare-bin-filesystem">
    <deploy:copy-deps
todir="${maven.build.dir}/${pom.artifactId}-${pom.currentVersion}/bin/${pom.
artifactId}-${pom.currentVersion}/lib"/>
    <ant:copy
todir="${maven.build.dir}/${pom.artifactId}-${pom.currentVersion}/bin/${pom.
artifactId}-${pom.currentVersion}/conf">
      <ant:fileset dir="${basedir}/src/conf.dist.integ"/>
      <ant:fileset dir="${basedir}/src/conf.dist.dev"/>
    </ant:copy>
  </postGoal>

Thanks
Michael

> -----Message d'origine-----
> De : Carlos Sanchez [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 27 mai 2004 00:38
> À : 'Maven Users List'; [EMAIL PROTECTED]
> Objet : RE: Including dependencies and configuration files in JAR
> distributions
>
>
> Have you tried uberjar plugin?
> http://maven.apache.org/reference/plugins/uberjar/
>
> Carlos Sanchez
> A Coruña, Spain
>
> Oness Project
> http://oness.sourceforge.net
>
>
> > -----Original Message-----
> > From: Michael Mattox [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, May 26, 2004 11:07 PM
> > To: Maven Users List
> > Subject: Including dependencies and configuration files in
> > JAR distributions
> >
> > I'm using Maven to create distributions for several of our
> > projects.  I'm curious how people are including dependencies
> > and configuration files in their distributions?  So far I'm
> > using a postGoal on the prepare-bin-filesystem goal with a
> > copy dependencies (I forgot the tag).
> > This copies ALL my JAR files.  My project needs websphere's
> > j2ee.jar to compile and run the unit tests, however I don't
> > want to distribute this jar with my project.  But I do want
> > to distribute the other jars.  I know the WAR plugin lets you
> > set properties on the dependencies so they will be included
> > or not, but I haven't found this feature for a JAR distribution.
> >
> > Also I have configuration files that I need to distribute.
> > This is easier because I've separated them into different
> > directories (src/conf.test and src/conf.dist).
> >
> > Any "best practices" here?  Any Maven features that can help me out?
> >
> > Thanks,
> > Michael
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>


--
This E-mail is confidential.  It may also be legally privileged.  If you are
not the addressee you may not copy, forward, disclose or use any part of it.
If you have received this message in error, please delete it and all copies
from your system and notify the sender immediately by return E-mail.
Internet communications cannot be guaranteed to be timely, secure, error or
virus-free.  The sender does not accept liability for any errors or omissions.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to