Thanks Adrian, but I'm still having red squiggles. I'm now trying to follow the instructions in Massol & O'Brian's "Maven Adevelopers Notebook" page 20.
I run maven with the default template (plain old console mode java app). I add a dependency for httpclient as per http://jakarta.apache.org/commons/httpclient/downloads.html <dependency> <id>commons-httpclient</id> <version>2.0.2</version> <url>http://jakarta.apache.org/commons/httpclient/</url> </dependency> I run "maven eclipse". I type maven -Dmaven.eclipse.workspace=c:\documents and settings\Adminstrator\workspace eclipse:add-maven-repo I've also tried to configure MAVEN_REPO manually (as per Adrian's suggestion). I import the project into eclipse. I still get the red squigglies indicating eclipse does not know how to resolve the class names. Can someone tell me why eclipse is not cooperating?. Thanks, Siegfried > you can just add MAVEN_REPO as a java build classpath variable, point to > directory from within Eclipse GUI > > Adrian > > At 10/12/2005 04:58 PM, Siegfried Heintze wrote: > >Thanks, > >I tried that and I still get the red squigglies! I even tried stopping and > >restarting eclipse. > > > >Maybe I'm specifying the maven repository incorrectly. I'm just using the > >default that maven 1.0.2 set up. Does this look like a correct value for > >maven_repo in eclipse? (I noticed Eclipse 3.1 already had a maven_repo > >variable, but it had no value set)(. > > > >C:/Documents and Settings/Administrator/.maven/repository > > > >Here is my c:/Documents and > >Settings/Administrator/workspace/finance_yahoo/project.properties file -- I > >assume this is the file they were talking about in > >http://maven.apache.org/reference/plugins/eclipse/properties.html . Again, > >I'm using the defaults: > > > ># Project property file for finance_yahoo > >maven.eclipse.workspace=c:\\Documents and > >Settings\\Administrator\\workspace\\ > > > >Woops -- that line is not supposed to have wrapped. > > > >Here is what I get when I use that command: > >$ maven eclipse:add-maven-repo > > __ __ > >| \/ |__ _Apache__ ___ > >| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > >|_| |_\__,_|\_/\___|_||_| v. 1.0.2 > > > >build:start: > > > >eclipse:add-maven-repo: > > [propertyfile] Creating new property file: C:\Documents and > >Settings\Adminis > >trator\workspace\.metadata\.plugins\org.eclipse.jdt.core\pref_store.ini > >BUILD SUCCESSFUL > >Total time: 1 seconds > >Finished at: Wed Oct 12 17:44:28 MDT 2005 > > > > > >[EMAIL PROTECTED] /c/Documents and > >Settings/Administrator/workspace/financ > >e_yahoo > >$ > > > > > > > > > > > > > >-----Original Message----- > >From: Anthony Kong [mailto:[EMAIL PROTECTED] > >Sent: Wednesday, October 12, 2005 5:08 PM > >To: 'Maven Users List' > >Subject: RE: Wanted: Help getting first Eclipse/Maven program running > > > >You can take a look at the maven eclipse plugin for a start. > >(http://maven.apache.org/reference/plugins/eclipse/goals.html) > > > >In partciular, the goal "eclipse:add-maven-repo" should be able to help you > >out to make the dependencies visible in eclipse. > > > >Cheers, > >AK > > > >org > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > Regards, > > Adrian Zaharie > ParaSoft Corporation > (888) 305-0041 x 1229 > > > --------------------------------------------------------------------- > 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]
