Hi Markus, Thanx. That worked out just fine. Only problem was with the assembly plugin since I couldn't download due to the codehaus outage I wasn't able to use it. Thanx all the same.
--------------------------------------------------- Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG [EMAIL PROTECTED] [EMAIL PROTECTED] On Wednesday 17 May 2006 3:59 am, Markus Reinhardt wrote: > Hi Clifton, > > Am Dienstag, den 16.05.2006, 15:51 -0400 schrieb Clifton Craig: > > Is there a way I can define the > > main class in my pom or in the plugin settings that I'm not aware of? > > please advise. > > there is. Just add > > ... > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <configuration> > <archive> > <manifest> > <mainClass>your.mainclass.here.MainClass</mainClass> > <addClasspath>true</addClasspath> > </manifest> > </archive> > </configuration> > </plugin> > ... > </plugins> > </build> > ... > > to your pom.xml. Additionally you might take a look at mavens assembly > plugin: > > ... > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <version>2.1-SNAPSHOT</version> > <configuration> > <descriptorRefs> > <value>jar-with-dependencies</value> > </descriptorRefs> > <manifest> > <mainClass>your.mainclass.here.MainClass</mainClass> > <addClasspath>true</addClasspath> > </manifest> > </configuration> > </plugin> > ... > > builds a JAR with all dependencies included. > > Markus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
