Re: [M2] Manually download artifact?

2008-10-13 Thread Roger Ye
Yep, the project in question is using Ant, I've heard of Ivy but haven't tried it out. I think this is a good chance to give it a shot. Meanwhile I think the idea of putting the dependency plugin into this use case is also an nice option, just like Wendy has suggested, I've filed a feature request

[M2] Manually download artifact?

2008-10-12 Thread Roger Ye
Hi, Without a pom, is there any mojo which I can use to download a certain artifact from maven repository server, into my local repo? Maven local repository is excellent at managing only one copy of each dependency, unfortunately I have a project which is not using maven, and I want to put the de

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Roger Ye
Hi, On 4/30/08, Benjamin Bentmann <[EMAIL PROTECTED]> wrote: > > I agree, having users explicitly state the encoding in their POMs is the > best we can have, the same applies to locking down plugin versions by the > way. No guessing, no implicit default values, just full control, let's call > it "

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Roger Ye
On 4/30/08, Benjamin Bentmann <[EMAIL PROTECTED]> wrote: > > Paolo Compieta wrote: > > - most companies have uniform OS platforms > > > > I am used to scenarios where people work on Unix/Win terminals or their > Unix/Mac/Win notebooks on their own discretion, creating quite some > heterogenous dev

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Roger Ye
On 4/30/08, Benjamin Bentmann <[EMAIL PROTECTED]> wrote: > > Roger Ye wrote: > > e.g., in Linux, if LC_ALL=en_US.UTF-16 has been set, > > one will be very confused in case of option [b], when maven uses another > > encoding such as utf-8 > > > > Confusion

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Roger Ye
Hi Sherali, On 4/29/08, Sherali Karimov <[EMAIL PROTECTED]> wrote: > > +1 for the option b. > We had our share of builds behaving differently from OS to OS and from > region to region. :( Excuse me, but I think this is your fault. This is exactly the case where you should use explicit encoding

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Roger Ye
Hey, No offense, I bet you're an American and never read the joke which involves trilingual, bilingual and American On 4/29/08, Benjamin Bentmann <[EMAIL PROTECTED]> wrote: > > Manos Batsis wrote: > > Having all files stick to a given (default) encoding will mean a > > nightmare to all > > platf

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Roger Ye
definitely option [a] respecting platform default encoding is the convention with the highest weight, and option [b] simply breaks this convention by not respecting platform default encoding. e.g., in Linux, if LC_ALL=en_US.UTF-16 has been set, one will be very confused in case of option [b], whe

[M2] Are pom.xml settings.xml really well-formed?

2008-02-09 Thread Roger Ye
Hi all, I've just read haakon's blog Java Permgen space, String.intern, XML parsing (pitty his permlink is broken), that's a memory problem caused by "well formed" XMLs, which is related to the usage of String.intern(), by the XML parser Xerces 2. ccording to

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread Roger Ye
; To: [EMAIL PROTECTED] > Subject: Re: Maven Site, No Anonymous Access to Source Repository > > On Dec 18, 2007 9:08 PM, Roger Ye <[EMAIL PROTECTED]> wrote: > > > and if I try to remove the scm.connection element from my pom.xml, then > I > > can not add my project into co

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-19 Thread Roger Ye
ode, it seems that this is not taken into > consideration. I think this is a feature request. > > With regards, > > Nick Stolwijk > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Roger Ye > Sent: Wed 12/19/2007 5:08 AM > To: Maven Users List; [EMA

Maven Site, No Anonymous Access to Source Repository

2007-12-18 Thread Roger Ye
;scm' element in the POM. hmm.... On 12/19/07, Roger Ye <[EMAIL PROTECTED]> wrote: > > Ah, thanks, I had added the scm.connection element back because continuum > had had problem to checkout the source code, > > So the correct solution is to configure the

Re: Maven Site, No Anonymous Access to Source Repository

2007-12-18 Thread Roger Ye
h, > > Nick Stolwijk > > [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_scm > [2] > http://maven.apache.org/plugins/maven-project-info-reports-plugin/scm-mojo.html > [3] > http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/scm-

Maven Site, No Anonymous Access to Source Repository

2007-12-18 Thread Roger Ye
Hi, I'm using mvn site to generate my project site, and in the source-repository.html page, it contains the anonymous access information to my svn source repository, but the fact is that we don't provide svn anonymous acess, and authentication is mandatory, So the question is how to remove the so

Re: [logging] commons-logging Makes My POM So Ugly

2007-11-24 Thread Roger Ye
Hi Wayne, Thanks a lot for your tip. I tried that and now my pom looks much better now :) And now I also see why it's better to use specific spring-xxx.jar(s) sub-component, instead of the monolithic spring.jar, that is, to avoid excluding spring-xxx.jar(s) multi times in case other dependencies

[logging] commons-logging Makes My POM So Ugly

2007-11-24 Thread Roger Ye
Here is my attempt to do logging only with log4j, no commons-logging or jdk-logging. So, the original intent is to drop commons-logging away, but now it's everywhere in my pom.xml... and, what's interesting, to do "mvn tomcat:run", I have to explicitly include the 1.1 version of JCL to make the

Re: Why Maven is Hard?

2007-09-25 Thread Roger Ye
Thanks for the recommendation of this page, I think before reading that I even don't understand what I was asking to maven to let it work. :P In the build lifecycle introduction on maven site, there's a table which lists the phase - goal mapping for jar packaging, but that table doesn't have head

Re: How to specify default file encoding?

2007-09-14 Thread Roger Ye
You may want to read the documentation for maven compiler plug-in [1], and its example [2] [1] http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html [2] http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html On 9/14/07, Steve Z <[EMAI

Help Info for Goal?

2007-08-30 Thread Roger Ye
Hi, I'm new to Maven, and now have a basic understanding of the Goal:Phase notation in Maven to do sth. My question is, regarding an unfamiliar goal, how can I know what phases are available? I do think there should be a common way for all the maven goals to provide some help information, e.g. t