these tools i have used to create the continuous delivery pipeline and will be described in the next blogposts!
- java 1.8
- maven 3.4
- git 2.7.4
- netbeans 8.1
- tomcat 7.0.68
- postgresql 9.5.1-1
- nexus-2.12.1-01
- jenkins 1.651.1
- SonarQube 5.4
- Bitbucket
- jaxws 2.2.10
java installation
- first we need to download the 1.8 jdk
- go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- get the latest jdk(jdk-8u77-windows-x64.exe)
- probably this file is set in the download folder
- we are going to create a tools folder on the c:\ disk
- in this folder we put the downloaded exe file
setup java
- we now have the exe file in the c:\tools folder
- double click on the file to install java
- change the install to into c:\tools\Java\jdk1.8.0_77
- click on next and do a default installation
- next we get a popup to install the jre
- change the install to into c:\tools\Java\jre1.8.0_77
- click on next and finallize the installations
java configuration
- open Configurationscreen > System > Advanced System Settings > Environment Variables
- create a variable under the Systemvariables called JAVA_HOME
- name: JAVA_HOME
- value: C:\tools\Java\jdk1.8.0_77
- new we have to adjust the path variable
- add %JAVA_HOME%\bin; in the beginning of the variable value
java check
- new we check if the installation is done correctly
- open command-prompt
- go to c:\
- enter java -version
maven installation
- second we are going to download maven
- go to https://maven.apache.org/download.cgi
- download the Binary zip archive(apache-maven-3.3.9-bin.zip)
- put this zip file in the c:\tools folder
- unzip the file with winzip/winrar
- probably you have a dir-structure like this: c:\tools\apache-maven-3.3.9-bin\apache-maven-3.3.9
- we are going to move the apache-maven-3.3.9 under c:\tools
- delete the apache-maven-3.3.9-bin folder because it is obsolete
maven configuration
- open Configurationscreen > System > Advanced System Settings > Environment Variables
- create a variable under the Systemvariables called M2_HOME
- name: M2_HOME
- value: C:\tools\apache-maven-3.3.9
- new we have to adjust the path variable
- add %M2_HOME%\bin; in the beginning of the variable value
maven check
- new we check if the installation is done correctly
- open command-prompt
- go to c:
- enter mvn -v
set local repository
- navigate to C:\tools\apache-maven-3.3.9\conf
- search for localRepository
- add a new line under the comment: c:\repository
we are going to create 4 servers
- WebServiceDevelop to develop our services(development)
- WebServiceTest to test our services(test)
- WebAppDevelop to develop our application(development)
- WebAppTest to test our application(test)
- op the settings.xml in the folder c:\tools\apache-maven-3.3.9\conf
- navigate to the server section and add
<server>
<id>WebServiceDevelop</id>
<username>johan</username>
<password>troposphere</password>
</server>
<server>
<id>WebServiceTest</id>
<username>david</username>
<password>oriental</password>
</server>
<server>
<id>WebAppDevelop</id>
<username>max</username>
<password>voyager</password>
</server>
<server>
<id>WebAppTest</id>
<username>elliot</username>
<password>feedom</password>
</server>
git installation
- thirdly we are going to download git
- go to https://git-scm.com/downloads
- click on the button 'Download for Windows'
- click on the link: 64-bit Git for Windows Setup.
- double click on the Git-2.7.4-64-bit.exe file
- install git in the folder C:\tools\Git-2.7.4
- click next until you can choose Ajusting your PATH environment
- choose the second radiobutton: Use Git from the windows command prompt
- click next > next
- you can choose configuring the terminal emulator to use Git Bash
- choose the second radiobutton: Use windows' default console window
- finish the installation
git configuration
- open Configurationscreen > System > Advanced System Settings > Environment Variables
- create a variable under the Systemvariables called GIT_HOME
- name: GIT_HOME
- value: C:\tools\Git-2.7.4
- new we have to adjust the path variable
- add %GIT_HOME%\bin; in the beginning of the variable value
git check
- new we check if the installation is done correctly
- open command-prompt
- go to c:
- enter git --version
netbeans installation
- at last we are going to download netbeans(other java-IDE's are just fine, but i use netbeans because the maven integration is great)
- go to https://netbeans.org/downloads/
- download the Java SE version
- double click on the netbeans-8.1-javase-windows.exe file
- for the installation choose the next settings
- install the Netbeans IDE to: C:\tools\NetBeans 8.1
- JDK for the Netbeans IDE to: C:\tools\Java\jdk1.8.0_77
- finish the installation by choosing the default settings