You will need a recent version of Java SE 5 or later installed to build and run the JUnit tests.
Apache BVal supports the Oracle (formerly Sun) JDK available at http://java.oracle.com. The IBM Java SDK at http://www.ibm.com/developerworks/java/jdk/ should also work and will be supported as well as possible. Other Java vendors or versions may work, so please ping the Mailing Lists if you encounter problems. We will aim for across-the-board compatibility wherever possible.
These instructions describe how to check out the current BVal trunk source code from the Apache Software Foundation's Apache Subversion source code management repository and build it using the Apache Maven build tool. These utilities support use from the console and are known to work on Windows, Linux and Mac OS X.
java -version
mvn -v
from the console will display the expected version number.svn help
or svn --version
svn co http://svn.apache.org/repos/asf/bval/trunk bval-trunk
. It will
check out the sources to a bval-trunk
directory (ASF committers use https
).bval-trunk
directory, which has already been created in
the previous step.mvn install
. The first time you run the
build, many dependencies are automatically resolved and downloaded. It is
common for dependency downloading to fail the first time, which will fail
the build. If any of these dependency downloads fail, just re-run the
command. You may also want to add a maven central mirror repository to your
~/.m2/settings.xml
file if download times are consistently slow or fail
(see here).Checkout the source as described above
Build the source using Maven as described above
mvn eclipse:eclipse
If this is the first project in your workspace to use maven artifacts you need to create a classpath variable named M2_REPO which contains the full path to your local repository. The eclipse plugin can do this for you with the following command:
mvn eclipse:configure-workspace -Declipse.workspace=$ {path_to_your_workspace}
Start Eclipse (3.4 or later suggested) and create a new workspace
Import the BVal project, by:
pom.xml
files should be pre-selected for the svn
checkout
locationThe bval-jsr303
module needs the jaxb2:xjc
goal to run as part of its
build process: Add this to the project's Maven --> Lifecycle Mapping
options under Goals to invoke after project clean:.