<plugin>
   <artifactId>maven-antrun-plugin</artifactId>
   <version>1.0</version>
   <executions>
    <execution>
    <phase>package</phase>
    <configuration>
     <tasks>
       <taskdef name="servicegen"
        
classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask" > 
                <classpath refid="maven.dependency.classpath" />
       </taskdef>

     <servicegen
destEar="${project.build.directory}/${project.artifactId}-${project.version}.ear"
 
        warName="castle-server-web-${project.parent.version}.war"
contextURI="castle" 
                mergeWithExistingWS="True">
        <classpath refid="maven.dependency.classpath" />
        <service targetNamespace="http://my.company.com"; 
                ejbJar="${basedir}/path-to-ejb-jar/your-ejb.jar"
                includeEJBs="service name" serviceName="service name" 
                serviceURI="/jndi/name" generateTypes="True" 
                style="documentwrapped" expandMethods="True" 
                typeMappingFile="auto-types mapping file">
        </service>
      </servicegen>
     </tasks>
    </configuration> 
    <goals>
       <goal>run</goal>
    </goals>
    </execution>
   </executions>

   <dependencies>
    <dependency> 
      <groupId>sun.jdk</groupId> 
      <artifactId>tools</artifactId> 
      <version>1.5.1</version>
      <scope>system</scope> 
      <systemPath>${java.home}/../lib/tools.jar</systemPath>      
    </dependency>    
   </dependencies>
  </plugin>


Jeff Bailey wrote:
> 
> I need to create a WebService from a session bean using the WebLogic 8.1.4
> servicegen ant task.  Can anyone provide me a good example of a clean way
> to accomplish this in the POM?
> 
> I'm successfully using the weblogic-maven-plugin to run appc, but the
> plugin does not yet support servicegen.
> 
> Thanks,
> Jeff
> 

-- 
View this message in context: 
http://www.nabble.com/Example-POM-for-WebLogic-servicegen-needed-tf2604105s177.html#a7274315
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to