[jboss-svn-commits] JBL Code SVN: r30835 - in labs/jbossrules/branches/osgi_baunax: drools-api and 2 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Dec 27 21:50:04 EST 2009


Author: baunax
Date: 2009-12-27 21:50:04 -0500 (Sun, 27 Dec 2009)
New Revision: 30835

Modified:
   labs/jbossrules/branches/osgi_baunax/drools-api/pom.xml
   labs/jbossrules/branches/osgi_baunax/drools-compiler/pom.xml
   labs/jbossrules/branches/osgi_baunax/drools-core/pom.xml
   labs/jbossrules/branches/osgi_baunax/pom.xml
Log:
First versions of the OSGi poms 

Modified: labs/jbossrules/branches/osgi_baunax/drools-api/pom.xml
===================================================================
--- labs/jbossrules/branches/osgi_baunax/drools-api/pom.xml	2009-12-28 02:11:01 UTC (rev 30834)
+++ labs/jbossrules/branches/osgi_baunax/drools-api/pom.xml	2009-12-28 02:50:04 UTC (rev 30835)
@@ -11,33 +11,32 @@
   <artifactId>drools-api</artifactId>
   <packaging>jar</packaging>
   <name>Drools :: API</name>
-
+	
   <dependencies>  
+  		<!-- {bauna commented}
         <dependency>
           <groupId>com.sun.xml.bind</groupId>
           <artifactId>jaxb-impl</artifactId>
           <version>2.1.9</version>
           <scope>provided</scope>          
         </dependency> 
-  
+  		-->
+        
         <dependency>
           <groupId>com.sun.xml.bind</groupId>
           <artifactId>jaxb-xjc</artifactId>
-          <version>2.1.9</version>
           <scope>provided</scope>
         </dependency>   
         
         <dependency>
           <groupId>org.milyn</groupId>
           <artifactId>milyn-smooks-javabean</artifactId>
-          <version>1.1</version>
-          <scope>provided</scope>          
+          <scope>provided</scope>
         </dependency>       
 
         <dependency>
           <groupId>net.sf.jxls</groupId>
           <artifactId>jxls-reader</artifactId>  
-          <version>0.9.6</version>
           <scope>provided</scope> 
         </dependency> 
         
@@ -62,30 +61,64 @@
         </dependency>          
         
   </dependencies>
+
+	<build>
+		<plugins>
+			<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>2.0.1</version>
+				<extensions>true</extensions>
+				<executions>
+					<execution>
+						<id>bundle-manifest</id>
+						<phase>process-classes</phase>
+						<goals>
+							<goal>manifest</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<instructions>
+						<Import-Package>*;resolution:=optional</Import-Package>
+						<Export-Package>org.drools.*;version="${pom.version}"</Export-Package>
+						<!-- Embed-Dependency>*;scope=compile|runtime</Embed-Dependency -->
+						<!-- 
+						
+						<Export-Package>${bundle.namespace}.*;version="${pom.version}"</Export-Package>
+						<Private-Package>${bundle.namespace}.impl.*</Private-Package>
+						 -->
+						<!-- Bundle-Activator>${bundle.namespace}.DroolsBundleActivator</Bundle-Activator -->
+						<!-- Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName -->
+						<!-- Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath -->
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<configuration>
+					<includes>
+						<include>**/*Test.java</include>
+					</includes>
+					<!--
+						excludes> <exclude>**/LogicTransformerTest.java</exclude> <exclude>**/LeapsMannersTest.java</exclude>
+						<exclude>**/ReteooMannersTest.java</exclude> <exclude>**/LeapsWaltzTest.java</exclude>
+						<exclude>**/ReteooWaltzTest.java</exclude> <exclude>**/TableTest.java</exclude> </excludes
+					-->
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
   
-  <build>
-    <plugins>
-      
-    <plugin>
-      <groupId>org.apache.maven.plugins</groupId>
-      <artifactId>maven-surefire-plugin</artifactId>
-      <configuration>
-        <includes>
-          <include>**/*Test.java</include>
-        </includes>
-        <!--excludes>
-          <exclude>**/LogicTransformerTest.java</exclude>
-          <exclude>**/LeapsMannersTest.java</exclude>          
-          <exclude>**/ReteooMannersTest.java</exclude>                    
-          <exclude>**/LeapsWaltzTest.java</exclude>          
-          <exclude>**/ReteooWaltzTest.java</exclude>             
-          <exclude>**/TableTest.java</exclude>                       
-        </excludes-->
-      </configuration>
-    </plugin>      
-    </plugins>
-  </build>
-  
     <reporting>
         <plugins>
             <plugin>

Modified: labs/jbossrules/branches/osgi_baunax/drools-compiler/pom.xml
===================================================================
--- labs/jbossrules/branches/osgi_baunax/drools-compiler/pom.xml	2009-12-28 02:11:01 UTC (rev 30834)
+++ labs/jbossrules/branches/osgi_baunax/drools-compiler/pom.xml	2009-12-28 02:50:04 UTC (rev 30835)
@@ -12,7 +12,7 @@
 	</parent>
 	
 	<artifactId>drools-compiler</artifactId>
-	<packaging>jar</packaging>
+	<packaging>bundle</packaging>
 	<name>Drools :: Compiler</name>
 	
 	<dependencies>
@@ -21,6 +21,7 @@
 			<groupId>org.drools</groupId>
 			<artifactId>drools-core</artifactId>
 		</dependency>
+		
 		<!-- External dependencies -->
 		<dependency>
 			<groupId>org.antlr</groupId>
