exec:java problem

2009-07-14 Thread ykyuen
Hi all, i am new to maven2. i got some problem when i tried to follow the sample program of the book "Maven: The Definitive Guide" http://www.sonatype.com/books/maven-book/reference/customizing-sect-custom-exec.html i can sucessfully build the the program by the mvn install command http://www.co

Re: exec:java problem

2009-07-14 Thread ykyuen
Hi all, i just did the same thing in Linux environemt. the program can be executed without any problem. same warning appear at mvn install but this time the encoding is UTF-8. what makes the execution failure in windows env? Thanks. Regards, Kit -- View this message in context: http://www.na

Re: exec:java problem

2009-07-14 Thread David C. Hicks
The warning you get is fairly standard. It happens when you don't declare the character set encoding that you want to use for the copying of resources. This probably has nothing to do with your error. The error is indicating that the class org.sonatype.mavenbook.weather.Main does not exist. Che

Re: exec:java problem

2009-07-14 Thread David C. Hicks
Did you check to make sure that the class was in the target/classes directory? The UTF-8 encoding is normal on Linux. That's the default encoding when one is not specified. ykyuen wrote: > Hi all, > > i just did the same thing in Linux environemt. the program can be executed > without any prob

Re: exec:java problem

2009-07-14 Thread ykyuen
it works in windows now. the problem is previously, i created the maven project directly in eclipse by the m2eclipse plugin and the project is located in the workspace. then i try to create the project in the maven repository by the mvn archetype:create and them import the project to the eclipse.

Re: exec:java problem

2009-07-15 Thread Tim O'Brien
On Wed, Jul 15, 2009 at 1:42 AM, ykyuen wrote: > > it works in windows now. > the problem is previously, i created the maven project directly in eclipse > by the m2eclipse plugin and the project is located in the workspace. > > then i try to create the project in the maven repository by the mvn > a

Re: exec:java problem

2009-07-15 Thread ykyuen
Tim O'Brien wrote: > > Alright, time to update this example to use a gov't feed from the US NWS. > > Thanks for letting me know. > u are welcome~~ that's my pleasure =P -- View this message in context: http://www.nabble.com/exec%3Ajava-problem-tp24491018p24499961.html Sent from the Maven -

Re: exec:java problem

2009-07-19 Thread ykyuen
Tim O'Brien wrote: > > Alright, time to update this example to use a gov't feed from the US NWS. > > Thanks for letting me know. > oh sorry, i have made a mistake, the sample works fine. the failure was caused by the firewall of my network. sorry for the misleading:-(( -- View this message

Re: exec:java problem

2009-07-31 Thread ykyuen
ykyuen wrote: > > oh sorry, i have made a mistake, the sample works fine. the failure was > caused by the firewall of my network. > > sorry for the misleading:-(( > The solution is to add the proxy in the YahooRetriever.java System.getProperties().put("proxySet", "true"); System.getProperti