| <!-- | |
| Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. | |
| This program and the accompanying materials are made available under the | |
| terms of the Eclipse Distribution License v. 1.0, which is available at | |
| http://www.eclipse.org/org/documents/edl-v10.php. | |
| SPDX-License-Identifier: BSD-3-Clause | |
| --> | |
| <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.glassfish.jsonp</groupId> | |
| <artifactId>demos</artifactId> | |
| <version>2.0.1-SNAPSHOT</version> | |
| <relativePath>../pom.xml</relativePath> | |
| </parent> | |
| <packaging>jar</packaging> | |
| <url>http://maven.apache.org</url> | |
| <artifactId>jsondemos-twitter</artifactId> | |
| <properties> | |
| <main.class>org.glassfish.jsondemos.twitter.TwitterObjectSearch</main.class> | |
| <!-- | |
| <main.class>org.glassfish.jsondemos.twitter.TwitterStreamSearch</main.class> | |
| --> | |
| <modules.directory>${project.build.directory}/modules</modules.directory> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>jakarta.json</groupId> | |
| <artifactId>jakarta.json-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish</groupId> | |
| <artifactId>jakarta.json</artifactId> | |
| <classifier>module</classifier> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.xml.bind</groupId> | |
| <artifactId>jakarta.xml.bind-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.sun.xml.bind</groupId> | |
| <artifactId>jaxb-impl</artifactId> | |
| <scope>runtime</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <configuration> | |
| <stripVersion>true</stripVersion> | |
| <outputDirectory>${modules.directory}</outputDirectory> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>get-dependencies</id> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>copy-dependencies</goal> | |
| </goals> | |
| <configuration> | |
| <excludeArtifactIds>jakarta.activation-api</excludeArtifactIds> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>get-project-artifact</id> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>copy</goal> | |
| </goals> | |
| <configuration> | |
| <artifactItems> | |
| <artifactItem> | |
| <groupId>${project.groupId}</groupId> | |
| <artifactId>${project.artifactId}</artifactId> | |
| <version>${project.version}</version> | |
| </artifactItem> | |
| </artifactItems> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <configuration> | |
| <executable>java</executable> | |
| <arguments> | |
| <argument>--module-path</argument> | |
| <argument>${modules.directory}</argument> | |
| <argument>-m</argument> | |
| <argument>org.glassfish.jakarta.json.demos.twitter/${main.class}</argument> | |
| </arguments> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>example-twitter</id> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |