Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare maven SNAPSHOT version #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /petstore

ENV OPENAPI_BASE_PATH=/v3

COPY target/openapi-petstore-3.0.0.jar /petstore/openapi-petstore.jar
COPY target/openapi-petstore.jar /petstore/openapi-petstore.jar

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mvn spring-boot:run
Or package it then run it as a Java application
```
mvn package
java -jar target/openapi-petstore-{VERSION}.jar
java -jar target/openapi-petstore.jar
```

You can view the api documentation in swagger-ui by pointing to
Expand Down
42 changes: 40 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<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>
<groupId>org.openapitools</groupId>
<groupId>org.openapitools.petstore</groupId>
<artifactId>openapi-petstore</artifactId>
<packaging>jar</packaging>
<name>openapi-petstore</name>
<version>3.0.0</version>
<version>3.0.0-SNAPSHOT</version>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand All @@ -15,6 +15,7 @@
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.2.RELEASE</version>
</parent>
<url>https://github.com/openapitools/openapi-petstore</url>
<licenses>
<license>
<name>Apache License 2.0</name>
Expand All @@ -23,6 +24,7 @@
</license>
</licenses>
<build>
<finalName>openapi-petstore</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
<plugin>
Expand Down Expand Up @@ -117,4 +119,40 @@
<artifactId>validation-api</artifactId>
</dependency>
</dependencies>
<scm>
<connection>scm:git:[email protected]:openapitools/openapi-petstore.git</connection>
<developerConnection>scm:git:[email protected]:openapitools/openapi-petstore.git</developerConnection>
<url>https://github.com/openapitools/openapi-petstore</url>
</scm>
<developers>
<developer>
<id>cbornet</id>
<name>Christophe Bornet</name>
<email>[email protected]</email>
</developer>
<developer>
<id>wing328</id>
<name>William Cheng</name>
<email>[email protected]</email>
</developer>
<developer>
<id>jmini</id>
<name>Jérémie Bresson</name>
<email>[email protected]</email>
</developer>
</developers>
<issueManagement>
<system>github</system>
<url>https://github.com/openapitools/openapi-generator/issues</url>
</issueManagement>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>