diff --git a/404.html b/404.html index ff57b8fd..ade892d9 100644 --- a/404.html +++ b/404.html @@ -9,7 +9,7 @@ - +
diff --git a/apidocs/allclasses-index.html b/apidocs/allclasses-index.html index 5cb8b4ed..e1331ca8 100644 --- a/apidocs/allclasses-index.html +++ b/apidocs/allclasses-index.html @@ -1,7 +1,7 @@ - +Please visit JWT GitHub and either
clone the repo with git clone https://github.com/QubitPi/jersey-webservice-template.git
, or
clone the repo with git clone https://github.com/QubitPi/jersey-webservice-template.git
and switch to the
+jpa-elide
branch using git checkout jpa-elide
, or
make it a template instantiation with our own webservice name by doing the following:
-
-
Please make sure the "Include all branches" is checked
Models are usually packaged as JAR file in a separate Maven project. Here is a complete example
In the end, run mvn clean install
to install our model
From this point on, we assume this example data model is used
git clone https://github.com/QubitPi/jersey-webservice-template-jpa-data-models.git
cd jersey-webservice-template-jpa-data-models
mvn clean install
From this point on, we assume this example data model is used, which can +be installed locally using the following commands:
git clone https://github.com/QubitPi/jersey-webservice-template-jpa-data-models.git
cd jersey-webservice-template-jpa-data-models
mvn clean install
So now we have some models, but without an API it is not very useful. Now we need to instruct our my-webservice to -load data models via Maven config file, i.e. ~/.m2/settings.xml:
+load data models via Maven config file, i.e. 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">
<profiles>
<profile>
<id>jwt-data-models</id>
<properties>
<model.package.jar.group.id>io.github.qubitpi</model.package.jar.group.id>
<model.package.jar.artifact.id>jersey-webservice-template-jpa-data-models</model.package.jar.artifact.id>
<model.package.jar.version>1.0.1</model.package.jar.version>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jwt-data-models</activeProfile>
</activeProfiles>
</settings>
With data models defined, can run my-webservice
-cd my-webservice
mvn clean package
MODEL_PACKAGE_NAME=io.github.qubitpi.ws.jersey.template.models docker compose up --build --force-recreate
cd my-webservice
mvn clean package --settings settings.xml
MODEL_PACKAGE_NAME=io.github.qubitpi.ws.jersey.template.models docker compose up --build --force-recreate
Note that the settings.xml
is the Maven config file for loading the data model
io.github.qubitpi.ws.jersey.template.models
is the name of the model in the aforementioned
data model project