Retrieving info from maven-release-plugin

2007-04-03 Thread William Ferguson
I have a plugin whose Mojo is executed as part of the maven-release-pluigin preparationGoals (see http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals- before-commit.html) The Mojo executes OK, but I need to extract some of the info that has been accumulated by the

RE: [***POSSIBLE SPAM***] - WAR Archiver: avoiding JAR files in WEB-INF/lib - Bayesian Filter detected spam

2007-04-03 Thread William Ferguson
The scope you want is 'provided'. See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html for more details on specifying dependencies. William -Original Message- From: Gonzalo Vásquez Sáez [mailto:[EMAIL PROTECTED] Sent: Tuesday, 3 April 2007 4:29

Re: Unable to run it

2007-04-03 Thread Henry S. Isidro
On Tuesday, April 3, 2007 13:06, Sagar Yerunkar wrote: I reinstalled Java to another directory and corrected the relevant environment variables. I am still getting the same error. My other code in eclipse is working fine. I have deployed a few web services using Tomcat. Even they are working

Re: Retrieving info from maven-release-plugin

2007-04-03 Thread Emmanuel Venisse
William Ferguson a écrit : I have a plugin whose Mojo is executed as part of the maven-release-pluigin preparationGoals (see http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals- before-commit.html) The Mojo executes OK, but I need to extract some of the info that has

Re: ConcurrentModificationException

2007-04-03 Thread nicolas de loof
This seems to be a thread-safety issue in Wagon TransferEventSupporthttp://maven.apache.org/wagon/wagon-provider-api/xref/org/apache/maven/wagon/events/TransferEventSupport.html The listeners list is an ArrayList and add/remove/fireEvent methods are not synchronized. This requires either

Re: Conditional code generation

2007-04-03 Thread Steffen Mazanek
Franz, this rocks. Thanks a lot! Best regards, Steffen franz see schrieb: Good day to you, Steffan, Yes, that would do just fine. You can have something like ... profile idadd-examples-that-compile-only-if-eclipse-is-installed/id activation property

Re: Unable to run it

2007-04-03 Thread franz see
Good day, ( I assume you're on windows ) Check your M2_HOME, what did you set it into ? ..Did you set it with D:\my\path\to\maven, or to D:\my\path\to\maven\ ? ..If you did the second one, remove the last \. Cheers, Franz Sagar Yerunkar wrote: Hello, I have installed apache maven on my

[MAVEN][2.0.x] Generate multiple artifacts and assemblies for different targetted platforms

2007-04-03 Thread Ephemeris Lappis
Hello. I'm not sure profiles are exactly what I need. I'd like to build with a single set of pom.xml (for several modules), and in a single run, all the artifacts of a project. A typical project is a JEE application set, with several EARs, each of them holding one or more WARs and EJB-JARs,

RE: Need help

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
What is the default userid and password for logging into continuum ?? I installed and started the continuum and want to set up a ant project for which I need to log in. I do not find the default userid and password for loggiing into continuum anywhere in the documentation..

Re: Need help

2007-04-03 Thread Emmanuel Venisse
We don't have a defaultuserid/password. You define it at the first continuum startup. Emmanuel Vaidya, Raghavendra (GE Infra) a écrit : What is the default userid and password for logging into continuum ?? I installed and started the continuum and want to set up a ant project for which I need

Combine/assemble multiple dependencies using maven

2007-04-03 Thread cuberoot
Hi Is it possible to combine multiple dependencies (i.e. jars,wars) into a single archive using maven? I have investigated the maven-assembly plugin, but cannot seem to get it working. Situation: Multiple maven projects that create an artifact (i.e. war,jar). These artifacts can then be

RE: Need help

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
How do I define the user at start up ?? Is it a command line argument ?? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 2:37 PM To: continuum-users@maven.apache.org Subject: Re: Need help We don't have a defaultuserid/password. You

Release with perforce and multi-module: parent pom cannot be updated

2007-04-03 Thread Bruno Dumant
Hi, I have a problem with the release plugin when using it with perforce in a multi-module environment. Everything works fine (including tagging the release) until the update pom phase: the parent POM cannot be modified (apparently, it is not checked out before trying to update it).

Re: Unable to run it

2007-04-03 Thread Sagar Yerunkar
Hey that was the problem. I had an extra \ in M2_HOME. I removed it and mvn started working. I wonder how it recognised the mvn command if the environment variable was the problem. Thanks a lot! Regards, Sagar M. Yerunkar franz see [EMAIL PROTECTED] 04/03/2007 12:55 PM Please respond to

Re: Unable to run it

2007-04-03 Thread franz see
Good day, It's got something to do with running the java command :) I think it's having difficulties when you're passing file paths something like D:\my\path\to\maven\\lib and the likes :) That's why it's showing the help for java ( since it claims not to understand the java parameters the maven

Re: Need help

2007-04-03 Thread Rahul Thakur
You will be asked to set up an admin account the first time you access the Continuum console after you've started it. HTH, Rahul - Original Message - From: Vaidya, Raghavendra (GE Infra) [EMAIL PROTECTED] To: continuum-users@maven.apache.org Cc: Vaidya, Raghavendra (GE Infra) [EMAIL

RE: Need help

2007-04-03 Thread David Roussel
Whent you first install it and access the installation the first page asks you for a username and password. If you have forgotten, they you could try re-installing. On Tue, 3 Apr 2007 14:45:40 +0530, Vaidya, Raghavendra (GE Infra) [EMAIL PROTECTED] said: How do I define the user at start up ??

[m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Antonio Petrelli
Hi all! I wanted to prepare the release for Tiles, but when it tries to create the site, it fails with a dependency error [1]. The problem is that the tiles-parent pom contains the configuration for the Javadoc plugin that aggregates the Javadoc of its modules. When generating the site alone, the

integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof
Hello, My webapps now come with more and more JavaScript (web 2.0 !) I expect maven to bring me best-practices and great tools the same way it did for my java code. Is there any work-in-progress to integrate some JS-tools as maven plugins ? - jsdoc (or similar) to générate javadoc-like

CDATA bug in site plugin? (was: Re: FML and stripped XML entities?)

2007-04-03 Thread Manos Batsis
I wanted to avoid using CDATA but when i did i got a nasty surprise! After converting the entities to characters and added the CDATA, the site plugin actually renders CDATA declarations of source elements as sourcecode, which is a bug. After some search, i think the entity stripping is fixed in

Re: integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof
I just discovered jsDoc 2 (http://code.google.com/p/jsdoc-2/) that is written in JavaScript and can (?) run inside Rhino engine, so could be packaged as a maven report plugin. 2007/4/3, nicolas de loof [EMAIL PROTECTED]: Hello, My webapps now come with more and more JavaScript (web 2.0 !) I

Re: Release with perforce and multi-module: parent pom cannot be updated

2007-04-03 Thread Emmanuel Venisse
With your logs, it seems to be there, because the prepare goal run 'mvn clean integration-test --no-plugin-updates' on it but the release plugin can't modify it, maybe it is read only. What is your release plugin version? Emmanuel Bruno Dumant a écrit : Hi, I have a problem with the

Re: [m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Emmanuel Venisse
can we have the full log? Antonio Petrelli a écrit : Hi all! I wanted to prepare the release for Tiles, but when it tries to create the site, it fails with a dependency error [1]. The problem is that the tiles-parent pom contains the configuration for the Javadoc plugin that aggregates the

RE: Release with perforce and multi-module: parent pom cannot be updated

2007-04-03 Thread Bruno Dumant
Yes the file is here, but it is read-only. At the start of the process, the file is in read-write mode (it is checked out, i.e., editable for perforce). The release-prepare version: - modifies the file (to set the appropriate version), - submits it (which makes it read-only)

Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread Andy Signer
Hi I had problems with the assembly plugin as well. Then I realized that the documentation on the web is related to the latest snapshot. So, give the latest snapshot a try. Hopefully it will work for you. Cheers Andy 2007/4/3, cuberoot [EMAIL PROTECTED]: Hi Is it possible to combine

Maven : radius proxy authentication

2007-04-03 Thread DELUNE Sébastien
Hello, In my society, we use a radius proxy to access web sites. How to configure maven in order to authenticate correctly? My configuration looks like this : proxies proxy activetrue/active protocolhttp/protocol hostmysocietyproxy/host port1234/port

Specifying working directory

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
Is there a way in continuum to specify a working directory at project level rather than globally??

Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread cuberoot
Hi Thanks for the reply. I have downloaded the 2.2-SNAPSHOT and am about to start playing with it. I think its terrible that the maven-assembly site displays the snaphsot docs. Thanks again. Andy Signer wrote: Hi I had problems with the assembly plugin as well. Then I realized that the

Re: Specifying working directory

2007-04-03 Thread Emmanuel Venisse
what do you mean? Vaidya, Raghavendra (GE Infra) a écrit : Is there a way in continuum to specify a working directory at project level rather than globally??

Re: Specifying working directory

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
What I mean is there is a way to set the directory where the code is checked out. This can be done at continuum level and not project level. My question is how do I set the checkout directory at project level. -- Sent from my BlackBerry Wireless Device -Original

Re: Specifying working directory

2007-04-03 Thread Emmanuel Venisse
no you can't. Why do you want to define it at project level? Vaidya, Raghavendra (GE Infra) a écrit : What I mean is there is a way to set the directory where the code is checked out. This can be done at continuum level and not project level. My question is how do I set the checkout directory at

Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread cuberoot
Does anybody know when the 2.2 release will be available? cuberoot wrote: Hi Thanks for the reply. I have downloaded the 2.2-SNAPSHOT and am about to start playing with it. I think its terrible that the maven-assembly site displays the snaphsot docs. Thanks again. Andy Signer

Re: Specifying working directory

2007-04-03 Thread Vaidya, Raghavendra \(GE Infra\)
Because my build(ant) scripts use relative directories to locate source directories and do the build. -- Sent from my BlackBerry Wireless Device -Original Message- From: Emmanuel Venisse To: continuum-users@maven.apache.org Sent: Tue Apr 03 17:30:48 2007

Re: Combine/assemble multiple dependencies using maven

2007-04-03 Thread Andy Signer
Hi I don't know what the best practise is for releasing snapshot documentation. But i struggled over this issue as well and it was quite time-consuming. To be certain always check the Version tag in the top left corner of the website. Cheers Andy 2007/4/3, cuberoot [EMAIL PROTECTED]: Hi

Re: [m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Antonio Petrelli
2007/4/3, Emmanuel Venisse [EMAIL PROTECTED]: can we have the full log? It's a bit difficult right now, since the builds are now in the staging repository and the build terminates successfully for this reason. I know that you cannot help without the log. So the next time we (in Tiles) will

RE: Dependency version ignored

2007-04-03 Thread Brian E. Fox
Can you give an example? -Original Message- From: Ecker Severin [mailto:[EMAIL PROTECTED] Sent: Monday, April 02, 2007 7:59 AM To: Maven Users List Subject: AW: Dependency version ignored Hi, I've just tried maven 2.0.6 with and without dependencyManagement, exclusions, no change.

AW: Dependency version ignored

2007-04-03 Thread Ecker Severin
Hi, I've stripped some dependencies and all the repositories to keep the pom as simple and short as possible: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

maven-clover-plugin not instrumenting test classes

2007-04-03 Thread raju
Hi, I am trying to instrument code using maven-clover-plugin.But it seems to instrument code only under src/main and not under src/test even though i am specifying filter using includesincludesrc/test/java/**/*IntegrationTest.java/include/includes. I wanted to package the instrumented test

regression using maven 2.0.6

2007-04-03 Thread nicolas de loof
I've upgraded to maven 2.0.6 and my build fails : [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal '

Re: regression using maven 2.0.6

2007-04-03 Thread nicolas de loof
mvn -X gives more infos : Caused by: java.lang.NoClassDefFoundError: org/apache/tools/ant/PropertyHelper at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) What version of Ant is provided by maven 2.0.6 ? Or maybe in 2.0.6 plugin classpath doens't include some

Checking out a particular CVS tag

2007-04-03 Thread Gonzalo Vásquez Sáez
Which is the correct syntax for extracting a particular named tag version of a project from a CVS repository? Regards, Gonzalo.-

Diff like pluigin

2007-04-03 Thread Gonzalo Vásquez Sáez
Is there kind of goal / plugin that will allow one two compare two different source code versions of a particular project, and generate output with the listing of the files changed? I need this to be run just before every build, to keep track of changes between one deployment and another.

Re: Diff like pluigin

2007-04-03 Thread nicolas de loof
the changelog plugin ( http://maven.apache.org/plugins/maven-changelog-plugin/changelog-mojo.html) can produce a log starting from a specified tag the scm plugin (http://maven.apache.org/scm/plugins/changelog-mojo.html) can also dump a changelog to console based on dates. I never used them

Re: integrate JavaScript dev tools in maven build ?

2007-04-03 Thread nicolas de loof
I also discovered Dojo has a javascript compressor that may be embedded as maven plugin http://alex.dojotoolkit.org/shrinksafe/ An alternative is JSMin that has a Java version ( http://inconspicuous.org/projects/jsmin/JSMin.java) 2007/4/3, nicolas de loof [EMAIL PROTECTED]: I just

Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread Zhou, Wei
Hi, I need to build the jar file before my test code can be run. But Maven 2 only packages the jar file after the test code is run successfully. I have tried to play with my pom file to move the maven-jar-plugin into an earlier phase. But I have no luck. Does anyone know how to build a jar

Re: Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread nicolas de loof
Why don't you create the jar in another module, and set it as dependency ? 2007/4/3, Zhou, Wei [EMAIL PROTECTED]: Hi, I need to build the jar file before my test code can be run. But Maven 2 only packages the jar file after the test code is run successfully. I have tried to play with my pom

Deployment on IBM WebSphere Application Server

2007-04-03 Thread Gonzalo Vásquez Sáez
Maybe this is a bit off-topic, but maybe not, is there any plugin that would automatize application deployment on an application server? Particularly on IBM Websphere Application Server 6.0 (WAS). Regards, Gonzalo.-

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Wayne Fay
I don't use Websphere, but Cargo is a tool which helps deploy applications into various app servers, and it has an M2 plugin you might find useful. http://cargo.codehaus.org/ Wayne On 4/3/07, Gonzalo Vásquez Sáez [EMAIL PROTECTED] wrote: Maybe this is a bit off-topic, but maybe not, is there

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Jerome Lacoste
On 4/3/07, Wayne Fay [EMAIL PROTECTED] wrote: I don't use Websphere, but Cargo is a tool which helps deploy applications into various app servers, and it has an M2 plugin you might find useful. http://cargo.codehaus.org/ That's indeed one way of doing, but to my knowledge cargo doesn't yet

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Antonio Petrelli
2007/4/3, Jerome Lacoste [EMAIL PROTECTED]: On 4/3/07, Wayne Fay [EMAIL PROTECTED] wrote: I don't use Websphere, but Cargo is a tool which helps deploy applications into various app servers, and it has an M2 plugin you might find useful. http://cargo.codehaus.org/ That's indeed one way of

Call Ant Tasks from Maven2

2007-04-03 Thread Nagesh, Srinivas \(IS Consultant\)
Hey, I am using Maven2 to call an ant task but somehow I don't see the task doing its job here. I am a newbie to these build tools. artifactIdmaven-antrun-plugin/artifactId executions execution phaseinstall/phase configuration tasks

programmatically remove exclusion for certain builds?

2007-04-03 Thread ertnutler
i'm trying to enforce a separation of concerns during my compile phase which needs to be removed during the package phase. for example, if a developer introduces a dependency on the persistence layer from the web layer, the build should not compile. however, since we're currently deploying to a

[m2] Multiple ear generation

2007-04-03 Thread Trevor Torrez
I need a way to load an arbitrary number of the same application EAR to a single websphere instance. The reason behind this is that during the test phases of software development several testers need to run the application cuncurrently without stepping on each other's toes. However, if an

Include Common JSPs in multiple wars

2007-04-03 Thread Doug Tanner
How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files in WEB-INF/classes. Is there another tag that I am

Re: build failures, warnings and continuum

2007-04-03 Thread Erik Ruisma
Thanks for your proposal. That's what we did. However this seems to create some new problems. So what we have are two build definitions for one project: one launching the tests, one creating and deploying the site. We have scheduled both builds to run at the same moment. BUT only one actually

Re: Checking out a particular CVS tag

2007-04-03 Thread Roland Asmann
cvs -d ${CONNECTION} checkout -r ${TAG_NAME} ${PROJECT} On Tuesday 03 April 2007 15:36, Gonzalo Vásquez Sáez wrote: Which is the correct syntax for extracting a particular named tag version of a project from a CVS repository? Regards, Gonzalo.- -- Roland Asmann CFC Informationssysteme

Re: Diff like pluigin

2007-04-03 Thread Roland Asmann
Or for REAL diff-like output, check the scm-plugin, but use the goal 'diff' (http://maven.apache.org/scm/plugins/diff-mojo.html). On Tuesday 03 April 2007 15:45, nicolas de loof wrote: the changelog plugin ( http://maven.apache.org/plugins/maven-changelog-plugin/changelog-mojo.html) can

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Gonzalo Vásquez Sáez
According to the hints provided on your replies, I downloaded the WebSphere cargo-contrib from: https://svn.codehaus.org/cargo-contrib/websphere/trunk In it's pom.xml file it included a parent reference to: groupIdorg.codehaus.cargo/groupId

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Antonio Petrelli
2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]: Any ideas? Does anyone know a repository where I can get the 0.9-SNAPSHOTversion, just to check if this is working on it? Try asking the Cargo team ;-) Antonio - To

Re: Call Ant Tasks from Maven2

2007-04-03 Thread Raphaël Piéroni
Hi, Here what i have (And it works fine using maven 2.0.5) Raphaël project ... build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId dependencies dependency

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Gonzalo Vásquez Sáez
I've just implemented the abstract methods the compiler was complaining about, returning my proper WAS installation directory for the getWasHome() method and just null for getWasMQHome() method, but I don't know were do I configure the properties needed, particularly the home, one. On 03/04/07,

Re: [m2][release-plugin] Release fails with aggregate Javadocs

2007-04-03 Thread Antonio Petrelli
2007/4/3, Antonio Petrelli [EMAIL PROTECTED]: The problem is that the tiles-parent pom contains the configuration for the Javadoc plugin that aggregates the Javadoc of its modules. It seems that is a problem with the Javadoc plugin: http://jira.codehaus.org/browse/MJAVADOC-116 I'll add a

Re: Deployment on IBM WebSphere Application Server

2007-04-03 Thread Antonio Petrelli
2007/4/3, Gonzalo Vásquez Sáez [EMAIL PROTECTED]: I've just implemented the abstract methods the compiler was complaining about, returning my proper WAS installation directory for the getWasHome() method and just null for getWasMQHome() method, but I don't know were do I configure the properties

Re: maven-antrun-plugin: Need phase indenedence and/or conditional processing

2007-04-03 Thread vetalok
Wayne Fay, thanks a million! I had the problem like this and could not find the solution - I just want to turn off some plugin and this is was very difficult to find the solution... Your advice is very useful! It saved me a lot of time. Thanks! Napoleon Esmundo Ramirez-2 wrote: Hello,

Re: Configure buildnumber and Subversion/Subclipse

2007-04-03 Thread Julian Wood
Hi Pankaj, I don't think there is a dependency problem - maven would have reported any such error. That part all looks fine to me. It's still just not finding your scm, as you surmise. Maybe someone who is using an scm configured like yours could pipe up? Did you try doing a mvn

using properties in settings.xml

2007-04-03 Thread Jan Delannoy
Hi all, I'm having some problems using properties in the settings.xml. I'm trying to use properties in the username and password elements of a server declaration, and then getting the values for these properties from a profile in my local settings.xml. So this would be (part of) my Maven

Dependency problem

2007-04-03 Thread raghurajan . x . gurunathan
Hi All I use maven-2.0.4 and having this, problem i have defined my pom.xml as dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.0.5/version /dependency but when i run the mvn deploy its also including hibernate-3.0, eventhough its getting the proper version

Re: Include Common JSPs in multiple wars

2007-04-03 Thread Tomasz Pik
On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote: How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files

Surefire TestNG troubles

2007-04-03 Thread Wayne Fay
Wondering who is using TestNG successfully on the list?? I've recently been working on a new EJB3/JPA app by using Hibernate's CaveatEmptor JPA example as the base. Everything works great in Ant but I'm trying to make it work in Maven2... Here's the failure I'm getting right this minute:

Re: Using maven and testng

2007-04-03 Thread Wayne Fay
I've run into exactly the same problem... Did you ever get any resolution to this, Lee? Wayne On 11/22/06, Lee Bieber [EMAIL PROTECTED] wrote: I'm trying to get testng working with maven. I've configured my pom.xml per the documentation .. dependency

Re: Surefire TestNG troubles

2007-04-03 Thread Wayne Fay
I got a little further (still not running perfectly) by adding the following to my pom: pluginRepositories pluginRepository idhowardlewisship/id urlhttp://howardlewisship.com/repository/url /pluginRepository pluginRepository idmaven-snapshots/id

RE: Include Common JSPs in multiple wars

2007-04-03 Thread Doug Tanner
Directory Structure: Webapps -common -src -main -webapp -[Bunch of JSPs] -pom.xml -module1 -src -main -java -webapp -[Bunch of JSPs] -pom.xml -module2 -src -main -java -webapp -[Bunch

RE: Include Common JSPs in multiple wars

2007-04-03 Thread Doug Tanner
Problem solved. Solution: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource !-- this is relative to the pom.xml directory --

Configuring Log4J Differently within Maven for JUnit Testing and Production

2007-04-03 Thread Mark Hansen
I use Log4J and build my applications with Maven2. I have a log4j.xml config file in the src/main/resources directory so that Maven2 builds it into the JAR with my application. However, I have a different log4j.xml that I want to use with the JUnit tests that run as part of my Maven build

Re: Include Common JSPs in multiple wars

2007-04-03 Thread Mark Hobson
A war overlay would be the cleanest solution: http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Mark On 03/04/07, Doug Tanner [EMAIL PROTECTED] wrote: Problem solved. Solution: plugin groupIdorg.apache.maven.plugins/groupId

Using containing project's classpath within mojo...

2007-04-03 Thread James Carman
All, I am developing a simple mojo which needs to access classes defined within the project in which it is used. But, they don't seem to be visible. I am writing a mojo that can execute a loader (loads data into our database) object. It takes a parameter that tells which loader class to use.

Re: Dependency problem

2007-04-03 Thread franz see
Good day to you, Raghu , Possible explanations to why that is happening: 1. hibernate-3.0 was already there when you ran your maven command ( do a mvn clean first to be sure ) 2. The binaries hibernate-3.0 and hibernate-3.0.5 does not have the same groupId and artifactId. 3. It was added there

How to use war overlay approach with Maven 1.0??? (was: Include Common JSPs in multiple wars)

2007-04-03 Thread Thierry Lach
Subject says it all - does anyone have any examples of how this might be accomplished using Maven 1.0 ? On 4/3/07, Mark Hobson [EMAIL PROTECTED] wrote: A war overlay would be the cleanest solution: http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Mark

Re: Is it possible to execute maven-jar-plugin in a different lifecycle phase than package phase?

2007-04-03 Thread franz see
Good day to you, Wei, You may want to bind your post-packaging tests in the integration-test phase. Cheers, Franz Zhou, Wei wrote: Hi, I need to build the jar file before my test code can be run. But Maven 2 only packages the jar file after the test code is run successfully. I

Re: Using containing project's classpath within mojo...

2007-04-03 Thread franz see
Good day to you, James, Not sure how you're instantiating those classes. Anyway, try adding those classes in your plugin's dependency ( see [1] ). And if you need the path to those binaries, see Getting dependency artifact path of [2]. Cheers, Franz [1]

Maven archetype

2007-04-03 Thread Marouane Amraoui
Hi ; I want to generate my projet structure : MyProject-Appli : -- src -- java -- com.omni.application -- ap1 -- manager -- services -- valueobject -- ap 2

Re: Using containing project's classpath within mojo...

2007-04-03 Thread James Carman
Franz, Thanks for replying. Let me explain it a bit more. I was trying to gloss over things a bit. Basically, I'm using Spring to instantiate the bean: public class RunLoaderMojo extends AbstractMojo { /** * @parameter property=loaderBean expression=${loaderBean} * @required

Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression=${project.runtimeClasspathElements} * @required * @readonly */ private List classpathElements; I think in this case, you would

Re: Using containing project's classpath within mojo...

2007-04-03 Thread James Carman
Johan, What kind of objects should I expect in that list? James p.s. Are you on every mailing list? :-) On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * *

Re: Surefire TestNG troubles

2007-04-03 Thread Mark Derricutt
Due to a change in TestNG's API versions later than 5.1 no longer work with the current surefire release. This is currently being worked on by the TestNG developers and hopefully won't be too long in coming. For now - if you need any changes from 5.2+ your best course of action would be using

Re: Specifying working directory

2007-04-03 Thread Eric Pugh
So, What we have at one client is a build_config.xml that is imported by every project. A project may define: my.requiredproject.dir = ../myrequiredproject but in Continuum's build_config.xml we do: my.requiredproject.dir = ../52 and that fixes things Eric On Apr 3, 2007, at 8:07 AM,

Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
Sorry, forget exactly what it is but if you can wait 12 hours I can look it up ;) Found it in some of the maven APIs if that helps. And no, not on every list ;) Johan I forget what it is - not at work an James Carman wrote: Johan, What kind of objects should I expect in that list?

Ant Script from Maven

2007-04-03 Thread Great Man
Note: forwarded message attached. - Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games.---BeginMessage--- I have one ant script and I wanna call it from my maven pom. Is this possible ? Any pointer is appreciated. My maven

Re: [MAVEN][2.0.5] JXR files not included in site report when using a custom build directory

2007-04-03 Thread Dennis Lundberg
Ephemeris Lappis wrote: Hello. The pom.xml is attached. I give you only the main project file, as it holds the directory configuration for all the modules. In this version, with the projectbuilddirectory set, the JXR aggregation fails. If this value is removed, it works... Hum... it looks like a

Re: JXR versus javadoc linking

2007-04-03 Thread Dennis Lundberg
Kathryn Huxtable wrote: I think I see part of the problem. The path to the FilterHandler source reference file on my development system is /Users/huxtable/dev/workspace/shibshimfilter/target/site/xref/org/kathrynhux table/middleware/shibshim/filter/FilterHandler.html It looks as if the

Re: Ant Script from Maven

2007-04-03 Thread Wayne Fay
This is very well documented on the Maven site: http://maven.apache.org/guides/mini/guide-using-ant.html Wayne On 4/3/07, Great Man [EMAIL PROTECTED] wrote: Note: forwarded message attached. Bored stiff? Loosen up... Download and play hundreds of games for

Clover plugin: docs svn are not docs in site.

2007-04-03 Thread Marcos Silva Pereira
Hello, I take a look at clover plugin and I see that documentation in svn are different of documention in site. I also made some little changes in docs (to add an example about method filters using contextFilters parameter). How can I apply a patch to this plugin? Kind Regards, -- Marcos Silva

Re: build failures, warnings and continuum

2007-04-03 Thread David Roussel
I take it you've got them to run ok separately? Do then run ok when not scheduled together? Is this in continuum 1.0.3? On 3 Apr 2007, at 16:28, Erik Ruisma wrote: Thanks for your proposal. That's what we did. However this seems to create some new problems. So what we have are two build

Classloader issue?

2007-04-03 Thread James CE Johnson
I'm writting a MoJo that uses a utility Iwhich, in turn, uses Spring. When I invoke the utility (with the correct classpath) from the command line everything works fine. When I invoke the MoJo from Eclipse everything still works fine. However, when I invoke the MoJo from mvn it tells me:

Re: Clover plugin: docs svn are not docs in site.

2007-04-03 Thread Dennis Lundberg
Marcos Silva Pereira wrote: Hello, I take a look at clover plugin and I see that documentation in svn are different of documention in site. I also made some little changes in docs (to add an example about method filters using contextFilters parameter). How can I apply a patch to this plugin?

Re: Using containing project's classpath within mojo...

2007-04-03 Thread James CE Johnson
James, Johan, Please copy me on this if it goes off-list. I'm trying to write a MoJo that uses a utility that uses Spring and I'm getting what I think is a classloader issue. If you solve it for your case I suspect I can use the same solution for my own issue: http://rafb.net/p/fOEW5I52.html

Attached artifacts

2007-04-03 Thread Paul Gier
When working on a maven plugin, I noticed that two attached artifacts can have the same name and overwrite each other when they are deployed. Is this by design? Maybe the artifacts attached to a project should be a set instead of a list, and a warning should be generated when one artifact

Re: Diff like pluigin

2007-04-03 Thread Gonzalo Vásquez Sáez
I finally ended up using the diff mojo from the scm plugin, as referenced by Roland. The documentation seems to lack a bit of detail, could anyone please tell me how to format diff's output? All I need to know is, which files were changed (added, deleted or modified), not the complete line

RE: Call Ant Tasks from Maven2

2007-04-03 Thread Nagesh, Srinivas \(IS Consultant\)
I tried the following plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId dependencies dependency groupIdant/groupId artifactIdant-antlr/artifactId

Re: JXR versus javadoc linking

2007-04-03 Thread Kathryn Huxtable
Yes, that took care of it. When will this likely be released? -K On 4/3/07 3:03 PM, Dennis Lundberg [EMAIL PROTECTED] wrote: Kathryn Huxtable wrote: I think I see part of the problem. The path to the FilterHandler source reference file on my development system is

  1   2   >