This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILDING.txt
90 lines (59 loc) · 3.04 KB
/
BUILDING.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Build instructions for Apache Commons Crypto
----------------------------------------------------------------------------------
Requirements:
* Unix System (Linux or Mac), or Windows with MinGW
* JDK 1.7 or above (environment variable JAVA_HOME must be set)
* Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy
Files (if running unit tests)
* Maven 3.0 or above
* Make
* OpenSSL devel 1.0.1c or above (Openssl library header files are required)
----------------------------------------------------------------------------------
Install JCE Unlimited Strength Jurisdiction Policy Files:
Download the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files from Oracle:
For JDK 1.7: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
For JDK 1.8: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Install JCE Unlimited Strength Jurisdiction Policy Files to JDK:
Copy downloaded local_policy.jar and US_export_policy.jar to <java-home>/jre/lib/security/
----------------------------------------------------------------------------------
Verify OpenSSL version:
Check OpenSSL version:
$ openssl version
If it is not 1.0.1c or above, upgrade OpenSSL version to 1.0.1c or above:
Upgrade OpenSSL in Linux:
You can follow your OS distribution instructions to upgrade OpenSSL to a proper version.
Upgrade OpenSSL in Mac:
$ brew install homebrew/versions/openssl101
$ brew link openssl --force
----------------------------------------------------------------------------------
Maven build goals:
* Clean : mvn clean
* Compile : mvn compile
* Run tests : mvn test
* Run benchmarks : mvn clean test -Pbenchmark
* Run test; no JNI build : mvn clean test -Dmaven.antrun.skip
* Create JAR : mvn package
* Run findbugs : mvn compile -Pfindbugs
* Run checkstyle : mvn compile checkstyle:checkstyle
* Install JAR in M2 cache : mvn install
* Deploy JAR to Maven repo : mvn deploy
* Run RAT : mvn apache-rat:check
* Run Clirr : mvn clirr:check
* Build javadocs : mvn javadoc:javadoc
* Change version : mvn versions:set -DnewVersion=NEWVERSION
----------------------------------------------------------------------------------
Importing projects to eclipse
Generate eclipse project files.
$ mvn eclipse:eclipse -DskipTests
At last, import to eclipse by specifying the root directory of the project via
[File] > [Import] > [Existing Projects into Workspace].
----------------------------------------------------------------------------------
Building distributions:
To perform the license release audit, a.k.a. "RAT check", run:
mvn apache-rat:check
[Once 1.0.0 is out] To perform a Clirr check, run:
mvn clirr:check
Create binary distribution:
$ mvn package -DskipTests
Create a local staging version of the website (in /tmp/crypto-site):
$ mvn clean site; mvn site:stage -DstagingDirectory=/tmp/crypto-site