2.Download latest Java JDK and install it. Set JAVA_HOME path
3.Download Postgres and install it. Set the path in environment variable
4.Download Perl and install it. Set path in environment variable
5.Unzip the opennms source code and put it your local server
(Ex : D:\Workspace\OpenNMS\Source\opennms)
6.Set the mavan bin path in environment variable
(Ex : D:\Workspace\OpenNMS\Source\opennms\maven\bin)
7.Enter into D:\Workspace\OpenNMS\Source\opennms> path
8.Clean your project
(Ex : D:\Workspace\OpenNMS\Source\opennms>perl clean.pl)
9.Compile your opennms project
(Ex : D:\Workspace\OpenNMS\Source\opennms>perl compile.pl)
10.Assemple your or build your project
(Ex : D:\Workspace\OpenNMS\Source\opennms>perl assemple.pl -Dopennms.home=D:\Workspace\OpenNMS\Build)
11.Copy your build file opennms-1.13.0-SNAPSHOT.tar.gz from D:\Workspace\OpenNMS\Source\opennms\target folder
12.Put it your build opennms home location and unzip it
(Ex : D:\Workspace\OpenNMS\Build)
13.Now your folder structure in build path should be the folllowing hira
Build
- bin
- etc
- ...
14.Create install.bat file with the following content
SET OPENNMS_HOME=D:/Workspace/OpenNMS/Build
SET DBNAME=opennms
SET DBURL=jdbc:postgresql://localhost:5432/
SET ETCDIR=%OPENNMS_HOME%/etc
SET SERVLETDIR=%OPENNMS_HOME%/webapps/opennms