Re: maven test:test

2004-11-03 Thread matthew.hawthorne
Ben Anderson wrote: That did it - I didn't have defined - I was just going off of this: http://maven.apache.org/reference/user-guide.html#POM_Inheritance Once again I will say that it'd be pretty much impossible to use maven w/out being on this list or else delving into the code for every little t

Re: Retreiving environment variable in maven.xml

2004-10-07 Thread matthew.hawthorne
dan tran wrote: Hello, is there a way to do that? I did some search on it but found no clue (i am looking for ANT_HOME) You do it the same way that you would in Ant. ${env.ANT_HOME} - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Reusing unit tests in another module?

2004-09-23 Thread matthew.hawthorne
Thompson, Bryan B. wrote: My problem is that the test cases that I've developed are not being made into artifacts and they are not available for use on those other modules. So far I've tried breaking out the tests into their own module and I'm now wondering if it is viable to modify the declara

Re: classpath issue with calling ant:java

2004-08-25 Thread matthew.hawthorne
Thanks for pointing out that maven.dependency.classpath is a path. Is there any way to view its value at runtime? I also just had another flashback -- I think that maven.dependency.classpath is only available in certain contexts. Try making your custom goal depend on java:compile and see if tha

Re: classpath issue with calling ant:java

2004-08-25 Thread matthew.hawthorne
Parsons, David wrote: Any other ideas? I think I had the syntax wrong. maven.dependency.classpath is not a variable, it's a path. So printing it out won't show anything. try this: Tried both that and , to no avail (NoClassDefFoundError). Thanks for pointing out that maven.dependency.classpath is

Re: classpath issue with calling ant:java

2004-08-25 Thread matthew.hawthorne
Any other ideas? I think I had the syntax wrong. maven.dependency.classpath is not a variable, it's a path. So printing it out won't show anything. try this: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: classpath issue with calling ant:java

2004-08-25 Thread matthew.hawthorne
Parsons, David wrote: I need to write a goal to invoke the main() method of a class in my Maven project. Following suggestions in a recent thread on this list, I am attempting this with the tag. The problem I am having is with the classpath, which needs to include the project's dependencies. Fir

Re: Tag library requested that is not present.

2004-08-24 Thread matthew.hawthorne
Nadeem Bitar wrote: I am getting the following error: Tag library requested that is not present: 'maven' in plugin: 'maven- xdoclet-plugin-1.2.2-SNAPSHOT' Why is maven trying to download this at the first place, I have not specified any snapshot dependencies? Also, I wouldn't really call this an e

Re: Sun Binary Dependencies

2004-08-24 Thread matthew.hawthorne
Carlos Sanchez wrote: You can extract them to a dir of your project and use jar override, then you can distribute it with the rest of your files. A similar option would be to create a separate local repository which is checked in with the rest of your project. Something like this: projectRoot/

Re: Runtime Dependencies Question

2004-08-23 Thread matthew.hawthorne
Bain, Sinclair wrote: Thanks Matthew! That seems to have done the trick! Would you happen to know why? No problem. I think that, by default, Maven runs the tests in the same VM that it builds in, which includes all of the libraries which Maven itself depends upon. Maven seems to depend on an ea

Re: Runtime Dependencies Question

2004-08-23 Thread matthew.hawthorne
Bain, Sinclair wrote: Ant has the 'boolean' property however I have been unable to identify an equivalent in maven. How can I encourage my test cases to use the xerces 2.6.1 version which is in the local repository and specified in the project.xml as follows: Try setting maven.junit.fork=true I

Re: Anyone using Doxygen plugin?

2004-07-21 Thread matthew.hawthorne
Chen, Andrew . wrote: Has anyone used the Maven plugin for Doxygen. It is a SourceForge plugin. How to get started and get it run? We tried: maven doxygen:doxygen Maven (version 1.0) complained it does not know what is doxygen. Any hint? Hi Andrew, It looks like you may not have the plugin inst

