tag:blogger.com,1999:blog-8002601680803116224.post3112409131287866247..comments2023-05-02T11:46:53.727+02:00Comments on Ancient Programming (Old): Quickstart flex development with this maven archetypeJacob von Eybenhttp://www.blogger.com/profile/05495303543777256635noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-8002601680803116224.post-29157759828679630382009-01-08T20:38:00.000+02:002009-01-08T20:38:00.000+02:00I tried this, worked well to create the project bu...I tried this, worked well to create the project but when gave the command for "mvn install" got the following : <BR/>C:\flex_mvn>mvn install<BR/>[INFO] Scanning for projects...<BR/>[INFO] ------------------------------------------------------------------------<BR/>[INFO] Building Maven Default Project<BR/>[INFO] task-segment: [install]<BR/>[INFO] ------------------------------------------------------------------------<BR/>[INFO] ------------------------------------------------------------------------<BR/>[ERROR] BUILD ERROR<BR/>[INFO] ------------------------------------------------------------------------<BR/>[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.<BR/>[INFO] ------------------------------------------------------------------------<BR/>[INFO] For more information, run Maven with the -e switch<BR/>[INFO] ------------------------------------------------------------------------<BR/>[INFO] Total time: < 1 second<BR/>[INFO] Finished at: Thu Jan 08 10:34:13 PST 2009<BR/>[INFO] Final Memory: 3M/254M<BR/>[INFO] ------------------------------------------------------------------------Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-61876899178405969622008-05-15T22:43:00.000+02:002008-05-15T22:43:00.000+02:00This plugin is goodness. Worked out of the box wit...This plugin is goodness. Worked out of the box with maven2, the flex SDK version 3.0 from Adobe, and OSX 10.5.<BR/><BR/>Greatly appreciate the folks who did this. I like to contribute to projects that make my life easier, find a way to take donations :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-19133352318678185892008-03-07T11:24:00.000+02:002008-03-07T11:24:00.000+02:00It was not an issue. I just put the flex.home path...It was not an issue. I just put the flex.home path at the wrong place. Sorry for the trouble. It's better if you could delete my previous post. <BR/>It's working fine now. I would like to know if it's possible to use maven commands from within eclipse IDE?<BR/>Thanks a ton.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-60150214799116977622008-03-07T08:14:00.000+02:002008-03-07T08:14:00.000+02:00Hi Jacob,I have created a project using the mvn ar...Hi Jacob,<BR/><BR/>I have created a project using the mvn archetype as specified. I changed the pom.xml flexhome path to 'C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.0.0'<BR/>and when i try to run mvn install from the root folder containing the pom.xml i get the following error.<BR/>Build Error - Result of flex2.tools.Compiler execution is: '1'. For more information, run Maven with -3 switch.<BR/>Is it an issue with using flex3 instead of flex2 to compile?<BR/><BR/>Anyway, gr8 work and keep up.<BR/>Chears,<BR/>GlidealongAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-43866511506637301292008-01-17T14:52:00.000+02:002008-01-17T14:52:00.000+02:00Hi Jacob!Nice work! Why dont you by default have t...Hi Jacob!<BR/><BR/>Nice work! Why dont you by default have the flex.home property changed to:<BR/><BR/>< flex.home > ${env.FLEX_HOME} < /flex.home ><BR/><BR/>And just ask ppl to set their enviroment variable FLEX_HOME instead. They no change in the pom.xml is needed. =)<BR/><BR/>One other thing, can I create an actionScript project with this aswell?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-86126956672534897132007-11-06T09:21:00.000+02:002007-11-06T09:21:00.000+02:00At what time in the process do you get the error?W...At what time in the process do you get the error?<BR/>When creating the project from the archetype? or when calling mvn install in the created project?<BR/><BR/>Did you remember to set the -DpackageName= to nothing?<BR/><BR/>If you like you can change the source directory after you have created the project from the archetype. It should not give you any problems. But it is not required that you change the sourcedir.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-26153089093199385982007-11-05T20:20:00.000+02:002007-11-05T20:20:00.000+02:00Should I be able to change the <sourceDirectory...Should I be able to change the <sourceDirectory> tag in the pom.xml? No matter what I change it to, I get the error:<BR/><BR/>Source directory [...]/src/main/flex does not exist.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8002601680803116224.post-74146252914135810092007-11-02T00:45:00.000+02:002007-11-02T00:45:00.000+02:00@matt:It is not a Mac/Java/flex thing - even thoug...@matt:<BR/>It is not a Mac/Java/flex thing - even though one could think so in these Mac vs. Java days :-)<BR/><BR/>I forgot to mention that you have to uncomment the local-font-snapshot element in the flex-config.xml for the sdk.<BR/><BR/>I have updated the post with information on what to do and it should all work now.Anonymousnoreply@blogger.com