Hi all guys,
I have a little issue with the compiler plugin, looks like is not able
to find the class which contains the Main method.

This is my module dir tree:

$ tree .
.
├── pom.xml
└── src
    └── main
        └── csharp
            └── Terradue
                ├── Ify
                │   └── IfyAgent.cs
                └── Portal

And this is my pom:

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.terradue.cloudio</groupId>
    <artifactId>CloudIO.Parent</artifactId>
    <version>1.0-SNAPSHOT</version>
    <relativePath>../</relativePath>
  </parent>

  <artifactId>IfyAgent</artifactId>
  <packaging>exe</packaging>

  <dependencies>
    <dependency>
      <groupId>com.terradue.cloudio</groupId>
      <artifactId>Terradue.Portal</artifactId>
      <version>1.0-SNAPSHOT</version>
      <type>library</type>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.npanday.plugins</groupId>
        <artifactId>maven-compile-plugin</artifactId>
        <version>1.4.0-incubating</version>
        <extensions>true</extensions>
        <configuration>
          <main>Terradue.Ify.IfyAgent</main>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>

when compiling, I get the following error:

[INFO] error CS1555: Could not find `Terradue.Ify.IfyAgent' specified
for Main method

and when maven terminates its execution:

[ERROR] Failed to execute goal
org.apache.npanday.plugins:maven-compile-plugin:1.4.0-incubating:compile
(default-compile) on project IfyAgent: NPANDAY-900-006: Unable to
Compile: Language = C_SHARP, Vendor = null, ArtifactType = exe, Source
Directory = 
/Users/simonetripodi/Documents/workspace/CloudIO/trunk/IfyAgent/src/main/java:
NPANDAY-040-001: Could not execute: Command =  /bin/sh -c gmcs
@/Users/simonetripodi/Documents/workspace/CloudIO/trunk/IfyAgent/target/14155345/responsefile.rsp,
Result = 1 -> [Help 1]

Please take in consideration I'm .NET ignorant and I'm only mavenizing
my coworkers projects :)

Many thanks in advance, all the best!
Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

Reply via email to