Re: Maven and Jdk 1.5 beta

2004-07-20 Thread matthew.hawthorne
Christian Cabanero wrote: Is there a way to get the Maven java plugin to work with JDK 1.5 beta? I have 1.5 set as my default java installation and also overrode the following property in my project.properties file maven.compile.source = 1.5 but what I got was: java:compile: [echo] Compilin

Re: dependency should use not

2004-07-07 Thread matthew.hawthorne
Matt Raible wrote: For those that use the multiproject plugin - how do you typically develop? Do you make tweaks to the "core" module and then "install" it before working on your "web" project? I usually do this: maven multiproject:clean multiproject:install I'm not a big fan of snapshots, espec

Re: Howto exclude some tests from within maven.xml

2004-06-27 Thread matthew.hawthorne
Josip Gracin wrote: How can I modify the maven.test.compile.src.set from within maven.xml? What I need to do is the following: when there is some property set, additional unit tests should be included, otherwise, everything should be run without those tests. I tryed modifying maven.test.compile.

Re: jar and ear both together

2004-06-27 Thread matthew.hawthorne
Dion Gillard wrote: A project should create either a jar, or an ear, not both. Split it up into two projects. I agree that this is the easiest way. However, I once created a project that built and ejb jar, a war, and an ear. It involved a preGoal to ear:ear which created the war and jar, an

Re: Javac: source release 1.4 requires target release 1.4

2004-06-22 Thread matthew.hawthorne
Onno van der Straaten wrote: I have been spending loads of time on the following javac problem. There is code that compiles with the following error: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier I try to solve the problem by providing the following options

Re: Manually downloading JAR files

2004-06-21 Thread matthew.hawthorne
Craig Gaffney wrote: I am trying to use Maven with a few example projects (Torque), and it cannot find two(2) jar files (jdni-1.2.1.jar & jdbc-2.0.jar), and suggests downloading them. I have downloaded both jar files, but I am not sure how to put them into the local repository so that they

Re: Why don't I get any answer?

2004-06-20 Thread matthew.hawthorne
Peter Nabbefeld wrote: I've asked 4 questions before and didn't get any answer - could anybody tell me why? Is this probably an apache-members-only mailing list? Be patient, sometimes takes a little while. It's definitely not an members-only thing. There are plenty of people who answer question

Re: Error in generating site

2004-06-17 Thread matthew.hawthorne
Try removing your plugins directory (~/.maven/plugins). I think there may be some stale plugins left over from an older Maven version. Paterline, David L. wrote: I am getting the following error message when I execute "maven site" for my project, using Maven v. 1.0-rc2 on HP-UX B.11.11. When I

Re: jaxrpc.jar dependency?

2004-06-16 Thread matthew.hawthorne
Brett Porter wrote: 2) What is the best practice for this kind of thing in which one can not find a jar file that one can redistribute such as jaxrpc.jar? This is really the only alternative we have until there are freely distributable versions of such jars... Axis distributes the jaxrpc API: ht

Re: Best practice: examples, java sources and tests

2004-06-09 Thread matthew.hawthorne
Daniel Frey wrote: I would like to know how you folks master this situation. How do you manages examples in your projects? Do you recomend using different projects and do it with a multiproject goal? Are there other ways? I would do what you mentioned, put the examples in another subproject which

Re: I wish there were test:jar and test:jar-install goals

2004-06-07 Thread matthew.hawthorne
Carlos Sanchez wrote: If you are using test utilities and superclasses in different projects (as I do) you should add them to src/java dir as any other utility classes. This way they will be packed when calling jar plugin. True, but I'd want to do it in a different subproject then, and have the 2

I wish there were test:jar and test:jar-install goals

2004-06-06 Thread matthew.hawthorne
I frequently find myself in situations where I need a "test:jar" and "test:jar-install" goal. Sometimes I have set of fairly abstract tests that the tests in another subproject depend on. Other times, I have tests that need to be run in a certain environment (inside of a container), and I need

