diff --git a/plugins/pom.xml b/plugins/pom.xml
new file mode 100644
index 0000000000..ba78057d2d
--- /dev/null
+++ b/plugins/pom.xml
@@ -0,0 +1,32 @@
+
+
+
+ 4.0.0
+
+
+ sonia.scm
+ scm
+ 1.0-SNAPSHOT
+
+
+ sonia.scm.plugins
+ scm-plugins
+ pom
+ 1.0-SNAPSHOT
+ scm-plugins
+
+
+ scm-hg-plugin
+
+
+
+
+
+ sonia.scm
+ scm-core
+ 1.0-SNAPSHOT
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 78d26d5b51..fe5c9db156 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,6 +11,7 @@
scm-core
+ plugins
scm-agent
scm-webapp
diff --git a/scm-agent/pom.xml b/scm-agent/pom.xml
index 000a7dbda8..df756f4a1c 100644
--- a/scm-agent/pom.xml
+++ b/scm-agent/pom.xml
@@ -49,13 +49,16 @@
sonia.scm.agent.Main
+
+
+
+
+ org.codehaus.mojo
+ appassembler-maven-plugin
+ 1.0
+
+
+ package
+
+ create-repository
+ generate-daemons
+
+
+ ${project.build.directory}/appassembler
+ ${project.build.directory}/appassembler/jsw/scm-agent
+ lib
+ flat
+ true
+
+
+
+ scm-agent
+ sonia.scm.agent.Main
+
+ jsw
+
+
+
+ 256m
+ 256m
+
+
+
+
+ jsw
+
+
+ configuration.directory.in.classpath.first
+ conf
+
+
+ set.default.REPO_DIR
+ lib
+
+ wrapper.logfile
+ logs/wrapper.log
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 2.2-beta-5
+
+
+ src/main/assembly/scm-agent-jsw.xml
+
+
+
+
+ scm-agent-jsw
+ package
+
+ single
+
+
+
+
+
diff --git a/scm-agent/src/main/assembly/scm-agent-jsw.xml b/scm-agent/src/main/assembly/scm-agent-jsw.xml
new file mode 100644
index 0000000000..e75f1f7781
--- /dev/null
+++ b/scm-agent/src/main/assembly/scm-agent-jsw.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+ scm-agent-jsw
+
+
+ zip
+ tar.gz
+ tar.bz2
+
+
+ false
+
+
+
+ target/appassembler/jsw/scm-agent/bin
+ false
+ bin
+ 0755
+
+
+ target/appassembler/jsw/scm-agent/conf
+ false
+ conf
+
+
+ target/appassembler/jsw/scm-agent/lib
+ false
+ lib
+
+
+ target/
+ /logs
+
+ **/*
+
+
+
+
+
\ No newline at end of file