Brief examples on how to use the candle goal without using project.packaging
If you want to convert a WiX Source (.wxs) file into a WiX Object (.wixobj) file, use the following configuration in your POM along with the goal wix:candle : Generally this will be done in a separate module with pom or some other packaging.
default input directory is src/main/wix, and intDirectory is target/Release
<project> ... <build> <plugins> <plugin> <groupId>org.apache.npanday.plugins</groupId> <artifactId>wix-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <configuration> <wxsInputDirectory>src/test</wxsInputDirectory> <includes> <include>**/Test*.wxs</include> </includes> <intDirectory>target/test</intDirectory> </configuration> </plugin> </plugins> ... </build> ... </project>
You can add an execution so that the plugin runs automatically during the build. By default it will run in the package phase.
<plugin> <groupId>org.apache.npanday.plugins</groupId> <artifactId>wix-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <configuration> <wxsInputDirectory>src/IT</wxsInputDirectory> <includes> <include>**/IT*.wxs</include> </includes> <excludes> <exclude>**/Test*.wxs</exclude> </excludes> <intDirectory>target/IT</intDirectory> </configuration> <executions> <execution> <id>wix</id> <goals> <goal>candle</goal> </goals> </execution> </executions> </plugin>