Skip to content

Commit

Permalink
16: Replace Bintray/JCenter in Java Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Mar 14, 2021
1 parent 85b4fbe commit 04a7321
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 34 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ OpenDDR Examples
The project currently contains the following modules:

- [Java Examples](java)
- [Jakarta MVC Example](java/classifier/mvc)
- [Servlet Example](java/classifier/servlet)
- [Spring Example](java/classifier/spring)

- [Jakarta MVC Example](java/classifier/mvc) for Classifier
- [Servlet Example](java/classifier/servlet) for Classifier
- [Spring Example](java/classifier/spring) for Classifier
- [Console Example](java/w3c/console) for W3C Simple DDR
- [Servlet Filter Example](java/w3c/filter) for W3C Simple DDR
- [Servlet Service Example](java/w3c/filter) for W3C Simple DDR

Live Examples
-------------------------------------
These examples can be tested live on [Jelastic](https://jelastic.com/) instances
Expand Down
39 changes: 13 additions & 26 deletions java/classifier/servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,34 +76,21 @@
<version>1.1.0</version>
</parent>

<!-- Additional repositories -->
<!-- Additional repositories -->
<!-- Helps to resolve Parent POM and Snapshot artifacts -->
<repositories>
<repository>
<id>jcenter</id>
<name>JCenter</name>
<url>https://jcenter.bintray.com</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-release</id>
<name>libs-release</name>
<url>https://oss.jfrog.org/artifactory/libs-release</url>
</repository>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>bintray-snapshot</id>
<name>libs-snapshot</name>
<url>https://oss.jfrog.org/artifactory/libs-snapshot</url>
</repository>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>ossrh-snapshot</id>
<name>OSSRH Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
<repository>
<id>openddr</id>
<name>Bintray: OpenDDR</name>
<url>https://dl.bintray.com/openddr/maven/</url>
</repository>
<name>OpenDDR Data</name>
<url>http://openddr.mobi/data/latest/</url>
</repository>
</repositories>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2020 OpenDDR LLC and others. All rights reserved.
* Copyright (c) 2011-2021 OpenDDR LLC and others. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,7 @@
import mobi.openddr.classifier.model.Device;

/**
* @version 1.1
* @version 1.2
* @author Reza Naghibi
* @author Werner Keil
*/
Expand All @@ -39,8 +39,7 @@ public class ClassifyServlet extends HttpServlet {
*/
private static final long serialVersionUID = -5231604595735057872L;

private static final String DEFAULT_URL = "http://dl.bintray.com/openddr/ddr/1.34/";

private static final String DEFAULT_URL = "http://openddr.mobi/data/latest/";
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Expand Down

0 comments on commit 04a7321

Please sign in to comment.