Hi, thanks your reply, sincerely. I found out the reason resulted in connecting to remote repository is the file setting of "driver.properties", in which the proerty - "maven.repo.remote.enabled" - was set to "true". After change, now it seems work with connecting to remote repository, but resulting in another Exception "java.lang.ClassCastException". I don't modify any change to the example provided via theserverside.com. Would anyone can tell me possible reason. I appreciate your help, sincerely. =====ERROR===== [ERROR] java.lang.ClassCastException [ERROR] at org.apache.maven.app.ProjectVerifier.verifyDependencies(Proje ctVerifier.java:383) [ERROR] at org.apache.maven.app.ProjectVerifier.doExecute(ProjectVerifie r.java:363) [ERROR] at org.apache.maven.app.PluginManager.loadPlugin(PluginManager.j ava:299) [ERROR] at org.apache.maven.app.PluginManager.initializePlugins(PluginMa nager.java:210) [ERROR] at org.apache.maven.app.Maven.initializePlugins(Maven.java:806) [ERROR] at org.apache.maven.app.Maven.runtimeInitialization(Maven.java:7 52) [ERROR] at org.apache.maven.app.App.doMain(App.java:366) [ERROR] at org.apache.maven.app.App.main(App.java:892) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [ERROR] at java.lang.reflect.Method.invoke(Method.java:324) [ERROR] at com.werken.forehead.Forehead.run(Forehead.java:543) [ERROR] at com.werken.forehead.Forehead.main(Forehead.java:573) Total time: 10 seconds =====ERROR=====
--- [EMAIL PROTECTED] 的訊息:> Hi - > > You need to have a local repository (created by > setting $MAVEN_HOME and running > $MAVEN_HOME/bin/install_repo.sh > $HOME/.maven/repository, or something similar). > > I have a dial-up connection, and I encountered > exactly the same "java.net.ConnectException" > that you did. I solved the problem by connecting to > my ISP and re-running the build. All > of the necessary .jar files were copied to my local > repository, and the build completed > successfully. Moreover, I was able to do all > subsequent builds completely off-line. > > Another option that might be of use to you is the > "maven -o" (for "offline") command parameter. > > Hope that helps .. PSM > > > -----Original Message----- > From: <[EMAIL PROTECTED]> > Sent: Jan 28, 2004 7:42 PM > To: [EMAIL PROTECTED] > Subject: a newbie question > > hi mavens, > i'm new to maven project and after reviewing several > tutorial, i found out it's a great tool for > developer > to weave into a project. > however, when i learn to see how it gets to work > (from > example theserverside.com provides - > http://www.theserverside.com/articles/article.jsp?l=MavenMagic). > i found out seemly it always try to get repository > from remote through network with exception <[ERROR] > java.net.ConnectException: Connection timed out: > connect>. > > how to avoid that? or what command i need to type in > order to compile code correctly (i type the command > with "maven build-all"). for after review its > source, > it only contains some simple java file that needed > to > be compiled. > the maven version is 1.0-beta-7 > i appreciate any suggestions. > below is the maven.xml and project.xml > <?xml version="1.0"?> > > <project default="foobar:build-all" > xmlns:j="jelly:core" > xmlns:maven="jelly:maven"> > > <goal name="foobar:build-all"> > <maven:reactor basedir="${basedir}" > includes="*/project.xml" > goals="foobar-dist" > banner="Building Foobar" > ignoreFailures="false"/> > </goal> > > </project> > -------------- > <?xml version="1.0"?> > > <project> > <pomVersion>3</pomVersion> > <id>foobar-online</id> > <groupId>Foobar-Travels</groupId> > <currentVersion>2.0</currentVersion> > <name>Foobar Online Project</name> > > <!-- > ################################################################ > --> > <!-- Project management section > > --> > <!-- > ################################################################ > --> > > <organization> > <name>Foobar Travels Inc.</name> > <url>http://www.foobartravels.com</url> > > <logo>http://foobartravels.com/images/logo.gif</logo> > </organization> > > <inceptionYear>2003</inceptionYear> > <package>foobar.*</package> > > <logo>http://foobartravels.com/images/projectlogo.gif</logo> > <description>Foobar Online is Project to webify > Foobar Travels</description> > <shortDescription>Foobar Online is Project to > webify Foobar Travels</shortDescription> > > > <url/> > > <issueTrackingUrl>http://bugzilla.foobartravels.com</issueTrackingUrl> > <siteAddress>www.foobaronline.com</siteAddress> > <siteDirectory/> > > <distributionDirectory>/foobar/dist/${pom.artifactId}/</distributionDirectory> > > <!-- > <repository> > > <connection>scm:cvs:pserver:[EMAIL PROTECTED]:/home/cvspublic:maven</connection> > > <url>http://cvs.apache.org/viewcvs/maven/</url> > </repository> > --> > > <versions/> > > <mailingLists/> > > <developers> > <developer> > <name>Srikanth Shenoy</name> > <id>shenoy</id> > <email>[EMAIL PROTECTED]</email> > <organization>Objectseek</organization> > <roles> > <role>Java Developer</role> > </roles> > </developer> > </developers> > > > <!-- > ################################################################ > --> > <!-- Project dependency section > > --> > <!-- > ################################################################ > --> > > <dependencies/> > > > <!-- > ################################################################ > --> > <!-- Project build and reports section > > --> > <!-- > ################################################################ > --> > > <build> > > > <nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress> > > <sourceDirectory>${basedir}/src/java</sourceDirectory> > > <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory> > > <unitTest> > <includes> > <include>**/Test*.java</include> > </includes> > <excludes> > <exclude>**/*Test*All.java</exclude> > </excludes> > </unitTest> > > <resources/> <!-- (OPTIONAL) Resources > packaged inside the JAR file. --> > > </build> > > <reports> > <report>maven-checkstyle-plugin</report> > </reports> > > <reports> > <report>maven-changes-plugin</report> > <report>maven-jdepend-plugin</report> > <report>maven-checkstyle-plugin</report> > <report>maven-pmd-plugin</report> > <report>maven-junit-report-plugin</report> > <report>maven-clover-plugin</report> > <report>maven-changelog-plugin</report> > <report>maven-file-activity-plugin</report> > > <report>maven-developer-activity-plugin</report> > <report>maven-file-activity-plugin</report> > <report>maven-license-plugin</report> > === message truncated === ----------------------------------------------------------------- 每天都 Yahoo!奇摩 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖 http://tw.promo.yahoo.com/mail_premium/stationery.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]