[mevenide-user] Run a jar with config files.
Magne Nordtveit <magne.nordtveit-4fgah/[email protected]> Mon, 19 May 2008 15:00:50 +0200
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Organization | Offshore Simulator Centre AS |
| Message-ID | <1211202050.11589.11.camel@osc-magne> |
I have a configuration project, packaged into a jar. This jar is used by
multiple projects and resource filtered based on difference between the
projects that uses them.
The way I have solved this is as following:
By activating a profile (which is defined in a parent pom for the
sub-modules that needs the configuration) maven does the following for
me now:
1. maven-dependency-plugin is bound to generate-resources and downloads
the configuration project, and unpacks it.
2. maven-resources-plugin performs resource filtering on the
configuration files, and places them in target/configuration.
3. maven-assembly-plugin is bound to package phase, and takes the libs
needed and places them in target/project-1.0-SNAPSHOT.dir/lib. The
configuration files, and places them in
target/project-1.0-SNAPSHOT.dir/config and the project-1.0-SNAPSHOT.jar
in target/project-1.0-SNAPSHOT.dir/
So far so good, but how do I tell netbeans that it should execute
run:jar on the jar file with classpathprefix lib/? And is it possible to
activate that as well through a profile?
Magne
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email