added dependencies for jws

master
Lucio Lelii 1 year ago
parent 410621a72b
commit 2d086e40b3

@ -2,6 +2,7 @@
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>
<parent>
<artifactId>maven-parent</artifactId>
<groupId>org.gcube.tools</groupId>
@ -22,7 +23,10 @@
<properties>
<webappDirectory>${project.basedir}/src/main/webapp/WEB-INF</webappDirectory>
<distroDirectory>${project.basedir}/distro</distroDirectory>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
@ -41,11 +45,7 @@
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
@ -62,16 +62,21 @@
<artifactId>common-smartgears-app</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.1.7</version>
<version>3.0.0</version>
<scope>runtime</scope>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.jboss.weld.servlet</groupId> -->
<!-- <artifactId>weld-servlet</artifactId> -->
<!-- <version>1.1.9.Final</version> -->
<!-- </dependency> -->
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>2.3.1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jboss.weld.servlet</groupId>
<artifactId>weld-servlet-core</artifactId>
@ -114,6 +119,14 @@
<!-- interpolates profiles and copies from distribution location to configuration
location, where it is need for embedding into stub artifact, gar generation,
and service archive. -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>

@ -3,7 +3,6 @@ package org.gcube.vremanagement.whnmanager.jaxws.ws;
import static org.gcube.smartgears.provider.ProviderFactory.provider;
import javax.jws.WebService;
import org.gcube.common.authorization.client.proxy.AuthorizationProxy;
import org.gcube.common.authorization.library.provider.AuthorizationProvider;
import org.gcube.common.authorization.library.provider.ContainerInfo;
@ -34,7 +33,6 @@ public class WhnManagerImpl implements WhnManager{
/**
* Add a scope to the ghn profile and publish it on IS
*/
@Override
public boolean addToContext(String context) throws GCUBEUnrecoverableException{
logger.trace("WHNManager: addToContext method invokation with parameters context :{} and caller: {} curentContext: {}",context, AuthorizationProvider.instance.get(), ScopeProvider.instance.get() );
ValidationUtils.valid("context", context);
@ -69,7 +67,6 @@ public class WhnManagerImpl implements WhnManager{
/**
* Remove a scope from ghn profile and publish the new profile on IS
*/
@Override
public boolean removeFromContext(String context) throws GCUBEUnrecoverableException {
logger.trace("WHNManager: removeFromContext method invokation with parameters context :{} and caller: {} curentContext: {}",context, AuthorizationProvider.instance.get(), ScopeProvider.instance.get() );
ValidationUtils.valid("context", context);

Loading…
Cancel
Save