Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | |
hussainnm | 5371252 | 2021-02-18 19:46:31 +0530 | [diff] [blame] | 4 | Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved. |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 5 | |
| 6 | This program and the accompanying materials are made available under the |
| 7 | terms of the Eclipse Public License v. 2.0, which is available at |
| 8 | http://www.eclipse.org/legal/epl-2.0. |
| 9 | |
| 10 | This Source Code may also be made available under the following Secondary |
| 11 | Licenses when the conditions for such availability set forth in the |
| 12 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 13 | version 2 with the GNU Classpath Exception, which is available at |
| 14 | https://www.gnu.org/software/classpath/license.html. |
| 15 | |
| 16 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 17 | |
| 18 | --> |
| 19 | |
| 20 | <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"> |
David Matějček | 4aceee0 | 2021-05-12 21:18:27 +0200 | [diff] [blame] | 21 | <parent> |
| 22 | <artifactId>jdbc-ra</artifactId> |
| 23 | <groupId>org.glassfish.main.jdbc.jdbc-ra</groupId> |
David Matějček | 56030c9 | 2021-06-03 12:55:40 +0200 | [diff] [blame^] | 24 | <version>6.2.0-SNAPSHOT</version> |
David Matějček | 4aceee0 | 2021-05-12 21:18:27 +0200 | [diff] [blame] | 25 | <relativePath>../pom.xml</relativePath> |
| 26 | </parent> |
| 27 | <modelVersion>4.0.0</modelVersion> |
| 28 | <groupId>org.glassfish.main.jdbc.jdbc-ra.jdbc-ra-distribution</groupId> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 29 | <artifactId>jdbc-ra</artifactId> |
David Matějček | 4aceee0 | 2021-05-12 21:18:27 +0200 | [diff] [blame] | 30 | <name>Distribution Module for JDBC Resource Adapter</name> |
| 31 | <packaging>distribution-fragment</packaging> |
| 32 | <build> |
| 33 | <plugins> |
| 34 | <plugin> |
| 35 | <groupId>org.jvnet.maven-antrun-extended-plugin</groupId> |
| 36 | <artifactId>maven-antrun-extended-plugin</artifactId> |
| 37 | <executions> |
| 38 | <execution> |
| 39 | <phase>generate-sources</phase> |
| 40 | <configuration> |
| 41 | <tasks> |
| 42 | <!-- Resolving jdbc-core and jdbc40 artifacts --> |
| 43 | <resolveArtifact |
| 44 | artifactId="jdbc-core" |
| 45 | groupId="org.glassfish.main.jdbc.jdbc-ra.jdbc-core" |
| 46 | property="core.jar" /> |
| 47 | <resolveArtifact |
| 48 | artifactId="jdbc40" |
| 49 | groupId="org.glassfish.main.jdbc.jdbc-ra.jdbc40" |
| 50 | property="40.jar" /> |
| 51 | <resolveArtifact |
| 52 | artifactId="templates" |
| 53 | groupId="org.glassfish.main.jdbc" |
| 54 | property="templates.jar" /> |
| 55 | <unjar src="${core.jar}" dest="target/classes" /> |
| 56 | <unjar src="${40.jar}" dest="target/classes" /> |
| 57 | <unjar src="${templates.jar}" dest="target/classes/templates" /> |
| 58 | <!-- Creating jars/rars done using ant build.xml --> |
| 59 | <property name="compile_classpath" refid="maven.compile.classpath" /> |
| 60 | <property name="build.compiler" value="extJavac" /> |
| 61 | <ant dir="." antfile="build.xml" target="all" /> |
| 62 | <!-- TODO: Kohsuke to come back here and make sure mvn install puts a |
| 63 | zip file, not .distribution-fragment --> |
| 64 | <attachArtifact file="target/jdbc-ra.zip" /> |
| 65 | </tasks> |
| 66 | </configuration> |
| 67 | <goals> |
| 68 | <goal>run</goal> |
| 69 | </goals> |
| 70 | </execution> |
| 71 | </executions> |
| 72 | </plugin> |
| 73 | </plugins> |
| 74 | </build> |
| 75 | <dependencies> |
| 76 | <dependency> |
| 77 | <groupId>org.glassfish.main.jdbc.jdbc-ra.jdbc-core</groupId> |
| 78 | <artifactId>jdbc-core</artifactId> |
| 79 | <version>${project.parent.version}</version> |
| 80 | <scope>provided</scope> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.glassfish.main.jdbc.jdbc-ra.jdbc40</groupId> |
| 84 | <artifactId>jdbc40</artifactId> |
| 85 | <version>${project.parent.version}</version> |
| 86 | <scope>provided</scope> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.glassfish.main.jdbc</groupId> |
| 90 | <artifactId>templates</artifactId> |
| 91 | <version>${project.parent.version}</version> |
| 92 | <type>zip</type> |
| 93 | </dependency> |
| 94 | </dependencies> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 95 | </project> |