blob: e7c07fe1002d8d2ca23c08882ec91c9f6eb1f0a3 [file] [log] [blame]
<?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>ear</groupId>
<artifactId>maven-ear-plugin-test-project-094-parent</artifactId>
<version>99.0</version>
</parent>
<artifactId>maven-ear-plugin-test-project-094</artifactId>
<packaging>ear</packaging>
<dependencies>
<dependency>
<groupId>eartest</groupId>
<artifactId>jar-sample-three-with-deps</artifactId>
</dependency>
<dependency>
<groupId>eartest</groupId>
<artifactId>war-sample-three</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>eartest</groupId>
<artifactId>sar-sample-two</artifactId>
<type>jboss-sar</type>
<!--
By some reason dependencies of SAR come into EAR as transitive dependencies while they should not,
because SAR contains its dependencies packaged as libraries (like WAR).
Looks like a bug of SAR packaging, i.e. bug of JBoss Packaging Maven Plugin where
includesDependencies should be explicitly set to true for
org.apache.maven.artifact.handler.ArtifactHandler role of jboss-sar role-hint.
-->
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>eartest</groupId>
<artifactId>har-sample-two</artifactId>
<type>jboss-har</type>
<!--
By some reason dependencies of HAR come into EAR as transitive dependencies while they should not,
because HAR contains its dependencies packaged as libraries (like WAR).
Looks like a bug of HAR packaging, i.e. bug of JBoss Packaging Maven Plugin where
includesDependencies should be explicitly set to true for
org.apache.maven.artifact.handler.ArtifactHandler role of jboss-har role-hint.
-->
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>eartest</groupId>
<artifactId>rar-sample-one</artifactId>
<type>rar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<version>6</version>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<skinnyWars>true</skinnyWars>
<artifactTypeMappings>
<artifactTypeMapping type="jboss-sar" mapping="sar"/>
<artifactTypeMapping type="jboss-har" mapping="har"/>
</artifactTypeMappings>
<jboss>
<version>5</version>
</jboss>
</configuration>
</plugin>
</plugins>
</build>
</project>