The variable M2_REPO is set inside Eclipse. You can set M2_HOME if you want
to, but it is not really necessary if mvn works from the command line. To
set the M2_REPO variable you need to run the mvn command:

mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

See http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html for
further details.

Mike.

On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi Matt,

I did use maven to create the project but I have a feeling that I had only
a MAVEN_HOME variable set. Should I be able to set the M2_HOME and run
this mvn eclipse:eclipse again?

I'd just like to take the opportunity to say a personal thanks for
appfuse. I used the 1.x versions on various projects and thought it
rocked. Am sure version 2 will be even better once I'm familiar with how
it all works. Am starting to see the sense in maven even though I've been
a big ant fan for ages.


Regards
Marty


Did you create your Eclipse project files with "mvn eclipse:eclipse".
If so, you'll need to make sure you have a M2_REPO classpath variable
setup.

Matt

On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi Aled,
>
> Thanks for the assist.
>
> I have the imports but on closer examination it seems that eclipse
> cannot resolve them. Could this be a problem with the src folder setup?
>
> Are the javax.persistence classes part of the jdk?
>
> eclipse seems to also have a problem reolving org.appfuse.
>
> I'm sure I can sort the hashCode stuff but am at a little bit of a
> loss as to the Annotations.
>
>
> Regards
> Marty
>
>
>
> Are you importing javax.persistence.Entity in your class?
> Same goes for Id and Generated value.  They are part of
javax.persistence.
> If importing this doesn't seem to work, make sure you're using the
> maven repository correctly.
>
> You don't have to extend BaseObject, but if you do you must override
> method hashCode().  There are plugins for eclipse that can generate
> this for you, see the tutorial.
>
> Aled
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 16 May 2007 13:53
> To: [email protected]
> Subject: [appfuse-user] Nooby Q
>
> I'm having a play around with Appfuse 2 but have run into a problem.
>
> When I try to compile I get :
>
> .
> .
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Compilation failure
>
> C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[6,1
> ]
> cannot find symbol
> symbol: class Entity
> @Entity
>
> C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[27,
> 3]
> cannot find symbol
> symbol  : class Id
> location: class com.rave.chester.model.Move
>
> C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[27,
> 7]
> cannot find symbol
> symbol  : class GeneratedValue
> location: class com.rave.chester.model.Move
>
> C:\Project\Chester\src\main\java\com\rave\chester\model\Move.java:[7,7
> ] com.rave.chester.model.Move is not abstract and does not override
> abstract method hashCode() in org.appfuse.model.BaseObject
>
> C:\Project\Chester\src\main\java\com\rave\chester\model\Game.java:[15,
> 7] com.rave.chester.model.Game is not abstract and does not override
> abstract method hashCode() in org.appfuse.model.BaseObject
>
>
> Now I'm assuming that this is something to do with these new fangled
> Annotations. I'm sure I can work out the hashCode stuff but have not
> idea where to start with the other error.
>
> Any idea of what I need to do so that these do their thing properly?
>
> I'm running the 1.5 jdk (another first for me).
>
>
> Regards
> Marty
>
>
>
> ---------------------------------------------------------------------
> 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]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
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]


Reply via email to