From 725f4e6f317abd989a2bad63403745a5c47d6067 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Mon, 13 Feb 2012 13:15:04 +0000 Subject: [PATCH] Improve RPM build git-svn-id: https://svn.argeo.org/slc/trunk@5068 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- dep/org.argeo.slc.dep.backend/pom.xml | 23 +---- dep/org.argeo.slc.dep.rap/pom.xml | 30 ++++--- dep/org.argeo.slc.dep.rcp/pom.xml | 20 +++++ dist/pom.xml | 3 +- dist/slc-maven/pom.xml | 17 +--- dist/slc-maven/src/main/scripts/preremove | 4 - dist/slc/pom.xml | 83 +++++++++---------- .../src/main/rpm/var/lib/slc/.m2/settings.xml | 0 dist/slc/src/main/scripts/preremove-5 | 4 + dist/slc/src/main/scripts/preremove-6 | 4 + 10 files changed, 92 insertions(+), 96 deletions(-) delete mode 100644 dist/slc-maven/src/main/scripts/preremove rename dist/{slc-maven => slc}/src/main/rpm/var/lib/slc/.m2/settings.xml (100%) diff --git a/dep/org.argeo.slc.dep.backend/pom.xml b/dep/org.argeo.slc.dep.backend/pom.xml index 6aaa71d47..3c46f14cd 100644 --- a/dep/org.argeo.slc.dep.backend/pom.xml +++ b/dep/org.argeo.slc.dep.backend/pom.xml @@ -197,26 +197,6 @@ - - maven-antrun-plugin - - - install - - run - - - - - - - - - - - - @@ -270,6 +250,9 @@ + + argeo-node-tp + diff --git a/dep/org.argeo.slc.dep.rap/pom.xml b/dep/org.argeo.slc.dep.rap/pom.xml index 6a43fdbd5..0b23f2c5b 100644 --- a/dep/org.argeo.slc.dep.rap/pom.xml +++ b/dep/org.argeo.slc.dep.rap/pom.xml @@ -16,16 +16,6 @@ org.argeo.maven.plugins maven-argeo-osgi-plugin - - resolve-pde-sources - - pde-sources - - generate-resources - - false - - generate-descriptors @@ -132,5 +122,25 @@ + + pdeSources + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + resolve-pde-sources + + pde-sources + + generate-resources + + + + + + \ No newline at end of file diff --git a/dep/org.argeo.slc.dep.rcp/pom.xml b/dep/org.argeo.slc.dep.rcp/pom.xml index 4bbd58c1f..8705de43f 100644 --- a/dep/org.argeo.slc.dep.rcp/pom.xml +++ b/dep/org.argeo.slc.dep.rcp/pom.xml @@ -156,5 +156,25 @@ + + pdeSources + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + resolve-pde-sources + + pde-sources + + generate-resources + + + + + + \ No newline at end of file diff --git a/dist/pom.xml b/dist/pom.xml index f8e395022..2f5631587 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -30,7 +30,8 @@ - + diff --git a/dist/slc-maven/pom.xml b/dist/slc-maven/pom.xml index b12644bb5..42d7d13ac 100644 --- a/dist/slc-maven/pom.xml +++ b/dist/slc-maven/pom.xml @@ -47,24 +47,9 @@ - - /var/lib/slc/.m2 - slc - slc - 644 - false - - - src/main/var/lib/slc/.m2 - - - - - src/main/scripts/preremove - - slc + slc-libs diff --git a/dist/slc-maven/src/main/scripts/preremove b/dist/slc-maven/src/main/scripts/preremove deleted file mode 100644 index cbeb21191..000000000 --- a/dist/slc-maven/src/main/scripts/preremove +++ /dev/null @@ -1,4 +0,0 @@ -if [ $1 = "0" ];then - APP=slc - rm -rf /var/lib/$APP/.m2/repository -fi diff --git a/dist/slc/pom.xml b/dist/slc/pom.xml index bf7ea8ce0..3e79303d2 100644 --- a/dist/slc/pom.xml +++ b/dist/slc/pom.xml @@ -10,31 +10,31 @@ slc pom SLC Node (RPM) - - - - maven-resources-plugin - - - filter-base - process-resources - - copy-resources - - - ${basedir}/target/base - - - src/main/base - true - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + rpmbuild @@ -103,6 +103,19 @@ + + + /var/lib/slc/.m2 + slc + slc + 600 + false + + + src/main/rpm/var/lib/slc/.m2 + + + src/main/scripts/preinstall-${rpm.release} @@ -122,26 +135,6 @@ - - maven-antrun-plugin - - - install - - run - - - - - - - - - - - - diff --git a/dist/slc-maven/src/main/rpm/var/lib/slc/.m2/settings.xml b/dist/slc/src/main/rpm/var/lib/slc/.m2/settings.xml similarity index 100% rename from dist/slc-maven/src/main/rpm/var/lib/slc/.m2/settings.xml rename to dist/slc/src/main/rpm/var/lib/slc/.m2/settings.xml diff --git a/dist/slc/src/main/scripts/preremove-5 b/dist/slc/src/main/scripts/preremove-5 index e5532dbc5..b842b9cb9 100644 --- a/dist/slc/src/main/scripts/preremove-5 +++ b/dist/slc/src/main/scripts/preremove-5 @@ -2,5 +2,9 @@ if [ $1 = "0" ];then #APP=%{name} => doesn't work APP=slc /sbin/chkconfig --del $APP + + # Maven + rm -rf /var/lib/$APP/.m2/repository + #userdel $APP fi diff --git a/dist/slc/src/main/scripts/preremove-6 b/dist/slc/src/main/scripts/preremove-6 index e5532dbc5..b79d26175 100644 --- a/dist/slc/src/main/scripts/preremove-6 +++ b/dist/slc/src/main/scripts/preremove-6 @@ -2,5 +2,9 @@ if [ $1 = "0" ];then #APP=%{name} => doesn't work APP=slc /sbin/chkconfig --del $APP + + # Maven + rm -rf /var/lib/$APP/.m2/repository + #userdel $APP fi -- 2.39.2