Automation NSIS script using maven2

We developed a script using NSIS version 2.46, which will create an installer for Windows. Now that we want to automate the generator build process using maven.

We are currently using maven to create our Java code projects and to create our final product.

To automate the NSIS script build process, I cannot find information about the maven plugin that supports NSIS script build.

I searched for information, but I did not get any specific information on how to start with it.

Can someone explain how to start with it or point me to a page that explains this with an example?

+2
source share
1 answer

codehaus.

"makensis" pom, :

    <!-- Codehause Snapshots - Nsis plugin needs this -->
    <pluginRepository>
        <id>Codehaus Snapshots</id>
        <url>http://nexus.codehaus.org/snapshots/</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <releases>
            <enabled>true</enabled>  <!-- Workaround for MNG-2974, see note below -->
        </releases>
    </pluginRepository>

   <!-- NSIS plugin for producing nsis installer -->
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>nsis-maven-plugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>generate-project</goal>
                        <goal>compile</goal>
                    </goals>
                    <configuration>
                        <makensisBin>/usr/local/nsis/nsis-2.46/bin/makensis</makensisBin>
                        <setupScript>src/nsis/setup.nsi</setupScript>
                        <outputFile>${project.build.directory}/${project.build.finalName}.exe</outputFile>
                    </configuration>
                </execution>
            </executions>
        </plugin>
+6

All Articles