mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
dependencies update
This commit is contained in:
18
pom.xml
18
pom.xml
@@ -7,6 +7,10 @@
|
|||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>CommaFeed</name>
|
<name>CommaFeed</name>
|
||||||
|
|
||||||
|
<prerequisites>
|
||||||
|
<maven>3.0.0</maven>
|
||||||
|
</prerequisites>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
@@ -44,7 +48,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<version>2.1.1</version>
|
<version>2.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -172,7 +176,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-fileupload</groupId>
|
<groupId>commons-fileupload</groupId>
|
||||||
<artifactId>commons-fileupload</artifactId>
|
<artifactId>commons-fileupload</artifactId>
|
||||||
<version>1.2.2</version>
|
<version>1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.googlecode.lambdaj</groupId>
|
<groupId>com.googlecode.lambdaj</groupId>
|
||||||
@@ -215,7 +219,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-simple</artifactId>
|
<artifactId>slf4j-simple</artifactId>
|
||||||
<version>1.7.4</version>
|
<version>1.7.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -237,7 +241,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jboss</groupId>
|
<groupId>org.jboss</groupId>
|
||||||
<artifactId>jboss-vfs</artifactId>
|
<artifactId>jboss-vfs</artifactId>
|
||||||
<version>3.0.1.GA</version>
|
<version>3.1.0.Final</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.agilecoders.wicket</groupId>
|
<groupId>de.agilecoders.wicket</groupId>
|
||||||
@@ -259,7 +263,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.webjars</groupId>
|
<groupId>org.webjars</groupId>
|
||||||
<artifactId>angularjs</artifactId>
|
<artifactId>angularjs</artifactId>
|
||||||
<version>1.0.5</version>
|
<version>1.1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.webjars</groupId>
|
<groupId>org.webjars</groupId>
|
||||||
@@ -355,14 +359,14 @@
|
|||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.12</version>
|
<version>2.14</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<skip>true</skip>
|
<skip>true</skip>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<version>2.1.1</version>
|
<version>2.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory>deployments</outputDirectory>
|
<outputDirectory>deployments</outputDirectory>
|
||||||
<warName>ROOT</warName>
|
<warName>ROOT</warName>
|
||||||
|
|||||||
@@ -119,13 +119,11 @@ public class SubscriptionsREST extends AbstractREST {
|
|||||||
@POST
|
@POST
|
||||||
@Path("import")
|
@Path("import")
|
||||||
@Consumes(MediaType.MULTIPART_FORM_DATA)
|
@Consumes(MediaType.MULTIPART_FORM_DATA)
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public Response importOpml() {
|
public Response importOpml() {
|
||||||
try {
|
try {
|
||||||
FileItemFactory factory = new DiskFileItemFactory(1000000, null);
|
FileItemFactory factory = new DiskFileItemFactory(1000000, null);
|
||||||
ServletFileUpload upload = new ServletFileUpload(factory);
|
ServletFileUpload upload = new ServletFileUpload(factory);
|
||||||
List<FileItem> items = upload.parseRequest(request);
|
for (FileItem item : upload.parseRequest(request)) {
|
||||||
for (FileItem item : items) {
|
|
||||||
if ("file".equals(item.getFieldName())) {
|
if ("file".equals(item.getFieldName())) {
|
||||||
opmlImporter.importOpml(getUser(),
|
opmlImporter.importOpml(getUser(),
|
||||||
IOUtils.toString(item.getInputStream(), "UTF-8"));
|
IOUtils.toString(item.getInputStream(), "UTF-8"));
|
||||||
@@ -133,7 +131,9 @@ public class SubscriptionsREST extends AbstractREST {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e.getMessage(), e);
|
throw new WebApplicationException(Response
|
||||||
|
.status(Status.INTERNAL_SERVER_ERROR)
|
||||||
|
.entity(e.getMessage()).build());
|
||||||
}
|
}
|
||||||
return Response.ok(Status.OK).build();
|
return Response.ok(Status.OK).build();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user