
.main.bean-validator-cdi.bean-validator-cdi.5.1.0-RC1.source-code.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0, which is available at http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU General Public License, version 2 with the GNU Classpath Exception, which is available at https://www.gnu.org/software/classpath/license.html. SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 --> <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"> <parent> <groupId>org.glassfish.main</groupId> <artifactId>glassfish-nucleus-parent</artifactId> <version>5.1.0-RC1</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.glassfish.main.bean-validator-cdi</groupId> <modelVersion>4.0.0</modelVersion> <artifactId>bean-validator-cdi</artifactId> <name>HV. CDI portable extension as OSGi bundle</name> <description>Validation API (JSR 380) version ${javax.validation.version}, Hibernate Validator CDI portable extension version ${hibernate-validator.version} and its dependencies repackaged as OSGi bundle</description> <properties> <findbugs.skip>true</findbugs.skip> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <useDefaultManifestFile>true</useDefaultManifestFile> <archive> <manifest> <addClasspath>true</addClasspath> <classpathLayoutType>custom</classpathLayoutType> <customClasspathLayout>${artifact.artifactId}.${artifact.extension}</customClasspathLayout> </manifest> </archive> <excludes> <exclude>**/.ade_path/**</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.4.0</version> <configuration> <instructions> <Embed-Dependency> <!-- Only specify root artifacts that need to be embedded, everything else will be pulled in automatically based on Private-Package settings. --> *; artifactId=hibernate-validator-cdi; inline=true </Embed-Dependency> <Export-Package> org.hibernate.validator.internal.cdi; version=${hibernate-validator.version}, org.hibernate.validator.internal.cdi.interceptor; version=${hibernate-validator.version}, </Export-Package> <Import-Package> javax.enterprise.inject, javax.enterprise.inject.*, * </Import-Package> <Implementation-Version> ${hibernate-validator.version} </Implementation-Version> </instructions> <!-- Maven uses the output directory (target/classes) rather than the final bundle, when compiling against projects in the same reactor (ie. the same build). Since this jar comprises of classes that come from some other jar and other modules depend on this artifact, we need to unpack. --> <unpackBundle>true</unpackBundle> </configuration> <executions> <execution> <id>osgi-bundle</id> <phase>package</phase> <goals> <goal>bundle</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>package</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${project.build.directory}/alternateLocation</source> </sources> </configuration> </execution> <!--<execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>${project.build.directory}/hibernate-validator-cdi-javadoc.jar</file> <classifier>javadoc</classifier> </artifact> </artifacts> </configuration> </execution>--> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>get-sources</id> <phase>process-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/alternateLocation</outputDirectory> <stripVersion>true</stripVersion> <artifactItems> <artifactItem> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <version>${hibernate-validator.version}</version> <classifier>sources</classifier> <overWrite>false</overWrite> </artifactItem> </artifactItems> </configuration> </execution> <!--<execution> <id>get-javadoc</id> <phase>process-sources</phase> <goals> <goal>copy</goal> </goals> <configuration> <outputDirectory>${project.build.directory}</outputDirectory> <stripVersion>true</stripVersion> <artifactItems> <artifactItem> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-cdi</artifactId> <version>${hibernate-validator.version}</version> <classifier>javadoc</classifier> <overWrite>false</overWrite> </artifactItem> </artifactItems> </configuration> </execution>--> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-cdi</artifactId> <optional>true</optional> </dependency> </dependencies> <!-- This module repackages various maven artifacts and artifacts like hibernate-validator and hibernate-validator-cdi does not have java-docs published. Hence, we cannot repackage the java-docs. We skip java-doc generation and use empty java-doc plugin to make Nexus release job succeed. --> <profiles> <profile> <!-- generate empty javadoc jar --> <id>release-phase2</id> <activation> <activeByDefault>false</activeByDefault> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <id>create-empty-javadoc-jar</id> <goals> <goal>jar</goal> </goals> <configuration> <classesDirectory> ${project.build.directory}/javadoc </classesDirectory> <classifier>javadoc</classifier> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy