Provided scoped dependencies is not included in generated wsEjbDeploy ant task
------------------------------------------------------------------------------

                 Key: MWAS-13
                 URL: http://jira.codehaus.org/browse/MWAS-13
             Project: Maven 2.x WebSphere 6 Plugin
          Issue Type: Bug
         Environment: Windows 2000
            Reporter: Ola Flem
            Assignee: David J. M. Karlsen


When using provided as scope for a dependency in maven pom, it is not included 
in the generated classpath section of the wsEjbDeploy task:

<?xml version="1.0" encoding="UTF-8"?>

<project> 
  <target name="wsEjbDeploy"> 
    <taskdef name="wsEjbDeploy" 
classname="com.ibm.websphere.ant.tasks.WsEjbDeploy" 
classpath="${wsAntClasspath}"/>  
    <wsEjbDeploy inputJar="C:\foo\target\foo.jar" 
outputJar="C:\foo\target\was6plugin\foo-deployed.jar" wasHome="C:\base_v61" 
workingDirectory="C:\foo\target\was6plugin" codegen="false" 
keepGenerated="true" classpath="<does not include provided scoped deps>"

>mvn install -P deploy

[INFO] [wsejbdeploy]   Validation of fooEAR by Application Client Validator is 
complete. All known problems have been reported.
[INFO] [wsejbdeploy] Invoking RMIC.
[INFO] [wsejbdeploy] error: Class foo.Context not found.
[INFO] [wsejbdeploy] error: Class FooClientContext contains an invalid return 
type.
[INFO] [wsejbdeploy] error: Class foo.FooSessionBean contains an invalid 
argument type in method getData.
[INFO] [wsejbdeploy] 3 errors
[INFO]
[INFO] [wsejbdeploy] [*Error] An unexpected exception was thrown.  Halting 
execution.
[INFO] [wsejbdeploy] Shutting down workbench.
[INFO]
[INFO] [wsejbdeploy] Error generating RMI code: RMIC command failed on project: 
foo with message:
[INFO]
[INFO] [wsejbdeploy] error: Class foo.Context not found.
[INFO] [wsejbdeploy] error: Class FooClientContext contains an invalid return 
type.
[INFO] [wsejbdeploy] error: Class foo.FooSessionBean contains an invalid 
argument type in method getData.
[INFO] [wsejbdeploy] 3 errors
.
.
.
[ERROR]
[ERROR] BUILD FAILED
[ERROR] C:\foo\target\was6plugin\was6plugin-build.xml:6: Java returned: 1
[ERROR]         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
[ERROR]         at 
com.ibm.websphere.ant.tasks.WsEjbDeploy.execute(WsEjbDeploy.java:649)
[ERROR]         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ERROR]         at org.apache.tools.ant.Task.perform(Task.java:364)


This results in compile error if stub-generated code (e.g. types in method 
arguments) depend on a provided scoped dependency.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to