Re: How to call ant task from maven - can not find a good example

2009-04-10 Thread CheapLisa
thanks, I'm still lost. This section did not make much sense to me. David M. Karr wrote: > > CheapLisa wrote: >> I want to call some ant tasks when I run maven. >> >> I have read all about the maven antrun plugin and found some >> examples, but the docume

How to call ant task from maven - can not find a good example

2009-04-10 Thread CheapLisa
I want to call some ant tasks when I run maven. I have read all about the maven antrun plugin and found some examples, but the documentation is a wee bit hard for me to understand, and does not lead me to what I wish to accomplish. I want all my ant tasks in a build.xml file (not in the pom.xml)

Re: Problems with maven building a "super jar"

2009-01-04 Thread CheapLisa
What I want to do is to include all jars from all modules/sub-modules that are built from the top level when I do "mvn compile install". in the top level C:\projects\\pom.xml there is no /src/main/java directory to build. It is a top level project/container only for submodules and the packagin

Re: Problems with maven building a "super jar"

2009-01-04 Thread CheapLisa
u why everything is unpacked (that's the default), but you > surelyy already read this twice. > > Maybe also have a look here: > http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html. > From what you describe, it migh

Problems with maven building a "super jar"

2009-01-04 Thread CheapLisa
I have a project directory like: C:\home\projects\ In there is \pom.xml This pom is a top level pom (for many modules and those modules have sub-modules) and the packageing is set to "pom". What I want is to build one super jar that includes all jars in my project and all jars

Re: How do I build one jar per class file controlling the name of the jar?

2008-12-17 Thread CheapLisa
BASE Logic, Inc. > Enterprise Architecture, Design, Mentoring & Agile Consulting > p. (866) BLiNC-411: (254-6241-1) > f. (415) 685-4233 > > Website: http://baselogic.com > Linked IN: http://linkedin.com/in/mickknutson > Vacation Rental: http://tahoe.baselogic.com > --- &g

How do I build one jar per class file controlling the name of the jar?

2008-12-16 Thread CheapLisa
I am using an open source product that requires a jar to be built for every single .java file. The java files are all in the same directory like so: src/main/java/com/acme/product/Name1.java src/main/java/com/acme/product/Name2.java src/main/java/com/acme/product/Name3.jav

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-12 Thread CheapLisa
;> >> how do I know that surefire is using my dependency of JUnit 4.5? Is >> maven >> bundled with another version of JUnit and using an earlier version that >> I'm >> not aware of? >> >> How do I force the surefire plugin to use JUnit 4.5? >> >

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-12 Thread CheapLisa
re-plugin (This is the part of maven that >> calls >> into junit) for junit4 conventions, or you won't get your desired >> behavior. >> >> -Josh >> >> >> On Thu, Dec 11, 2008 at 6:39 PM, CheapLisa wrote: >> >>> >>> I do not

Re: How to have a single log4j.xml file in a multi-module project?

2008-12-12 Thread CheapLisa
:utils.logging at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:310) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) Stephen Connolly-2 wrote: > > In theory, yes, though I have not tried it myself > > 2

Re: How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa
yea, I already googled. I already to that before posting. Nothing came up. What does "modicum" mean? thanks Wayne Fay wrote: > >> Somebody made me discover that recently: http://tinyurl.com/62f6ku ... >> >> No offense, week-end is coming :-). >&

Re: How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa
great. Do you remember the name of the plugin and have an example? thanks L Wei Tan wrote: > > there is a maven plug-in that can run ant tasks, I remember > > > > On Fri, Dec 12, 2008 at 2:25 PM, CheapLisa wrote: > >> >> Before the build takes pl

