atom feed1 message in net.java.dev.jax-ws-commons.issues[JIRA] Commented: (JAX_WS_COMMONS-35)...
FromSent OnAttachments
Lukas Jungmann (JIRA)Feb 7, 2012 9:26 am 
Subject:[JIRA] Commented: (JAX_WS_COMMONS-35) maven-jaxws-plugin should allow dependent libraries in provided scope
From:Lukas Jungmann (JIRA) (jira@java.net)
Date:Feb 7, 2012 9:26:13 am
List:net.java.dev.jax-ws-commons.issues

[
http://java.net/jira/browse/JAX_WS_COMMONS-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=330903#action_330903
]

Lukas Jungmann commented on JAX_WS_COMMONS-35:

----------------------------------------------

Sorry but it still works for me. This is what I have:

pom.xml:

{code} <project ...> <dependencies> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.5.6</version> </dependency> </dependencies> <build> <plugins> <!-- compiler ommited --> <plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>2.2-SNAPSHOT</version> <executions> <execution> <goals> <goal>wsgen</goal> </goals> <configuration> <sei>xxx.SampleSpringWS</sei> <genWsdl>true</genWsdl> <keep>true</keep> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> {code}

the service:

{code} @WebService(serviceName = "AccountService") public class SampleSpringWS extends SpringBeanAutowiringSupport {

@Autowired private AccountService biz;

@WebMethod public void insertAccount(Account acc) { ServletContext ctx; biz.insertAccount(acc); }

@WebMethod public Account[] getAccounts(String name) { return biz.getAccounts(name); } } {code}

mvn clean install:

{code} ... [compiler:compile] Compiling 3 source files to /home/lukas/work/mavenproject3/target/classes [jaxws:wsgen] [resources:testResources] ... [install:install] Installing /home/lukas/work/mavenproject3/target/mavenproject3-1.0-SNAPSHOT.jar
to
/home/lukas/.m2/repository/org/bug/mavenproject3/1.0-SNAPSHOT/mavenproject3-1.0-SNAPSHOT.jar

------------------------------------------------------------------------ BUILD SUCCESSFUL

------------------------------------------------------------------------ ... {code}

What am I missing in order to reproduce this?

maven-jaxws-plugin should allow dependent libraries in provided scope

---------------------------------------------------------------------

Key: JAX_WS_COMMONS-35 URL: http://java.net/jira/browse/JAX_WS_COMMONS-35 Project: jax-ws-commons Issue Type: Improvement Components: maven-plugin Affects Versions: current Environment: Operating System: All Platform: All Reporter: obergner Assignee: Lukas Jungmann Fix For: 2.2

Currently, the maven-jaxws-plugin requires that libraries needed during its compilation of the generated classes be in 'compile' scope. This, however, is very inconvenient when working in a JEE environment where these libraries are regularly provided by the JEE container. Therefore, you would usually prefer to have these libraries in 'provided' scope. The current situation is further aggravated by the fact that many of the maven plugins usually used during JEE development glean necessary information from the different scopes. Most notably does the maven-ear-plugin include every dependency in 'compile' or 'runtime' scope as a third party library in the generated ear. Today this amounts to the jsr181's being included in the generated ear while simultaneously being provided by the JEE container. Allow the dependencies needed during compilation of the generated classes to be either in 'compile' OR 'PROVIDED' scope.