diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..8bf940d9cd1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + - package-ecosystem: "maven" + target-branch: "master" + directory: "/" + schedule: + interval: "daily" + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-major"] + - package-ecosystem: "maven" + target-branch: "3.0.0" + directory: "/" + schedule: + interval: "daily" + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-major"] \ No newline at end of file diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 00000000000..f67f5a42c2e --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,16 @@ +name: 'Dependency Review' +on: [pull_request] + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: 'Checkout Repository' + uses: actions/checkout@v4 + - name: Dependency Review + uses: actions/dependency-review-action@v3 + with: + fail-on-severity: high diff --git a/.github/workflows/docker-release-master.yml b/.github/workflows/docker-release-master.yml new file mode 100644 index 00000000000..aec3acd9752 --- /dev/null +++ b/.github/workflows/docker-release-master.yml @@ -0,0 +1,68 @@ +name: Build And Push Docker Release Master + +on: + workflow_dispatch: + branches: [ "master" ] + inputs: + tag: + description: tag/version to release + required: true +jobs: + build_push_docker_release_master: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + name: git checkout master + with: + ref: master + - name: Set up Java + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + cache: maven + - name: preliminary checks + run: | + docker login --username=${{ secrets.DOCKERHUB_SB_USERNAME }} --password=${{ secrets.DOCKERHUB_SB_PASSWORD }} + set -e + # fail if templates/generators contain carriage return '\r' + /bin/bash ./bin/utils/detect_carriage_return.sh + # fail if generators contain merge conflicts + /bin/bash ./bin/utils/detect_merge_conflict.sh + # fail if generators contain tab '\t' + /bin/bash ./bin/utils/detect_tab_in_java_class.sh + - uses: s4u/maven-settings-action@v2.8.0 + name: setup maven settings.xml + with: + servers: | + [{ + "id": "sonatype-nexus-staging", + "username": "${{ secrets.OSSRH_USERNAME }}", + "password": "${{ secrets.OSSRH_TOKEN }}" + }, + { + "id": "sonatype-nexus-snapshots", + "username": "${{ secrets.OSSRH_USERNAME }}", + "password": "${{ secrets.OSSRH_TOKEN }}" + }] + - name: Build with Maven + run: | + # mvn clean install -U + - name: docker build and push + run: | + export DOCKER_GENERATOR_IMAGE_NAME=swaggerapi/swagger-generator + export DOCKER_CODEGEN_CLI_IMAGE_NAME=swaggerapi/swagger-codegen-cli + export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec` + + docker build --rm=false -t $DOCKER_GENERATOR_IMAGE_NAME:${{ env.TAG }} ./modules/swagger-generator + docker tag $DOCKER_GENERATOR_IMAGE_NAME:${{ env.TAG }} $DOCKER_GENERATOR_IMAGE_NAME:latest + docker push $DOCKER_GENERATOR_IMAGE_NAME:${{ env.TAG }} + docker push $DOCKER_GENERATOR_IMAGE_NAME:latest + docker build --rm=false -t $DOCKER_CODEGEN_CLI_IMAGE_NAME:${{ env.TAG }} ./modules/swagger-codegen-cli + docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:${{ env.TAG }} $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest + docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME:${{ env.TAG }} + docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest + env: + TAG: ${{ github.event.inputs.tag }} \ No newline at end of file diff --git a/modules/swagger-codegen-maven-plugin/pom.xml b/modules/swagger-codegen-maven-plugin/pom.xml index 2eb89b415da..b11de0f560c 100644 --- a/modules/swagger-codegen-maven-plugin/pom.xml +++ b/modules/swagger-codegen-maven-plugin/pom.xml @@ -43,7 +43,7 @@ <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> - <version>3.4</version> + <version>3.10.2</version> </dependency> <dependency> <groupId>io.swagger</groupId> diff --git a/modules/swagger-generator/pom.xml b/modules/swagger-generator/pom.xml index f5e76197c0f..28665c08ebc 100644 --- a/modules/swagger-generator/pom.xml +++ b/modules/swagger-generator/pom.xml @@ -334,6 +334,6 @@ <servlet-api-version>2.5</servlet-api-version> <zip-version>2.11.5</zip-version> <jetty-version>9.4.53.v20231009</jetty-version> - <jersey2-version>2.40</jersey2-version> + <jersey2-version>2.41</jersey2-version> </properties> </project> diff --git a/modules/swagger-generator/pom.xml.jenkins b/modules/swagger-generator/pom.xml.jenkins deleted file mode 100644 index 09af3cb8b18..00000000000 --- a/modules/swagger-generator/pom.xml.jenkins +++ /dev/null @@ -1,325 +0,0 @@ -<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" - 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>io.swagger</groupId> - <artifactId>swagger-codegen-project</artifactId> - <version>2.4.37-SNAPSHOT</version> - <relativePath>../..</relativePath> - </parent> - <artifactId>swagger-generator</artifactId> - <packaging>war</packaging> - <name>swagger-generator</name> - <build> - <sourceDirectory>src/main/java</sourceDirectory> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - <includes> - <include>**/version.prop</include> - <include>logback.xml</include> - </includes> - </resource> - </resources> - <plugins> - <plugin> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <outputDirectory>${project.build.directory}/lib</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>properties-maven-plugin</artifactId> - <version>1.0.0</version> - <executions> - <execution> - <phase>pre-integration-test</phase> - <goals> - <goal>set-system-properties</goal> - </goals> - <configuration> - <properties> - <property> - <name>org.eclipse.jetty.util.log.class</name> - <value>org.eclipse.jetty.util.log.StdErrLog</value> - </property> - <property> - <name>org.eclipse.jetty.annotations.AnnotationParser.LEVEL</name> - <value>OFF</value> - </property> - </properties> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-war-plugin</artifactId> - <version>3.1.0</version> - <configuration> - <webResources> - <resource> - <!-- this is relative to the pom.xml directory --> - <directory>${project.build.directory}/swagger-ui-master/dist</directory> - <excludes> - <exclude>index.html</exclude> - </excludes> - </resource> - </webResources> - </configuration> - </plugin> - <plugin> - <artifactId>maven-failsafe-plugin</artifactId> - <version>2.6</version> - <configuration> - <useManifestOnlyJar>false</useManifestOnlyJar> - <useSystemClassLoader>false</useSystemClassLoader> - </configuration> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-maven-plugin</artifactId> - <version>${jetty-version}</version> - <configuration> - <classesDirectory>target/${project.artifactId}-${project.version}/WEB-INF/classes</classesDirectory> - <webApp> - <contextPath>/</contextPath> - </webApp> - <webAppSourceDirectory>target/${project.artifactId}-${project.version}</webAppSourceDirectory> - <stopPort>8079</stopPort> - <stopKey>stopit</stopKey> - <httpConnector> - <idleTimeout>60000</idleTimeout> - </httpConnector> - </configuration> - <executions> - <execution> - <id>start-jetty</id> - <phase>pre-integration-test</phase> - <goals> - <goal>start</goal> - </goals> - <configuration> - <scanIntervalSeconds>0</scanIntervalSeconds> - </configuration> - </execution> - <execution> - <id>stop-jetty</id> - <phase>post-integration-test</phase> - <goals> - <goal>stop</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>com.googlecode.maven-download-plugin</groupId> - <artifactId>download-maven-plugin</artifactId> - <version>1.2.1</version> - <executions> - <execution> - <id>swagger-ui</id> - <goals> - <goal>wget</goal> - </goals> - <configuration> - <url>https://github.com/swagger-api/swagger-ui/archive/master.tar.gz</url> - <unpack>true</unpack> - <!--<skipCache>true</skipCache>--> - <outputDirectory>${project.build.directory}</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>net.revelc.code</groupId> - <artifactId>formatter-maven-plugin</artifactId> - <configuration> - <!-- Point at the eclipse-formatter.xml in the swagger-codegen parent project directory --> - <configFile>${project.basedir}${file.separator}${project.parent.relativePath}${file.separator}eclipse-formatter.xml</configFile> - </configuration> - </plugin> - </plugins> - </build> - <dependencies> - <dependency> - <groupId>io.swagger</groupId> - <artifactId>swagger-jersey2-jaxrs</artifactId> - <version>${swagger-core-version}</version> - </dependency> - <dependency> - <groupId>io.swagger</groupId> - <artifactId>swagger-codegen</artifactId> - <version>${project.parent.version}</version> - <exclusions> - <exclusion> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-simple</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>ch.qos.logback</groupId> - <artifactId>logback-classic</artifactId> - <version>${logback-version}</version> - </dependency> - <dependency> - <groupId>ch.qos.logback</groupId> - <artifactId>logback-core</artifactId> - <version>${logback-version}</version> - </dependency> - - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>${servlet-api-version}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.glassfish.jersey.inject</groupId> - <artifactId>jersey-hk2</artifactId> - <version>${jersey2-version}</version> - <exclusions> - <exclusion> - <groupId>org.glassfish.hk2.external</groupId> - <artifactId>javax.inject</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.glassfish.jersey.containers</groupId> - <artifactId>jersey-container-servlet-core</artifactId> - <version>${jersey2-version}</version> - <exclusions> - <exclusion> - <groupId>org.glassfish.hk2.external</groupId> - <artifactId>javax.inject</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.glassfish.jersey.media</groupId> - <artifactId>jersey-media-multipart</artifactId> - <version>${jersey2-version}</version> - <exclusions> - <exclusion> - <groupId>org.glassfish.hk2.external</groupId> - <artifactId>javax.inject</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>net.lingala.zip4j</groupId> - <artifactId>zip4j</artifactId> - <version>${zip-version}</version> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-server</artifactId> - <version>${jetty-version}</version> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-start</artifactId> - <version>${jetty-version}</version> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-xml</artifactId> - <version>${jetty-version}</version> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-webapp</artifactId> - <version>${jetty-version}</version> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-deploy</artifactId> - <version>${jetty-version}</version> - </dependency> - - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>2.3.0</version> - </dependency> - <dependency> - <groupId>com.sun.xml.bind</groupId> - <artifactId>jaxb-core</artifactId> - <version>2.3.0</version> - </dependency> - <dependency> - <groupId>com.sun.xml.bind</groupId> - <artifactId>jaxb-impl</artifactId> - <version>2.3.0</version> - </dependency> - - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-runner</artifactId> - <version>${jetty-version}</version> - <scope>provided</scope> - <exclusions> - <exclusion> - <groupId>org.glassfish</groupId> - <artifactId>javax.el</artifactId> - </exclusion> - <exclusion> - <groupId>org.eclipse.jetty</groupId> - <artifactId>apache-jsp</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>com.fasterxml.jackson.jaxrs</groupId> - <artifactId>jackson-jaxrs-json-provider</artifactId> - <version>${jackson-version}</version> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.jmockit</groupId> - <artifactId>jmockit</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>${junit-version}</version> - <scope>test</scope> - </dependency> - </dependencies> - <properties> - <servlet-api-version>2.5</servlet-api-version> - <logback-version>1.4.6</logback-version> - <maven-plugin-version>1.0.0</maven-plugin-version> - <servlet-api-version>2.5</servlet-api-version> - <zip-version>2.11.5</zip-version> - <jetty-version>9.4.51.v20230217</jetty-version> - <jersey2-version>2.39.1</jersey2-version> - </properties> -</project> diff --git a/pom.xml b/pom.xml index 31a5474eeaf..f2dc96c025f 100644 --- a/pom.xml +++ b/pom.xml @@ -858,43 +858,113 @@ </modules> </profile> <profile> - <id>samples</id> + <id>samples-java8</id> <activation> <property> <name>env</name> - <value>samples</value> + <value>samples-jave8</value> + </property> + </activation> + <modules> + <module>samples/client/petstore/akka-scala</module> + <module>samples/client/petstore/java/feign</module> + <module>samples/client/petstore/java/google-api-client</module> + <module>samples/client/petstore/java/jersey1</module> + <module>samples/client/petstore/java/jersey2</module> + <module>samples/client/petstore/java/okhttp-gson</module> + <module>samples/client/petstore/java/resteasy</module> + <module>samples/client/petstore/java/resttemplate</module> + <module>samples/client/petstore/java/resttemplate-withXml</module> + <module>samples/client/petstore/java/retrofit2</module> + <module>samples/client/petstore/java/retrofit2rx</module> + <module>samples/client/petstore/java/retrofit</module> + <module>samples/client/petstore/java/vertx</module> + <module>samples/client/petstore/jaxrs-cxf-client</module> + <module>samples/server/petstore/java-inflector</module> + <module>samples/server/petstore/java-pkmst</module> + <module>samples/server/petstore/java-vertx/async</module> + <module>samples/server/petstore/java-vertx/rx</module> + <module>samples/server/petstore/jaxrs-cxf-annotated-base-path</module> + <module>samples/server/petstore/jaxrs-cxf-cdi</module> + <module>samples/server/petstore/jaxrs-cxf</module> + <module>samples/server/petstore/jaxrs-cxf-non-spring-app</module> + <module>samples/server/petstore/jaxrs-datelib-j8</module> + <module>samples/server/petstore/jaxrs/jersey1</module> + <module>samples/server/petstore/jaxrs/jersey1-useTags</module> + <module>samples/server/petstore/jaxrs/jersey2</module> + <module>samples/server/petstore/jaxrs/jersey2-useTags</module> + <module>samples/server/petstore/jaxrs-resteasy/default</module> + <module>samples/server/petstore/jaxrs-resteasy/eap-java8</module> + <module>samples/server/petstore/jaxrs-resteasy/eap-joda</module> + <module>samples/server/petstore/jaxrs-resteasy/eap</module> + <module>samples/server/petstore/jaxrs-resteasy/joda</module> + <module>samples/server/petstore/jaxrs-spec-interface</module> + <module>samples/server/petstore/springboot-beanvalidation</module> + <module>samples/server/petstore/springboot</module> + <module>samples/server/petstore/springboot-useoptional</module> + <module>samples/client/petstore/spring-cloud</module> + <module>samples/server/petstore/spring-mvc-j8-async</module> + <module>samples/server/petstore/spring-mvc-j8-localdatetime</module> + <module>samples/server/petstore/spring-mvc</module> + <module>samples/server/petstore/undertow</module> + </modules> + <properties> + <maven.compiler.release></maven.compiler.release> + </properties> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.10.1</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>samples-other</id> + <activation> + <property> + <name>env</name> + <value>samples-other</value> </property> </activation> <modules> - <!-- <module>samples/server/petstore/erlang-server</module> note: make sample compilation work --> - <!-- clients --> <module>samples/client/petstore/php/SwaggerClient-php</module> <module>samples/client/petstore/ruby</module> <module>samples/client/petstore/scala</module> <module>samples/client/petstore/akka-scala</module> <module>samples/client/petstore/javascript</module> <module>samples/client/petstore/python</module> - <!--<module>samples/client/petstore/python-tornado</module>--> <module>samples/client/petstore/python-asyncio</module> - <!-- - <module>samples/client/petstore/typescript-fetch/builds/default</module> - <module>samples/client/petstore/typescript-fetch/builds/es6-target</module> - - <module>samples/client/petstore/typescript-fetch/builds/with-npm-version</module> - <module>samples/client/petstore/typescript-fetch/tests/default</module> - --> - -<!-- <module>samples/client/petstore/typescript-node/npm</module>--> - <!-- comment out due to github rate limit error - <module>samples/client/petstore/typescript-angularjs</module>--> - <!-- comment out due to error `npm run build` - <module>samples/client/petstore/typescript-jquery/npm</module>--> - <!--<module>samples/client/petstore/typescript-angular-v2/npm</module>--> <module>samples/client/petstore/typescript-angular-v4/npm</module> <module>samples/client/petstore/typescript-angular-v4.3/npm</module> <module>samples/client/petstore/typescript-angular-v5/npm</module> <module>samples/client/petstore/typescript-angular-v6/npm</module> - <!--<module>samples/client/petstore/bash</module>--> + <module>samples/server/petstore/java-play-framework-api-package-override</module> + <module>samples/server/petstore/java-play-framework-controller-only</module> + <module>samples/server/petstore/java-play-framework</module> + <module>samples/server/petstore/java-play-framework-no-bean-validation</module> + <module>samples/server/petstore/java-play-framework-no-exception-handling</module> + <module>samples/server/petstore/java-play-framework-no-interface</module> + <module>samples/server/petstore/java-play-framework-no-swagger-ui</module> + <module>samples/server/petstore/java-play-framework-no-wrap-calls</module> + <module>samples/server/petstore/scala-lagom-server</module> + <module>samples/server/petstore/scalatra</module> + </modules> + </profile> + <profile> + <id>samples</id> + <activation> + <property> + <name>env</name> + <value>samples</value> + </property> + </activation> + <modules> </modules> </profile> </profiles> @@ -992,8 +1062,8 @@ <scala-version>2.11.1</scala-version> <felix-version>3.3.0</felix-version> <swagger-core-version>1.6.12</swagger-core-version> - <commons-io-version>2.14.0</commons-io-version> - <commons-cli-version>1.5.0</commons-cli-version> + <commons-io-version>2.15.0</commons-io-version> + <commons-cli-version>1.6.0</commons-cli-version> <junit-version>4.13.2</junit-version> <jackson-version>2.15.3</jackson-version> <maven-plugin-version>1.0.0</maven-plugin-version> @@ -1004,7 +1074,7 @@ <testng-version>7.8.0</testng-version> <surefire-version>3.0.0</surefire-version> <jmockit-version>1.49</jmockit-version> - <mockito-version>5.6.0</mockito-version> + <mockito-version>5.7.0</mockito-version> <reflections-version>0.10.2</reflections-version> <snakeyaml-version>2.2</snakeyaml-version> <httpclient-version>4.5.14</httpclient-version> diff --git a/pom.xml.jenkins b/pom.xml.jenkins deleted file mode 100644 index d7958696ceb..00000000000 --- a/pom.xml.jenkins +++ /dev/null @@ -1,1037 +0,0 @@ -<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <parent> - <groupId>org.sonatype.oss</groupId> - <artifactId>oss-parent</artifactId> - <version>5</version> - </parent> - <modelVersion>4.0.0</modelVersion> - <groupId>io.swagger</groupId> - <artifactId>swagger-codegen-project</artifactId> - <packaging>pom</packaging> - <name>swagger-codegen-project</name> - <version>2.4.37-SNAPSHOT</version> - <url>https://github.com/swagger-api/swagger-codegen</url> - <scm> - <connection>scm:git:git@github.com:swagger-api/swagger-codegen.git</connection> - <developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection> - <url>https://github.com/swagger-api/swagger-codegen</url> - </scm> - <developers> - <developer> - <id>fehguy</id> - <name>Tony Tam</name> - <email>fehguy@gmail.com</email> - </developer> - <developer> - <id>wing328</id> - <name>William Cheng</name> - <email>wing328hk@gmail.com</email> - </developer> - </developers> - <issueManagement> - <system>github</system> - <url>https://github.com/swagger-api/swagger-codegen/issues</url> - </issueManagement> - <mailingLists> - <mailingList> - <name>swagger-swaggersocket</name> - <archive>https://groups.google.com/forum/#!forum/swagger-swaggersocket</archive> - </mailingList> - </mailingLists> - <licenses> - <license> - <name>Apache License 2.0</name> - <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> - <distribution>repo</distribution> - </license> - </licenses> - <build> - <sourceDirectory>src/main/java</sourceDirectory> - <outputDirectory>target/classes</outputDirectory> - <extensions> - <extension> - <groupId>org.jvnet.wagon-svn</groupId> - <artifactId>wagon-svn</artifactId> - <version>1.12</version> - </extension> - <extension> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-ssh-external</artifactId> - <version>3.5.2</version> - </extension> - <extension> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-webdav</artifactId> - <version>1.0-beta-2</version> - </extension> - </extensions> - <defaultGoal>install</defaultGoal> - <directory>target</directory> - <finalName>${project.artifactId}-${project.version}</finalName> - <plugins> - <plugin> - <groupId>net.revelc.code</groupId> - <artifactId>formatter-maven-plugin</artifactId> - <!-- Uncomment this to format before checkstyle --> - <!-- <executions> - <execution> - <id>format</id> - <phase>validate</phase> - <goals> - <goal>format</goal> - </goals> - </execution> - </executions> --> - <configuration> - <compilerSource>1.8</compilerSource> - <compilerCompliance>1.8</compilerCompliance> - <compilerTargetPlatform>1.8</compilerTargetPlatform> - <lineEnding>LF</lineEnding> - </configuration> - </plugin> - <!--<plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-checkstyle-plugin</artifactId> - <version>2.17</version> - <executions> - <execution> - <id>validate</id> - <phase>validate</phase> - <configuration> - <configLocation>google_checkstyle.xml</configLocation> - Don't include generated sources a la http://stackoverflow.com/a/30406454 - <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> - <encoding>UTF-8</encoding> - <consoleOutput>true</consoleOutput> - <failsOnError>true</failsOnError> - <linkXRef>false</linkXRef> - </configuration> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>com.puppycrawl.tools</groupId> - <artifactId>checkstyle</artifactId> - <version>6.19</version> - </dependency> - </dependencies> - </plugin>--> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <version>${surefire-version}</version> - <configuration> - <testNGArtifactName>none:none</testNGArtifactName> - <argLine>-XX:+StartAttachListener</argLine> - </configuration> - <executions> - <execution> - <id>test-testng</id> - <phase>test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <junitArtifactName>none:none</junitArtifactName> - <testNGArtifactName>org.testng:testng</testNGArtifactName> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>copy-dependencies</goal> - </goals> - <configuration> - <outputDirectory>${project.build.directory}/lib</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.10.1</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>3.3.0</version> - <configuration> - <archive> - <manifestEntries> - <mode>development</mode> - <url>${project.url}</url> - <implementation-version>${project.version}</implementation-version> - <package>io.swagger</package> - </manifestEntries> - </archive> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <version>3.12.0</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-release-plugin</artifactId> - <version>2.5.3</version> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>3.5.0</version> - <configuration> - <aggregate>true</aggregate> - <source>1.8</source> - <encoding>UTF-8</encoding> - <maxmemory>1g</maxmemory> - <excludePackageNames>${javadoc.package.exclude}</excludePackageNames> - </configuration> - <executions> - <execution> - <id>attach-javadocs</id> - <phase>verify</phase> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>3.2.1</version> - <executions> - <execution> - <id>attach-sources</id> - <phase>verify</phase> - <goals> - <goal>jar-no-fork</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-enforcer-plugin</artifactId> - <version>3.2.1</version> - <executions> - <execution> - <id>enforce-versions</id> - <goals> - <goal>enforce</goal> - </goals> - <configuration> - <rules> - <requireMavenVersion> - <version>3.2.5</version> - </requireMavenVersion> - </rules> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - <pluginManagement> - <plugins> - <plugin> - <groupId>net.revelc.code</groupId> - <artifactId>formatter-maven-plugin</artifactId> - <version>0.5.2</version> - </plugin> - </plugins> - </pluginManagement> - </build> - <profiles> - <profile> - <id>release-profile</id> - <properties> - <skipTests>true</skipTests> - </properties> - <build> - <plugins> - <plugin> - <groupId>net.alchim31.maven</groupId> - <artifactId>scala-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>compile</goal> - <goal>testCompile</goal> - </goals> - </execution> - </executions> - <configuration/> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>3.3.0</version> - <executions> - <execution> - <id>add-source</id> - <phase>prepare-package</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>src/main/scala</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>release-sign-artifacts</id> - <activation> - <property> - <name>performRelease</name> - <value>true</value> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-gpg-plugin</artifactId> - <version>3.0.1</version> - <executions> - <execution> - <id>sign-artifacts</id> - <phase>verify</phase> - <goals> - <goal>sign</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <!-- Samples --> - <profile> - <id>android-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/android/volley</module> - </modules> - </profile> - <profile> - <id>bash-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/bash</module> - </modules> - </profile> - <profile> - <id>clojure-client</id> - <activation> - <property> - <name>env</name> - <value>clojure</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/clojure</module> - </modules> - </profile> - <profile> - <id>haskell-http-client</id> - <activation> - <property> - <name>env</name> - <value>haskell-http-client</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/haskell-http-client</module> - </modules> - </profile> - <profile> - <id>haskell-http-client-integration-test</id> - <activation> - <property> - <name>env</name> - <value>haskell-http-client</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/haskell-http-client/tests-integration</module> - </modules> - </profile> - <profile> - <id>java-client-jersey1</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/jersey1</module> - </modules> - </profile> - <profile> - <id>java-client-jersey2</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/jersey2</module> - </modules> - </profile> - <profile> - <id>java-client-okhttp-gson</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/okhttp-gson</module> - </modules> - </profile> - <profile> - <id>java-client-okhttp-gson-parcelable</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/okhttp-gson/parcelableModel</module> - </modules> - </profile> - <profile> - <id>java-client-retrofit</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/retrofit</module> - </modules> - </profile> - <profile> - <id>java-client-retrofit2</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/retrofit2</module> - </modules> - </profile> - <profile> - <id>java-client-retrofit2-rx</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/retrofit2rx</module> - </modules> - </profile> - <profile> - <id>java-client-feign</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/java/feign</module> - </modules> - </profile> - <profile> - <id>javascript-client</id> - <activation> - <property> - <name>env</name> - <value>javascript</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/javascript</module> - </modules> - </profile> - <profile> - <id>scala-client</id> - <activation> - <property> - <name>env</name> - <value>scala</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/scala</module> - </modules> - </profile> - <profile> - <id>objc-client</id> - <activation> - <property> - <name>env</name> - <value>objc</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/objc/default/SwaggerClientTests</module> - </modules> - </profile> - <profile> - <id>swift-client</id> - <activation> - <property> - <name>env</name> - <value>swift</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/swift/default/SwaggerClientTests</module> - </modules> - </profile> - <profile> - <id>java-msf4j-server</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/java-msf4/</module> - </modules> - </profile> - <profile> - <id>jaxrs-cxf-server</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs-cxf</module> - </modules> - </profile> - <profile> - <id>jaxrs-resteasy-server</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs-resteasy/default</module> - </modules> - </profile> - <profile> - <id>jaxrs-resteasy-server-joda</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs-resteasy/joda</module> - </modules> - </profile> - <profile> - <id>jaxrs-resteasy-eap-server</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs-resteasy/eap</module> - </modules> - </profile> - <profile> - <id>jaxrs-resteasy-eap-server-java8</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs-resteasy/eap-java8</module> - </modules> - </profile> - <profile> - <id>jaxrs-resteasy-eap-server-joda</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs-resteasy/eap-joda</module> - </modules> - </profile> - <profile> - <id>jaxrs-server</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs/jersey2</module> - </modules> - </profile> - <profile> - <id>jaxrs-server-jersey1</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/jaxrs/jersey1</module> - </modules> - </profile> - <profile> - <id>typescript-fetch-client-tests-default</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/typescript-fetch/tests/default</module> - </modules> - </profile> - <profile> - <id>typescript-fetch-client-builds-default</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/typescript-fetch/builds/default</module> - </modules> - </profile> - <profile> - <id>typescript-fetch-client-builds-es6-target</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/typescript-fetch/builds/es6-target</module> - </modules> - </profile> - <profile> - <id>typescript-fetch-client-builds-with-npm-version</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/typescript-fetch/builds/with-npm-version</module> - </modules> - </profile> - <profile> - <id>typescript-angularjs-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/typescript-angularjs/npm</module> - </modules> - </profile> - <profile> - <id>typescript-node-npm-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/typescript-node/npm</module> - </modules> - </profile> - <profile> - <id>python-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/python</module> - </modules> - </profile> - <profile> - <id>ruby-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/ruby</module> - </modules> - </profile> - <profile> - <id>go-client</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/go</module> - </modules> - </profile> - <profile> - <id>spring-mvc</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/spring-mvc</module> - </modules> - </profile> - <profile> - <id>springboot-useoptional</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/springboot-useoptional</module> - </modules> - </profile> - <profile> - <id>springboot-beanvalidation</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/springboot-beanvalidation</module> - </modules> - </profile> - <profile> - <id>springboot</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/springboot</module> - </modules> - </profile> - <profile> - <id>spring-cloud</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/client/petstore/spring-cloud</module> - </modules> - </profile> - <profile> - <id>scalatra-server</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/scalatra</module> - </modules> - </profile> - <profile> - <id>java-inflector</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/java-inflector</module> - </modules> - </profile> - <profile> - <id>java-undertowr</id> - <activation> - <property> - <name>env</name> - <value>java</value> - </property> - </activation> - <modules> - <module>samples/server/petstore/undertow</module> - </modules> - </profile> - <profile> - <id>samples</id> - <activation> - <property> - <name>env</name> - <value>samples</value> - </property> - </activation> - <modules> - <!-- clients --> - <!-- test java-related projects --> -<!-- <module>samples/client/petstore/elixir</module>--> -<!-- <module>samples/client/petstore/haskell-http-client</module>--> - <module>samples/client/petstore/akka-scala</module> - <!--<module>samples/client/petstore/scala</module>--> - <!--<module>samples/client/petstore/scalaz</module>--> - <!--<module>samples/client/petstore/clojure</module>--> - <module>samples/client/petstore/java/feign</module> - <module>samples/client/petstore/java/jersey1</module> - <module>samples/client/petstore/java/jersey2</module> - <module>samples/client/petstore/java/okhttp-gson</module> - <module>samples/client/petstore/java/retrofit</module> - <module>samples/client/petstore/java/retrofit2</module> - <module>samples/client/petstore/java/retrofit2rx</module> - <module>samples/client/petstore/jaxrs-cxf-client</module> - <module>samples/client/petstore/java/resttemplate</module> - <module>samples/client/petstore/java/resttemplate-withXml</module> - <module>samples/client/petstore/java/vertx</module> - <module>samples/client/petstore/java/resteasy</module> - <module>samples/client/petstore/java/google-api-client</module> - <!--module>samples/client/petstore/java/rest-assured</module removed until errors found on #10120 be fixed --> - <!-- - <module>samples/client/petstore/kotlin/</module> - <module>samples/client/petstore/kotlin-threetenbp/</module> - <module>samples/client/petstore/kotlin-string/</module> - --> - <!-- test non-java projects --> - <!-- module>samples/client/petstore/go</module removed until errors found on #10120 be fixed --> - <!-- servers --> - <module>samples/server/petstore/java-vertx/rx</module> - <module>samples/server/petstore/java-vertx/async</module> - <module>samples/server/petstore/java-inflector</module> - <module>samples/server/petstore/java-pkmst</module> - <module>samples/server/petstore/java-play-framework</module> - <module>samples/server/petstore/java-play-framework-no-wrap-calls</module> - <module>samples/server/petstore/java-play-framework-no-swagger-ui</module> - <module>samples/server/petstore/java-play-framework-no-interface</module> - <module>samples/server/petstore/java-play-framework-no-exception-handling</module> - <module>samples/server/petstore/java-play-framework-no-bean-validation</module> - <!-- <module>samples/server/petstore/java-play-framework-fake-endpointmsf4js</module> --> - <module>samples/server/petstore/java-play-framework-controller-only</module> - <module>samples/server/petstore/java-play-framework-api-package-override</module> - <module>samples/server/petstore/undertow</module> - <module>samples/server/petstore/jaxrs/jersey1</module> - <module>samples/server/petstore/jaxrs/jersey2</module> - <module>samples/server/petstore/jaxrs/jersey1-useTags</module> - <module>samples/server/petstore/jaxrs/jersey2-useTags</module> - <module>samples/server/petstore/jaxrs-datelib-j8</module> - <module>samples/server/petstore/jaxrs-resteasy/default</module> - <module>samples/server/petstore/jaxrs-resteasy/eap</module> - <module>samples/server/petstore/jaxrs-resteasy/eap-joda</module> - <module>samples/server/petstore/jaxrs-resteasy/eap-java8</module> - <module>samples/server/petstore/jaxrs-resteasy/joda</module> - <module>samples/server/petstore/spring-mvc</module> - <module>samples/server/petstore/spring-mvc-j8-async</module> - <module>samples/server/petstore/spring-mvc-j8-localdatetime</module> - <module>samples/client/petstore/spring-cloud</module> - <module>samples/server/petstore/springboot</module> - <module>samples/server/petstore/springboot-beanvalidation</module> - <module>samples/server/petstore/springboot-useoptional</module> - <module>samples/server/petstore/jaxrs-cxf</module> - <module>samples/server/petstore/jaxrs-cxf-annotated-base-path</module> - <module>samples/server/petstore/jaxrs-cxf-cdi</module> - <module>samples/server/petstore/jaxrs-cxf-non-spring-app</module> -<!-- <module>samples/server/petstore/java-msf4j</module>--> - <module>samples/server/petstore/jaxrs-spec-interface</module> - <module>samples/server/petstore/scala-lagom-server</module> - <module>samples/server/petstore/scalatra</module> - </modules> - </profile> - </profiles> - <modules> - <module>modules/swagger-codegen</module> - <module>modules/swagger-codegen-cli</module> - <module>modules/swagger-codegen-maven-plugin</module> - <module>modules/swagger-generator</module> - </modules> - <reporting> - <outputDirectory>target/site</outputDirectory> - <plugins> - <plugin> - <groupId>net.alchim31.maven</groupId> - <artifactId>scala-maven-plugin</artifactId> - <version>${scala-maven-plugin-version}</version> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jxr-plugin</artifactId> - <version>3.3.0</version> - <configuration> - <aggregate>true</aggregate> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-project-info-reports-plugin</artifactId> - <version>3.4.2</version> - <reportSets> - <reportSet> - <reports> - <report>project-team</report> - </reports> - </reportSet> - </reportSets> - </plugin> - </plugins> - </reporting> - <dependencyManagement> - <dependencies> - <dependency> - <groupId>org.yaml</groupId> - <artifactId>snakeyaml</artifactId> - <version>${snakeyaml-version}</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>${junit-version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.testng</groupId> - <artifactId>testng</artifactId> - <version>${testng-version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.jmockit</groupId> - <artifactId>jmockit</artifactId> - <version>${jmockit-version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.mockito</groupId> - <artifactId>mockito-core</artifactId> - <version>${mockito-version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpclient</artifactId> - <version>${httpclient-version}</version> - </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <version>${json-version}</version> - </dependency> - </dependencies> - </dependencyManagement> - <repositories> - <repository> - <id>sonatype-snapshots</id> - <url>https://oss.sonatype.org/content/repositories/snapshots</url> - <snapshots> - <enabled>true</enabled> - </snapshots> - </repository> - </repositories> - <properties> - <swagger-parser-version>1.0.68</swagger-parser-version> - <scala-version>2.11.1</scala-version> - <felix-version>3.3.0</felix-version> - <swagger-core-version>1.6.12</swagger-core-version> - <commons-io-version>2.11.0</commons-io-version> - <commons-cli-version>1.5.0</commons-cli-version> - <junit-version>4.13.2</junit-version> - <jackson-version>2.15.3</jackson-version> - <maven-plugin-version>1.0.0</maven-plugin-version> - <commons-lang-version>3.13.0</commons-lang-version> - <slf4j-version>1.7.36</slf4j-version> - <scala-maven-plugin-version>3.2.1</scala-maven-plugin-version> - <jmustache-version>1.15</jmustache-version> - <testng-version>7.8.0</testng-version> - <surefire-version>3.0.0</surefire-version> - <jmockit-version>1.49</jmockit-version> - <mockito-version>5.6.0</mockito-version> - <reflections-version>0.10.2</reflections-version> - <snakeyaml-version>2.2</snakeyaml-version> - <httpclient-version>4.5.14</httpclient-version> - <json-version>20231013</json-version> - </properties> -</project> diff --git a/samples/server/petstore/undertow/dependency-reduced-pom.xml b/samples/server/petstore/undertow/dependency-reduced-pom.xml index f2613cc6b43..bb14c4e90fa 100644 --- a/samples/server/petstore/undertow/dependency-reduced-pom.xml +++ b/samples/server/petstore/undertow/dependency-reduced-pom.xml @@ -1,114 +1,130 @@ -<?xml version="1.0" encoding="UTF-8"?> -<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>oss-parent</artifactId> - <groupId>org.sonatype.oss</groupId> - <version>5</version> - <relativePath>../pom.xml/pom.xml</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> - <groupId>io.swagger</groupId> - <artifactId>swagger-undertow-server</artifactId> - <name>swagger-undertow-server</name> - <version>1.0.0</version> - <prerequisites> - <maven>2.2.0</maven> - </prerequisites> - <build> - <defaultGoal>install</defaultGoal> - <directory>target</directory> - <finalName>${project.artifactId}-${project.version}</finalName> - <plugins> - <plugin> - <artifactId>maven-shade-plugin</artifactId> - <version>2.4.3</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <transformers> - <transformer /> - </transformers> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <artifactId>maven-jar-plugin</artifactId> - <version>2.6</version> - <configuration> - <archive> - <manifest> - <mainClass>com.networknt.server.Server</mainClass> - </manifest> - </archive> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <version>1.4.0</version> - <configuration> - <executable>java</executable> - <arguments> - <argument>-jar</argument> - <argument>target/${project.build.finalName}.jar</argument> - </arguments> - </configuration> - </plugin> - </plugins> - </build> - <repositories> - <repository> - <snapshots /> - <id>sonatype-snapshots</id> - <url>https://oss.sonatype.org/content/repositories/snapshots</url> - </repository> - </repositories> - <dependencies> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.12</version> - <scope>test</scope> - <exclusions> - <exclusion> - <artifactId>hamcrest-core</artifactId> - <groupId>org.hamcrest</groupId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpclient</artifactId> - <version>4.5.2</version> - <scope>test</scope> - </dependency> - </dependencies> - <properties> - <version.httpasyncclient>4.1.2</version.httpasyncclient> - <version.commons.codec>1.10</version.commons.codec> - <version.metrics>3.1.2</version.metrics> - <version.jsonpath>2.2.0</version.jsonpath> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <version.encoder>1.2</version.encoder> - <version.httpclient>4.5.2</version.httpclient> - <version.undertow>1.4.0.Final</version.undertow> - <version.jose4j>0.5.2</version.jose4j> - <version.commons-lang>2.6</version.commons-lang> - <java.version>1.8</java.version> - <version.jackson>2.8.2</version.jackson> - <version.framework>0.1.1</version.framework> - <version.swagger>1.5.10</version.swagger> - <version.mockito>2.1.0-beta.124</version.mockito> - <version.slf4j>1.7.21</version.slf4j> - <version.commons.io>2.5</version.commons.io> - <version.logback>1.2.9</version.logback> - <version.junit>4.12</version.junit> - <version.antlr4>4.5.3</version.antlr4> - </properties> -</project> - +<?xml version="1.0" encoding="UTF-8"?> +<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>oss-parent</artifactId> + <groupId>org.sonatype.oss</groupId> + <version>5</version> + <relativePath>../pom.xml/pom.xml</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> + <groupId>io.swagger</groupId> + <artifactId>swagger-undertow-server</artifactId> + <name>swagger-undertow-server</name> + <version>1.0.0</version> + <build> + <defaultGoal>install</defaultGoal> + <directory>target</directory> + <finalName>${project.artifactId}-${project.version}</finalName> + <plugins> + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <version>3.0.0-M1</version> + <executions> + <execution> + <id>enforce-maven</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireMavenVersion> + <version>2.2.0</version> + </requireMavenVersion> + </rules> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-shade-plugin</artifactId> + <version>2.4.3</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <transformers> + <transformer /> + </transformers> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <version>2.6</version> + <configuration> + <archive> + <manifest> + <mainClass>com.networknt.server.Server</mainClass> + </manifest> + </archive> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.4.0</version> + <configuration> + <executable>java</executable> + <arguments> + <argument>-jar</argument> + <argument>target/${project.build.finalName}.jar</argument> + </arguments> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <snapshots /> + <id>sonatype-snapshots</id> + <url>https://oss.sonatype.org/content/repositories/snapshots</url> + </repository> + </repositories> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.12</version> + <scope>test</scope> + <exclusions> + <exclusion> + <artifactId>hamcrest-core</artifactId> + <groupId>org.hamcrest</groupId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + <version>4.5.2</version> + <scope>test</scope> + </dependency> + </dependencies> + <properties> + <version.httpasyncclient>4.1.2</version.httpasyncclient> + <version.commons.codec>1.10</version.commons.codec> + <version.metrics>3.1.2</version.metrics> + <version.jsonpath>2.2.0</version.jsonpath> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <version.encoder>1.2</version.encoder> + <version.httpclient>4.5.2</version.httpclient> + <version.undertow>1.4.0.Final</version.undertow> + <version.jose4j>0.5.2</version.jose4j> + <version.commons-lang>2.6</version.commons-lang> + <java.version>1.8</java.version> + <version.jackson>2.11.4</version.jackson> + <version.framework>0.1.1</version.framework> + <version.swagger>1.5.10</version.swagger> + <version.mockito>2.1.0-beta.124</version.mockito> + <version.slf4j>1.7.21</version.slf4j> + <version.commons.io>2.5</version.commons.io> + <version.logback>1.2.9</version.logback> + <version.junit>4.12</version.junit> + <version.antlr4>4.5.3</version.antlr4> + </properties> +</project> +