portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msnickl...@apache.org
Subject [03/12] portals-pluto git commit: Added common module that just pulls together the contents of all Pluto jars that need to be placed into the shared directory into a single jar file. This solves a problem on Liberty where a bean whose class was in one Pl
Date Mon, 21 Nov 2016 13:08:13 GMT
Added common module that just pulls together the contents of all Pluto jars
that need to be placed into the shared directory into a single jar file.
This solves a problem on Liberty where a bean whose class was in one Pluto
jar could not be injected into a class contained in a different Pluto jar.


Project: http://git-wip-us.apache.org/repos/asf/portals-pluto/repo
Commit: http://git-wip-us.apache.org/repos/asf/portals-pluto/commit/86521fec
Tree: http://git-wip-us.apache.org/repos/asf/portals-pluto/tree/86521fec
Diff: http://git-wip-us.apache.org/repos/asf/portals-pluto/diff/86521fec

Branch: refs/heads/master
Commit: 86521fecdc9e781c160264d1914c56dfed8fb86d
Parents: 1bff489
Author: Scott Nicklous <msnicklous@apache.org>
Authored: Thu Nov 10 08:03:31 2016 +0100
Committer: Scott Nicklous <msnicklous@apache.org>
Committed: Thu Nov 10 08:03:31 2016 +0100

----------------------------------------------------------------------
 pluto-common/pom.xml                            | 89 ++++++++++++++++++++
 .../src/main/resources/META-INF/beans.xml       | 16 ++++
 pom.xml                                         |  3 +
 3 files changed, 108 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/86521fec/pluto-common/pom.xml
----------------------------------------------------------------------
diff --git a/pluto-common/pom.xml b/pluto-common/pom.xml
new file mode 100644
index 0000000..d3db90a
--- /dev/null
+++ b/pluto-common/pom.xml
@@ -0,0 +1,89 @@
+<?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. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+>
+
+   <modelVersion>4.0.0</modelVersion>
+   <parent>
+      <groupId>org.apache.portals.pluto</groupId>
+      <artifactId>pluto</artifactId>
+      <version>3.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>pluto-common</artifactId>
+   <packaging>jar</packaging>
+   <name>Apache Pluto Common Jar</name>
+
+   <dependencies>
+
+      <dependency>
+         <groupId>org.apache.portals.pluto</groupId>
+         <artifactId>pluto-container-api</artifactId>
+         <version>${project.version}</version>
+         <scope>compile</scope>
+      </dependency>
+
+      <dependency>
+         <groupId>org.apache.portals.pluto</groupId>
+         <artifactId>pluto-container-driver-api</artifactId>
+         <version>${project.version}</version>
+         <scope>compile</scope>
+      </dependency>
+
+      <dependency>
+         <groupId>org.apache.portals.pluto</groupId>
+         <artifactId>pluto-container</artifactId>
+         <version>${project.version}</version>
+         <scope>compile</scope>
+      </dependency>
+
+      <dependency>
+         <groupId>org.apache.portals.pluto</groupId>
+         <artifactId>pluto-taglib</artifactId>
+         <version>${project.version}</version>
+         <scope>compile</scope>
+      </dependency>
+
+   </dependencies>
+   
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-shade-plugin</artifactId>
+            <version>2.4.3</version>
+            <executions>
+               <execution>
+                  <phase>package</phase>
+                  <goals>
+                     <goal>shade</goal>
+                  </goals>
+                  <configuration>
+                     <finalName>pluto-common-${project.version}</finalName>
+                     <createDependencyReducedPom>false</createDependencyReducedPom>
+                     <artifactSet>
+                        <includes>
+                           <include>org.apache.portals.pluto:pluto-container</include>
+                           <include>org.apache.portals.pluto:pluto-container-api</include>
+                           <include>org.apache.portals.pluto:pluto-taglib</include>
+                           <include>org.apache.portals.pluto:pluto-container-driver-api</include>
+                        </includes>
+                     </artifactSet>
+                  </configuration>
+               </execution>
+            </executions>
+         </plugin>
+      </plugins>
+   </build>
+  
+</project>

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/86521fec/pluto-common/src/main/resources/META-INF/beans.xml
----------------------------------------------------------------------
diff --git a/pluto-common/src/main/resources/META-INF/beans.xml b/pluto-common/src/main/resources/META-INF/beans.xml
new file mode 100644
index 0000000..a63d004
--- /dev/null
+++ b/pluto-common/src/main/resources/META-INF/beans.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
+       version="1.1" bean-discovery-mode="all">
+   
+   <scan>
+      <exclude name="org.apache.container.impl.*"></exclude>
+      <exclude name="org.apache.container.util.*"></exclude>
+      <exclude name="org.apache.container.om.portlet.impl.*"></exclude>
+      <exclude name="org.apache.container.om.portlet10.impl.*"></exclude>
+      <exclude name="org.apache.container.om.portlet20.impl.*"></exclude>
+      <exclude name="org.apache.container.om.portlet30.impl.*"></exclude>
+      <exclude name="org.apache.pluto.tags.*"></exclude>
+   </scan>
+</beans>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/portals-pluto/blob/86521fec/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e94d330..014c3d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -662,6 +662,9 @@ TODO: Check if we need all of them. -->
         <module>pluto-portal-driver-impl</module>
         <module>pluto-portal</module>
         <module>pluto-testsuite</module>
+
+        <!-- Aggregated common jar for shared library location -->
+        <module>pluto-common</module>
         
         <!-- PortletHub demo portlets -->
         <module>ChatRoomDemo</module>


Mime
View raw message