incubator-npanday-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: Class containing Main method not found
Date Fri, 18 Nov 2011 13:40:55 GMT
Hi Lars!
nope, unfortunately, it is a project we have to deploy for the
European Space Agency :(
I'm using a mix of maven+npanday+assembly plugin to compile and
package C# code and web applications have to be deployed under Mono.
I would have be happy to share our current structure :(
All the best,
Simo

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



On Wed, Nov 16, 2011 at 10:12 AM, Lars Corneliussen <me@lcorneliussen.de> wrote:
> Hi Simone,
>
> good to hear!!
> Do you use it in an open source project?
> _
> Lars
>
>
> Am 15.11.2011 um 10:20 schrieb Simone Tripodi:
>
>> Hi all again guys,
>> just to let you know that it was totally my fault :)
>> NPanday works like a charm for what I need!
>> Have a nice day, all the best,
>> Simo
>>
>> http://people.apache.org/~simonetripodi/
>> http://simonetripodi.livejournal.com/
>> http://twitter.com/simonetripodi
>> http://www.99soft.org/
>>
>>
>>
>> On Mon, Nov 14, 2011 at 4:20 PM, Simone Tripodi
>> <simonetripodi@apache.org> wrote:
>>> I just found that sources dir has to be explicitly set to
>>>
>>> <sourceDirectory>${basedir}/src/main/csharp</sourceDirectory>
>>>
>>> otherwise it still uses the java one.
>>> Going to fix the projects, I'll let you know soon :)
>>> Simo
>>>
>>> http://people.apache.org/~simonetripodi/
>>> http://simonetripodi.livejournal.com/
>>> http://twitter.com/simonetripodi
>>> http://www.99soft.org/
>>>
>>>
>>>
>>> On Mon, Nov 14, 2011 at 4:02 PM, Simone Tripodi
>>> <simonetripodi@apache.org> wrote:
>>>> The MSDN page[1] doesn't help :(
>>>> TIA,
>>>> Simo
>>>>
>>>> [1] http://msdn.microsoft.com/en-us/library/x3eht538.aspx
>>>>
>>>>
>>>> http://people.apache.org/~simonetripodi/
>>>> http://simonetripodi.livejournal.com/
>>>> http://twitter.com/simonetripodi
>>>> http://www.99soft.org/
>>>>
>>>>
>>>>
>>>> On Mon, Nov 14, 2011 at 3:59 PM, Simone Tripodi
>>>> <simonetripodi@apache.org> wrote:
>>>>> 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/
>>>>>
>>>>
>>>
>
>

Mime
View raw message