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

Reply via email to