NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

maven set/change filename of output application.zip with packaging nbm-application

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
clebaudy



Joined: 06 Oct 2009
Posts: 34

PostPosted: Tue Mar 02, 2010 10:13 am    Post subject: maven set/change filename of output application.zip with packaging nbm-application Reply with quote

Hello,

anybody knows if it is possible to change and how the output filename when packaging in maven is set to : nbm-application

I tried defining :
<properties>
<project.build.finalName>myapp.zip</project.build.finalName>
</properties>

but it has no effect. To deduce that I looked to :
http://mojo.codehaus.org/nbm-maven-plugin/standalone-zip-mojo.html#brandingToken

It does not seem to be the right way. By default the application if packaged in : ${project.artifactId}-${project.version}.zip but I want to change that.

Thanks in advance.
Back to top
clebaudy



Joined: 06 Oct 2009
Posts: 34

PostPosted: Tue Mar 02, 2010 10:24 am    Post subject: Reply with quote

ok, I found it :
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<configuration>
<finalName>myApp</finalName>
</configuration>
</plugin>

It then generates a myApp.zip file, the documentation says the property should also work but it doesn't.

nevermind.
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Tue Mar 02, 2010 12:37 pm    Post subject: [platform-dev] Re: maven set/change filename of output application.zip with packaging nbm-application Reply with quote

Oh, the project.build.finalName property actually has a special resolution and binds to <project><build><finalName> xml element in the pom.xml.



Milos

On Tue, Mar 2, 2010 at 11:13 AM, clebaudy <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hello,

anybody knows if it is possible to change and how the output filename when packaging in maven is set to :  nbm-application

I tried defining :
   <properties>
       <project.build.finalName>myapp.zip</project.build.finalName>
   </properties>

but it has no effect. To deduce that I looked to :
http://mojo.codehaus.org/nbm-maven-plugin/standalone-zip-mojo.html#brandingToken

It does not seem to be the right way. By default the application if packaged in : ${project.artifactId}-${project.version}.zip but I want to change that.

Thanks in advance.




Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo