1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
\r
2 .. http://creativecommons.org/licenses/by/4.0
\r
3 .. Copyright 2017 Huawei Technologies Co., Ltd.
\r
5 Workspace and Development Tools
\r
6 ===============================
\r
8 We recognize that there are different ways to set up a workspace and different tools that may be chosen. This is just one way to set things up.
\r
10 Suggested Directory Structure
\r
11 ------------------------------
\r
12 *NOTE*: You may have different versions of eclipse and java.
\r
22 eclipse-jee-neon-3-linux-gtk-x86_64
\r
41 Download the latest Java_8_SE_Development_Kit_ from Oracle. Select a Linux x64 package.
\r
45 .. _Java_8_SE_Development_Kit: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
\r
50 Download the Apache_Maven_3.3.9_ binary. NOTE: 3.3.9 is the recommended version, even though much higher versions are available.
\r
54 .. _Apache_Maven_3.3.9: https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/
\r
56 Create an .m2 directory for maven and put settings.xml_ in it. Edit the local repository path in settings.xml to make it correct for your environment. Everything else should be OK.
\r
58 .. _settings.xml: https://wiki.onap.org/download/attachments/15997820/settings.xml?version=1&modificationDate=1506156303000&api=v2
\r
63 Download the Camunda_Modeler_. Select the Linux x64 package.
\r
66 .. _Camunda_Modeler: https://camunda.org/download/modeler/
\r
71 Download Eclipse_for_Linux_. Select the 64-bit Eclipse IDE for Java EE Developers. Oxygen seems to be the latest version. These instructions were written for Neon.
\r
74 .. _Eclipse_for_Linux: https://www.eclipse.org/downloads/eclipse-packages/?osType=linux
\r
76 In the eclipse directory, edit eclipse.ini
\r
78 Add (or change) the -vm setting so that it points to your JDK.
\r
80 Adjust the maximum heap space (2GB is recommended).
\r
84 .. image:: images/Workspace_and_Development_Tools.png
\r
89 **Configure eclipse to use your external maven 3.3.9 installation:**
\r
90 Go to Window→Preferences→Maven→Installations
\r
92 Click "Add" and browse to your apache-maven-3.3.9 directory. Click "OK" to select it.
\r
96 .. image:: images/Workspace_and_Development_Tools_2.png
\r
98 Make sure the external installation is selected:
\r
100 .. image:: images/Workspace_and_Development_Tools_3.png
\r
102 **Configure eclipse to use your settings.xml**
\r
103 Go to Window→Preferences→Maven→User Settings
\r
105 Type the full path to your settings.xml file into the "User Settings" box and click "OK".
\r
107 .. image:: images/Workspace_and_Development_Tools_4.png