Hm, I do not understand. Where is the archetype.xml?
App.java:

package com.domain.myproject;

/**
 * Hello world!
 *
 */
public class App
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}

So there is a main method.

Best Regards.

Am 12.06.2010 um 00:32 schrieb Martin Gainty:


the archetype launcher is looking for a 'launch point'
assuming archetype.xml contains the <source> declaration
<source>src/main/java/App.java</source>
so inside the driver class (in this case App.java) code a main method into /src/main/java/App.java

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




From: [email protected]
To: [email protected]
Subject: Re: How to integrate Maven into an existing Flex/Java project?
Date: Fri, 11 Jun 2010 23:55:49 +0200

Thanks a lot for you reply.

I did this on a new Flex/Java project (I created a new project to try
to find out what's the error, because I did not get it working in my
real project)
mvn archetype:create -DgroupId=com.domain.myproject -
Dartifactid=myproject

The App.java is under
myproject -> src -> main -> java -> com -> domain -> myproject ->
App.java

If I do a "run as -> Java application" in Eclipse, I get the error:
"Launch error: Selection does not contain a main type"
What should I do after "mvn archetype:create ..." to get it working?

I tried to change the Java Build Path of the sources, because it is
set to
-> myproject/src (myproject is the name of my project)

Does someone has an idea?

Best Regards PHANTOMIAS

Am 11.06.2010 um 16:14 schrieb Wayne Fay:

Now, what should I do next? Copy all Java files (source and JUnit
tests)
from src/ into the directory in which App.java is located?
And all of my JUnit / DbUnit tests into the folder in which
AppTest.java is
located?

Seems like a reasonable first step.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

                                        
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to