-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://svn.apache.org/repos/asf/karaf/site/production/manual/latest-3.0.x/custom-distribution.html#__deprecated_old_style_maven_assembly with some spice'nlove. It is the reduced alternative to having the whole karaf distro copied in the git, this builds it with maven plugins as if one would do it manually.
- Loading branch information
0 parents
commit 6dceec4
Showing
14 changed files
with
912 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
**/target/ | ||
**/pom.xml.tag | ||
**/pom.xml.releaseBackup | ||
**/pom.xml.versionsBackup | ||
**/pom.xml.next | ||
**/release.properties | ||
**/.settings/ | ||
**/.classpath | ||
**/.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,273 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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/xsd/maven-4.0.0.xsd"> | ||
|
||
<!-- | ||
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. | ||
--> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.universAAL</groupId> | ||
<artifactId>distro.karaf</artifactId> | ||
<version>2.0.0</version> | ||
<packaging>pom</packaging> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<karaf.version>2.2.9</karaf.version> | ||
</properties> | ||
|
||
<name>universAAL Karaf Distribution</name> | ||
<description>universAAL Karaf Distribution</description> | ||
|
||
<repositories> | ||
<repository> | ||
<id>central</id> | ||
<url>https://repo1.maven.org/maven2</url> | ||
<releases> | ||
<enabled>true</enabled> | ||
</releases> | ||
</repository> | ||
<!-- OPS4J SNAPSHOT repository --> | ||
<repository> | ||
<id>ops4j.sonatype.snapshots.deploy</id> | ||
<name>OPS4J snapshot repository</name> | ||
<url>https://oss.sonatype.org/content/repositories/ops4j-snapshots/</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
<!-- Apache snapshots --> | ||
<repository> | ||
<id>apache-snapshots</id> | ||
<name>Apache Snapshots Repository</name> | ||
<url>http://repository.apache.org/content/groups/snapshots-group</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
|
||
<!-- Gemini Blueprint repository --> | ||
<repository> | ||
<id>zodiac-repository</id> | ||
<name>Zodiac Release Repository</name> | ||
<url>http://zodiac.springsource.com/maven/bundles/release</url> | ||
<releases> | ||
<enabled>true</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
<!-- Spring EBR repository --> | ||
<repository> | ||
<id>spring-ebr-repository</id> | ||
<name>Spring EBR Repository</name> | ||
<url>http://repository.springsource.com/maven/bundles/external</url> | ||
<releases> | ||
<enabled>true</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
<repository> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<id>uaal</id> | ||
<name>universAAL Repositories</name> | ||
<url>http://depot.universaal.org/maven-repo/releases/</url> | ||
</repository> | ||
<repository> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<id>uaal-snapshots</id> | ||
<name>universAAL Snapshot Repositories</name> | ||
<url>http://depot.universaal.org/maven-repo/snapshots/</url> | ||
</repository> | ||
<repository> | ||
<id>uaal-thirdparty</id> | ||
<name>universAAL ThirdParty Repositories</name> | ||
<url>http://depot.universaal.org/maven-repo/thirdparty/</url> | ||
</repository> | ||
<repository> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<id>uaal-thirdparty-snapshots</id> | ||
<name>universAAL ThirdParty Repositories</name> | ||
<url>http://depot.universaal.org/maven-repo/thirdparty-snapshots/</url> | ||
</repository> | ||
</repositories> | ||
|
||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.karaf</groupId> | ||
<artifactId>apache-karaf</artifactId> | ||
<version>${karaf.version}</version> | ||
<type>tar.gz</type> | ||
</dependency> | ||
<!-- | ||
<dependency> | ||
<groupId>org.apache.karaf</groupId> | ||
<artifactId>apache-karaf</artifactId> | ||
<version>${karaf.version}</version> | ||
<type>xml</type> | ||
<classifier>features</classifier> | ||
</dependency> | ||
--> | ||
</dependencies> | ||
|
||
<build> | ||
<resources> | ||
<resource> | ||
<directory>${project.basedir}/src/main/filtered-resources</directory> | ||
<filtering>true</filtering> | ||
<includes> | ||
<include>**/*</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.5</version> | ||
<configuration> | ||
<escapeString>\</escapeString> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>filter</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>resources</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- | ||
<plugin> | ||
<groupId>org.apache.karaf.tooling</groupId> | ||
<artifactId>features-maven-plugin</artifactId> | ||
<version>${karaf.version}</version> | ||
<executions> | ||
<execution> | ||
<id>add-features-to-repo</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>add-features-to-repo</goal> | ||
</goals> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>mvn:org.apache.karaf/apache-karaf/${karaf.version}/xml/features</descriptor> | ||
<descriptor>mvn:org.universAAL.middleware/mw.karaf.feature/${project.version}/xml/features</descriptor> | ||
<descriptor>mvn:org.universAAL.ui/ui.karaf.feature/${project.version}/xml/features</descriptor> | ||
<descriptor>mvn:org.universAAL.lddi/lddi.karaf.feature/${project.version}/xml/features</descriptor> | ||
</descriptors> | ||
<features> | ||
<feature>uAAL-MW</feature> | ||
</features> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
--> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>copy</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>copy</goal> | ||
</goals> | ||
<configuration> | ||
<!-- Define here the artifacts which should be considered in the assembly --> | ||
<!-- For instance, the branding jar --> | ||
<artifactItems> | ||
<artifactItem> | ||
<groupId>org.universAAL.middleware</groupId> | ||
<artifactId>mw.karaf.branding.osgi</artifactId> | ||
<version>${project.version}</version> | ||
<outputDirectory>target/dependencies</outputDirectory> | ||
<destFileName>mw.karaf.branding.osgi-${project.version}.jar</destFileName> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<!-- Uncompress the standard Karaf distribution --> | ||
<id>unpack</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>unpack</goal> | ||
</goals> | ||
<configuration> | ||
<artifactItems> | ||
<artifactItem> | ||
<groupId>org.apache.karaf</groupId> | ||
<artifactId>apache-karaf</artifactId> | ||
<type>zip</type> | ||
<outputDirectory>target/dependencies</outputDirectory> | ||
</artifactItem> | ||
<artifactItem> | ||
<groupId>org.apache.karaf</groupId> | ||
<artifactId>apache-karaf</artifactId> | ||
<type>tar.gz</type> | ||
<outputDirectory>target/dependencies</outputDirectory> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>bin</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<configuration> | ||
<finalName>distro.karaf-uAAL${project.version}-Karaf${karaf.version}</finalName> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
<descriptors> | ||
<descriptor>src/main/descriptors/bin.xml</descriptor> | ||
</descriptors> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
<tarLongFileMode>gnu</tarLongFileMode> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Oops, something went wrong.