Author: rfeng
Date: Fri Mar 28 12:53:09 2008
New Revision: 642349

URL: http://svn.apache.org/viewvc?rev=642349&view=rev
Log:
Clean up pom.xml to avoid build break with JDK 1.4.x

Modified:
    incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF
    incubator/tuscany/java/sdo/lib/pom.xml
    incubator/tuscany/java/sdo/lib/src/main/resources/META-INF/MANIFEST.MF
    incubator/tuscany/java/sdo/pom.xml
    incubator/tuscany/java/sdo/sdo-api/pom.xml

Modified: 
incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF?rev=642349&r1=642348&r2=642349&view=diff
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF 
(original)
+++ incubator/tuscany/java/sdo/impl/src/main/resources/META-INF/MANIFEST.MF Fri 
Mar 28 12:53:09 2008
@@ -5,7 +5,7 @@
 Implementation-Vendor: Apache Software Foundation
 Implementation-Vendor-Id: org.apache
 Implementation-Title: tuscany-sdo-impl
-Implementation-Version: incubating-M3
+Implementation-Version: ${pom.version}
 Bundle-ManifestVersion: 2
 Bundle-Name: Tuscany SDO Implementation
 Bundle-SymbolicName: org.apache.tuscany.sdo.impl

Modified: incubator/tuscany/java/sdo/lib/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/lib/pom.xml?rev=642349&r1=642348&r2=642349&view=diff
==============================================================================
--- incubator/tuscany/java/sdo/lib/pom.xml (original)
+++ incubator/tuscany/java/sdo/lib/pom.xml Fri Mar 28 12:53:09 2008
@@ -68,7 +68,7 @@
                 <artifactId>maven-jar-plugin</artifactId>
                 <configuration>
                     <archive>
-                        
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
+                        
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                     </archive>
                 </configuration>
             </plugin>

Modified: incubator/tuscany/java/sdo/lib/src/main/resources/META-INF/MANIFEST.MF
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/lib/src/main/resources/META-INF/MANIFEST.MF?rev=642349&r1=642348&r2=642349&view=diff
==============================================================================
--- incubator/tuscany/java/sdo/lib/src/main/resources/META-INF/MANIFEST.MF 
(original)
+++ incubator/tuscany/java/sdo/lib/src/main/resources/META-INF/MANIFEST.MF Fri 
Mar 28 12:53:09 2008
@@ -5,7 +5,7 @@
 Implementation-Vendor: Apache Software Foundation
 Implementation-Vendor-Id: org.apache
 Implementation-Title: tuscany-sdo-lib
-Implementation-Version: incubating-M3
+Implementation-Version: ${pom.version}
 Bundle-ManifestVersion: 2
 Bundle-Name: Tuscany SDO Implementation Library
 Bundle-SymbolicName: org.apache.tuscany.sdo.lib

Modified: incubator/tuscany/java/sdo/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/pom.xml?rev=642349&r1=642348&r2=642349&view=diff
==============================================================================
--- incubator/tuscany/java/sdo/pom.xml (original)
+++ incubator/tuscany/java/sdo/pom.xml Fri Mar 28 12:53:09 2008
@@ -1,21 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    *
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    *
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.
 -->
 <project>
     <modelVersion>4.0.0</modelVersion>
@@ -29,7 +29,7 @@
     <packaging>pom</packaging>
     <name>Apache Tuscany SDO Implementation Project</name>
     <version>1.0-incubating-SNAPSHOT</version>
-    
+
     <scm>
         
<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/tuscany/java/sdo</connection>
         
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo</developerConnection>
@@ -61,9 +61,9 @@
         </repository>
         <repository>
             <!-- <id>eclipse.emf</id>
-            <url>http://download.eclipse.org/tools/emf/maven2</url> -->
+                <url>http://download.eclipse.org/tools/emf/maven2</url> -->
             <!-- <id>osuosl.org</id>
-            <url>http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2</url> -->
+                <url>http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2</url> 
-->
             <!-- temporarily using indiana state univ as eclipse site diesnt 
have 2.2.2 at the moment -->
             <id>indiana</id>
             <url>http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/</url>
@@ -124,9 +124,13 @@
                 <module>java5tools</module>
             </modules>
         </profile>
-        
-       <profile>
+
+        <profile>
             <id>java_1_4_maven</id>
+            <activation>
+                <jdk>1.4</jdk>
+            </activation>
+
             <modules>
                 <module>sdo-api</module>
                 <module>lib</module>
@@ -136,12 +140,19 @@
                 <module>sample</module>
                 <module>distribution</module>
             </modules>
-        </profile>        
+        </profile>
     </profiles>
 
     <build>
         <defaultGoal>install</defaultGoal>
 
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -161,12 +172,12 @@
                     </includes>
                 </configuration>
             </plugin>
-            
-               
+
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-assembly-plugin</artifactId>
-                <version>2.2-SNAPSHOT</version>
+                <version>2.2-beta-2</version>
                 <configuration>
                     <descriptors>
                         <descriptor>sdo.xml</descriptor>
@@ -177,33 +188,33 @@
 
         <pluginManagement>
             <plugins>
-                               <plugin>
-                                       
<groupId>org.apache.maven.plugins</groupId>
-                                       
<artifactId>maven-javadoc-plugin</artifactId>
-                                       <version>2.2</version>
-                                       <configuration>
-                                               <aggregate>true</aggregate>
-                                               <version>2.0</version>
-                                               <source>1.4</source>
-                                       </configuration>
-                               </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-javadoc-plugin</artifactId>
+                    <version>2.2</version>
+                    <configuration>
+                        <aggregate>true</aggregate>
+                        <version>2.0</version>
+                        <source>1.4</source>
+                    </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
 
     </build>
 
-        <dependencies>
-            <dependency>
-                <groupId>org.apache.tuscany.sdo</groupId>
-                <artifactId>tuscany-sdo-api-r${specVersion}</artifactId>
-                <version>1.0-incubating-SNAPSHOT</version>
-                <scope>compile</scope>
-            </dependency>
-            <dependency>
-                <groupId>junit</groupId>
-                <artifactId>junit</artifactId>
-                <version>3.8.1</version>
-                <scope>test</scope>
-            </dependency>
-        </dependencies>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sdo</groupId>
+            <artifactId>tuscany-sdo-api-r${specVersion}</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
 </project>

Modified: incubator/tuscany/java/sdo/sdo-api/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/sdo-api/pom.xml?rev=642349&r1=642348&r2=642349&view=diff
==============================================================================
--- incubator/tuscany/java/sdo/sdo-api/pom.xml (original)
+++ incubator/tuscany/java/sdo/sdo-api/pom.xml Fri Mar 28 12:53:09 2008
@@ -26,7 +26,7 @@
     </parent>
     <groupId>org.apache.tuscany.sdo</groupId>
     <artifactId>tuscany-sdo-api-r${specVersion}</artifactId>
-    <packaging>bundle</packaging>
+    <packaging>jar</packaging>
     <version>1.0-incubating-SNAPSHOT</version>
     <name>SDO API</name>
     <description>API classes for Service Data Objects</description>
@@ -96,10 +96,27 @@
                 </configuration>
             </plugin>
             <plugin>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+                    </archive>
+                </configuration>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
-                <version>1.2.1</version>
+                <version>1.4.0</version>
                 <extensions>true</extensions>
+                <executions>
+                    <execution>
+                        <id>bundle-manifest</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>manifest</goal>
+                        </goals>
+                    </execution>
+                </executions>
                 <configuration>
                     <instructions>
                         <Bundle-Name>${pom.name}</Bundle-Name>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to