Re: import statements in Eclipse and maven2
Right-click on project -- Maven2 -- Enable - Yann 2006/2/28, Jason Dillon [EMAIL PROTECTED]: Woah... How do you enable that? --jason -Original Message- From: Kathryn Huxtable To: Maven Users List Sent: Mon Feb 27 21:05:50 2006 Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: import statements in Eclipse and maven2
Yes, that's the way. Then you may need to manually inspect your .classpath file and remove any libraries listed. There should be only the various src and output directories listed along with your JRE container and a new MAVEN2 container. -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/28/06 4:25 AM, Yann Le Du [EMAIL PROTECTED] wrote: Right-click on project -- Maven2 -- Enable - Yann 2006/2/28, Jason Dillon [EMAIL PROTECTED]: Woah... How do you enable that? --jason -Original Message- From: Kathryn Huxtable To: Maven Users List Sent: Mon Feb 27 21:05:50 2006 Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - 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]
RE: import statements in Eclipse and maven2
Don't you need to install the M2 Eclipse plugin to get this to work? That's here: http://maven.apache.org/eclipse-plugin.html Note: the last I checked, the M2 Eclipse plugin still had a major bug whereby it ignores your settings.xml file. K.C. -Original Message- From: Kathryn Huxtable [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 9:06 PM To: Maven Users List Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - 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]
Re: import statements in Eclipse and maven2
The problem is in Maven embedder : http://jira.codehaus.org/browse/MNG-1070 2006/2/28, KC Baltz [EMAIL PROTECTED]: Don't you need to install the M2 Eclipse plugin to get this to work? That's here: http://maven.apache.org/eclipse-plugin.html Note: the last I checked, the M2 Eclipse plugin still had a major bug whereby it ignores your settings.xml file. K.C. -Original Message- From: Kathryn Huxtable [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 9:06 PM To: Maven Users List Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - 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]
Re: import statements in Eclipse and maven2
Yes, it's not the plugin, it's the embedder. And yes, it's very annoying, but I tend to use external tools to build rather than the embedded version. I use the plugin to make Eclipse compile my code correctly based on artifacts I have already downloaded. It would be nice if the embedder could be fixed, though. Really nice. -K On 2/28/06 10:58 AM, Yann Le Du [EMAIL PROTECTED] wrote: The problem is in Maven embedder : http://jira.codehaus.org/browse/MNG-1070 2006/2/28, KC Baltz [EMAIL PROTECTED]: Don't you need to install the M2 Eclipse plugin to get this to work? That's here: http://maven.apache.org/eclipse-plugin.html Note: the last I checked, the M2 Eclipse plugin still had a major bug whereby it ignores your settings.xml file. K.C. -Original Message- From: Kathryn Huxtable [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 9:06 PM To: Maven Users List Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - 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] -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: import statements in Eclipse and maven2
Does anyone know of ETA for a new release of the embedder? In particular, I'm interested in the multi-modules build functionality. /Henrik On 2/28/06, Kathryn Huxtable [EMAIL PROTECTED] wrote: Yes, it's not the plugin, it's the embedder. And yes, it's very annoying, but I tend to use external tools to build rather than the embedded version. I use the plugin to make Eclipse compile my code correctly based on artifacts I have already downloaded. It would be nice if the embedder could be fixed, though. Really nice. -K On 2/28/06 10:58 AM, Yann Le Du [EMAIL PROTECTED] wrote: The problem is in Maven embedder : http://jira.codehaus.org/browse/MNG-1070 2006/2/28, KC Baltz [EMAIL PROTECTED]: Don't you need to install the M2 Eclipse plugin to get this to work? That's here: http://maven.apache.org/eclipse-plugin.html Note: the last I checked, the M2 Eclipse plugin still had a major bug whereby it ignores your settings.xml file. K.C. -Original Message- From: Kathryn Huxtable [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 9:06 PM To: Maven Users List Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - 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] -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: import statements in Eclipse and maven2
http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
Re: import statements in Eclipse and maven2
That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: import statements in Eclipse and maven2
Woah... How do you enable that? --jason -Original Message- From: Kathryn Huxtable To: Maven Users List Sent: Mon Feb 27 21:05:50 2006 Subject: Re: import statements in Eclipse and maven2 That's a link to one approach. Another approach is to enable the Maven2 nature for your project, which should make it use the dependencies in your pom.xml file without needing to regenerate the .classpath file every time you add a dependency. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 2/27/06 6:41 PM, KC Baltz [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ide-eclipse.html -Original Message- From: Ashish Srivastava [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 4:24 PM To: users@maven.apache.org Subject: import statements in Eclipse and maven2 Hi, I am using maven2 plugin on Eclipse and working on a project which uses maven2. In the eclipse' Java editor all the import statements (and the classes) are underlined red as if it could not find the jars. How can I configure the project to read the pom.xml and work out all the dependencies? -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]