You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2018/05/08 12:47:59 UTC

[myfaces] 07/07: 1. Fixed assembly build (tlddoc and some sources where missing) 2. The generate-assembly profile is now automatically activated when performRelease=true (merged from trunk)

This is an automated email from the ASF dual-hosted git repository.

deki pushed a commit to branch 1_1_5
in repository https://gitbox.apache.org/repos/asf/myfaces.git

commit e26becb3993be8c04dad4e18fdd6e7f3a6b3411f
Author: Manfred Geiler <ma...@apache.org>
AuthorDate: Wed Feb 14 02:26:33 2007 +0000

    1. Fixed assembly build (tlddoc and some sources where missing)
    2. The generate-assembly profile is now automatically activated when performRelease=true
    (merged from trunk)
---
 api/pom.xml                        |  8 +++++-
 assembly/pom.xml                   | 52 +++++++++++++++++---------------------
 assembly/src/main/assembly/bin.xml |  8 +++---
 assembly/src/main/assembly/src.xml |  2 +-
 impl/pom.xml                       |  7 +++++
 5 files changed, 42 insertions(+), 35 deletions(-)

diff --git a/api/pom.xml b/api/pom.xml
index ee67b73..818b568 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -20,6 +20,12 @@
   <profiles>
     <profile>
       <id>generate-assembly</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
       <build>
         <plugins>
           <plugin>
@@ -212,4 +218,4 @@
       </plugin>
     </plugins>
   </reporting>
-</project>
\ No newline at end of file
+</project>
diff --git a/assembly/pom.xml b/assembly/pom.xml
index 053b110..9414037 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -1,12 +1,6 @@
 <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>
-  <artifactId>myfaces-core-assembly</artifactId>
-  <packaging>pom</packaging>
-  <name>Core Assembly</name>
-  <description>
-  	This is the MyFaces Assembly [INSERT MORE STUFF HERE]
-  </description>
 
   <parent>
     <groupId>org.apache.myfaces.core</groupId>
@@ -14,6 +8,13 @@
     <version>1.1.5</version>
   </parent>
 
+  <artifactId>myfaces-core-assembly</artifactId>
+  <packaging>pom</packaging>
+  <name>Core Assembly</name>
+  <description>
+  	This is the MyFaces Assembly [INSERT MORE STUFF HERE]
+  </description>
+
   <scm>
     <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/core/trunk/assembly</connection>
     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/core/trunk/assembly</developerConnection>
@@ -24,57 +25,54 @@
 
     <plugins>
        <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>dependency-maven-plugin</artifactId>
+        <artifactId>maven-dependency-plugin</artifactId>
         <executions>
 
           <execution>
             <id>copy-javadoc</id>
             <phase>package</phase>
             <goals>
-              <goal>copy</goal>
+              <goal>unpack</goal>
             </goals>
             <configuration>
               <artifactItems>
-
                 <artifactItem>
                   <groupId>org.apache.myfaces.core</groupId>
                   <artifactId>myfaces-api</artifactId>
                   <version>${version}</version>
                   <classifier>javadoc</classifier>
+                  <outputDirectory>${project.build.directory}/javadoc/api</outputDirectory>
                 </artifactItem>
-
                 <artifactItem>
                   <groupId>org.apache.myfaces.core</groupId>
                   <artifactId>myfaces-impl</artifactId>
                   <version>${version}</version>
                   <classifier>javadoc</classifier>
+                  <outputDirectory>${project.build.directory}/javadoc/impl</outputDirectory>
                 </artifactItem>
-
               </artifactItems>
-              <outputDirectory>${project.build.directory}/javadoc</outputDirectory>
             </configuration>
           </execution>
+          
           <execution>
             <id>copy-tlddoc</id>
             <phase>package</phase>
             <goals>
-              <goal>copy</goal>
+              <goal>unpack</goal>
             </goals>
             <configuration>
               <artifactItems>
