Fix poms for release

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@810377 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/commands/pom.xml b/gogo/commands/pom.xml
index 04d4d00..9949699 100644
--- a/gogo/commands/pom.xml
+++ b/gogo/commands/pom.xml
@@ -21,13 +21,13 @@
     <parent>
         <groupId>org.apache.felix.gogo</groupId>
         <artifactId>gogo</artifactId>
-        <version>0.9.0-SNAPSHOT</version>
+        <version>0.1.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
     <name>Apache Felix Gogo Shell Commands</name>
     <artifactId>org.apache.felix.gogo.commands</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
+    <version>0.1.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
             <groupId>org.apache.felix</groupId>
@@ -54,7 +54,7 @@
                 <configuration>
                     <instructions>
                         <Export-Package>
-                            org.apache.felix.gogo.commands*;version=${pom.version},
+                            org.apache.felix.gogo.commands*;version=${project.version},
                         </Export-Package>
                         <Import-Package>
                             !org.apache.felix.gogo.commands.basic,
diff --git a/gogo/console/pom.xml b/gogo/console/pom.xml
index 2ff109f..dc81440 100644
--- a/gogo/console/pom.xml
+++ b/gogo/console/pom.xml
@@ -21,13 +21,13 @@
     <parent>
         <groupId>org.apache.felix.gogo</groupId>
         <artifactId>gogo</artifactId>
-        <version>0.9.0-SNAPSHOT</version>
+        <version>0.1.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
     <name>Apache Felix Gogo Shell Console</name>
     <artifactId>org.apache.felix.gogo.console</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
+    <version>0.1.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
             <groupId>org.apache.felix</groupId>
@@ -66,6 +66,8 @@
                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <Bundle-Activator>org.apache.felix.gogo.console.Activator</Bundle-Activator>
+                        <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
+                        <_removeheaders>Private-Package,Ignore-Package</_removeheaders>
                     </instructions>
                 </configuration>
             </plugin>
diff --git a/gogo/launcher/pom.xml b/gogo/launcher/pom.xml
index aec260c..d158314 100644
--- a/gogo/launcher/pom.xml
+++ b/gogo/launcher/pom.xml
@@ -21,13 +21,13 @@
     <parent>
         <groupId>org.apache.felix.gogo</groupId>
         <artifactId>gogo</artifactId>
-        <version>0.9.0-SNAPSHOT</version>
+        <version>0.1.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
     <name>Apache Felix Gogo Shell Launcher</name>
     <artifactId>org.apache.felix.gogo.launcher</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
+    <version>0.1.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
             <groupId>org.apache.felix</groupId>
@@ -55,8 +55,8 @@
                 <configuration>
                     <instructions>
                         <Export-Package>
-                            org.osgi.service.command; version=1.0.0,
-                            org.osgi.service.threadio; version=1.0.0,
+                            org.osgi.service.command; version=${project.version},
+                            org.osgi.service.threadio; version=${project.version},
                             org.apache.felix.gogo.commands; version=${project.version}
                         </Export-Package>
                         <Import-Package>
@@ -70,6 +70,8 @@
                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <Bundle-Activator>org.apache.felix.gogo.runtime.Activator</Bundle-Activator>
+                        <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
+                        <_removeheaders>Private-Package,Ignore-Package</_removeheaders>
                     </instructions>
                 </configuration>
             </plugin>
diff --git a/gogo/pom.xml b/gogo/pom.xml
index 3905bc1..9e27ba0 100644
--- a/gogo/pom.xml
+++ b/gogo/pom.xml
@@ -30,7 +30,7 @@
     <description>Apache Felix Gogo Shell</description>
     <groupId>org.apache.felix.gogo</groupId>
     <artifactId>gogo</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
+    <version>0.1.0-SNAPSHOT</version>
 
     <modules>
         <module>runtime</module>
@@ -78,6 +78,18 @@
     </dependencyManagement>
 
     <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-release-plugin</artifactId>
+                    <version>2.0-beta-9</version>
+                    <configuration>
+                        <autoVersionSubmodules>true</autoVersionSubmodules>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
         <plugins>
             <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
diff --git a/gogo/runtime/pom.xml b/gogo/runtime/pom.xml
index 7c09b5e..2a3a9e7 100644
--- a/gogo/runtime/pom.xml
+++ b/gogo/runtime/pom.xml
@@ -21,13 +21,13 @@
     <parent>
         <groupId>org.apache.felix.gogo</groupId>
         <artifactId>gogo</artifactId>
-        <version>0.9.0-SNAPSHOT</version>
+        <version>0.1.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <packaging>bundle</packaging>
     <name>Apache Felix Gogo Shell Runtime</name>
     <artifactId>org.apache.felix.gogo.runtime</artifactId>
-    <version>0.9.0-SNAPSHOT</version>
+    <version>0.1.0-SNAPSHOT</version>
     <dependencies>
         <dependency>
             <groupId>org.apache.felix</groupId>
@@ -55,8 +55,8 @@
                 <configuration>
                     <instructions>
                         <Export-Package>
-                            org.osgi.service.command; version=1.0.0,
-                            org.osgi.service.threadio; version=1.0.0
+                            org.osgi.service.command; version=${project.version},
+                            org.osgi.service.threadio; version=${project.version}
                         </Export-Package>
                         <Import-Package>
                             org.osgi.service.log*; resolution:=optional,
@@ -69,6 +69,7 @@
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <Bundle-Activator>org.apache.felix.gogo.runtime.Activator</Bundle-Activator>
                         <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
+                        <_removeheaders>Private-Package,Ignore-Package</_removeheaders>
                     </instructions>
                 </configuration>
             </plugin>