Skip to content

stanislawbartkowski/RestService

Repository files navigation

RestService

Javadoc : https://stanislawbartkowski.github.io/javadoc/RestService/

https://hoteljavaopensource.blogspot.com/2020/02/simple-restservice-library.html

Installation

git clone https://github.com/stanislawbartkowski/RestService.git
cd RestService
mvn clean package
./mvndeploy.sh

It adds RestService jar as a Maven dependency in the local repository.

Deploy to Maven github

mvn deploy -Dmaven.test.skip=true -Dmaven.resolver.transport=wagon

Maven dependency

<dependency>
     <groupId>com.restservice</groupId>
    <artifactId>restservice</artifactId>
     <version>1.0</version>
     <scope>jar</scope>
</dependency>

Resolve dependency using GitHub Maven

pom.xml

  <repositories>
        <repository>
            <id>github</id>
            <name>GitHub stanislawbartkowski Apache Maven Packages</name>
            <url>https://maven.pkg.github.com/stanislawbartkowski/RestService/</url>
        </repository>
    </repositories>

Access to GitHub Maven requires authentication. Specify credentials in mvn settings.

vi ~/.m2/settings.xml

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <activeProfiles>
    <activeProfile>github</activeProfile>
  </activeProfiles>

  <servers>
    <server>
      <id>github</id>
      <username>you user name</username>
      <password>your GitHub token</password>
    </server>
  </servers>
</settings>

Practical example

https://github.com/stanislawbartkowski/MockRestService

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages