You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Karl Gierach <ka...@sourcethought.com> on 2013/08/29 20:07:48 UTC

adding directories to maven exec runtime classpath?

Greetings!

I had a question regarding adding 2 well known "directories" to the runtime classpath of the Exec Maven Plugin for the exec:exec action.

I had found some tips that ultimately don't work in this case wherein a "directory" being added to the class path is a requirement.

The various things I've tried, which don't work are:
1) tried package up the contents of these 2 directories as resources.  this didn't work and it really is not a real feasible long term solution for my problem anyway.  this involved trying to use the "build-helper-maven-plugin"
2) tried to add to the "maven-surefire-plugin" some <additionalClasspathElements> entries.  this had no effect.
3) tried adding 2 <executableDependency> elements underneath the exec-maven-plugin's <configuration> area.  This won't work because these executableDependencies are assumed to be normal Maven dependencies, of which the type 'directory' is not supported [as far as I can tell].

I'm looking for advice on what my next steps should be in order to get this working.  Are there any other known techniques, or do we need to patch the exec plugin code? (I'm certainly willing to give that a shot if that's required).

Sincerely,
Karl Gierach


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: adding directories to maven exec runtime classpath?

Posted by Wayne Fay <wa...@gmail.com>.
> I had a question regarding adding 2 well known "directories" to the runtime
> classpath of the Exec Maven Plugin for the exec:exec action.
>
> I had found some tips that ultimately don't work in this case wherein a
> "directory" being added to the class path is a requirement.

I might suggest using the Assembly plugin instead of exec-m-p. It has
a notion of FileSets and knows about directories in addition to
dependencies etc.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org