| <?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>org.apache.camel.tests.bundles</groupId> |
| <artifactId>bundles-pom</artifactId> |
| <version>3.6.0-SNAPSHOT</version> |
| </parent> |
| |
| <groupId>org.apache.camel.tests</groupId> |
| <artifactId>org.apache.camel.tests.mock-javamail_1.7</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: Integration Tests :: Test Bundles: ${pkgArtifactId}-${pkgVersion}</name> |
| <description> |
| This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar. |
| </description> |
| |
| <properties> |
| <pkgGroupId>org.jvnet.mock-javamail</pkgGroupId> |
| <pkgArtifactId>mock-javamail</pkgArtifactId> |
| <pkgVersion>1.7</pkgVersion> |
| <servicemix.legal.version>1.0</servicemix.legal.version> |
| <camel.osgi.export.pkg> |
| org.jvnet.mock_javamail* |
| </camel.osgi.export.pkg> |
| <camel.osgi.import.pkg> |
| * |
| </camel.osgi.import.pkg> |
| <camel.osgi.private.pkg> |
| META-INF;-split-package:=merge-first, |
| META-INF.services;-split-package:=merge-first |
| META-INF.maven.org.apache.camel.tests*;-split-package:=merge-first |
| </camel.osgi.private.pkg> |
| <camel.osgi.export>${camel.osgi.export.pkg}*;version=${pkgVersion};-split-package:=merge-first |
| </camel.osgi.export> |
| </properties> |
| |
| <dependencies> |
| <!-- using the new version of java mail --> |
| <dependency> |
| <groupId>${pkgGroupId}</groupId> |
| <artifactId>${pkgArtifactId}</artifactId> |
| <version>${pkgVersion}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.mail</groupId> |
| <artifactId>mail</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.mail</groupId> |
| <artifactId>jakarta.mail</artifactId> |
| <version>${jakarta-mail-version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <artifactSet> |
| <includes> |
| <include>${pkgGroupId}:${pkgArtifactId}</include> |
| </includes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <artifact>${pkgGroupId}:${pkgArtifactId}</artifact> |
| <excludes> |
| <exclude>**</exclude> |
| <exclude>META-INF/javamail.default.providers</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>apache-release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <failOnError>false</failOnError> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |