[Project] set a parent to li.strolch.parent for easier managing

This commit is contained in:
Robert von Burg 2013-10-23 21:11:49 +02:00
parent c7ce6ead76
commit 55462432b6
8 changed files with 18 additions and 120 deletions

117
pom.xml
View File

@ -1,123 +1,54 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>li.strolch</groupId>
<parent>
<groupId>li.strolch</groupId>
<artifactId>li.strolch.parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../li.strolch.parent/pom.xml</relativePath>
</parent>
<artifactId>li.strolch.service</artifactId>
<version>0.1.0-SNAPSHOT</version>
<name>Service API for Strolch</name>
<description>Service API for Strolch</description>
<url>https://github.com/eitch/li.strolch.service</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<!-- POM Reference: http://maven.apache.org/pom.html#Licenses -->
<inceptionYear>2011</inceptionYear>
<licenses>
<license>
<name>GNU Lesser General Public License</name>
<url>http://www.gnu.org/licenses/lgpl.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>eitchnet.ch</name>
<url>http://blog.eitchnet.ch</url>
</organization>
<developers>
<developer>
<id>eitch</id>
<name>Robert von Vurg</name>
<email>eitch@eitchnet.ch</email>
<url>http://blog.eitchnet.ch</url>
<organization>eitchnet.ch</organization>
<organizationUrl>http://blog.eitchnet.ch</organizationUrl>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>+1</timezone>
<properties>
<picUrl>http://localhost</picUrl>
</properties>
</developer>
</developers>
<issueManagement>
<system>Github Issues</system>
<url>https://github.com/eitch/li.strolch.service/issues</url>
</issueManagement>
<!-- <ciManagement> <system>continuum</system> <url>http://127.0.0.1:8080/continuum</url> <notifiers> <notifier> <type>mail</type>
<sendOnError>true</sendOnError> <sendOnFailure>true</sendOnFailure> <sendOnSuccess>false</sendOnSuccess> <sendOnWarning>false</sendOnWarning>
<configuration><address>continuum@127.0.0.1</address></configuration> </notifier> </notifiers> </ciManagement> <mailingLists>
<mailingList> <name>User List</name> <subscribe>user-subscribe@127.0.0.1</subscribe> <unsubscribe>user-unsubscribe@127.0.0.1</unsubscribe>
<post>user@127.0.0.1</post> <archive>http://127.0.0.1/user/</archive> <otherArchives> <otherArchive>http://base.google.com/base/1/127.0.0.1</otherArchive>
</otherArchives> </mailingList> </mailingLists> -->
<scm>
<connection>scm:git:https://github.com/eitch/li.strolch.service.git</connection>
<developerConnection>scm:git:git@github.com:eitch/li.strolch.service.git</developerConnection>
<url>https://github.com/eitch/li.strolch.service</url>
</scm>
<!-- <repositories> <repository> <releases> <enabled>false</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy>
</releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> <checksumPolicy>fail</checksumPolicy>
</snapshots> <id>codehausSnapshots</id> <name>Codehaus Snapshots</name> <url>http://snapshots.maven.codehaus.org/maven2</url>
<layout>default</layout> </repository> </repositories> <pluginRepositories> ... </pluginRepositories> -->
<dependencies>
<dependency>
<groupId>li.strolch</groupId>
<artifactId>li.strolch.model</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>li.strolch</groupId>
<artifactId>li.strolch.persistence.api</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ch.eitchnet</groupId>
<artifactId>ch.eitchnet.xmlpers</artifactId>
<version>0.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ch.eitchnet</groupId>
<artifactId>ch.eitchnet.privilege</artifactId>
<version>0.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.eitchnet</groupId>
<artifactId>ch.eitchnet.utils</artifactId>
<version>0.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
@ -125,60 +56,26 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<downloadJavadocs>true</downloadJavadocs>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<!--mainClass>ch.eitchnet.App</mainClass -->
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.3</version>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -17,7 +17,7 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.command;
package li.strolch.command;
import ch.eitchnet.privilege.model.Restrictable;

View File

@ -17,7 +17,7 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.service;
package li.strolch.service;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -17,7 +17,7 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.service;
package li.strolch.service;
import java.io.Serializable;

View File

@ -17,7 +17,7 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.service;
package li.strolch.service;
import java.io.Serializable;

View File

@ -17,7 +17,7 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.service;
package li.strolch.service;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -17,7 +17,7 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.service;
package li.strolch.service;
/**
* @author Robert von Burg <eitch@eitchnet.ch>

View File

@ -17,14 +17,15 @@
* along with ????????????????. If not, see <http://www.gnu.org/licenses/>.
*
*/
package ch.eitchnet.service;
package li.strolch.service;
import java.text.MessageFormat;
import ch.eitchnet.privilege.handler.PrivilegeHandler;
import ch.eitchnet.privilege.model.Certificate;
/**
* @author Robert von Burg <eitch@eitchnet.ch>
*
*/
public class SimpleServiceHandler {
@ -39,8 +40,8 @@ public class SimpleServiceHandler {
return service.doService(argument);
} catch (Exception e) {
String error = "Failed to perform service " + service.getClass().getName() + " due to exception "
+ e.getLocalizedMessage();
String msg = "Failed to perform service {0} due to exception {1}"; //$NON-NLS-1$
String error = MessageFormat.format(msg, service.getClass().getName(), e.getMessage());
return ServiceResult.failed(error, e);
}
}