Re: example for settings.xml

2009-03-01 Thread linchongsu
you can get reference from http://maven.apache.org/settings.html
Best Regards!

On Sun, Mar 1, 2009 at 3:21 PM, nani2ratna nani2ra...@gmail.com wrote:


 Hi,

 Thank you very much for your replies.
 Actually i didnt understand properly about settings.xml.
 I didnt put anything in that file.
 Thats why it was not working.
 I went through some forums then i put the default values.
 Now its working fine.
 Thank you very much for giving these replies.

 Thanks and Regards
 Ratna Sekhar





 Ian Petzer wrote:
 
  Hi Ratna,
 
  To be honest you don't really need much of anything in a settings.xml
  file.
  The defaults are enough to get Maven working.
 
  I actually run with a settings.xml file that looks much like the snippet
  below You could create your own settings.xml file like this but I doubt
 it
  would solve your problem.
 
  Maybe you should paste your error message that you get:
 
  -
 
  settings xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/xsd/settings-1.0.0.xsd;
 
  mirrors
  /mirrors
  servers
  /servers
 
  /settings
 
 
  ---
 
  On Sat, Feb 28, 2009 at 10:35 PM, nani2ratna nani2ra...@gmail.com
 wrote:
 
 
  Hi,
 
  I am new user to maven.
  I installed maven perfectly. I did first hello world perfectly.
  Now i want to create a project for struts and hibernate.
  Then i gave command to generate folder for web application.
  It also worked fine, now i put struts in dependency.
  But its giving error that settings.xml is not working.
  I want to start developing with struts very new version 2.1.6 GA.
  So can please send me the proper settings.xml.
 
  Thanks and Regards
  Ratna
  -
  View this message in context:
  http://www.nabble.com/example-for-settings.xml-tp22267685p22267685.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/example-for-settings.xml-tp22267685p22270551.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
漠洋(苏琳冲)
SuLinchong
Phone   13656669328
Qq387973308
Msn  sulinch...@hotmail.com


Re: example for settings.xml

2009-03-01 Thread Ian Petzer
Ratna,

Now that you have a better understanding of the settings.xml file, I would
recommend that you specify a mirror for the main maven site that is located
close to you geographically. Encourage the rest of your team to do the same,
or even think about putting in a local repository for your organisation.

Your Maven will run faster due to a lower latency connection and you'll be
less load on the Maven servers.

Ian

On Sun, Mar 1, 2009 at 7:21 AM, nani2ratna nani2ra...@gmail.com wrote:


 Hi,

 Thank you very much for your replies.
 Actually i didnt understand properly about settings.xml.
 I didnt put anything in that file.
 Thats why it was not working.
 I went through some forums then i put the default values.
 Now its working fine.
 Thank you very much for giving these replies.

 Thanks and Regards
 Ratna Sekhar





 Ian Petzer wrote:
 
  Hi Ratna,
 
  To be honest you don't really need much of anything in a settings.xml
  file.
  The defaults are enough to get Maven working.
 
  I actually run with a settings.xml file that looks much like the snippet
  below You could create your own settings.xml file like this but I doubt
 it
  would solve your problem.
 
  Maybe you should paste your error message that you get:
 
  -
 
  settings xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/xsd/settings-1.0.0.xsd;
 
  mirrors
  /mirrors
  servers
  /servers
 
  /settings
 
 
  ---
 
  On Sat, Feb 28, 2009 at 10:35 PM, nani2ratna nani2ra...@gmail.com
 wrote:
 
 
  Hi,
 
  I am new user to maven.
  I installed maven perfectly. I did first hello world perfectly.
  Now i want to create a project for struts and hibernate.
  Then i gave command to generate folder for web application.
  It also worked fine, now i put struts in dependency.
  But its giving error that settings.xml is not working.
  I want to start developing with struts very new version 2.1.6 GA.
  So can please send me the proper settings.xml.
 
  Thanks and Regards
  Ratna
  -
  View this message in context:
  http://www.nabble.com/example-for-settings.xml-tp22267685p22267685.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/example-for-settings.xml-tp22267685p22270551.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: example for settings.xml

2009-03-01 Thread Rusty Wright

And here are some instructions for that:

 http://maven.apache.org/guides/mini/guide-mirror-settings.html


Ian Petzer wrote:

Ratna,

Now that you have a better understanding of the settings.xml file, I would
recommend that you specify a mirror for the main maven site that is located
close to you geographically. Encourage the rest of your team to do the same,
or even think about putting in a local repository for your organisation.

Your Maven will run faster due to a lower latency connection and you'll be
less load on the Maven servers.

Ian

On Sun, Mar 1, 2009 at 7:21 AM, nani2ratna nani2ra...@gmail.com wrote:


Hi,

Thank you very much for your replies.
Actually i didnt understand properly about settings.xml.
I didnt put anything in that file.
Thats why it was not working.
I went through some forums then i put the default values.
Now its working fine.
Thank you very much for giving these replies.

Thanks and Regards
Ratna Sekhar





Ian Petzer wrote:

Hi Ratna,