@@ -155,4 +156,65 @@
 			</build>
 		</profile>
 	</profiles>
+	
+	<build>
+	<plugins>
+		<!-- 
+		<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>2.0.1</version>
+				<extensions>true</extensions>
+				<!-- 
+				<executions>
+					<execution>
+						<id>bundle-manifest</id>
+						<phase>process-classes</phase>
+						<goals>
+							<goal>manifest</goal>
+						</goals>
+					</execution>
+				</executions>
+				 -->
+				<configuration>
+					<instructions>
+						<Import-Package>*</Import-Package>
+						<Embed-Dependency>*;scope=compile|runtime;groupId=!org.drools</Embed-Dependency>
+						<Include-Resource>{maven-resources}, {maven-dependencies}</Include-Resource>
+						<Embed-Directory>target/dependency</Embed-Directory>
+            			<Embed-StripGroup>true</Embed-StripGroup>
+						<!-- 
+						
+						<Export-Package>${bundle.namespace}.*;version="${pom.version}"</Export-Package>
+						<Private-Package>${bundle.namespace}.impl.*</Private-Package>
+						 -->
+						<!-- Bundle-Activator>${bundle.namespace}.DroolsBundleActivator</Bundle-Activator -->
+						<!-- Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName -->
+						<!-- Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath -->
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-dependencies</id>
+						<phase>package</phase>
+						<goals>
+							<goal>copy-dependencies</goal>
+						</goals>
+					</execution>
+				</executions>
+ 	     	</plugin>
+		</plugins>
+	</build>
 </project>

Modified: labs/jbossrules/branches/osgi_baunax/drools-core/pom.xml
===================================================================
--- labs/jbossrules/branches/osgi_baunax/drools-core/pom.xml	2009-12-28 02:11:01 UTC (rev 30834)
+++ labs/jbossrules/branches/osgi_baunax/drools-core/pom.xml	2009-12-28 02:50:04 UTC (rev 30835)
@@ -9,7 +9,7 @@
   </parent>
 
   <artifactId>drools-core</artifactId>
-  <packaging>jar</packaging>
+  <packaging>bundle</packaging>
   <name>Drools :: Core</name>
 
   <dependencies>  
@@ -55,7 +55,63 @@
           <exclude>**/TableTest.java</exclude>                       
         </excludes-->
       </configuration>
-    </plugin>      
+    </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>2.0.1</version>
+				<extensions>true</extensions>
+				<!-- 
+				<executions>
+					<execution>
+						<id>bundle-manifest</id>
+						<phase>process-classes</phase>
+						<goals>
+							<goal>manifest</goal>
+						</goals>
+					</execution>
+				</executions>
+				 -->
+				<configuration>
+					<instructions>
+						<Import-Package>*</Import-Package>
+						<Embed-Dependency>*;scope=compile|runtime;groupId=!org.drools</Embed-Dependency>
+						<Include-Resource>{maven-resources}, {maven-dependencies}</Include-Resource>
+						<Embed-Directory>target/dependency</Embed-Directory>
+            			<Embed-StripGroup>true</Embed-StripGroup>
+						
+						<!-- 
+						<Export-Package>${bundle.namespace}.*;version="${pom.version}"</Export-Package>
+						<Private-Package>${bundle.namespace}.impl.*</Private-Package>
+						 -->
+						<!-- Bundle-Activator>${bundle.namespace}.DroolsBundleActivator</Bundle-Activator -->
+						<!-- Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName -->
+						<!-- Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath -->
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-dependencies</id>
+						<phase>package</phase>
+						<goals>
+							<goal>copy-dependencies</goal>
+						</goals>
+					</execution>
+				</executions>
+ 	     </plugin>
     </plugins>
   </build>
   

Modified: labs/jbossrules/branches/osgi_baunax/pom.xml
===================================================================
--- labs/jbossrules/branches/osgi_baunax/pom.xml	2009-12-28 02:11:01 UTC (rev 30834)
+++ labs/jbossrules/branches/osgi_baunax/pom.xml	2009-12-28 02:50:04 UTC (rev 30835)
@@ -224,6 +224,17 @@
             </releases>
         </repository>
         <repository>
+            <id>apache.org releases</id>
+            <name>Maven Releases</name>
+            <url>https://repository.apache.org/content/repositories/releases/</url>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+	<repository>
             <id>codehaus</id>
             <url>http://repository.codehaus.org</url>
         </repository>        
@@ -1151,6 +1162,30 @@
                 <artifactId>joda-time</artifactId>
                 <version>1.6</version>
             </dependency>
+            
+            <dependency>
+              <groupId>com.sun.xml.bind</groupId>
+              <artifactId>jaxb-impl</artifactId>
+              <version>2.1.9</version>
+            </dependency>  
+            
+	       	<dependency>
+	          <groupId>com.sun.xml.bind</groupId>
+	          <artifactId>jaxb-xjc</artifactId>
+	          <version>2.1.9</version>
+	        </dependency>   
+	        
+	        <dependency>
+	          <groupId>org.milyn</groupId>
+	          <artifactId>milyn-smooks-javabean</artifactId>
+	          <version>1.1</version>
+	        </dependency>       
+	
+	        <dependency>
+	          <groupId>net.sf.jxls</groupId>
+	          <artifactId>jxls-reader</artifactId>  
+	          <version>0.9.6</version>
+	        </dependency> 
 
             <!-- drools-compiler -->
             <dependency>



More information about the jboss-svn-commits mailing list