diff --git a/common/pom.xml b/common/pom.xml
index 9a25137355..2e80b7abd9 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -39,39 +39,57 @@
scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-solr/trunk/common
-
-
-
- patch
-
- false
-
-
-
-
- org.apache.maven.plugins
- maven-patch-plugin
- 1.0
-
-
- common.patch
-
-
-
-
- patch
- process-sources
-
- apply
-
-
-
-
-
-
-
-
+
+
+
+ maven-antrun-plugin
+
+
+ generate-sources
+
+
+
+
+
+
+
+
+ ${project.build.directory}/generated-sources/main/java
+
+
+ ${project.build.directory}/generated-sources/test/java
+
+
+
+ run
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-patch-plugin
+
+ src/main/patches/common.patch
+ ${project.build.directory}/generated-sources/main/java
+
+
+
+ generate-sources
+
+ apply
+
+
+
+
+
+
+
+
+
diff --git a/core/pom.xml b/core/pom.xml
index 2d23c54cf1..c95c3fefa4 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -40,37 +40,58 @@
-
-
- patch
-
- false
-
-
-
-
- org.apache.maven.plugins
- maven-patch-plugin
- 1.0
+
+
+
+
+ maven-antrun-plugin
+
+
+ generate-sources
-
- core.patch
-
+
+
+
+
+
+
+
+
+ ${project.build.directory}/generated-sources/main/java
+
+
+ ${project.build.directory}/generated-sources/test/java
+
-
-
- patch
- process-sources
-
- apply
-
-
-
-
-
-
-
-
+
+ run
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-patch-plugin
+
+ src/main/patches/core.patch
+ ${project.build.directory}/generated-sources/main/java
+
+
+
+ generate-sources
+
+ apply
+
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 431069bf7c..10beb7e1a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
maven.dspace.org-snapshot
DSpace Maven Repository
scp://maven.dspace.org/var/maven/snapshot
- false
+ true
@@ -122,8 +122,12 @@
+
+
+
+
javax.servlet
diff --git a/server/pom.xml b/server/pom.xml
index ea503d9c4a..1ebd0fc965 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -38,38 +38,6 @@
scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-solr/server
-
-
-
- patch
-
- false
-
-
-
-
- org.apache.maven.plugins
- maven-patch-plugin
- 1.0
-
-
- webapp.patch
-
-
-
-
- patch
- process-sources
-
- apply
-
-
-
-
-
-
-
-
@@ -82,6 +50,53 @@
classes
+
+
+ maven-antrun-plugin
+
+
+ generate-sources
+
+
+
+
+
+
+
+
+
+ ${project.build.directory}/generated-sources/main/java
+
+
+ ${project.build.directory}/generated-sources/test/java
+
+
+
+ run
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-patch-plugin
+
+ src/main/patches/webapp.patch
+ ${project.build.directory}/generated-sources/main/java
+
+
+
+ generate-sources
+
+ apply
+
+
+
+
+
+
diff --git a/solrj/pom.xml b/solrj/pom.xml
index 634123f76f..040fa8fdce 100644
--- a/solrj/pom.xml
+++ b/solrj/pom.xml
@@ -41,37 +41,57 @@
-
-
- patch
-
- false
-
-
-
-
- org.apache.maven.plugins
- maven-patch-plugin
- 1.0
-
-
- solrj.patch
-
-
-
-
- patch
- process-sources
-
- apply
-
-
-
-
-
-
-
-
+
+
+
+
+ maven-antrun-plugin
+
+
+ generate-sources
+
+
+
+
+
+
+
+
+
+ ${project.build.directory}/generated-sources/main/java
+
+
+ ${project.build.directory}/generated-sources/test/java
+
+
+
+ run
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-patch-plugin
+
+ src/main/patches/solrj.patch
+ ${project.build.directory}/generated-sources/main/java
+
+
+
+ generate-sources
+
+ apply
+
+
+
+
+
+
+
+