after adjusting some setting via referencing document
from http://maven.apache.org/maven.pdf and change
maven version from beta-7 to rc-1.0 , now i can almost
run the maven sample project provided via
theserverside.com.
however, there's still a problem occurred. here i post
the way i solve the problem (hope could prevent others
to do the same wrong as i did;) and the new problem i
encounter (hope anyone could tell me how to solve
that).
env i has 
OS: window 2000 pro
maven: maven 1.0 rc
jdk:j2sdk1.4.1_01
====solve=====
prerequisite: set maven j2sdk env setting.
first, i change the maven version from beta-7 to
rc-1.0, becasue i found that the structure of these
two version's slightly difference.
second, following paulsm's suggestion (thanks your
help;) to run the script install_repo.bat to install
repository into local with command "install_repo.bat 
path/to/repository".
third, simply type "maven" to process the project.
=====problem======
console issues "Unable to obtain goal [foobar-dist] --
file:/E:/unzipped/Foobar-Travels/Foobar-T
ravels/Foobar-Web/:9:45: <attainGoal> No goal
[xdoclet:webdoclet]". it seems not the lack of the
xdocletXXX.jar file, for i download it to repository
it still issues such problem.
i appreciate any suggestions, 
thank you very much.



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

Reply via email to