[Joda-money-interest] Toolchains requirement to build Joda Money
Project moved to GitHub
Status: Alpha
Brought to you by:
scolebourne
From: Tauren M. <ta...@gr...> - 2010-12-03 07:22:15
|
I ran into some problems building Joda Money because it requires that I have a ~/.m2/toolchains.xml file. I didn't have this file and had to research what it was and then create it. I have used Maven a lot, but never have happened upon this feature yet. When building, I got this error: 12/2/10 10:54:06 PM PST: [ERROR] Cannot find matching toolchain definitions for the following toolchain types: jdk [ vendor='sun' version='1.5' ] 12/2/10 10:54:06 PM PST: Build errors for joda-money; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:1.0:toolchain (default) on project joda-money: Cannot find matching toolchain definitions for the following toolchain types: jdk [ vendor='sun' version='1.5' ] Please make sure you define the required toolchains in your ~/.m2/toolchains.xml file. I didn't want to install JDK 1.5, so I faked it by adding a toolchains.xml file that looks like this: <?xml version="1.0" encoding="UTF8"?> <toolchains> <toolchain> <type>jdk</type> <provides> <version>1.5</version> <vendor>sun</vendor> <id>default</id> </provides> <configuration> <jdkHome>/usr/lib/jvm/java-6-sun</jdkHome> </configuration> </toolchain> </toolchains> Is there a reason for this requirement? What if I want to build it with JDK 1.6 instead of 1.5? In my mind, anything that makes it more difficult for people to build, the less likely they are to do so. I would think that checking out the source from SVN and running "mvn install" should just work. Thanks, Tauren |