-
Notifications
You must be signed in to change notification settings - Fork 0
Developer's guide
git clone https://github.com/Orviss/OpenGrok
- Open IDEA

-
Click on
Import Project -
Pick a path to the cloned project

-
Click on
Import project from external modeland selectMaven
-
Wait for IDEA to index the project, you will see then:

-
OpenGrok uses some generated sources, to generate them simply run
mvn compilefrom terminal or from IDEA as shown on the image:
Now you're set and you can program ;)
-
Select
Runfrom the menu -
Click on
Edit configurations... -
Click on
+ -
Select
Application -
Select main class as
org.opengrok.indexer.index.Indexer -
For option
Use classpath of module:chooseopengrok -
Add necessary program arguments
-
Save
Final look:

Install Tomcat 8 or newer
-
Select
Runfrom the menu -
Click on
Edit configurations... -
Click on
+ -
Select
Tomcat Server->Local -
In the
Servertab select application server or click onConfigure... -
In the
Deploymenttab selectopengrok-web:waras in
There is no Tomcat support; therefore, we will use Tomcat Maven plugin
-
Modify
tomcat-users.xmlto include<user username="admin1" password="admin1" roles="manager-script"/> -
Run Tomcat
-
Modify
~/.m2/settings.xmlto include:
<settings>
<servers>
<server>
<id>OpenGrok</id>
<username>admin1</username>
<password>admin1</password>
</server>
</servers>
</settings>-
Install all packages either by
mvn installor from IDEA the same way we rancompile -
Run
mvn tomcat7:redeployfromopengrok-webdirectory or simply run it from IDEA:

Simply debug from IDE
Run Tomcat with CATALINA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
Debug as remote application