RE: assembly plugin jar-with-dependencies - how to refer to artifact name later?

2014-01-02 Thread Jim Garrison
> -Original Message-
> From: Ron Wheeler [mailto:rwhee...@artifact-software.com]
> Sent: Thursday, January 02, 2014 2:24 PM
> To: users@maven.apache.org
> Subject: Re: assembly plugin jar-with-dependencies - how to refer to artifact
> name later?
> 
> Why does the name change?
> What is the variable portion?
> 
> Ron
> On 02/01/2014 3:05 PM, Jim Garrison wrote:
> > I build a jar-with-dependencies in one execution of the assembly plugin.
> >
> > In a second execution I use the assembly plugin to package a distributable
> zip, and need to substitute the name of the jar-with-dependencies output
> artifact into a script file that launches the program.
> >
> > Does the assembly plugin put the output artifact name into the
> environment so it can be substituted later? If so, what is the variable name?
> If not, is there another way to accomplish this?
> >
> > Assembly plugin configuration:
> >
> >
> >  maven-assembly-plugin
> >  2.4
> >  
> >
> >  make-jwd 
> >  package 
> >  
> >
> >  jar-with-dependencies
> >
> >
> >  
> >org.nwea.jhg.dbextract.Driver
> >  
> >
> >  
> >  
> >single
> >  
> >
> >
> >  make-zip 
> >  package 
> >  
> >
> >  src/main/assembly/zip.xml
> >
> >  
> >  
> >single
> >  
> >
> >  
> >
> >
> > Assembly descriptor:
> >
> > http://maven.apache.org/plugins/maven-assembly-
> plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance"
> >xsi:schemaLocation="http://maven.apache.org/plugins/maven-
> assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-
> 1.1.2.xsd">
> >zip
> >
> >  zip
> >
> >
> >  
> >${project.basedir}/src/main/scripts
> >/
> >true
> >  
> >  
> >${project.basedir}/config
> >/
> >  
> >  
> >${project.build.directory}
> >/
> >
> >  *-jar-with-dependencies.jar
> >
> >  
> >
> > 
> >
> > File into which I wish to substitute the name of the jar-with-dependencies
> artifact:
> >
> > #!/bin/bash
> > export DBEX_CMD=dbex
> > java -jar ${what-do-i-put-here} $*
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >

I think I figured out how to do this. I just used

 ${project.build.finalName}-jar-with-dependencies.jar



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



Re: assembly plugin jar-with-dependencies - how to refer to artifact name later?

2014-01-02 Thread Ron Wheeler

Why does the name change?
What is the variable portion?

Ron
On 02/01/2014 3:05 PM, Jim Garrison wrote:

I build a jar-with-dependencies in one execution of the assembly plugin.

In a second execution I use the assembly plugin to package a distributable zip, 
and need to substitute the name of the jar-with-dependencies output artifact 
into a script file that launches the program.

Does the assembly plugin put the output artifact name into the environment so 
it can be substituted later? If so, what is the variable name? If not, is there 
another way to accomplish this?

Assembly plugin configuration:

   
 maven-assembly-plugin
 2.4
 
   
 make-jwd 
 package 
 
   
 jar-with-dependencies
   
   
 
   org.nwea.jhg.dbextract.Driver
 
   
 
 
   single
 
   
   
 make-zip 
 package 
 
   
 src/main/assembly/zip.xml
   
 
 
   single
 
   
 
   

Assembly descriptor:

http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
 http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
   zip
   
 zip
   
   
 
   ${project.basedir}/src/main/scripts
   /
   true
 
 
   ${project.basedir}/config
   /
 
 
   ${project.build.directory}
   /
   
 *-jar-with-dependencies.jar
   
 
   


File into which I wish to substitute the name of the jar-with-dependencies 
artifact:

#!/bin/bash
export DBEX_CMD=dbex
java -jar ${what-do-i-put-here} $*

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





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



assembly plugin jar-with-dependencies - how to refer to artifact name later?

2014-01-02 Thread Jim Garrison
I build a jar-with-dependencies in one execution of the assembly plugin.

In a second execution I use the assembly plugin to package a distributable zip, 
and need to substitute the name of the jar-with-dependencies output artifact 
into a script file that launches the program.  

Does the assembly plugin put the output artifact name into the environment so 
it can be substituted later? If so, what is the variable name? If not, is there 
another way to accomplish this?

Assembly plugin configuration:

  
maven-assembly-plugin
2.4

  
make-jwd 
package 

  
jar-with-dependencies
  
  

  org.nwea.jhg.dbextract.Driver

  


  single

  
  
make-zip 
package 

  
src/main/assembly/zip.xml
  


  single

  

  

Assembly descriptor:

http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
 http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
  zip
  
zip
  
  

  ${project.basedir}/src/main/scripts
  /
  true


  ${project.basedir}/config
  /


  ${project.build.directory}
  /
  
*-jar-with-dependencies.jar
  

  


File into which I wish to substitute the name of the jar-with-dependencies 
artifact:

#!/bin/bash
export DBEX_CMD=dbex
java -jar ${what-do-i-put-here} $*

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