Re: Recommended way to execute a java class

2004-06-03 Thread matthew.hawthorne
Sonnathi, Venkat wrote: After the build. I need to run a Java class with the same classpath as the build classpath. Is I think so, that's how I do it. If so how do I access the project classpath (depdencies). Add this to your ant:java element: --

Re: Crossreferencing Javadoc between projects?

2004-05-27 Thread matthew.hawthorne
matthew.hawthorne wrote: Here's a hack which I used to solve this problem. I'd imagine that this javadoc is being put online somewhere, right? So just add the URL of your destination for the javadoc to the maven.javadoc.links property. For example, I knew I was deploying my site

Re: Crossreferencing Javadoc between projects?

2004-05-27 Thread matthew.hawthorne
Mike Sluyter wrote: I've just started using maven and I think it's awesome; I've gotten it to build multiple projects with the reactor, but our projects are interdependent, and when multiproject is used to generate the javadoc, the resulting javadocs are partitioned by project. Ie, there's no cross

Re: Upgrading to 1.0RC3 - exception thrown when listing goals

2004-05-24 Thread matthew.hawthorne
Dion Gillard wrote: throws Exception is an abomination. Very true, but this is even worse: try { // stuff } catch(Exception) { return null; } ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: JNDI properties

2004-05-24 Thread matthew.hawthorne
Lach, Thierry wrote: Is there any standard way to set up jndi properties from within maven? Specifically what I'm looking for is a way to set jndi java environment values prior to running junit tests, with the values calculated based upon values set inside of build.properties. Which properties are

Re: Documentation of relevant goals in POM?

2004-05-09 Thread matthew.hawthorne
Vincent Massol wrote: How do you recon maven can know about the relevant goals? I guess nothing magical. Simply a goalmap. For example: [...] This would be optional and the developer of the project would list the main goals. "maven -G" would list those goals with their descriptions. I

Re: Dependencies

2004-04-25 Thread matthew.hawthorne
Bill Madison wrote: I am a newbie to Maven. And my question is, if my project needs some 30 thirdparty jars, for each of them do I need to put a element in the project.xml? Please let me know. Yes. - To unsubscribe, e-mail: [EM

Re: NPE when calling ant targets from maven.xml

2004-03-22 Thread matthew.hawthorne
Algirdas P. Veitas wrote: java.lang.NullPointerException at org.apache.maven.plugin.PluginManager.attainGoals (PluginManager.java: 430) at org.apache.maven.MavenSession.attainGoals (MavenSession.java:348) at org.apache.maven.cli.App.doMain(App.java:543) at org.apache.ma

Re: how can I get JAVA_HOME

2004-03-22 Thread matthew.hawthorne
Yura Ivanov wrote: when I execute test goal it didn't work Java Home is ${env.JAVA_HOME} out --- test: [echo] Java Home is BUILD SUCCESSFUL Total time: 4 seconds The code that you're executing wouldn't work in Ant either. First, you have to do:

Re: how can I get JAVA_HOME

2004-03-22 Thread matthew.hawthorne
Yura Ivanov wrote: I am a new in maven. In ant I could get JAVA_HOME as ${env.JAVA_HOME}, > but in maven it doesn't work. How can I get JAVA_HOME variable from environment? You can do it the exact same way as in Ant, except it has to be inside a goal in a maven.xml file. --

Re: Make usefile false for JUnit

2004-03-19 Thread matthew.hawthorne
Jeremy Whitlock wrote: Thanks for your help. Good luck. Too bad this isn't easier. I was hoping for some sort of element in project.xml where you could change them: . . . Actually, if you know that you want to run the tests that way all the time,

Re: Make usefile false for JUnit

2004-03-19 Thread matthew.hawthorne
Jeremy Whitlock wrote: I can't seem to get maven change the junit param of userfile to false. Can someone help me out? Thanks, I've only been able to get it to work using -Dmaven.junit.usefile=false at the command line (although you could do the same in [build | project].proper

Re: More visual project descriptor documentation

2004-03-17 Thread matthew.hawthorne
http://maven.apache.org/~dion/maven.apache.org/reference/project-descriptor.html This is very cool. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie question: use of deprecated API's

2004-03-11 Thread matthew.hawthorne
Jean-François El Fouly wrote: You can set the property maven.compile.deprecation to "on". This info is located at: http://maven.apache.org/reference/plugins/java/properties.html Thanks. I was more or less aware that this option exists but can someone please tell me what the effect will be : -

Re: Newbie question: use of deprecated API's

2004-03-11 Thread matthew.hawthorne
Jean-François El Fouly wrote: Is there any way (option or property somewhere ?) to get some kind of report on the use of deprecated API's ? You can set the property maven.compile.deprecation to "on". This info is located at: http://maven.apache.org/reference/plugins/java/properties.html ---

Re: [reactor] sending e-mails upon project failure

2004-03-09 Thread matthew.hawthorne
Vincent Massol wrote: Acutally I work with Dominique. We only need to send emails for now (we do not need the modificationset Ant task from CC). CC is a good idea but we'll need to do some research to see how it would work and how to integrate it with our current continuous build. For now, would yo

Re: setting properties

2004-03-02 Thread matthew.hawthorne
What about trying: pom.getPluginContext('maven-multiproject-plugin').setVariable(...) A shot in the dark, but maybe it's worth a try. Sonnek, Ryan wrote: Still no luck for me, could this be multiproject related? When I echo the property in my master project, the property is set fine, but once t

Re: Environemtal Vars

2004-03-01 Thread matthew.hawthorne
DeGraff, Adam wrote: In ant I was able to reference my environment vars via something like ${env.JAVA_HOME} Is there a similar way to do this in Jelly/Maven? The above syntax doesn't produce anything. You could do it in a maven.xml goal the same way that you would do it with Ant. -

Re: setting properties

2004-03-01 Thread matthew.hawthorne
Sonnek, Ryan wrote: Thanks for the reply. I can't say I fully understand why it's needed from within maven.xml and not from the command line, unless settings passed from the command line are "wrapped up" and fed into maven's plugins. I read through the wiki, and tried to get it to work with the fo

Re: setting properties

2004-03-01 Thread matthew.hawthorne
Sonnek, Ryan wrote: Any pointers on how to set properties from within my maven.xml? I've got a short custom goal to set properties, then call install: when I run this goal, tests are still run. If I run this from the command line, tests are not run: maven multiproject:inst

Re: add generated java files to repository

2004-02-19 Thread matthew.hawthorne
thorsten maus wrote: have the following project-structure root | | -- sample-ejb | | - target | | - xdoclet | | ejbdoclet | -- common-jar the sample-ejb refers to the common-jar .. the common-jar itself needs the generated interfaces of the sample-ejb ..

Re: jboss -- configuration services

2004-02-15 Thread matthew.hawthorne
thorsten maus wrote: how to i tell the ear plugin to integrate jboss-service.xml postgres-ds.xml into its package ??? I added a postGoal to ear:ear in my maven.xml that updates the ear with these files. - To unsubscribe, e-mai

Re: Weird exception, please advise!

2004-02-14 Thread matthew.hawthorne
Try removing the *.cache files from your ~/.maven./plugins directory. Alexey Krasnoriadtsev wrote: Hi all, I've got this weird exception. I tried it in different project directories, with different files.. still.. [EMAIL PROTECTED]:cmn]$ maven -X __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V /

Re: A Bug With war:install?

2004-02-13 Thread matthew.hawthorne
[EMAIL PROTECTED] wrote: Hi, I received an error message and nothing was copied to the below named directory everytime I try to use the goal, 'war:install'. It would be interesting to see what the error message is... - To unsubscr