Test Client uses Maven as the build management tool. In order to build the whole project and generate the jar file (test-client-x.x.x-SNAPSHOT.jar), you must run the maven command below from the src
directory.
mvn clean install
Running the above maven command generates the war file under the directory presented below:
src/target/test-client-x.x.x-SNAPSHOT.jar
If running mvn clean install
generates the error presented below, there are two possible solutions.
[ERROR] Failed to execute goal on project test-client: Could not resolve dependencies for project com.pkrete.xrd4j.tools:test-client:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.niis.xrd4j:common:jar:0.4.0: Failed to read artifact descriptor for org.niis.xrd4j:common:jar:0.4.0: Could not transfer artifact org.niis.xrd4j:common:pom:0.4.0 from/to niis-repo (https://artifactory.niis.org/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
Skip certificate validation:
mvn install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Import NIIS's Maven repository's certificate as a trusted certificate into cacerts
keystore. See full instructions. NIIS's Maven release repository's URL is https://artifactory.niis.org/xroad-maven-releases
.