NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
clebaudy
Joined: 06 Oct 2009 Posts: 34
|
Posted: Tue Mar 02, 2010 10:13 am Post subject: maven set/change filename of output application.zip with packaging nbm-application |
|
|
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
|
Posted: Tue Mar 02, 2010 10:24 am Post subject: |
|
|
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.
|
Posted: Tue Mar 02, 2010 12:37 pm Post subject: [platform-dev] Re: maven set/change filename of output application.zip with packaging nbm-application |
|
|
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 |
|
 |
|
|
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
|
|