Re: [m2] Copying dependencies to target/lib as individual files?

2005-10-27 Thread Roland Bali
Hi Alexander,

I hope I understand your question correctly. I had a problem when
packaging my software where I wanted Maven to put my jar in a certain
folder and add all the dependency JARs to a folder so I would have a
complete folder with all the stuff needed for the program.

Anyway I developed a plugin that does that, try it out and see if it
suits your needs. The XML below is from my project where I use the
plugin, it is executed when running the package phase, change this so
it works for you.

1. Add my repository to your pom:
  pluginRepositories
pluginRepository
  idbuckazoid-repo/id
  nameMaven repository at buckazoid.com/name
  urlhttp://www.buckazoid.com/maven/repository/url
/pluginRepository
  /pluginRepositories

2. Add the plugin to your build in the pom:

  plugin
groupIdcom.buckazoid.maven.mojos/groupId
artifactIddependency-copier-plugin/artifactId
version1.1/version
configuration
  
outputDirectory${project.build.directory}/install//lib/outputDirectory
/configuration
executions
  execution
   phasepackage/phase
goals
  goalcopy/goal
/goals
  /execution
/executions
  /plugin


Kind regards,

Roland

On 10/26/05, Alexander Hars [EMAIL PROTECTED] wrote:
 Hi,

 I need to obtain the individual .jar files from the dependency list and
 place each of them into a folder target/lib (for further processing).
 Combining all of the dependencies in one .zip or .jar file does not help.
 Can I do this with the assembly plugin, e.g. through some special
 non-zip/jar format? Or is there another way?

 Thanks for your help.

 - Alexander





 -
 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]



[m2] Copying dependencies to target/lib as individual files?

2005-10-26 Thread Alexander Hars

Hi,

I need to obtain the individual .jar files from the dependency list and 
place each of them into a folder target/lib (for further processing).

Combining all of the dependencies in one .zip or .jar file does not help.
Can I do this with the assembly plugin, e.g. through some special 
non-zip/jar format? Or is there another way?


Thanks for your help.

- Alexander





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



Re: [m2] Copying dependencies to target/lib as individual files?

2005-10-26 Thread Brian Bonner
Can you do this with a parent jar project that depends on those
modules.  This sounds like a multi module project.  Or perhaps a
project on the same level with module dependencies.

Search for multiproject on http://www.nabble.com/Maven---Users-f178.html

Brian
On 10/26/05, Alexander Hars [EMAIL PROTECTED] wrote:
 Hi,

 I need to obtain the individual .jar files from the dependency list and
 place each of them into a folder target/lib (for further processing).
 Combining all of the dependencies in one .zip or .jar file does not help.
 Can I do this with the assembly plugin, e.g. through some special
 non-zip/jar format? Or is there another way?

 Thanks for your help.

 - Alexander





 -
 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]