Re: How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa
apache.org/plugins/maven-resources-plugin/examples/copy-resources.html > > 2008/12/12 CheapLisa : >> >> Before the build takes place, I need to create a directory >> /target/ >> and then copy some files from /src/main/resources/* to there. >> >> How do I do th

How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa
Before the build takes place, I need to create a directory /target/ and then copy some files from /src/main/resources/* to there. How do I do this with maven? thanks cl -- View this message in context: http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html

Re: How to have a single log4j.xml file in a multi-module project?

2008-12-11 Thread CheapLisa
o all the projects that need it > > Sent from my iPod > > On 10 Dec 2008, at 20:35, CheapLisa wrote: > >> >> >> I have a project with many modules (over 30) and some are nested 2-3 >> deep. >> >> With Maven / Log4J I have to put two log4j.x

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-11 Thread CheapLisa
t >> I'm >> not aware of? >> >> How do I force the surefire plugin to use JUnit 4.5? >> >> thanks >> >> L >> >> >> >> John Stoneham wrote: >> > >> >>> On Wed, Dec 10, 2008 at 12:16 AM, Chea

maven plugin problem (can not solve after many tries)

2008-12-11 Thread CheapLisa
I am getting this error message: [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-i zpack-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultL

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-10 Thread CheapLisa
! > > -Stephen > > 2008/12/10 CheapLisa <[EMAIL PROTECTED]> > >> >> thanks, so there is absolutely no way to rid every single pom.xml with >> some >> reference to junit for example? >> >> Lisa >> >> >> >> Wayne Fay wrote:

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-10 Thread CheapLisa
I did this and only see a reference to maven-surefire-reports in the reporting section but not elsewhere. My objective is to clean up my pom's and not repeat what is not really needed. It seams like having a reference to surefire in a build section in every module pom is tedious to include and m

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
gt;> >> I believe the name of the class still matters. Try calling it >> "Test*.java" >> >> On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> wrote: >> >>> >>> I have JUnit 4.5 as a dependency in my maven pom >&g

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
What is the name of your test? L Anders Hammar wrote: > > Hi, > > Just tried it and it works for me, both in Eclipse and from command > prompt. > How are you executing? > > /Anders > > > CheapLisa wrote: >> >> I have JUnit 4.5 as a depe

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
gt; Josh Suereth wrote: >> >> I believe the name of the class still matters. Try calling it >> "Test*.java" >> >> On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> wrote: >> >>> >>> I have JUnit 4.5 as a

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
version that I'm not aware of? How do I force the surefire plugin to use JUnit 4.5? thanks L John Stoneham wrote: > >>> On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> >>> wrote: >>>> I have JUnit 4.5 as a dependency in my maven pom

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I'm not sure I understand. I don't have the surefire plugin in any of my pom's. It's in the superpom so I can use it from there. I have a multi-module project. L Jörg Schaible-2 wrote: > > CheapLisa wrote at Mittwoch, 10. Dezember 2008 17:16: > >&g

How to have a single log4j.xml file in a multi-module project?

2008-12-10 Thread CheapLisa
I have a project with many modules (over 30) and some are nested 2-3 deep. With Maven / Log4J I have to put two log4j.xml files in every module: src/main/resources/log4j.xml src/test/resources/log4j.xml This is usually the same file over and over again.

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I should not have to name it anything but put an annotation there like @Test. This is OK with JUnit 4.x. Josh Suereth wrote: > > I believe the name of the class still matters. Try calling it > "Test*.java" > > On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-09 Thread CheapLisa
thanks, so there is absolutely no way to rid every single pom.xml with some reference to junit for example? Lisa Wayne Fay wrote: > >>I do not want this plugin section in every pom.xml in >> every sub-module >> (some 5 deep) >>How do I do this to make it go? >

Is Maven / JUnit 4.x broken (annotations)

2008-12-09 Thread CheapLisa
I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with "test" and the @Ignore tests get executed. Is something broken? What do I need to do to ge

How to run JUnit tests in sub-modules without surefire reference?

2008-12-09 Thread CheapLisa
I want to run JUnit tests in every module and sub-module (some 5 deep), but I do not want to put a reference to the surefire plugin in every pom.xml in every module and sub-module (some 5 deep). How do I make this work? --- More Info I have a top level pom for all modules and use the tag in

RE: Maven Jaxb plugin?

2008-12-09 Thread CheapLisa
jaxb2-maven-plugin > > > > xjc > > > > > com.acme > > > > -Original Message- > From: CheapLisa [mailto:[EMAIL PROTECTED] > Sent:

RE: Maven Jaxb plugin?

2008-12-09 Thread CheapLisa
jaxb2-maven-plugin > > > > xjc > > > > > com.acme > > > > -Original Message- > From: CheapLisa [mailto:[EMAIL PROTECTED] > Sent:

Maven Jaxb plugin?

2008-12-09 Thread CheapLisa
I searched for a maven jaxb plugin and found xjc-maven-plugin but it is not documented. Does anyone have an example of generating an xsd from xml and then the java objects from xsd? Does anyone know why this plugin is not documented? -- View this message in context: http://www.nabble.com/Maven

Re: Need *end-to-end* example using the maven assembly plugin

2008-11-26 Thread CheapLisa
probably not tried first before going to press. Lisa John Stoneham wrote: > > On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote: >> Does anyone have an *end-to-end* example (with files you can send or >> attach) >> that will allow me t

Re: Need *end-to-end* example using the maven assembly plugin

2008-11-26 Thread CheapLisa
wrote: > > On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote: >> >> Does anyone have an *end-to-end* example (with files you can send or >> attach) >> that will allow me to create a single jar with all dependencies using >> maven? > >

Need *end-to-end* example using the maven assembly plugin

2008-11-25 Thread CheapLisa
Does anyone have an *end-to-end* example (with files you can send or attach) that will allow me to create a single jar with all dependencies using maven? In the end I want to be able to: $cd dist $java -jar patch-main.jar and have it run the public static void main(String[] args) method in o