Just FYI: there is a dependency-maven-plugin that can just copy the dependencies to a target dir. http://mojo.codehaus.org/dependency-maven-plugin/
Enjoy! Dan On Tuesday 28 March 2006 20:06, rick rineholt wrote: > This is very interesting. The closest I've come to > that is in testing/tomcat > the build.xml ant script has a j2se and a j2sews > target. They put respectively > in target/j2se and target/j2sews directories all the > jars you need for Tuscany > running a j2se and j2se with web services client > support. I then use > -Djava.ext.dirs to include them. The down side of > course is that has to be > manually maintained. > > Raymond Feng wrote: > > Hi, > > > > I tried to run the Tuscany "WSDL2Java" tool in > > command line and found it's so painful to set the > classpath. Do we have a script for that? > > > I did some investigation and found that maven has a > > plugin for this purpose: > http://maven.apache.org/plugins/maven-assembly-plugin/ > > > 1) Adding the following section to the pom.xml > > > > <build> > > <plugins> > > <plugin> > > <artifactId>maven-assembly-plugin</artifactId> > > > <configuration> > > <descriptorId>jar-with-dependencies</descriptorId> > > > </configuration> > > </plugin> > > </plugins> > > </build> > > > > Please note "jar-with-dependencies" is predefined > > assembly descriptor. You can further customize it and > reference it in the pom.xml using > <descriptor>path/to/descriptor.xml</descriptor> > > > <assembly> > > <id>jar-with-dependencies</id> > > <formats> > > <format>jar</format> > > </formats> > > <includeBaseDirectory>false</includeBaseDirectory> > > <fileSets> > > <fileSet> > > <directory>target/classes</directory> > > <outputDirectory>/</outputDirectory> > > </fileSet> > > </fileSets> > > <dependencySets> > > <dependencySet> > > <outputDirectory>/</outputDirectory> > > <unpack>true</unpack> > > <scope>runtime</scope> > > </dependencySet> > > </dependencySets> > > </assembly> > > 2) Run the mvn assembly:assembly and you'll get a > > FAT jar containing everything you need to run the > given project.In my case, > tuscany-sca-tools-SNAPSHOT-jar-with-dependencies.jar > is created and you can use it as the classpath to run > the WSDL2Java. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- J. Daniel Kulp [EMAIL PROTECTED]
