Re: Use assembly and deploy togeather

2008-04-08 Thread Michael Mühlebach
I tried it with this command but my problem is the created zip file
does not contain the deployed jar file. It still has a -SNAPSHOT
postfix which is quite ugly.


On Tue, Apr 8, 2008 at 1:44 AM, Luke Daley [EMAIL PROTECTED] wrote:


  On 07/04/2008, at 11:14 PM, Michael Mühlebach wrote:


  I want to create an assembly and deploy it but I have some troubles with
 it.
 
  I tried it with the command:
 
  mvn assembly:single deploy
 
  I got almost what I expected except: All artifacts from my project,
  including the one I executed maven for, are snapshot versions! (have
  the classifier -SNAPSHOT instead of a build date and number).
  What have I done wrong or did I misunderstand the assembly/deploy build
 cycle?!
 

  I am not sure exactly what you are trying to do, but if you are trying to
 create another build artifact (such as a distribution zip or something) and
 have it deployed along side your built jars (or whatever) then you might
 want to look at the assembly:attached goal.

  http://maven.apache.org/plugins/maven-assembly-plugin/attached-mojo.html

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



Re: Use assembly and deploy togeather

2008-04-08 Thread Luke Daley


On 08/04/2008, at 5:15 PM, Michael Mühlebach wrote:


I tried it with this command but my problem is the created zip file
does not contain the deployed jar file. It still has a -SNAPSHOT
postfix which is quite ugly.

On Tue, Apr 8, 2008 at 1:44 AM, Luke Daley [EMAIL PROTECTED] wrote:

 On 07/04/2008, at 11:14 PM, Michael Mühlebach wrote:
I want to create an assembly and deploy it but I have some  
troubles with

it.


I tried it with the command:

mvn assembly:single deploy

I got almost what I expected except: All artifacts from my project,
including the one I executed maven for, are snapshot versions! (have
the classifier -SNAPSHOT instead of a build date and number).
What have I done wrong or did I misunderstand the assembly/deploy  
build

cycle?!



 I am not sure exactly what you are trying to do, but if you are  
trying to
create another build artifact (such as a distribution zip or  
something) and
have it deployed along side your built jars (or whatever) then you  
might

want to look at the assembly:attached goal.

 http://maven.apache.org/plugins/maven-assembly-plugin/attached- 
mojo.html


The name of the built assembly is defined by…

http://maven.apache.org/plugins/maven-assembly-plugin/single- 
mojo.html#finalName


That documentation says that the default value for that is $ 
{project.build.finalName} which if you look at the maven model…


http://maven.apache.org/ref/2.0.8/maven-model/ 
maven.html#class_build(look for finalName)


Is ${artifactId}-${version}. You are building something with a  
version of SNAPSHOT which has special significance with maven projects.


You mention build date and number, there is no reason you couldn't do  
that by specifying the finalName parameter in the configuration of  
your assembly:single execution. Maven doesn't support build numbers  
out of the box (AFAIK), but there is a plugin http:// 
commons.ucalgary.ca/projects/maven-buildnumber-plugin/ 
introduction.html.


LD.








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



Re: Use assembly and deploy togeather

2008-04-07 Thread Luke Daley


On 07/04/2008, at 11:14 PM, Michael Mühlebach wrote:

I want to create an assembly and deploy it but I have some troubles  
with it.


I tried it with the command:

mvn assembly:single deploy

I got almost what I expected except: All artifacts from my project,
including the one I executed maven for, are snapshot versions! (have
the classifier -SNAPSHOT instead of a build date and number).
What have I done wrong or did I misunderstand the assembly/deploy  
build cycle?!


I am not sure exactly what you are trying to do, but if you are  
trying to create another build artifact (such as a distribution zip  
or something) and have it deployed along side your built jars (or  
whatever) then you might want to look at the assembly:attached goal.


http://maven.apache.org/plugins/maven-assembly-plugin/attached-mojo.html

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