Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
initial commit for the prototype of a integration assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Feb 3, 2015
1 parent 79a4dca commit 2807ec5
Show file tree
Hide file tree
Showing 4 changed files with 707 additions and 0 deletions.
126 changes: 126 additions & 0 deletions integration-distro-test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 Red Hat, Inc. and/or its affiliates
and other contributors as indicated by the @author tags.
Licensed 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.hawkular</groupId>
<artifactId>hawkular-parent</artifactId>
<version>4</version>
</parent>

<artifactId>integration-distro</artifactId>
<version>1.0.0.Alpha1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Hawkular Integration Distribution</name>

<properties>
<checkstyle.suppressions.file>${basedir}/src/main/scripts/checkstyle-suppressions.xml</checkstyle.suppressions.file>

<!-- The versions of the components that go into our integration distribution -->
<version.org.hawkular.nest>1.0.0.Alpha1-SNAPSHOT</version.org.hawkular.nest>
</properties>

<dependencies>
<dependency>
<groupId>org.hawkular.nest</groupId>
<artifactId>hawkular-nest-distro</artifactId>
<version>${version.org.hawkular.nest}</version>
<classifier>distribution</classifier>
<type>zip</type>
</dependency>
</dependencies>

<build>

<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-distro-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/distro-resources</outputDirectory>
<resources>
<resource>
<directory>src/main/distro-resources</directory>
<filtering>false</filtering> <!-- let the assembly filter if it wants -->
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/scripts/distro-assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>distro-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<!-- unzips the assembly so devs can run it right out of target/ -->
<profile>
<id>dev</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>unzip-distro</id>
<phase>install</phase>
<configuration>
<target>
<unzip src="${project.build.directory}/${project.build.finalName}-distribution.zip" dest="${project.build.directory}" />
<chmod dir="${project.build.directory}/wildfly-${version.org.wildfly}/bin" includes="*.sh"
perm="u+x" type="file" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading

0 comments on commit 2807ec5

Please sign in to comment.