[Apologies to Martin, I intended to mail the list rather than you personally.]
Thanks to both who suggested building an assembly, that seems to do the trick beautifully. I do have a followup problem however - when I tried to deploy the assembly to an Artifactory server, the jar portion went out ok, but the tgz didn't: [INFO] Error deploying artifact: Resource to deploy not found: File: http://xxx/artifactory/libs-snapshots-local/com/my/site/1.1-SNAPSHOT/pkg-1.1-20100516.231424-1-blankdb.tar.gz.md5does not exist Do I need to build an md5 somehow and deploy that too? If so, how do I do it? On Sun, May 16, 2010 at 5:57 PM, Martin Gainty <[email protected]> wrote: > 1) Can a Maven project create more than one artifact, specifically a jar > > How about building assemblies and calling them in the package phase? > http://maven.apache.org/plugins/maven-assembly-plugin/usage.html > > 2)compressed snapshot ..i assume you mean yuicompressor? > http://alchim.sourceforge.net/yuicompressor-maven-plugin/compress-mojo.html > > Martin Gainty > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > > > Date: Sun, 16 May 2010 17:02:29 -0400 > > Subject: Can I do this with Maven? > > From: [email protected] > > To: [email protected] > > > > > I have a code base, packaged as a jar, which is an interface to a Derby > > database. Naturally the unit tests require firing up Derby and running > some > > basic SQL to create the empty schema before the tests can run. That part > I > > already have working in Maven. What I want is to package and deploy both > > the interface jar and a compressed version of the blank database as it > > exists on the file system. Ideally I could do this all from the same pom, > > > project which depends on the interface jar (and the SQL files bundled > > therein) and whose sole purpose is to use the jar artifact to create the > > blank database schema and package and deploy that somehow. I guess this > > boils down to two basic questions to start with: > > > > 1) Can a Maven project create more than one artifact, specifically a jar > and > > a compressed snapshot of a specific project directory? (suspecting no) > > 2) If not, can Maven at least build a package consisting solely of a > > compressed snapshot of a project directory, and make that available to > other > > projects in such a way that they can extract that snapshot and do things > > with it? > > > > Any help or links to the relevant portions of the M to RTF are > appreciated! > > > > -- > > C. Benson Manica > > [email protected] > > ------------------------------ > Hotmail is redefining busy with tools for the New Busy. Get more from your > inbox. See > how.<http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2> > -- C. Benson Manica [email protected]
