Re: [mevenide-user] Run a jar with config files.

Magne Nordtveit <magne.nordtveit-4fgah/[email protected]> Tue, 20 May 2008 08:21:15 +0200
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Organization Offshore Simulator Centre AS
Message-ID <1211264475.7431.0.camel@osc-magne>
To refine my question; How can I make mevenide 3.1.1 do what mevenide
3.0.x did for running jars within netbeans?

Cheers,
Magne

On Mon, 2008-05-19 at 15:00 +0200, Magne Nordtveit wrote:
> 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
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email