Maven - Windows installer plugin - java

do you know a highly configurable maven plugin for creating MS Windows installers?
The artifacts of my project are processed through a Maven Launch4j plugin, therefore I already have an executable (*.exe) file, but I need to install the other dependencies and resources as well: *.dll, images, the executable and so on. I also like to install the jre (if required), set some environment variables and so on.
Can you recomend a plugin?
Best regards.

I think you are looking for the nsis-maven-plugin
The nsis-maven-plugin enables Maven integration with the NSIS tools so
that Windows and Linux build machines can create Windows Installer
EXEs.

Related

Maven in eclipse or windows

I'm planning to create a java maven web project. I would like to know whether I have to install Maven in windows or install maven in eclipse? I'm using windows 10 and eclipse oxygen. My network has some restrictions so I would be adding a proxy in settings.xml.
I have already tried creating a maven project in eclipse with maven embedded in my eclipse, but it was giving multiple errors during jars download.
Please suggest me on which way I should proceed and which way is better, whether I should use maven in eclipse or install in windows and use?
Usually, you use the embedded Maven in Eclipse, which is part of a standard modern Eclipse installation.
If you get errors with jar downloads, this is probably an issue with your network. Whether putting a proxy in the settings.xml is enough to remedy the problem depends on you actual network.
To find out the exact network restrictions, talk to your admin.
I think you should just try use a different network to create your maven project (for example you can use tethering or ask for permission to get around those network restrictions). After that you should be able to use your maven project even offline.
An alternative would be to just download a maven project and change it to your own.
You can try installing maven:
Go to maven's website to install/configure maven for your os
Set Maven's settings.xml
Configure Maven in your eclipse, choose the installed maven rather than embedded
If your have any errors, please post them here.

What packages are required to package a DEB file in Netbeans?

I am trying to package a Java SE project with Netbeans Native Packaging. While there are plenty of instructions for doing this on Windows, I cannot find the required packages for doing so on Ubuntu with a Debian package.
What do I need to install on my system to make this work?
if you're free to choose a buildsystem there're rpm and deb packaging plugins for gradle, maven and even ant tasks for deb and rpm.
The resulted packages are somewhat limited, but if you don't something special like precise file permissions control, or rpm install triggers etc, they may help you.

appcfg.sh basics. how to compile servlets in command line?

does appcfg.sh compile servlets or olny deploy compiled project ? If it doesn't how can I compile whole project in the command line?
It's highly recommended to use an IDE to build Java web projects, especially GAE projects:
Eclipse with Google Plugin (free)
IDEA with GAE plugin (commercial)
If you dislike IDEs, then at least use maven with gae plugin.
You can do this by specifying the right dependencies in your master BUILD file:
The binary should depend on everything it needs to run.
You can create another target for deployment. That target should depend on the binary, and also on everything else needed to deploy it.
Google AppEngine supports Apache Ant for command-line builds. AppEngine Java SDK also includes Ant macros to run appcfg.sh tasks from Ant.

Which software installer plugin for Apache Maven do you recommend?

For Apache Maven I have found a izpack plugin and a NSIS plugin (for Win32).
Are there other Maven plugins available which allow to create software installers for Java applications, or are these the most popular and 'mature' tools?
It does not have to include a pretty GUI, even a simple command line installer could be helpful enough. Support for file permissions (executable flag for shell scripts) would be nice to have so that users on Linux don't have to set this flag manually.
If GUI is not an issue, you may want to look at maven assembly plugin

Can Maven generate exe files and mac os x apps?

Lets say you created a little Java Desktop app with a jar and some dependencies and possibly a license text file. I know there are plenty of Ant tasks that can generate installers, executables and proper Mac OS X applications including packaging them as ".dmg" files. Examples would be JarBundler and Launch4j
Does similar things exist for Maven?
Thanks
OSX appbundle plugin
I also think launch4j has a maven plugin
To generate a windows executable in a maven build, you can use the launch4j-maven-plugin. I just answered a related question, Trying to integrate Launch4j in a Maven project using Alakai plugin, showing how to accomplish that. It's very easy, more than JSmooth, which always had a maven plugin.
Hope it helps!

Categories

Resources