Repository: incubator-unomi
Updated Branches:
  refs/heads/master 84b54455f -> 76293f366


Disable binary generation when src profile is enabled


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/76293f36
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/76293f36
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/76293f36

Branch: refs/heads/master
Commit: 76293f3667d9002f0976410f56d1033a3306e707
Parents: 84b5445
Author: Thomas Draier <dra...@apache.org>
Authored: Tue Sep 20 18:32:36 2016 +0200
Committer: Thomas Draier <dra...@apache.org>
Committed: Tue Sep 20 18:32:36 2016 +0200

----------------------------------------------------------------------
 package/pom.xml | 317 ++++++++++++++++++++++++++-------------------------
 1 file changed, 162 insertions(+), 155 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/76293f36/package/pom.xml
----------------------------------------------------------------------
diff --git a/package/pom.xml b/package/pom.xml
index eb6546b..aea8712 100644
--- a/package/pom.xml
+++ b/package/pom.xml
@@ -117,167 +117,12 @@
                     <skip>true</skip>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>unpack-sigar</id>
-                        <phase>generate-resources</phase>
-                        <goals>
-                            <goal>unpack</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.elasticsearch</groupId>
-                                    <artifactId>elasticsearch</artifactId>
-                                    <version>${elasticsearch.version}</version>
-                                    <type>tar.gz</type>
-                                    <includes>**/lib/sigar/**</includes>
-                                    
<outputDirectory>${project.build.directory}/assembly</outputDirectory>
-                                </artifactItem>
-                            </artifactItems>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>copy</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>copy</goal>
-                        </goals>
-                        <configuration>
-                            <artifactItems>
-                                <artifactItem>
-                                    <groupId>org.apache.unomi</groupId>
-                                    <artifactId>unomi-wab</artifactId>
-                                    <version>${project.version}</version>
-                                    <classifier>unomicfg</classifier>
-                                    <type>cfg</type>
-                                    <outputDirectory>
-                                        ${project.build.directory}/assembly/etc
-                                    </outputDirectory>
-                                    
<destFileName>org.apache.unomi.web.cfg</destFileName>
-                                </artifactItem>
-                                <artifactItem>
-                                    <groupId>org.apache.unomi</groupId>
-                                    
<artifactId>unomi-persistence-elasticsearch-core</artifactId>
-                                    <version>${project.version}</version>
-                                    <classifier>elasticsearchcfg</classifier>
-                                    <type>cfg</type>
-                                    <outputDirectory>
-                                        ${project.build.directory}/assembly/etc
-                                    </outputDirectory>
-                                    
<destFileName>org.apache.unomi.persistence.elasticsearch.cfg</destFileName>
-                                </artifactItem>
-                                <artifactItem>
-                                    <groupId>org.apache.unomi</groupId>
-                                    
<artifactId>unomi-persistence-elasticsearch-core</artifactId>
-                                    <version>${project.version}</version>
-                                    
<classifier>elasticsearchconfig</classifier>
-                                    <type>yml</type>
-                                    <outputDirectory>
-                                        ${project.build.directory}/assembly/etc
-                                    </outputDirectory>
-                                    
<destFileName>elasticsearch.yml</destFileName>
-                                </artifactItem>
-                                <artifactItem>
-                                    <groupId>org.apache.unomi</groupId>
-                                    
<artifactId>unomi-plugins-request</artifactId>
-                                    <version>${project.version}</version>
-                                    <classifier>requestcfg</classifier>
-                                    <type>cfg</type>
-                                    <outputDirectory>
-                                        ${project.build.directory}/assembly/etc
-                                    </outputDirectory>
-                                    
<destFileName>org.apache.unomi.plugins.request.cfg</destFileName>
-                                </artifactItem>
-                                <artifactItem>
-                                    <groupId>org.apache.unomi</groupId>
-                                    <artifactId>unomi-plugins-mail</artifactId>
-                                    <version>${project.version}</version>
-                                    <classifier>mailcfg</classifier>
-                                    <type>cfg</type>
-                                    <outputDirectory>
-                                        ${project.build.directory}/assembly/etc
-                                    </outputDirectory>
-                                    
<destFileName>org.apache.unomi.plugins.mail.cfg</destFileName>
-                                </artifactItem>
-                            </artifactItems>
-                            <!-- other configurations here -->
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>copy-karaf</id>
-                        <phase>generate-resources</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <target>
-                                <move 
todir="${project.build.directory}/assembly/lib/sigar">
-                                    <fileset 
dir="${project.build.directory}/assembly/elasticsearch-${elasticsearch.version}/lib/sigar"
 />
-                                </move>
-                                <delete 
dir="${project.build.directory}/assembly/elasticsearch-${elasticsearch.version}"
 />
-                            </target>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.karaf.tooling</groupId>
-                <artifactId>karaf-maven-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>install-kar</id>
-                        <phase>compile</phase>
-                        <goals>
-                            <goal>install-kars</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>package</id>
-                        <goals>
-                            <goal>instance-create-archive</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <configuration>
-                    <installedFeatures>
-                        <feature>wrapper</feature>
-                    </installedFeatures>
-                    <bootFeatures>
-                        <feature>standard</feature>
-                        <feature>management</feature>
-                        <feature>ssh</feature>
-                        <feature>config</feature>
-                        <feature>region</feature>
-                        <feature>package</feature>
-                        <feature>kar</feature>
-                        <feature>war</feature>
-                        <feature>cxf</feature>
-                        <feature>openwebbeans</feature>
-                        <feature>pax-cdi-web-openwebbeans</feature>
-                        <feature>unomi-kar</feature>
-                    </bootFeatures>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
 
     <profiles>
         <profile>
             <id>src</id>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
             <build>
                 <plugins>
                     <plugin>
@@ -301,6 +146,168 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>binary</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>unpack-sigar</id>
+                                <phase>generate-resources</phase>
+                                <goals>
+                                    <goal>unpack</goal>
+                                </goals>
+                                <configuration>
+                                    <artifactItems>
+                                        <artifactItem>
+                                            
<groupId>org.elasticsearch</groupId>
+                                            
<artifactId>elasticsearch</artifactId>
+                                            
<version>${elasticsearch.version}</version>
+                                            <type>tar.gz</type>
+                                            
<includes>**/lib/sigar/**</includes>
+                                            
<outputDirectory>${project.build.directory}/assembly</outputDirectory>
+                                        </artifactItem>
+                                    </artifactItems>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>copy</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>copy</goal>
+                                </goals>
+                                <configuration>
+                                    <artifactItems>
+                                        <artifactItem>
+                                            <groupId>org.apache.unomi</groupId>
+                                            <artifactId>unomi-wab</artifactId>
+                                            
<version>${project.version}</version>
+                                            <classifier>unomicfg</classifier>
+                                            <type>cfg</type>
+                                            <outputDirectory>
+                                                
${project.build.directory}/assembly/etc
+                                            </outputDirectory>
+                                            
<destFileName>org.apache.unomi.web.cfg</destFileName>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>org.apache.unomi</groupId>
+                                            
<artifactId>unomi-persistence-elasticsearch-core</artifactId>
+                                            
<version>${project.version}</version>
+                                            
<classifier>elasticsearchcfg</classifier>
+                                            <type>cfg</type>
+                                            <outputDirectory>
+                                                
${project.build.directory}/assembly/etc
+                                            </outputDirectory>
+                                            
<destFileName>org.apache.unomi.persistence.elasticsearch.cfg</destFileName>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>org.apache.unomi</groupId>
+                                            
<artifactId>unomi-persistence-elasticsearch-core</artifactId>
+                                            
<version>${project.version}</version>
+                                            
<classifier>elasticsearchconfig</classifier>
+                                            <type>yml</type>
+                                            <outputDirectory>
+                                                
${project.build.directory}/assembly/etc
+                                            </outputDirectory>
+                                            
<destFileName>elasticsearch.yml</destFileName>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>org.apache.unomi</groupId>
+                                            
<artifactId>unomi-plugins-request</artifactId>
+                                            
<version>${project.version}</version>
+                                            <classifier>requestcfg</classifier>
+                                            <type>cfg</type>
+                                            <outputDirectory>
+                                                
${project.build.directory}/assembly/etc
+                                            </outputDirectory>
+                                            
<destFileName>org.apache.unomi.plugins.request.cfg</destFileName>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>org.apache.unomi</groupId>
+                                            
<artifactId>unomi-plugins-mail</artifactId>
+                                            
<version>${project.version}</version>
+                                            <classifier>mailcfg</classifier>
+                                            <type>cfg</type>
+                                            <outputDirectory>
+                                                
${project.build.directory}/assembly/etc
+                                            </outputDirectory>
+                                            
<destFileName>org.apache.unomi.plugins.mail.cfg</destFileName>
+                                        </artifactItem>
+                                    </artifactItems>
+                                    <!-- other configurations here -->
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>copy-karaf</id>
+                                <phase>generate-resources</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <target>
+                                        <move 
todir="${project.build.directory}/assembly/lib/sigar">
+                                            <fileset 
dir="${project.build.directory}/assembly/elasticsearch-${elasticsearch.version}/lib/sigar"
 />
+                                        </move>
+                                        <delete 
dir="${project.build.directory}/assembly/elasticsearch-${elasticsearch.version}"
 />
+                                    </target>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                    <plugin>
+                        <groupId>org.apache.karaf.tooling</groupId>
+                        <artifactId>karaf-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>install-kar</id>
+                                <phase>compile</phase>
+                                <goals>
+                                    <goal>install-kars</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>package</id>
+                                <goals>
+                                    <goal>instance-create-archive</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <installedFeatures>
+                                <feature>wrapper</feature>
+                            </installedFeatures>
+                            <bootFeatures>
+                                <feature>standard</feature>
+                                <feature>management</feature>
+                                <feature>ssh</feature>
+                                <feature>config</feature>
+                                <feature>region</feature>
+                                <feature>package</feature>
+                                <feature>kar</feature>
+                                <feature>war</feature>
+                                <feature>cxf</feature>
+                                <feature>openwebbeans</feature>
+                                <feature>pax-cdi-web-openwebbeans</feature>
+                                <feature>unomi-kar</feature>
+                            </bootFeatures>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
 </project>

Reply via email to