| <?xml version="1.0"?> |
| <!-- |
| |
| Copyright (c) 2010, 2020 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> |
| <artifactId>jdbc-ra</artifactId> |
| <groupId>org.glassfish.main.jdbc.jdbc-ra</groupId> |
| <version>6.0.0</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.glassfish.main.jdbc.jdbc-ra.jdbc-ra-distribution</groupId> |
| <artifactId>jdbc-ra</artifactId> |
| <name>Distribution Module for JDBC Resource Adapter</name> |
| <packaging>distribution-fragment</packaging> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.jvnet.maven-antrun-extended-plugin</groupId> |
| <artifactId>maven-antrun-extended-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <configuration> |
| <tasks> |
| <!-- Resolving jdbc-core and jdbc40 artifacts --> |
| <resolveArtifact artifactId="jdbc-core" groupId="org.glassfish.main.jdbc.jdbc-ra.jdbc-core" property="core.jar" /> |
| <resolveArtifact artifactId="jdbc40" groupId="org.glassfish.main.jdbc.jdbc-ra.jdbc40" property="40.jar" /> |
| <resolveArtifact artifactId="templates" groupId="org.glassfish.main.jdbc" property="templates.jar" /> |
| |
| <unjar src="${core.jar}" dest="target/classes" /> |
| <unjar src="${40.jar}" dest="target/classes" /> |
| <unjar src="${templates.jar}" dest="target/classes/templates" /> |
| |
| <!-- Creating jars/rars done using ant build.xml --> |
| <property name="compile_classpath" refid="maven.compile.classpath" /> |
| <property name="build.compiler" value="extJavac" /> |
| <ant dir="." antfile="build.xml" target="all" /> |
| |
| <!-- TODO: Kohsuke to come back here and make sure mvn install puts a zip file, not .distribution-fragment --> |
| <attachArtifact file="target/jdbc-ra.zip" /> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.glassfish.main.jdbc.jdbc-ra.jdbc-core</groupId> |
| <artifactId>jdbc-core</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.glassfish.main.jdbc.jdbc-ra.jdbc40</groupId> |
| <artifactId>jdbc40</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.glassfish.main.jdbc</groupId> |
| <artifactId>templates</artifactId> |
| <version>${project.parent.version}</version> |
| <type>zip</type> |
| </dependency> |
| |
| </dependencies> |
| </project> |