Re: Copy dependencies
Hi Erwin, > I need to look in the assembly plugin how to do that. Here is a start for you: http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd";> bundle zip xxx /libs false compile /plugins false runtime Unfortunately, because of how transitive scopes work, the compile scope artifacts will appear in both libs and plugins with that configuration. I'm not sure of the best way around that. Another problem is that the assembly plugin normally produces an archive (e.g., zip or bz2). I do not know a way to tell it to just leave all the files it copies in a subfolder of target. (Anyone know if this is possible? It would be very useful for my project as well.) Regards, Curtis On Fri, Aug 10, 2012 at 3:51 PM, Erwin Mueller wrote: > I need to look in the assembly plugin how to do that. > > Thank you for your help. > > On Thursday, August 09, 2012 10:40:16 AM Wayne Fay wrote: > > > with the maven-dependency-plugin I can copy the dependencies in some > > > output > > > directory. But how can I copy some dependencies to directory libs/ and > > > different dependencies in the directory plugins/ ? > > > > Realistically you should be using the assembly plugin for the > > construction of "non-standard" artifact directory structures such as > > what you require, and not the dependency plugin. > > > > Wayne > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > -- > Erwin Mueller > http://www.mueller-public.de - My site; > http://www.anr-institute.com - Advanced Natural Research Institute GmbH; >
Re: Copy dependencies
I need to look in the assembly plugin how to do that. Thank you for your help. On Thursday, August 09, 2012 10:40:16 AM Wayne Fay wrote: > > with the maven-dependency-plugin I can copy the dependencies in some > > output > > directory. But how can I copy some dependencies to directory libs/ and > > different dependencies in the directory plugins/ ? > > Realistically you should be using the assembly plugin for the > construction of "non-standard" artifact directory structures such as > what you require, and not the dependency plugin. > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org -- Erwin Mueller http://www.mueller-public.de - My site; http://www.anr-institute.com - Advanced Natural Research Institute GmbH;
Re: Running tests from a maven test-jar
You could try this: configure m-surefire-p and replace the default, ant-style include with a regex include (regex matching is done over classes instead of java files). Am 10.08.2012 19:55 schrieb "Billy Newman" : > Agreed that is exactly what i am doing , but that will not actually run > that suite of unit tests against my code. It just pulls it in as a > dependency. > > Again is the link I provided the best way to pull in a test-jar and > actually run its tests against another artifact? > > Thanks again! > > Sent from my iPhone > > On Aug 10, 2012, at 10:57 AM, Ansgar Konermann < > ansgar.konerm...@googlemail.com> wrote: > > > Found this in the docs: > > > > http://maven.apache.org/guides/mini/guide-attached-tests.html > > > > HTH > > > > Ansgar > > Am 10.08.2012 18:36 schrieb "Billy Newman" : > > > >> I have a test jar out there that test some main functionality of an > api. I > >> would like to run that suite of tests for all my impl artifacts. > >> > >> I have deployed it as a test-jar and I have the dependency setup for my > >> impl project to depend on that test-jar. However this just pull the > jar in > >> at 'test' time it does not execute the tests. > >> > >> I found this post from a while back: > >> > >> > http://softwaremavens.blogspot.com/2009/09/running-tests-from-maven-test-jar-in.html > >> > >> Wondering if this is still the accepted/right way to do what I want. > >> > >> Thanks > >> > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Running tests from a maven test-jar
Agreed that is exactly what i am doing , but that will not actually run that suite of unit tests against my code. It just pulls it in as a dependency. Again is the link I provided the best way to pull in a test-jar and actually run its tests against another artifact? Thanks again! Sent from my iPhone On Aug 10, 2012, at 10:57 AM, Ansgar Konermann wrote: > Found this in the docs: > > http://maven.apache.org/guides/mini/guide-attached-tests.html > > HTH > > Ansgar > Am 10.08.2012 18:36 schrieb "Billy Newman" : > >> I have a test jar out there that test some main functionality of an api. I >> would like to run that suite of tests for all my impl artifacts. >> >> I have deployed it as a test-jar and I have the dependency setup for my >> impl project to depend on that test-jar. However this just pull the jar in >> at 'test' time it does not execute the tests. >> >> I found this post from a while back: >> >> http://softwaremavens.blogspot.com/2009/09/running-tests-from-maven-test-jar-in.html >> >> Wondering if this is still the accepted/right way to do what I want. >> >> Thanks >> - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
doxia-book-maven-plugin - How do I bind book sections to markdown files?
Hi, I want to use the markdown files I use for site generation under `src/site/markdown` to also generate a pdf using doxia-book-maven-plugin. I created an examplary `book.xml` under `src/books/book.xml` http://maven.apache.org/BOOK/1.0.0"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/BOOK/1.0.0 http://maven.apache.org/xsd/book-1.0.0.xsd";> book RefProc Snapshot Process Syntax Guide bind Bindings 01-stuff.md My `pom.xml` looks like this: ... plugin> org.apache.maven.doxia doxia-book-maven-plugin 1.3-SNAPSHOT pre-site render-books src/site/markdown src/books/book.xml pdf ... I get [ERROR] Failed to execute goal org.apache.maven.doxia:doxia-book-maven-plugin:1.3-SNAPSHOT:render-books (default) on projectsnapshot-io-gson: Error while generating book in format 'pdf'. No document that matches section with id=01-json.md. -> [Help1] Which is to be expected as I have no clue on how to map my markdown files to the various chapters and sections and I can't find any infos on it. Does anybody know how to do this? Best regards Oliver Schrenk
Re: Running tests from a maven test-jar
Found this in the docs: http://maven.apache.org/guides/mini/guide-attached-tests.html HTH Ansgar Am 10.08.2012 18:36 schrieb "Billy Newman" : > I have a test jar out there that test some main functionality of an api. I > would like to run that suite of tests for all my impl artifacts. > > I have deployed it as a test-jar and I have the dependency setup for my > impl project to depend on that test-jar. However this just pull the jar in > at 'test' time it does not execute the tests. > > I found this post from a while back: > > http://softwaremavens.blogspot.com/2009/09/running-tests-from-maven-test-jar-in.html > > Wondering if this is still the accepted/right way to do what I want. > > Thanks >
RE: Antwort: Maven + Spring 3.1.2.RELEASE Error
Rollback to 3.0.5.RELEASE http://central.maven.org/maven2/org/springframework/spring-orm/3.0.5.RELEASE/ download the pom mvn dependency:tree tree.lst vi tree.lst search for spring-core...note this is tagged as org.springframework:spring-core:jar:3.0.5.RELEASE:compile if the behaviour is any different for 3.1.2 in other words you should see org.springframework:spring-core:jar:3.1.2.RELEASE:compile file a bug for 3.1.2 and one of us will fix it Martin __ 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. > To: users@maven.apache.org > Subject: Antwort: Maven + Spring 3.1.2.RELEASE Error > From: thorsten.h...@vkb.de > Date: Fri, 10 Aug 2012 10:46:11 +0200 > > Hi, > > > I'm trying to build a project using Maven to package the latest spring > > 3.1.2.RELEASE jars into a war file. For some reason, it's pulling the > latest > > version for some of the spring modules, but not for all of them. For > > example, the 3.1.2.RELEASE spring-orm module is downloaded, but the > 3.0.0.GA > > spring-core module is downloaded... Can anyone tell me why this could be > > happening? I'm not nesting or inheriting pom.xml files. I've pasted part > of > > my pom.xml below: > > I don't use Spring, but have you tried "mvn help:effective-pom"? > > > HTH > > Thorsten
Re: [Maven] Question about RPM signatures
Hi, first i would suggest that you post your pom and the exact error message...may be you could run mvn -X ...and create an Issue entry for the rpm-maven-plugin and attach the pom and the logfile to it... Kind regards Karl-Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl-Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven + Spring 3.1.2.RELEASE Error
I would be using a (good) dependency tree viewer to figure this out. The one I prefer is the one in m2e, but there might be others. Maybe dependency:tree could be used as well, but I'm unsure if it will provide you with the info on where the "wrong" version is specified. /Anders On Fri, Aug 10, 2012 at 10:46 AM, Thorsten Heit wrote: > Hi, > >> I'm trying to build a project using Maven to package the latest spring >> 3.1.2.RELEASE jars into a war file. For some reason, it's pulling the > latest >> version for some of the spring modules, but not for all of them. For >> example, the 3.1.2.RELEASE spring-orm module is downloaded, but the > 3.0.0.GA >> spring-core module is downloaded... Can anyone tell me why this could be >> happening? I'm not nesting or inheriting pom.xml files. I've pasted part > of >> my pom.xml below: > > I don't use Spring, but have you tried "mvn help:effective-pom"? > > > HTH > > Thorsten - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Antwort: Maven + Spring 3.1.2.RELEASE Error
Hi, > I'm trying to build a project using Maven to package the latest spring > 3.1.2.RELEASE jars into a war file. For some reason, it's pulling the latest > version for some of the spring modules, but not for all of them. For > example, the 3.1.2.RELEASE spring-orm module is downloaded, but the 3.0.0.GA > spring-core module is downloaded... Can anyone tell me why this could be > happening? I'm not nesting or inheriting pom.xml files. I've pasted part of > my pom.xml below: I don't use Spring, but have you tried "mvn help:effective-pom"? HTH Thorsten