Skip to content

Commit

Permalink
Merge pull request #4438 from tvallin/master
Browse files Browse the repository at this point in the history
* Fix: helloworld-cdi2-se, helloworld-pure-jax-rs, helloworld-spring-annotations, helloworld-weld, http-patch, json-jettison, json-moxy

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Fix example server-sent-events-jaxrs

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Fix example server-sent-events-jersey

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Update copyright

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Fix cdi2-se example

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Update WELD version

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Include dependency into jdk11+ profile

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Remove istack dependency from main pom

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Add istack version

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Some clean up

Signed-off-by: tvallin <thibault.vallin@oracle.com>

* Fix weld dependency version

Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
senivam authored May 11, 2020
2 parents d500d53 + 5ee3428 commit 94fc06d
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 14 deletions.
16 changes: 15 additions & 1 deletion examples/helloworld-cdi2-se/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -81,6 +81,20 @@
</plugins>
</build>
</profile>

<profile>
<id>jdk11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<version>3.1.1.Final</version>
</dependency>
</dependencies>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -62,7 +62,7 @@ public static void main(String[] args) throws IOException, InterruptedException

System.out.println("Application started.\n"
+ "Try accessing " + getBaseURI() + "helloworld in the browser.\n"
+ "Hit enter to stop the application...");
+ "CTRL + C to stop the application...\n");

Thread.currentThread().join();
}
Expand Down
7 changes: 6 additions & 1 deletion examples/helloworld-spring-annotations/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2014, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -51,6 +51,11 @@
<artifactId>jersey-test-framework-provider-inmemory</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 2 additions & 2 deletions examples/helloworld-weld/README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[//]: # " Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved. "
[//]: # " Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved. "
[//]: # " "
[//]: # " This program and the accompanying materials are made available under the "
[//]: # " terms of the Eclipse Distribution License v. 1.0, which is available at "
Expand Down Expand Up @@ -37,4 +37,4 @@ Run the example as follows:
This deploys the example using [Grizzly](http://grizzly.java.net/) container. You can access the application at:

- <http://localhost:8080/weld>
- <http://localhost:8080/weld/application.wadl>
13 changes: 12 additions & 1 deletion examples/helloworld-weld/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -57,6 +57,17 @@
<groupId>org.glassfish.jersey.ext.cdi</groupId>
<artifactId>jersey-cdi1x</artifactId>
</dependency>

<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>

<dependency>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
<version>${istack.commons.runtime.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
11 changes: 10 additions & 1 deletion examples/http-patch/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -67,6 +67,15 @@
<artifactId>jersey-grizzly-connector</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>
<dependency>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
<version>${istack.commons.runtime.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
13 changes: 12 additions & 1 deletion examples/json-jettison/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -72,6 +72,17 @@
<artifactId>jaxb-osgi</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>

<dependency>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
<version>${istack.commons.runtime.version}</version>
</dependency>
</dependencies>
</profile>
<profile>
Expand Down
13 changes: 12 additions & 1 deletion examples/json-moxy/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -46,6 +46,17 @@
<type>pom</type>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>

<dependency>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
<version>${istack.commons.runtime.version}</version>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 2 additions & 2 deletions examples/server-sent-events-jaxrs/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -54,7 +54,7 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>App</mainClass>
<mainClass>org.glassfish.jersey.examples.sse.jaxrs.App</mainClass>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions examples/server-sent-events-jersey/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -54,7 +54,7 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>App</mainClass>
<mainClass>org.glassfish.jersey.examples.sse.jersey.App</mainClass>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 94fc06d

Please sign in to comment.