wix-maven / wix-maven-plugin

A maven plugin to provide lifecycle of a Windows Installer build using WiX.
http://wix-maven.github.io/wix-maven-plugin
13 stars 6 forks source link

Light linker not found #4

Closed garymazz closed 8 years ago

garymazz commented 8 years ago

I just loaded the 0.1.0-snapshot. When running a light not found error is reported. Light is in the system path.

I'm using netbeans 8.1 as an ide.

Failed to execute goal com.github.wix-maven:wix-maven-plugin:0.1.0-SNAPSHOT:light (link) on project FOM2-Installer: Light tool doesn't exist C:\Users\xxxx\NetBeansProjects\Installer\target\wix-tools\bin\light.exe -> [Help 1]

This is my plugin code:

        <plugin>
            <groupId>com.github.wix-maven</groupId>
            <artifactId>wix-maven-plugin</artifactId>
            <version>0.1.0-SNAPSHOT</version>
            <configuration>
              <platforms>
                <arch>x64</arch>
              </platforms>
              <sourceFiles>
                <sourceFile>src/file1.wxs</sourceFile>
                <sourceFile>src/file2.wxs</sourceFile>
              </sourceFiles>
              <outputDirectory>build</outputDirectory>
              <objectFiles>
                <objectFile>build/file1.wixobj</objectFile>
                <objectFile>build/file2.wixobj</objectFile>
              </objectFiles>
              <outputFile>file.msi</outputFile>
            </configuration>
            <executions>
              <execution>
                <phase>compile</phase>
                <id>compile</id>
                <goals>
                  <goal>candle</goal>
                </goals>
              </execution>
              <execution>
                <phase>process-classes</phase>
                <id>link</id>
                <goals>
                  <goal>light</goal>
                </goals>
              </execution>
            </executions>
        </plugin>
garymazz commented 8 years ago

I found property ${wix.toolsPath}. Setting it seems to fix the issue. Please update documentation to include :<wix.toolsPath>${env.WIX}</wix.toolsPath>

Note it would be better to first try the system path when toolsPath is not set.