Hi Schludi, Schludi wrote on Thursday, April 19, 2007 8:36 AM:
> Hello Jörg, thanks foir your reply, can you give me an example how to
> do this? Best regards
well, since you use two different plugins here and I don't know which deps are
only for which plugin only, the modified POM below is a simple guess, but you
might fix it once you get the idea:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.bbmag.test</groupId>
<artifactId>FirstEJB</artifactId>
<version>0.1</version>
</parent>
<artifactId>FirstEJB-ejb</artifactId>
<packaging>ejb</packaging>
<name>FirstEJBejb</name>
<description>Eine EJB</description>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee_1.4_spec</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.13</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<testSourceDirectory>src/test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xdoclet-maven-plugin</artifactId>
<executions>
<execution>
<id>ejb</id>
<phase>generate-sources</phase>
<goals>
<goal>xdoclet</goal>
</goals>
<configuration>
<tasks>
<ejbdoclet
verbose="true"
force="true"
ejbSpec="2.1"
destDir="${project.build.directory}/generated-sources/xdoclet">
<fileset dir="${project.build.sourceDirectory}">
<include name="**/*Bean.java"></include>
<include name="**/*MDB.java"></include>
</fileset>
<homeinterface />
<remoteinterface />
<localhomeinterface />
<localinterface />
<service-endpoint/>
<utilobject localProxies="true"/>
<deploymentdescriptor
destDir="${project.build.outputDirectory}/META-INF"/>
</ejbdoclet>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>xdoclet</groupId>
<artifactId>xdoclet-wsee-module</artifactId>
<version>1.2.3</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<generateClient>true</generateClient>
<clientExcludes>
<clientExclude>
**/ejb/*Bean.class
</clientExclude>
</clientExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>antTask</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- Define a taskdef for the wstools ant task
<taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
<classpath refid="library.classpath"/>
<classpath refid="test.client.classpath"/>
<classpath path="${build.test.classes.dir}"/>
</taskdef>-->
<taskdef name="wstools"
classname="org.jboss.ws.tools.ant.wstools">
<classpath
refid="maven.dependency.classpath"/>
<classpath>
<fileset
dir="C:/servers/client/">
<include name="activation.jar"/>
<include name="javassist.jar"/>
<include name="jbossall-client.jar"/>
<include name="jbossretro-rt.jar"/>
<include name="jboss-backport-concurrent.jar"/>
<include name="jbossws-client.jar"/>
<include name="jboss-xml-binding.jar"/>
<include name="jbossws14-client.jar"/>
<include name="log4j.jar"/>
<include name="mail.jar"/>
</fileset>
<fileset
dir="C:/servers/lib/endorsed">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<echo message="**********
Running jboss ws **************"/>
<mkdir dir="ws" />
<wstools
dest="C:/dev/helloMaven/FirstEJB-ejb/ws"
config="C:/dev/helloMaven/FirstEJB-ejb/resources/wstools-mybean-config.xml"/>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-client</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-common</artifactId>
<version>4.0.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Got it?
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
