Sorry Velo, I only just saw your email.

M2_HOME and M2_REPO are two different variables. I've never configured
my workspace(s) to use the latter. In fact, I'm not even sure on the
steps to do it; I think it is with the eclipse:configure-workspace?

M2_HOME doesn't come from Flexmojos or Eclipse; it's standard
(possibly the only) installation step for Maven... set M2_HOME in your
OS environment variables.

I'm willing to be the patch that I submitted just calls System.getenv
("M2_HOME"), but I'd have to check. I'm quite busy, so I won't do that
just yet; I'll let you fix your install and try again first.

Again, M2_REPO is a different variable, so it's not even being used.
Because Flexmojos can't resolve M2_HOME, it is left in-place. When
Eclipse tries to do it's thing, it doesn't understand M2_HOME, because
it should have been swapped for an absolute file path.

Action Point: Submit a patch causing Flexmojos to fail when the
useM2Home=true
and M2_HOME is not set in the environment variables?
Won't be able to do this for a while and not entirely sure it is
necessary.

And you might find this useful - I have custom Maven scripts; for
example, to save typing I create the following BATCH file, cmvnfb.bat,
somewhere on the PATH variable:


@echo off

call cls && mvn clean eclipse:clean flexmojos:flexbuilder generate-
resources

if not [%*] == [] call mvn %*

Let us know how you get on, D

On Nov 13, 7:48 pm, Logan Allred <[email protected]> wrote:
> 1. Open Eclipse/Flex Builder Preferences, then go to General ->
> Workspace -> Linked Resources.
> 2. Click the New... button, put M2_REPO as the Name, and the path to
> your M2 repo in the Location field (for me on the Mac it's
> /Users/logan/.m2/repository).
> 3. Clean the project (Project->Clean...).
>
> That should fix it.
>
> Logan
>
>
>
> On Fri, Nov 13, 2009 at 10:52 AM, Marvin Froeder <[email protected]> wrote:
> > Not sure how to configure flexbuilder to use M2_REPO, I did that once, just
> > don't recall, I will ping the user who made the patch.... hopefully he
> > knows.
>
> > VELO
>
> > On Fri, Nov 13, 2009 at 3:36 PM, Bruno Medeiros <[email protected]> wrote:
>
> >> Hi Marvin and all!
>
> >> I've been reading some messages of this list since 1 year ago, but never
> >> had time to mavenize my flex projects.
> >> This week I needed to release some versions of many libraries and it's
> >> almost infeasible without maven release plugin, so i said:
> >> It's time to mavenize!
>
> >> I am very surprised with how mature is flex mojos! Thanks for all for the
> >> hard work!
>
> >> The only problem i have now is with flexmojos:flexbuider goal. I
> >> configured the project to use M2_REPO variable, like this:
>
> >>            <plugin>
> >>                 <groupId>org.sonatype.flexmojos</groupId>
> >>                 <artifactId>flexmojos-maven-plugin</artifactId>
> >>                 <version>3.4.2</version>
> >>                 <extensions>true</extensions>
> >>                 <configuration>
> >>                     <enableM2e>true</enableM2e>
> >>                     <useM2Home>true</useM2Home>
> >>                 </configuration>
> >>             </plugin>
>
> >> But after refreshing the project to get the files created by flexbuilder
> >> goal, the flex builder gives me the following error:
>
> >> configuration variable 'compiler.library-path' value contains unknown
> >> token 'M2_HOME'
>
> >> The variable seems to be ok in the preferences window.
>
> >> It would be so good to me having this working. If it doesn't work, i would
> >> have to avoid run the flexbuilder goal and replicate my libs on the libs
> >> folder, and it's not so good..
>
> >> Some ideas?
>
> >> Thanks!
>
> >> --------
> >> BrunoJCM
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Flex Mojos" group.
> >> To post to this group, send email to [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]
> >> For more options, visit this group at
> >>http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >>http://blog.flex-mojos.info/
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex Mojos" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >http://blog.flex-mojos.info/

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/

Reply via email to