diff --git a/NOTICE.md b/NOTICE.md new file mode 100644 index 0000000..99f408d --- /dev/null +++ b/NOTICE.md @@ -0,0 +1,30 @@ +# Notices for jakartarest-osgi + +This content is produced and maintained by the OSGi Technology Project. + + * Project home: https://projects.eclipse.org/projects/technology.osgi-technology + +## Trademarks + +OSGi and the OSGi Logo are trademarks of the Eclipse Foundation. Eclipse and +the Eclipse Logo are registered trademarks of the Eclipse Foundation. + +## Copyright + +All content is the property of the respective authors or their employers. +For more information regarding authorship of content, please consult the +listed source code repository logs. + +## Declared Project Licenses + +This program and the accompanying materials are made available under the terms of the +Eclipse Public License v2.0 which accompanies this distribution, and is available at +http://www.eclipse.org/legal/epl-v20.html + +SPDX-License-Identifier: EPL-2.0 + +## Source Code + +The project maintains the following source code repositories: + + * https://github.com/osgi/jakartarest-osgi.git \ No newline at end of file diff --git a/README.MD b/README.MD index f8dc4f2..dff9cd1 100644 --- a/README.MD +++ b/README.MD @@ -29,27 +29,27 @@ You will find the Release and Snapshot artifacts at Maven Central, respectively ``` - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest ${version} - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.config ${version} - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.sse ${version} - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.jetty ${version} - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.servlet.whiteboard ${version} @@ -58,9 +58,9 @@ You will find the Release and Snapshot artifacts at Maven Central, respectively For those, who use Gradle: ``` -org.eclipse.osgitech.rest:org.eclipse.osgitech.rest:${version} -org.eclipse.osgitech.rest:org.eclipse.osgitech.rest.config:${version} -org.eclipse.osgitech.rest:org.eclipse.osgitech.rest.sse:${version} +org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest:${version} +org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest.config:${version} +org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest.sse:${version} ``` ## Jetty Setup @@ -139,6 +139,7 @@ Therefore you may set the system property `org.osgi.service.http.port=-1` to dea ## Example Resource When using the Jakarta REST Whiteboard, you just have to register your REST resources and extensions as a service. There are some useful Meta-Annotations, that create component properties for you. + ```java @RequireJakartarsWhiteboard @JakartarsResource @@ -168,7 +169,7 @@ To create a sample project call: ```bash mvn archetype:generate --DarchetypeGroupId=org.eclipse.osgitech.rest +-DarchetypeGroupId=org.eclipse.osgi-technology.rest -DarchetypeArtifactId=org.eclipse.osgitech.rest.archetype -DarchetypeVersion=1.0.0-SNAPSHOT -DgroupId= @@ -182,22 +183,27 @@ The generated project contains a ready to run [example](org.eclipse.osgitech.res ## Gradle Bnd Library Support When adding the Jakarta REST Library to you dependencies: + ``` -org.eclipse.osgitech.rest:org.eclipse.osgitech.rest.bnd.library:${version} +org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest.bnd.library:${version} ``` + you can simply but the instruction `-library: jakartaREST` and you will find a repository in you bnd workspace after reloading the workspace. It brings you all dependencies, you need to run Jersey. In addition to that it also brings a dependency to: + ``` -org.eclipse.osgitech.rest:org.eclipse.osgitech.rest.bnd.project.library:${version} +org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest.bnd.project.library:${version} ``` + This library adds support for *bndrun* files. Calling the instruction `-library: enableJakartaREST` within a *bndrun* adds automatically all Jersey and Jakarta REST Whiteboard dependencies to the *runbundles* section. If you use the library instruction within a *bnd.bnd* file, it adds the JakartaRs API to the buildpath. Furthermore this dependency brings three bndtools project templates: + 1. Jakarta REST Resource with a default configuration 2. Jakarta REST Resource with Jetty Runtime and a corresponding configuration file 3. Jakarta REST Resource with a configuration for the use with the OSGI Servlet Whiteboard -All these projects can be imported using the bndtools project wizard. +All these projects can be imported using the bndtools project wizard. \ No newline at end of file diff --git a/org.eclipse.osgitech.rest.archetype/pom.xml b/org.eclipse.osgitech.rest.archetype/pom.xml index 1ab3163..8aaafec 100644 --- a/org.eclipse.osgitech.rest.archetype/pom.xml +++ b/org.eclipse.osgitech.rest.archetype/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml diff --git a/org.eclipse.osgitech.rest.archetype/src/main/resources/archetype-resources/pom.xml b/org.eclipse.osgitech.rest.archetype/src/main/resources/archetype-resources/pom.xml index 74ad4b7..3e554ae 100644 --- a/org.eclipse.osgitech.rest.archetype/src/main/resources/archetype-resources/pom.xml +++ b/org.eclipse.osgitech.rest.archetype/src/main/resources/archetype-resources/pom.xml @@ -34,13 +34,13 @@ compile - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.servlet.whiteboard 1.0.0-SNAPSHOT runtime - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.sse 1.0.0-SNAPSHOT runtime diff --git a/org.eclipse.osgitech.rest.bnd.library/pom.xml b/org.eclipse.osgitech.rest.bnd.library/pom.xml index 20ce728..a7945df 100644 --- a/org.eclipse.osgitech.rest.bnd.library/pom.xml +++ b/org.eclipse.osgitech.rest.bnd.library/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml diff --git a/org.eclipse.osgitech.rest.bnd.project.library/pom.xml b/org.eclipse.osgitech.rest.bnd.project.library/pom.xml index 6de1562..bed8dcd 100644 --- a/org.eclipse.osgitech.rest.bnd.project.library/pom.xml +++ b/org.eclipse.osgitech.rest.bnd.project.library/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml diff --git a/org.eclipse.osgitech.rest.config/pom.xml b/org.eclipse.osgitech.rest.config/pom.xml index 6a2914f..a558b4d 100644 --- a/org.eclipse.osgitech.rest.config/pom.xml +++ b/org.eclipse.osgitech.rest.config/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml @@ -15,7 +15,7 @@ - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest 1.0.0-SNAPSHOT diff --git a/org.eclipse.osgitech.rest.jetty/pom.xml b/org.eclipse.osgitech.rest.jetty/pom.xml index 7f0893a..cc97db8 100644 --- a/org.eclipse.osgitech.rest.jetty/pom.xml +++ b/org.eclipse.osgitech.rest.jetty/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml @@ -15,10 +15,10 @@ - org.eclipse.osgitech.rest - org.eclipse.osgitech.rest - 1.0.0-SNAPSHOT - + org.eclipse.osgi-technology.rest + org.eclipse.osgitech.rest + 1.0.0-SNAPSHOT + org.glassfish.jersey.core jersey-client diff --git a/org.eclipse.osgitech.rest.multipart/pom.xml b/org.eclipse.osgitech.rest.multipart/pom.xml index f809168..f36ef84 100644 --- a/org.eclipse.osgitech.rest.multipart/pom.xml +++ b/org.eclipse.osgitech.rest.multipart/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml diff --git a/org.eclipse.osgitech.rest.servlet.whiteboard.tests/pom.xml b/org.eclipse.osgitech.rest.servlet.whiteboard.tests/pom.xml index 5f69240..bdfdea1 100644 --- a/org.eclipse.osgitech.rest.servlet.whiteboard.tests/pom.xml +++ b/org.eclipse.osgitech.rest.servlet.whiteboard.tests/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml @@ -17,17 +17,17 @@ - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.servlet.whiteboard 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.sse 1.0.0-SNAPSHOT diff --git a/org.eclipse.osgitech.rest.servlet.whiteboard/pom.xml b/org.eclipse.osgitech.rest.servlet.whiteboard/pom.xml index 31f42cd..046ac8d 100644 --- a/org.eclipse.osgitech.rest.servlet.whiteboard/pom.xml +++ b/org.eclipse.osgitech.rest.servlet.whiteboard/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml @@ -15,7 +15,7 @@ - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest 1.0.0-SNAPSHOT diff --git a/org.eclipse.osgitech.rest.sse/pom.xml b/org.eclipse.osgitech.rest.sse/pom.xml index b276d29..e027c57 100644 --- a/org.eclipse.osgitech.rest.sse/pom.xml +++ b/org.eclipse.osgitech.rest.sse/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml diff --git a/org.eclipse.osgitech.rest.tck/pom.xml b/org.eclipse.osgitech.rest.tck/pom.xml index 5efb12a..39a1531 100644 --- a/org.eclipse.osgitech.rest.tck/pom.xml +++ b/org.eclipse.osgitech.rest.tck/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml @@ -17,22 +17,22 @@ - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.jetty 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.servlet.whiteboard 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.sse 1.0.0-SNAPSHOT diff --git a/org.eclipse.osgitech.rest.tests/pom.xml b/org.eclipse.osgitech.rest.tests/pom.xml index a1e3f4c..d97857f 100644 --- a/org.eclipse.osgitech.rest.tests/pom.xml +++ b/org.eclipse.osgitech.rest.tests/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml @@ -17,17 +17,17 @@ - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.servlet.whiteboard 1.0.0-SNAPSHOT - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest org.eclipse.osgitech.rest.sse 1.0.0-SNAPSHOT diff --git a/org.eclipse.osgitech.rest/pom.xml b/org.eclipse.osgitech.rest/pom.xml index 455fd93..2aa626e 100644 --- a/org.eclipse.osgitech.rest/pom.xml +++ b/org.eclipse.osgitech.rest/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT ../pom.xml diff --git a/pom.xml b/pom.xml index 9b23686..b79beb9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.eclipse.osgitech.rest + org.eclipse.osgi-technology.rest parent 1.0.0-SNAPSHOT pom