You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Joshi, Yogesh (Cognizant)" <Yo...@pun.cognizant.com> on 2003/09/18 10:43:03 UTC
Need Help: First day with Maven
Hi ,
This is my first day with Maven :)
I am trying to use it for a very basic application, say, to make jar from a simple java class.
I did the following:
1) Installed and set up Maven
2) D:\SampleMaven\com\src contains Test.java which I need to include in Jar
3) Set up JAVA_HOME and MAVEN_HOME.
Attached is the project.xml
But I am getting the following error when I use "maven jar" :
Attempting to download maven-SNAPSHOT.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/maven/jars/maven-SN
APSHOT.jar]: java.net.ConnectException: Connection refused: connect
WARNING: Failed to download maven-SNAPSHOT.jar.
Attempting to download commons-io-20030203.000550.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-io/jars/com
mons-io-20030203.000550.jar]: java.net.ConnectException: Connection refused: con
nect
WARNING: Failed to download commons-io-20030203.000550.jar.
Attempting to download commons-net-1.0.0.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-net/jars/co
mmons-net-1.0.0.jar]: java.net.ConnectException: Connection refused: connect
WARNING: Failed to download commons-net-1.0.0.jar.
Attempting to download commons-httpclient-2.0-beta1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-httpclient/
jars/commons-httpclient-2.0-beta1.jar]: java.net.ConnectException: Connection re
fused: connect
WARNING: Failed to download commons-httpclient-2.0-beta1.jar.
Attempting to download commons-lang-1.0.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-lang/jars/c
ommons-lang-1.0.jar]: java.net.ConnectException: Connection refused: connect
WARNING: Failed to download commons-lang-1.0.jar.
Attempting to download jsch-0.1.5.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/jsch/jars/jsch-0.1.
5.jar]: java.net.ConnectException: Connection refused: connect
WARNING: Failed to download jsch-0.1.5.jar.
Attempting to download commons-jelly-20030310.073407.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/
commons-jelly-20030310.073407.jar]: java.net.ConnectException: Connection refuse
d: connect
WARNING: Failed to download commons-jelly-20030310.073407.jar.
Attempting to download commons-jelly-tags-velocity-20030303.205659.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/
commons-jelly-tags-velocity-20030303.205659.jar]: java.net.ConnectException: Con
nection refused: connect
WARNING: Failed to download commons-jelly-tags-velocity-20030303.205659.jar.
Attempting to download velocity-1.3.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/velocity/jars/veloc
ity-1.3.jar]: java.net.ConnectException: Connection refused: connect
WARNING: Failed to download velocity-1.3.jar.
The build cannot continue because of the following unsatisfied dependencies:
maven-SNAPSHOT.jar
commons-io-20030203.000550.jar
commons-net-1.0.0.jar
commons-httpclient-2.0-beta1.jar
commons-lang-1.0.jar
jsch-0.1.5.jar
commons-jelly-20030310.073407.jar
commons-jelly-tags-velocity-20030303.205659.jar
velocity-1.3.jar
Total time: 18 seconds
<<project.xml>>
Can anybody please respond to my very basic query !
Thanks in advance
Yogesh
Re: Need Help: First day with Maven
Posted by Andy Jefferson <an...@ajsoft.net>.
> This is my first day with Maven :)
Welcome :-)
> I am trying to use it for a very basic application, say, to make jar from a
> simple java class. I did the following:
> 1) Installed and set up Maven
> 2) D:\SampleMaven\com\src contains Test.java which I need to include in Jar
> 3) Set up JAVA_HOME and MAVEN_HOME.
> Attempting to download maven-SNAPSHOT.jar.
> Error retrieving artifact from
> [http://www.ibiblio.org/maven/maven/jars/maven-SN APSHOT.jar]:
> java.net.ConnectException: Connection refused: connect WARNING: Failed to
> download maven-SNAPSHOT.jar.
Maven needs to populate its repository with various bits of software to run.
It assumes you have a connection to go to "www.ibiblio.org/maven" to get
these. If you haven't got internet access, or are behind a firewall (are you
in this situation ?) you will need to set up your repository manually ... in
the Maven install it has a repository directory, and under this are the
various package directories
repository/"package"/jars/...
so you need to get hold of those jars mentioned below yourself (go to
http://www.ibiblio.org/maven/ and you will find them in a similar directory
layout), and copy them into the various package places in your Maven
repository.
e.g
repository/commons-io/jars/commons-io-20030203.000550.jar
repository/commons-net/jars/commons-net-1.0.0.jar
etc
> maven-SNAPSHOT.jar
> commons-io-20030203.000550.jar
> commons-net-1.0.0.jar
> commons-httpclient-2.0-beta1.jar
> commons-lang-1.0.jar
> jsch-0.1.5.jar
> commons-jelly-20030310.073407.jar
> commons-jelly-tags-velocity-20030303.205659.jar
> velocity-1.3.jar
HTH
--
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Need Help: First day with Maven
Posted by di...@multitask.com.au.
Are you behind a proxy?
Do you have access to the internet from the machine running the build?
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
"Joshi, Yogesh (Cognizant)" <Yo...@pun.cognizant.com> wrote on
18/09/2003 06:43:03 PM:
> Hi ,
> This is my first day with Maven :)
> I am trying to use it for a very basic application, say, to make jar
> from a simple java class.
> I did the following:
> 1) Installed and set up Maven
> 2) D:\SampleMaven\com\src contains Test.java which I need to include in
Jar
> 3) Set up JAVA_HOME and MAVEN_HOME.
> Attached is the project.xml
> But I am getting the following error when I use "maven jar" :
> Attempting to download maven-SNAPSHOT.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/maven/jars/maven-SN
> APSHOT.jar]: java.net.ConnectException: Connection refused: connect
> WARNING: Failed to download maven-SNAPSHOT.jar.
> Attempting to download commons-io-20030203.000550.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/commons-io/jars/com
> mons-io-20030203.000550.jar]: java.net.ConnectException: Connection
> refused: con
> nect
> WARNING: Failed to download commons-io-20030203.000550.jar.
> Attempting to download commons-net-1.0.0.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/commons-net/jars/co
> mmons-net-1.0.0.jar]: java.net.ConnectException: Connection refused:
connect
> WARNING: Failed to download commons-net-1.0.0.jar.
> Attempting to download commons-httpclient-2.0-beta1.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/commons-httpclient/
> jars/commons-httpclient-2.0-beta1.jar]: java.net.ConnectException:
> Connection re
> fused: connect
> WARNING: Failed to download commons-httpclient-2.0-beta1.jar.
> Attempting to download commons-lang-1.0.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/commons-lang/jars/c
> ommons-lang-1.0.jar]: java.net.ConnectException: Connection refused:
connect
> WARNING: Failed to download commons-lang-1.0.jar.
> Attempting to download jsch-0.1.5.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/jsch/jars/jsch-0.1.
> 5.jar]: java.net.ConnectException: Connection refused: connect
> WARNING: Failed to download jsch-0.1.5.jar.
> Attempting to download commons-jelly-20030310.073407.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/commons-jelly/jars/
> commons-jelly-20030310.073407.jar]: java.net.ConnectException:
> Connection refuse
> d: connect
> WARNING: Failed to download commons-jelly-20030310.073407.jar.
> Attempting to download commons-jelly-tags-velocity-20030303.205659.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/commons-jelly/jars/
> commons-jelly-tags-velocity-20030303.205659.jar]: java.net.
> ConnectException: Con
> nection refused: connect
> WARNING: Failed to download
commons-jelly-tags-velocity-20030303.205659.jar.
> Attempting to download velocity-1.3.jar.
> Error retrieving artifact from [http://www.ibiblio.
> org/maven/velocity/jars/veloc
> ity-1.3.jar]: java.net.ConnectException: Connection refused: connect
> WARNING: Failed to download velocity-1.3.jar.
> The build cannot continue because of the following unsatisfied
dependencies:
> maven-SNAPSHOT.jar
> commons-io-20030203.000550.jar
> commons-net-1.0.0.jar
> commons-httpclient-2.0-beta1.jar
> commons-lang-1.0.jar
> jsch-0.1.5.jar
> commons-jelly-20030310.073407.jar
> commons-jelly-tags-velocity-20030303.205659.jar
> velocity-1.3.jar
> Total time: 18 seconds
>
> <<project.xml>>
> Can anybody please respond to my very basic query !
> Thanks in advance
> Yogesh [attachment "project.xml" deleted by dIon Gillard/Multitask
> Consulting/AU] [attachment "InterScan_Disclaimer.txt" deleted by
> dIon Gillard/Multitask Consulting/AU]
> ---------------------------------------------------------------------
> 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