_____  

From: Shaikh, Mazhar 
Sent: Monday, October 17, 2005 12:53 PM
To: 'Maven Users List'; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL 
PROTECTED]; [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: RE: [urgent] Proxy Properties in Maven1.0.2 for GridPort3.5.1

 

If you are working on linux environment then "user.home" corresponds to the 
directory /home/user-name/

 

Else if you are working on a Windows environment then "user.home" corresponds 
to the directory C:\Documents and Settings\user-name\

 

The Build/properties should accordingly be saved in this directory. The sample 
contents of Build.properties is below.

 

## ----------------------------------------------------------

## build.properties

## ----------------------------------------------------------

.

.

maven.proxy.host = www-pqrs.t-systems.com

maven.proxy.port = 8080

maven.repo.remote = 
http://www.ibiblio.org/maven,http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins

maven.junit.fork = true

 

A repository will be created in the {user-home} location, the moment Maven is 
run from the command prompt. Only those jar files will be download which will 
have a dependency element tag present in the project.xml file. A sample 
dependency tag is shown below,

 

      <dependency>

            <groupId>xjavadoc</groupId>

            <artifactId>xjavadoc</artifactId>

            <version>1.0.2</version>

            <url>http://xdoclet.sf.net/</url>

      </dependency>

 

The above dependency tag instructs Maven to download "xjavadoc-1.0.2.jar" file 
from the URL specified within the <URL> tag. Most of the time <groupID> and 
<artifactId> tag value remains the same. You can make a note of how Maven 
concatenates the the value of <groupid> and <version> tag to form a jar file 
name to download. If the <URL> tag is missing in the Dependency element tag 
then Maven tries to download the file from a remote location defined in the 
build.properties in the {user.home} directory.

 

Similarly if your project needs to have a hibernate jar file of version 2.1.6 
(i.e hibernate-2.1.6.jar) in the repository then the dependency tag in the 
project.xml will look like this

 

      <dependency>

            <groupId>hibernate</groupId>

            <artifactId>hibernate</artifactId>

            <version>2.1.6</version>

      </dependency>

 

Hope this information will be helpful.

 

Thanks and regards,

 

Mazhar Shaikh

------------------------------------------------------------------------

Consultant - T Systems (India)

403-A International Convention Center,

Senapati Bapat Marg, Pune 411016 INDIA

Tel : ++91.20.2560.5000 (Board) Ext. 153

Cell: ++91.98906.60557

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

-----Original Message-----
From: F-a-r-h-a-n-a [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 15, 2005 3:35 AM
To: Maven Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; 
[EMAIL PROTECTED]
Subject: [urgent] Proxy Properties in Maven1.0.2 for GridPort3.5.1

 

 

There are already 2-3 mirror sites defined...........wat I want to know is how 
to set Proxy properties using maven1.0.2 like :

 

(maven.proxy.host

 

. 

 

 

 

maven.proxy.port)

 

 

 

in ${user.home}/build.properties file. Plz specify the location of this 
${user.home}/build.properties  file.........Im unable to find it ...HELP!!!

 

 

 

Farhana 

 

BS(CS) //final year

 

Dept of Computer Science & IT

 

Jinnah University for Women  www.juw.edu.pk

 

Karachi, Pakistan .

 

 

 

 

 

 

 

Carlos Sanchez <[EMAIL PROTECTED]> wrote:

${user.home} is your $HOME in linux

maven always checks first local repo under ${user.home}/.maven/repository

your proxy properties depend on your network, you must find out.

 

On 10/14/05, F-a-r-h-a-n-a wrote:

> 

> Ok now I understand about reference properties......since im new to MAVEN 
> 1.0.2 can u plz tell me where do I 'll find ${user.home}/build.properties 
> file to make proxy changes or is there any way through which I can direct 
> MAVEN to use local repository instead of remote one . I have downloaded all 
> the dependency jar files separately in the local repo ..How can I use local 
> repo.......................................Also plz plz specify how do I make 
> changes in proxy properties ? In which file ? also specify the location of 
> that file on Redhat Linux 9........online or offline I have to settle this 
> repo and jar file problem before Monday...........i've got project to submit 
> plz HELP!!!!!

> 

> 

> 

> Farhana

> 

> 

> 

> Brett Porter 

wrote:http://maven.apache.org/reference/properties.html#Proxy_Properties

> 

> On 10/14/05, F-a-r-h-a-n-a wrote:

> > i didnt get it ur point....plz tell me how do i configure proxy for these 
> > server....plz be more specific................i have downloaded these jar 
> > files separately but how do i copied them in repository.......how do i know 
> > about groupID/artifactID/version/........plz Help

> >

> >

> >

> > looking forward for the response

> >

> >

> >

> >

> >

> > Farhana

> >

> > BS(CS) //final year

> >

> > Dept of Computer Science & IT

> >

> > Jinnah University for Women www.juw.edu.pk

> >

> > Karachi, Pakistan .

> >

> >

> >

> >

> > Brett Porter

> wrote:

> > Your host can't reach these servers:

> >

> > On 10/14/05, F-a-r-h-a-n-a wrote:

> > > Error retrieving artifact from 
> > > [http://cuero.tacc.utexas.edu/maven/maven/plugins/maven-artifact-plugin-1.5.2.jar]:
> > >  java.net.UnknownHostException: cuero.tacc.utexas.edu

> > >

> > > Error retrieving artifact from 
> > > [http://www.ibiblio.org/maven/maven/plugins/maven-artifact-plugin-1.5.2.jar]:
> > >  java.net.UnknownHostException: www.ibiblio.org

> >

> >

> > Perhaps you need to configure a proxy? See the FAQ for details.

> >

> > -Brett

> >

> > ---------------------------------------------------------------------

> > To unsubscribe, e-mail: [EMAIL PROTECTED]

> > For additional commands, e-mail: [EMAIL PROTECTED]

> >

> >

> >

> >

> > O assembly of jinn and men, if you are able to pass through the confines of 
> > the heavens and the earth, pass through; but you shall not pass through 
> > except with authority _(33)so which your Lord's bounties will you two deny? 
> > (34) [Surah Ar-Rehman]

> >

> >

> >

> >

> > ---------------------------------

> > Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

> >

> 

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: [EMAIL PROTECTED]

> For additional commands, e-mail: [EMAIL PROTECTED]

> 

> 

> 

> 

> 

> O assembly of jinn and men, if you are able to pass through the confines of 
> the heavens and the earth, pass through; but you shall not pass through 
> except with authority _(33)so which your Lord's bounties will you two deny? 
> (34) [Surah Ar-Rehman]

> 

> 

> 

> 

> 

> 

> ---------------------------------

> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

> 

 

 

   

O assembly of jinn and men, if you are able to pass through the confines of the 
heavens and the earth, pass through; but you shall not pass through except with 
authority _(33)so which your Lord's bounties will you two deny? (34) [Surah 
Ar-Rehman]

 

 

 

 

 

            

---------------------------------

 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Reply via email to