Try something like this in your plugins section: <plugin> <!-- This produces a monolithic runnable jar with no external dependencies: service-monitor-${project.version}-jar-with-dependencies.jar --> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest>
<mainClass>info.cathdb.funcnet.monitor.ServiceMonitor</mainClass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> Take out the archive section if it's just a library with no main. Run "mvn package" and it'll appear in your target directory. Be prepared for it to be surprisingly large :-) Andrew. 2009/3/19 <john.ba...@barclayscapital.com>: > Hi, > > It's a jar. I guess I'm too used to the atlassian confluence plugin > architype (?) which generates a jar with all the dependencies. Is there > some sample assembly plugin code to do this? I.e. "Take the jars from > the repository, unpack, and create one big jar"... Thought it would be > quite a common requirement? > > > John > >> -----Original Message----- >> From: Ulhas Bhole [mailto:ulhas.bh...@progress.com] >> Sent: 19 March 2009 12:23 >> To: users@cxf.apache.org >> Subject: Re: Maven2 not including dependent jars >> >> Hi John, >> >> What is the type of the final artifact package you are trying >> to generate? If packaging is jar I don't think it will bundle >> dependencies you will need to have your own assembly and use >> maven-assembly-plugin with some configuration to specify what >> you need to include. If your packaging type is war it should >> bundle all the dependencies that are not scoped as provided or test. >> >> Regards, >> >> Ulhas Bhole >> >> john.ba...@barclayscapital.com wrote: >> > Hi, >> > >> > Where's the first point of call in determinig why mvn >> package is not >> > including dependent jars in the target jar? >> > >> > My pom is very simple and the dependencies are listed as follows: >> > >> > <dependencies> >> > <dependency> >> > <groupId>org.springframework</groupId> >> > <artifactId>spring-core</artifactId> >> > <version>2.5.6</version> >> > </dependency> >> > <dependency> >> > <groupId>org.springframework</groupId> >> > <artifactId>spring-beans</artifactId> >> > <version>2.5.6</version> >> > </dependency> >> > >> > >> > >> > John >> > _______________________________________________ >> > >> > This e-mail may contain information that is confidential, >> privileged or otherwise protected from disclosure. If you are >> not an intended recipient of this e-mail, do not duplicate or >> redistribute it by any means. Please delete it and any >> attachments and notify the sender that you have received it >> in error. Unless specifically indicated, this e-mail is not >> an offer to buy or sell or a solicitation to buy or sell any >> securities, investment products or other financial product or >> service, an official confirmation of any transaction, or an >> official statement of Barclays. Any views or opinions >> presented are solely those of the author and do not >> necessarily represent those of Barclays. This e-mail is >> subject to terms available at the following link: >> www.barcap.com/emaildisclaimer. By messaging with Barclays >> you consent to the foregoing. Barclays Capital is the >> investment banking division of Barclays Bank PLC, a company >> registered in England (number 1026167) with its registered >> office at 1 Churchill Place, London, E14 5HP. This email may >> relate to or be sent from other members of the Barclays Group. >> > _______________________________________________ >> > >> >> >> > _______________________________________________ > > This e-mail may contain information that is confidential, privileged or > otherwise protected from disclosure. If you are not an intended recipient of > this e-mail, do not duplicate or redistribute it by any means. Please delete > it and any attachments and notify the sender that you have received it in > error. Unless specifically indicated, this e-mail is not an offer to buy or > sell or a solicitation to buy or sell any securities, investment products or > other financial product or service, an official confirmation of any > transaction, or an official statement of Barclays. Any views or opinions > presented are solely those of the author and do not necessarily represent > those of Barclays. This e-mail is subject to terms available at the following > link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent > to the foregoing. Barclays Capital is the investment banking division of > Barclays Bank PLC, a company registered in England (number 1026167) with its > registered office at 1 Churchill Place, London, E14 5HP. This email may > relate to or be sent from other members of the Barclays Group. > _______________________________________________ > -- :: http://biotext.org.uk/ ::