| <?xml version="1.0"?> |
| <!-- |
| ~ 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 |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.servicecomb.demo</groupId> |
| <artifactId>demo-jaxrs</artifactId> |
| <version>3.3.0-SNAPSHOT</version> |
| </parent> |
| <artifactId>jaxrs-server</artifactId> |
| <name>Java Chassis::Demo::JAXRS::Server</name> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.servicecomb.demo</groupId> |
| <artifactId>demo-schema</artifactId> |
| </dependency> |
| <!-- This is a demo, user can choose any implementation you want --> |
| <dependency> |
| <groupId>org.glassfish.jersey.core</groupId> |
| <artifactId>jersey-client</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jersey.core</groupId> |
| <artifactId>jersey-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.servicecomb</groupId> |
| <artifactId>swagger-invocation-validator</artifactId> |
| </dependency> |
| </dependencies> |
| <properties> |
| <demo.main>org.apache.servicecomb.demo.jaxrs.JaxrsServer</demo.main> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>docker</id> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <configuration> |
| <images> |
| <image> |
| <name>${project.artifactId}:${project.version}</name> |
| <alias>${project.artifactId}</alias> |
| <build> |
| <from>openjdk:17-alpine</from> |
| <ports> |
| <port>7070</port> |
| <port>8080</port> |
| </ports> |
| <assembly> |
| <mode>tar</mode> |
| <descriptor>${root.basedir}/assembly/assembly.xml</descriptor> |
| </assembly> |
| <entryPoint> |
| <shell>java -Xmx128m $JAVA_OPTS -jar $JAR_PATH</shell> |
| </entryPoint> |
| </build> |
| </image> |
| </images> |
| </configuration> |
| <executions> |
| <execution> |
| <id>build</id> |
| <phase>package</phase> |
| <goals> |
| <goal>build</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |