This is a sample maven project in "Maven by Example", improved to adopt the new Yahoo Weather API.
$ git clone https://github.com/Lunran/simple-weather.git
$ cd simple-weather
$ mvn install
$ mvn exec:java -Dexec.mainClass=org.sonatype.mavenbook.custom.weather.Main
$ mvn exec:java -Dexec.mainClass=org.sonatype.mavenbook.custom.weather.Main -Dexec.args="Tokyo"
- added jaxen to pom.xml
- changed query URI
- fixed parser to deal with the new xml format
- http://books.sonatype.com/mvnex-book/reference/public-book.html
- https://github.com/sonatype/maven-example-en
- https://developer.yahoo.com/weather/
- Example of query URI and response