-
                 <artifactItem>
                   <groupId>org.apache.myfaces.core</groupId>
                   <artifactId>myfaces-impl</artifactId>
                   <version>${version}</version>
                   <classifier>tlddoc</classifier>
                 </artifactItem>
-
                </artifactItems>
                <outputDirectory>${project.build.directory}/tlddoc</outputDirectory>
              </configuration>
-           </execution>
+          </execution>
+          
           <execution>
             <id>copy-source</id>
             <phase>package</phase>
@@ -83,28 +81,24 @@
             </goals>
             <configuration>
               <artifactItems>
-  		<artifactItem>
+  		          <artifactItem>
                   <groupId>org.apache.myfaces.core</groupId>
                   <artifactId>myfaces-api</artifactId>
                   <version>${version}</version>
-		<classifier>sources</classifier>
+		              <classifier>sources</classifier>
                 </artifactItem>
-
                 <artifactItem>
                   <groupId>org.apache.myfaces.core</groupId>
                   <artifactId>myfaces-impl</artifactId>
                   <version>${version}</version>
-		  <classifier>sources</classifier>
+		              <classifier>sources</classifier>
                 </artifactItem>
-
-		<artifactItem>
+		            <artifactItem>
                   <groupId>org.apache.myfaces.shared</groupId>
                   <artifactId>myfaces-shared-impl</artifactId>
                   <version>2.0.5</version>
-		  <classifier>sources</classifier>
+		              <classifier>sources</classifier>
                 </artifactItem>
-
-
                </artifactItems>
                <outputDirectory>${project.build.directory}/src</outputDirectory>
              </configuration>
@@ -116,10 +110,10 @@
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.0.1</version>
         <configuration>
-	  <descriptors>
+          <descriptors>
              <descriptor>src/main/assembly/bin.xml</descriptor>
-	     <descriptor>src/main/assembly/src.xml</descriptor>
-	  </descriptors>
+	           <descriptor>src/main/assembly/src.xml</descriptor>
+	        </descriptors>
           <finalName>myfaces-core-${version}</finalName>
           <outputDirectory>target/assembly/out</outputDirectory>
           <workDirectory>target/assembly/work</workDirectory>
diff --git a/assembly/src/main/assembly/bin.xml b/assembly/src/main/assembly/bin.xml
index 3be768d..ec34dc1 100644
--- a/assembly/src/main/assembly/bin.xml
+++ b/assembly/src/main/assembly/bin.xml
@@ -24,15 +24,15 @@
     <fileSet>
       <directory>target/javadoc</directory>
       <outputDirectory>javadoc</outputDirectory>
-      <includes>
-        <include>*.jar</include>
-      </includes>
+      <excludes>
+        <exclude>META-INF/*</exclude>
+      </excludes>
     </fileSet>
     <fileSet>
       <directory>target/tlddoc</directory>
       <outputDirectory>tlddoc</outputDirectory>
       <includes>
-        <include>*.jar</include>
+        <include>**/*</include>
       </includes>
     </fileSet>
 
diff --git a/assembly/src/main/assembly/src.xml b/assembly/src/main/assembly/src.xml
index 530fc97..90e4fa7 100644
--- a/assembly/src/main/assembly/src.xml
+++ b/assembly/src/main/assembly/src.xml
@@ -17,7 +17,7 @@
     </fileSet>   
     <fileSet>
       <directory>target/src</directory>
-      <outputDirectory>source</outputDirectory>
+      <outputDirectory>src</outputDirectory>
     </fileSet>
   </fileSets>
 </assembly>
diff --git a/impl/pom.xml b/impl/pom.xml
index b96d659..5adf001 100644
--- a/impl/pom.xml
+++ b/impl/pom.xml
@@ -159,8 +159,15 @@
         </plugins>
       </reporting>
     </profile>
+
     <profile>
       <id>generate-assembly</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
       <build>
         <plugins>
           <plugin>

-- 
To stop receiving notification emails like this one, please contact
deki@apache.org.