To be honest you don't really need much of anything in a settings.xml
file.
The defaults are enough to get Maven working.

I actually run with a settings.xml file that looks much like the snippet
below You could create your own settings.xml file like this but I doubt

it

would solve your problem.

Maybe you should paste your error message that you get:

-

settings xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;

mirrors
/mirrors
servers
/servers

/settings


---

On Sat, Feb 28, 2009 at 10:35 PM, nani2ratna nani2ra...@gmail.com

wrote:

Hi,

I am new user to maven.
I installed maven perfectly. I did first hello world perfectly.
Now i want to create a project for struts and hibernate.
Then i gave command to generate folder for web application.
It also worked fine, now i put struts in dependency.
But its giving error that settings.xml is not working.
I want to start developing with struts very new version 2.1.6 GA.
So can please send me the proper settings.xml.

Thanks and Regards
Ratna
-
View this message in context:
http://www.nabble.com/example-for-settings.xml-tp22267685p22267685.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--
View this message in context:
http://www.nabble.com/example-for-settings.xml-tp22267685p22270551.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



example for settings.xml

2009-02-28 Thread nani2ratna

Hi,

I am new user to maven.
I installed maven perfectly. I did first hello world perfectly.
Now i want to create a project for struts and hibernate.
Then i gave command to generate folder for web application.
It also worked fine, now i put struts in dependency.
But its giving error that settings.xml is not working.
I want to start developing with struts very new version 2.1.6 GA.
So can please send me the proper settings.xml.

Thanks and Regards
Ratna
-- 
View this message in context: 
http://www.nabble.com/example-for-settings.xml-tp22267685p22267685.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: example for settings.xml

2009-02-28 Thread Wayne Fay
 But its giving error that settings.xml is not working.
 I want to start developing with struts very new version 2.1.6 GA.
 So can please send me the proper settings.xml.

I don't know why you think your settings.xml is not working. Can you
send us the actual error message you see?

Here's Struts2 version 2.1.6 in Central:
http://repo2.maven.org/maven2/org/apache/struts/struts2-core/2.1.6/

You'll probably want a dependency like (this is for core only, I don't
know what modules you'll use):

dependency
   groupIdorg.apache.struts/groupId
   artifactIdstruts2-core/artifactId
   version2.1.6/version
/dependency

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: example for settings.xml

2009-02-28 Thread Ian Petzer
Hi Ratna,

To be honest you don't really need much of anything in a settings.xml file.
The defaults are enough to get Maven working.

I actually run with a settings.xml file that looks much like the snippet
below You could create your own settings.xml file like this but I doubt it
would solve your problem.

Maybe you should paste your error message that you get:

-

settings xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;

mirrors
/mirrors
servers
/servers

/settings


---

On Sat, Feb 28, 2009 at 10:35 PM, nani2ratna nani2ra...@gmail.com wrote:


 Hi,

 I am new user to maven.
 I installed maven perfectly. I did first hello world perfectly.
 Now i want to create a project for struts and hibernate.
 Then i gave command to generate folder for web application.
 It also worked fine, now i put struts in dependency.
 But its giving error that settings.xml is not working.
 I want to start developing with struts very new version 2.1.6 GA.
 So can please send me the proper settings.xml.

 Thanks and Regards
 Ratna
 -
 View this message in context:
 http://www.nabble.com/example-for-settings.xml-tp22267685p22267685.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: example for settings.xml

2009-02-28 Thread nani2ratna

Hi,

Thank you very much for your replies.
Actually i didnt understand properly about settings.xml.
I didnt put anything in that file.
Thats why it was not working.
I went through some forums then i put the default values.
Now its working fine.
Thank you very much for giving these replies.

Thanks and Regards
Ratna Sekhar





Ian Petzer wrote:
 
 Hi Ratna,
 
 To be honest you don't really need much of anything in a settings.xml
 file.
 The defaults are enough to get Maven working.
 
 I actually run with a settings.xml file that looks much like the snippet
 below You could create your own settings.xml file like this but I doubt it
 would solve your problem.
 
 Maybe you should paste your error message that you get:
 
 -
 
 settings xmlns=http://maven.apache.org/POM/4.0.0;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/settings-1.0.0.xsd;
 
 mirrors
 /mirrors
 servers
 /servers
 
 /settings
 
 
 ---
 
 On Sat, Feb 28, 2009 at 10:35 PM, nani2ratna nani2ra...@gmail.com wrote:
 

 Hi,

 I am new user to maven.
 I installed maven perfectly. I did first hello world perfectly.
 Now i want to create a project for struts and hibernate.
 Then i gave command to generate folder for web application.
 It also worked fine, now i put struts in dependency.
 But its giving error that settings.xml is not working.
 I want to start developing with struts very new version 2.1.6 GA.
 So can please send me the proper settings.xml.

 Thanks and Regards
 Ratna
 -
 View this message in context:
 http://www.nabble.com/example-for-settings.xml-tp22267685p22267685.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 
 

-- 
View this message in context: 
http://www.nabble.com/example-for-settings.xml-tp22267685p22270551.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org