Skip to content
Permalink
Browse files

Changes to Maven Configuration.

- Reduced Ninja dependencies to ninja-core.
- Removed transitive commons-logging dependency.
  • Loading branch information...
jfendler committed May 20, 2016
1 parent 21f3051 commit 834ae0bb9bc700ae286a587f55c754c9b4ede071
15 pom.xml
@@ -85,18 +85,11 @@
<dependencies>
<dependency>
<groupId>org.ninjaframework</groupId>
<artifactId>ninja-standalone</artifactId>
<artifactId>ninja-core</artifactId>
<version>${ninja.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.ninjaframework</groupId>
<artifactId>ninja-test-utilities</artifactId>
<version>${ninja.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<!-- Java Sitemap Generator from https://github.com/jirkapinkas/jsitemapgenerator -->
<groupId>cz.jiripinkas</groupId>
@@ -108,6 +101,12 @@
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.1</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

@@ -43,7 +43,6 @@
/**
* @see ninja.application.ApplicationRoutes#init(ninja.Router)
*/
@Override
public void init(Router router) {
String sitemapRoute = ninjaProperties.getWithDefault(KEY_SITEMAP_ROUTE, DEFAULT_SITEMAP_ROUTE);
LOG.info("Installing Ninja Sitemap routes: {}", sitemapRoute);
@@ -41,7 +41,6 @@ public SimpleSitemapRouteDetails() {
* @see com.jensfendler.ninjasitemap.SitemapRouteDetails#getLastModifiedDateForRoute(ninja.Route,
* com.jensfendler.ninjasitemap.annotations.Sitemap)
*/
@Override
public Date getLastModifiedDateForRoute(Route route, Sitemap sitemapAnnotation) {
// assume the page has just been updated
return new Date();
@@ -51,7 +50,6 @@ public Date getLastModifiedDateForRoute(Route route, Sitemap sitemapAnnotation)
* @see com.jensfendler.ninjasitemap.SitemapRouteDetails#getPriorityForRoute(ninja.Route,
* com.jensfendler.ninjasitemap.annotations.Sitemap)
*/
@Override
public double getPriorityForRoute(Route route, Sitemap sitemap) {
// always use the default priority
return Sitemap.DEFAULT_PRIORITY;
@@ -61,7 +59,6 @@ public double getPriorityForRoute(Route route, Sitemap sitemap) {
* @see com.jensfendler.ninjasitemap.SitemapRouteDetails#getChangeFrequencyForRoute(ninja.Route,
* com.jensfendler.ninjasitemap.annotations.Sitemap)
*/
@Override
public int getChangeFrequencyForRoute(Route route, Sitemap sitemap) {
// always use the default frequency
return Sitemap.DEFAULT_CHANGE_FREQUENCY;
@@ -41,7 +41,6 @@
/**
* @see com.google.inject.Provider#get()
*/
@Override
public SitemapRouteDetails get() {
String sdpClassName = ninjaProperties.getWithDefault(KEY_SITEMAP_ROUTE_DETAILS_IMPL, DEFAULT_SITEMAP_ROUTE_DETAILS_CLASSNAME);
try {

0 comments on commit 834ae0b

Please sign in to comment.
You can’t perform that action at this time.