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

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 documentation is a wee bit hard for me

Problems with maven building a super jar

2009-01-04 Thread CheapLisa
I have a project directory like: C:\home\projects\myproject In myproject there is myproject\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

Re: Problems with maven building a super jar

2009-01-04 Thread CheapLisa
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 might be what you need. Cheers 2009/1/4 CheapLisa l...@purpleblade.net I have a project

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\myproject\pom.xml there is no /src/main/java directory to build. It is a top level project/container only for submodules and the

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

2008-12-17 Thread CheapLisa
, 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 --- On Tue, Dec 16, 2008 at 3:54 PM, CheapLisa l...@purpleblade.net wrote: I am

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

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/somedir 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:

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

2008-12-12 Thread CheapLisa
-plugin/examples/copy-resources.html 2008/12/12 CheapLisa l...@purpleblade.net: Before the build takes place, I need to create a directory /target/somedir 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

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 l...@purpleblade.net wrote: Before the build takes place, I need to create

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 :-). Cheers So long as CheapLisa continues sending

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

2008-12-12 Thread CheapLisa
(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 2008/12/11 CheapLisa l...@purpleblade.net so I could make a module for it say logging/pom.xml and then put a dependency

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

2008-12-12 Thread CheapLisa
desired behavior. -Josh On Thu, Dec 11, 2008 at 6:39 PM, CheapLisa l...@purpleblade.net wrote: I do not believe this has anything to do with it and I don't understand what you are saying. L mgainty wrote: place the groupId/artifactId/version in the dependencies

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

2008-12-12 Thread CheapLisa
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? thanks L John Stoneham wrote: On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net wrote: I have JUnit 4.5 as a dependency in my

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

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

2008-12-11 Thread CheapLisa
wrote: On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net wrote: 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

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

2008-12-11 Thread CheapLisa
to all the projects that need it Sent from my iPod On 10 Dec 2008, at 20:35, CheapLisa l...@purpleblade.net 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.xml files in every module: src/main/resources

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 [EMAIL PROTECTED] wrote: I have JUnit

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'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: I should not have to name it anything

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 and I have imported annotations into my test case

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

2008-12-10 Thread CheapLisa
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 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

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 dependency in my maven pom and I have imported annotations into my

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

2008-12-10 Thread CheapLisa
, 2008 at 12:16 AM, CheapLisa [EMAIL PROTECTED] wrote: 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

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

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

2008-12-10 Thread CheapLisa
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: I do not want this plugin section in every pom.xml in every sub-module (some 5 deep

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:

RE: Maven Jaxb plugin?

2008-12-09 Thread CheapLisa
-Original Message- From: CheapLisa [mailto:[EMAIL PROTECTED] Sent: 09 December 2008 16:33 To: users@maven.apache.org Subject: Maven Jaxb plugin? I searched for a maven jaxb plugin and found xjc-maven-plugin but it is not documented. Does anyone have an example of generating

RE: Maven Jaxb plugin?

2008-12-09 Thread CheapLisa
-Original Message- From: CheapLisa [mailto:[EMAIL PROTECTED] Sent: 09 December 2008 16:33 To: users@maven.apache.org Subject: Maven Jaxb plugin? 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

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 parent

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 get

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?

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? This is more than just the assembly. Setting the MANIFEST.MF

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

2008-11-26 Thread CheapLisa
. It was 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 to create a single jar with all

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