there is an existing flex-template you can use using the contents of pom.xml
<?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.domain.myproject</groupId> <artifactId>App</artifactId> <version>1.0</version> <packaging>pom</packaging> <modules> <module>App</module> </modules> </project> bash>mvn archetype:generate >select archetype //select 8 for remote -> maven-archetype-flex (An archetype >which contains a sample Maven Flex) when completed you should have an App folder which contains pom.xml src --main --flex --com --domain --myproject Main.mxml the generated Main.mxml needs to be compiled thru the mxmlc compiler pingback when you the screen definition is created 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: Sat, 12 Jun 2010 00:52:52 +0200 > > 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] > _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
