You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by pa...@jps.net on 2004/01/29 05:07:31 UTC
Re: a newbie question
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: <ne...@yahoo.com.tw>
Sent: Jan 28, 2004 7:42 PM
To: users@maven.apache.org
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:anoncvs@cvs.apache.org:/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>srikanth@srikanth.org</email>
<organization>Objectseek</organization>
<roles>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<!--
################################################################
-->
<!-- Project dependency section
-->
<!--
################################################################
-->
<dependencies/>
<!--
################################################################
-->
<!-- Project build and reports section
-->
<!--
################################################################
-->
<build>
<nagEmailAddress>srikanth@srikanth.org</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>
<report>maven-linkcheck-plugin</report>
<report>maven-jxr-plugin</report>
</reports>
</project>
-----------------------------------------------------------------
??? Yahoo!??
??????????????????????
http://tw.promo.yahoo.com/mail_premium/stationery.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org