Debian Codegraph @

jansi-website/src/community/building.page

raw
1 ---
2 # Copyright (C) 2009-2017 the original author(s).
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 title: Building
17 --- name:overview
18
19 # How to Build ${project_name}
20 The way most developers get started contributing to a project.
21
22 --- name:content
23
24 ## Building with Maven
25
26 ${project_name} uses [Maven](http://maven.apache.org/) as its primary
27 build tool for performing releases and uses the pom.xml to describe
28 dependencies between modules.
29
30 ### Prequisites
31
32 *Required:*
33
34 * Java 1.6
35 * Download and [install Maven 3](http://maven.apache.org/download.html)
36 * Get the latest [source](source.html)
37
38 ### Maven options
39
40 To build ${project_name} maven has to be configured to use more memory
41
42 set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m
43
44 ### A normal build
45
46 mvn install
47
48 Once the build completes, you will find the jar of
49 ${project_name} located in the `target` directory.
50
51
52 ### Doing a Quick Build
53
54 The following avoids running all the unit test cases, we just skip the
55 test running phase and not the building part
56
57 mvn -Dtest=false install
58
59 ### Using an IDE
60
61 If you prefer to use an IDE then you can auto-generate the IDE's project
62 files using maven plugins. e.g.
63
64 mvn eclipse:eclipse
65
66 or
67
68 mvn idea:idea
69
70 ### Importing into Eclipse
71
72 If you have not already done so, you will need to make Eclipse aware of
73 the Maven repository so that it can build everything. In the preferences,
74 go to `Java -> Build Path -> Classpath` and define a new Classpath
75 Variable named `M2_REPO` that points to your local Maven repository. i.e.
76 `~/.m2/repository` on Unix and `c:\Documents and Settings\$username\.m2\repository`
77 on Windows).
78
79 You can also get Maven to do this for you:
80
81 mvn eclipse:add-maven-repo -Declipse.workspace=/path/to/the/workspace/
82
83 ### See Also
84
85 * [Source](source.html)
86 * [Developer Links](developers.html)