From ac0820a7e96b3eb90e6eb2841260aa5b0989ffa8 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Tue, 22 Jul 2014 15:31:45 +0200 Subject: Working the assembly for packaging. --- sonar-application/assembly.xml | 25 +++++++++++++++++----- sonar-application/pom.xml | 1 + .../src/main/assembly/conf/wrapper.conf | 4 +++- .../java/org/sonar/application/ForkProcesses.java | 2 ++ 4 files changed, 26 insertions(+), 6 deletions(-) (limited to 'sonar-application') diff --git a/sonar-application/assembly.xml b/sonar-application/assembly.xml index 9769089b39b..bc4eed0b655 100644 --- a/sonar-application/assembly.xml +++ b/sonar-application/assembly.xml @@ -14,20 +14,35 @@ mysql:mysql-connector-java org.postgresql:postgresql net.sourceforge.jtds:jtds + tanukisoft:wrapper org.codehaus.sonar:sonar-search + org.codehaus.sonar:sonar-process org.codehaus.sonar:sonar-web org.codehaus.sonar.plugins:* org.codehaus.sonar-plugins.java:* org.codehaus.sonar:sonar-batch-maven-compat + + lib/search - true - false - - org.codehaus.sonar:sonar-search - + true + lib + true + + mysql:mysql-connector-java + org.postgresql:postgresql + net.sourceforge.jtds:jtds + tanukisoft:wrapper + org.codehaus.sonar:sonar-search + org.codehaus.sonar:sonar-process + org.codehaus.sonar:sonar-web + org.codehaus.sonar.plugins:* + org.codehaus.sonar-plugins.java:* + org.codehaus.sonar:sonar-batch-maven-compat + + lib/batch diff --git a/sonar-application/pom.xml b/sonar-application/pom.xml index 465c9b5902f..85255196142 100644 --- a/sonar-application/pom.xml +++ b/sonar-application/pom.xml @@ -91,6 +91,7 @@ ${project.version} runtime + org.codehaus.sonar sonar-web diff --git a/sonar-application/src/main/assembly/conf/wrapper.conf b/sonar-application/src/main/assembly/conf/wrapper.conf index 043748ead08..0bd63d41d28 100644 --- a/sonar-application/src/main/assembly/conf/wrapper.conf +++ b/sonar-application/src/main/assembly/conf/wrapper.conf @@ -31,7 +31,9 @@ wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 -wrapper.java.classpath.1=../../lib/*.jar +wrapper.java.classpath.1=../../lib/proc/*.jar +wrapper.java.classpath.2=../../lib/jsw/*.jar +wrapper.java.classpath.3=../../lib/*.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) diff --git a/sonar-application/src/main/java/org/sonar/application/ForkProcesses.java b/sonar-application/src/main/java/org/sonar/application/ForkProcesses.java index de46a32c8fe..9329dfffbf4 100644 --- a/sonar-application/src/main/java/org/sonar/application/ForkProcesses.java +++ b/sonar-application/src/main/java/org/sonar/application/ForkProcesses.java @@ -64,6 +64,7 @@ public class ForkProcesses { "org.sonar.search.ElasticSearch", installation.props(), "ES", + installation.starPath("lib/proc"), installation.starPath("lib/search")); monitor.registerProcess(elasticsearch); @@ -74,6 +75,7 @@ public class ForkProcesses { "org.sonar.server.app.ServerProcess", installation.props(), "SQ", + installation.starPath("lib/proc"), installation.starPath("lib")); monitor.registerProcess(server); -- cgit v1.2.3