I have never tried that. Don't think anyone is maintaining it. I'd rather use dotnet-library and then at the end merge with ilmerge....
You could use the exec-plugin for that, allthough I'd like to have a maven-ilmerge-plugin. -----Ursprüngliche Nachricht----- Von: Eric Kolotyluk [mailto:[email protected]] Gesendet: Dienstag, 8. April 2014 16:24 An: [email protected] Betreff: Building an executable from modules I am trying to figure out how to build an executable from modules. Does anyone have any example projects that do this. I have a project with the following Maven modules: csharp-windows-elevate elevate-common (dotnet-module) elevate-module (dotnet-module,depends on elevate-common) elevate-exe (dotnet-executable,depends on elevate-common and elevate-module) When I try to compile I get [INFO] csharp-windows-elevate ............................ SUCCESS [0.287s] [INFO] elevate-common .................................... SUCCESS [2.543s] [INFO] elevate-module .................................... SUCCESS [2.668s] [INFO] elevate-exe ....................................... FAILURE [1.953s] which fails because Maven is trying to compile elevate-exe when there is nothing to compile. In my POM I have <plugin> <groupId>org.apache.npanday.plugins</groupId> <artifactId>maven-compile-plugin</artifactId> <version>1.5.0-incubating-SNAPSHOT</version> <extensions>true</extensions> <executions> <execution> <phase>none</phase> </execution> </executions> </plugin> <plugin> <groupId>org.apache.npanday.plugins</groupId> <artifactId>maven-link-plugin</artifactId> <version>1.5.0-incubating-SNAPSHOT</version> <extensions>true</extensions> <configuration> <frameworkVersion>4.0</frameworkVersion> <parameters> <parameter>/target:exe</parameter> <parameter>/out:elevate.exe</parameter> <parameter>/main:Elevate.Main</parameter> </parameters> </configuration> </plugin> But that does not seem to suppress the compiler, and it never gets to the linker. Cheers, Eric
