How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread Sahoo
Hi, I have an unusual requirement where I want to replace maven-compiler-plugin by another compiler-plugin. Is there a way I can do this? My situation is like this: I want to use hk2-maven-plugin [1] as the compiler plugin. This plugin automatically executes if I change my project's packaging

Re: Filtering Javadoc overview.html and package.html

2008-03-12 Thread Stephen Connolly
You need to have the filtering bound to the generate-sources phase of the build lifecycle. AFAIK filtering is bound to a phase after the phase that javadoc requires, so it will not get invoked. I would put your javadocs in a third folder: src/main/javadoc I would bind an additional execution of

How to use maven-bundle-plugin for packaging type other than bundle or jar

2008-03-12 Thread Sahoo
I want to use maven-bundle-plugin in a project whose packaging type is neither jar nor bundle. Is it still possible? I configured my pom.xml like this, but it does not work: plugin artifactIdmaven-jar-plugin/artifactId configuration

Re: How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread Stephen Connolly
I think you are out of luck. What is the other plugin that breaks, and does the hk2-jar packaging produce artifacts that have the type hk2-jar or do they have the type jar? I suspect that this bold 3rd plugin is expecting artifacts of type jar and you are producing artifacts of type hk2-jar which

Re: Deploy to multiple oc4j instances

2008-03-12 Thread Stephen Connolly
On Tue, Mar 11, 2008 at 10:58 PM, Chris Russell [EMAIL PROTECTED] wrote: Hello, I've had good success deploying my application to a single oc4j instance using 'mvn install'. Sounds like you're using a sledge-hammer to crack a peanut. There are at least three lifecycles in maven: build,

Re: How to use maven-bundle-plugin for packaging type other than bundle or jar

2008-03-12 Thread VUB Stefan Seidel
The doc suggests supportedProjectTypesjar,bundle,hk2-jar/supportedProjectTypes or maybe supportedProjectTypes supportedProjectTypehk2-jar/supportedProjectType supportedProjectTypejar/supportedProjectType supportedProjectTypebundle/supportedProjectType /supportedProjectTypes Stefan Sahoo

Re: How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread VUB Stefan Seidel
Try build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration excludes**/*.*/excludes /configuration /plugin /plugins /build or something similar. Stefan Sahoo wrote: Hi, I have an unusual requirement where I want to replace maven-compiler-plugin by another

Re: How to use maven-bundle-plugin for packaging type other than bundle or jar

2008-03-12 Thread Sahoo
Thank you, Stefan. That was it. It was my lack of knowledge of how to set List type of properties in pom.xml. I wish Maven could tell me that there is no configuration property called supportedProjectType in maven-bundle-plugin. Secondly, maven-bundle-plugin issues a DEBUG message if the

Re: How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread Sahoo
I just learned that I was not configuring the other plugin correctly with the help I obtained from Felix users forum. So, my issue is resolved. Thanks, Sahoo Sahoo wrote: The other plugin that breaks is maven-bundle-plugin (http://felix.apache.org/site/maven-bundle-plugin-bnd.html). If you

Re: How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread Sahoo
The other plugin that breaks is maven-bundle-plugin (http://felix.apache.org/site/maven-bundle-plugin-bnd.html). If you search their page, you shall find that it mentions it has supportedProjectTypes defaults to jar,bundle. Thanks, Sahoo Stephen Connolly wrote: I think you are out of luck.

Re: Problem with snapshots

2008-03-12 Thread Papapara Tudu
I have identified some more things in my confiaguration, maybe someone will have any other ideas as to what could be wrong? 1. When I deploy my snapshot onto my local repository with this command: mvn install:install-file -Dfile=Project.jar -DgroupId=com.company.project -DartifactId=project

change name of a jar when budnling in war

2008-03-12 Thread David Delbecq
Hello, we are maven2-izing a maven 1 project here. In that project, we use slide. As you can see from maven repo here: http://repo1.maven.org/maven2/slide/jaas/2.1M1/ the various jar part of maven are quite anonymous. We would like, when maven builds the package, that those war be stored

Re: How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread Sahoo
Yes, your suggestion works, only thing is there is a slight modification needed. I had to write: excludesexclude**/*.*/exclude/excludes , otherwise mvn would complain that a String can't be assigned to a Set type. Thanks, Sahoo VUB Stefan Seidel wrote: Try build plugins plugin

Get List Of All Artifact Versions

2008-03-12 Thread mvnjacky
Hello, i am looking for a way to get a detailed list of all artifacts used in my project. This detailed list should include all versions for a given artifact. The list should also include the description of the artifacts, the dependencies, the group id and so on. This list is a kind of Report

Cleanup after failed integration-test phase?

2008-03-12 Thread jimpo
My test setup is such that before integration-test phase I need to start server A and stop server B. After integration-test phase I need to stop server A and start server B again. Now I have done this by adding executions and binding them to pre-integration-test and post-integration-test phases:

Re: scm plugin

2008-03-12 Thread Dooing
Subversion is the default client (svn), the default server(svnserve) and the default tools (svnadmin, svnlook) in one package. There is no server edition. (Or maybe the apache mod could be called the server edition. So subversion is your client. Tortoise is just a GUI, with the svn

Version Range Specification

2008-03-12 Thread Dooing
Hi, I've got a problem - one of my projects is using openlazlo 3.2 - which stinks, as they MANUALLY changed dependencies, without any documentation about this, and they don't even provide any maven poms :-( However, we have to use it, and I am trying to get it to run using Maven 2. For

RE: Please help - Injecting a custom plugin parameter

2008-03-12 Thread carioca
Hi Brian, Thank you for replying. I tried to do what you said, but still with no success. That's ok cause in the mean time I found a better solution to my challenge. However I have an improvement suggestion to the maven team to make an easy way to define properties in the plugin's pom that can

Forcing the execution of a phase before a goal

2008-03-12 Thread carioca
Hi, In my plugin I have a goal that is invoked manually: mvn os:my-goal The goal is invoked from the master project directory of a multi module project. I would like to force the compile phase before my goal is invoked. It should be like invoking the following command line: mvn compile

assembly beta 2.2

2008-03-12 Thread James Clinton
Having problems with sub-modules being included. Followed this example but my child modules are simply ignored? http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodu le/module-binary-inclusion-simple.html Has anyone had this working successful? (descriptor snippet

Re: maven-eclipse-plugin 2.4 versioned projects

2008-03-12 Thread qnob
Hello! I've got RAD7, maven-eclipse-plugin 2.5-Snapshot and m2eclipse 0.0.12. I've been trying for 2 frustrating days to integrate those tools together without success. Did any body of you guys succeed this task? I reckon that your are on the same task as I am. More precisely, there the

Re: Forcing the execution of a phase before a goal

2008-03-12 Thread Stephen Connolly
I think you need an annotation something like @requires-phase=compile I just cannot remember the exact annotation you require. Also don't do this in conjunction with @aggregator! -Stephen On Wed, Mar 12, 2008 at 3:52 PM, carioca [EMAIL PROTECTED] wrote: Hi, In my plugin I have a goal that

Re: maven-eclipse-plugin 2.4 versioned projects

2008-03-12 Thread qnob
Hi again, here my plugin configuration. Actually, it's the example given by the post of Salman. I've added new version of the eclipse plugin and uncommented a part I didn't understand if need it. Though, I tried versioned projects too. : plugins plugin

Re: maven2 jira plugin?

2008-03-12 Thread Rémy Sanlaville
Hi Dennis, What about MCHANGES-78 ? Any chance to see it in version 2.0 ? Rémy

Re: maven-eclipse-plugin 2.4 versioned projects

2008-03-12 Thread Salman Moghal
Hello there: I've been using maven-eclipse-plugin v2.4 (a customized version that I compiled for version'ed project support). It's been working well. Can you share your EAR's and WAR/JAR pom.xml? I'm not sure why you are having this issue. One thing to be careful, for RAD/Eclipse and WTP

plugin configured across all maven 2 modules

2008-03-12 Thread EJ Ciramella
Is there a way to configure a plugin across every module without updating a million poms? We'd like to implement some of our validation plugins we wrote for all poms and don't want to give people the option to NOT implement them.

RE: plugin configured across all maven 2 modules

2008-03-12 Thread Brian E. Fox
All your projects should derive from an internal corporate pom that acts as your internal super-pom in a sense. Then you can put things like this that you want across your organization. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 2:28

Maven1 Project.xml. Does it have a DTD? Newbie question

2008-03-12 Thread JG Flowers
Hi folks, I'm using Maven 1 to look at XDoclet. It falls over with an error parsing an id node in the contributor section C:\Tools\XDoclet\xdoclet-all\xdoclet\project.xml' [exec] ParseError at [row,col]:[295,17] [exec] Message: Unrecognised tag: 'id' So it begs the question is there a

RE: Version Range Specification

2008-03-12 Thread Brian E. Fox
Perhaps some other dependency wants another version? Try putting it back without the brackets and run dependency:tree to see what you get. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 11:14 AM To: users@maven.apache.org Subject:

Re: RE: Version Range Specification

2008-03-12 Thread Dooing
Perhaps some other dependency wants another version? Try putting it back without the brackets and run dependency:tree to see what you get. Good point, will check that asap (when at work) - but even if - if I tell Maven that it MUST use Version xy, shouldn't it behave as it was told?! Also,

plugin dependencies question

2008-03-12 Thread Eric Miles
All, I have a plugin I wrote, that use framework FooBar. This plugin will work with FooBar version 1.1 through 1.8. I have numerous maven projects that use my plugin and all use different versions of FooBar. The version of FooBar is important to each project as compilation is performed

Re: Maven1 Project.xml. Does it have a DTD? Newbie question

2008-03-12 Thread Lukas Theussl
The maven 1 pom is explained here [1] and there is an xsd available there [2]. As you see, id is not a valid tag for a contributor (the developer id is an scm id, so it's pointless for a contributor), and contrary to m1.0, the parser in maven 1.1 enforces the rules. HTH, -Lukas [1]

Re: plugin dependencies question

2008-03-12 Thread Wayne Fay
One immediate thought: make a version of your plugin that corresponds with each version of FooBar. FooBar 1.1 = foobar-maven-plugin v1.1.0 (bug fixes will bump the .0) FooBar 1.2 = foobar-maven-plugin v1.2.0 etc Then in your pom, lock down the foobar-m-p version with version[1.2]/version. Wayne

Re: plugin dependencies question

2008-03-12 Thread Wayne Fay
Alternatively, write your plugin such that it can use any version 1.1 through 1.8 and specify the version with a configuration element. Your plugin will need a bit more intelligence to pull this off. Wayne On 3/12/08, Wayne Fay [EMAIL PROTECTED] wrote: One immediate thought: make a version of

Re: plugin configured across all maven 2 modules

2008-03-12 Thread Wayne Fay
Spot on. BUT realize that you can't just add this configuration there and instantly expect all projects to pick it up... You'll need to go into your parents (one level down from the updated corporate pom) and adjust the parent version, so they'll pick up the change. And that will probably require

Best Practice for IDL, WSDL, etc.?

2008-03-12 Thread SingleShot
We have a large number of language-independent interface files, mostly IDL and WSDL. We use these files to generate java, both for the client side and server side. What's different about these kinds of source files from the traditional .java source file is that they generate two sets of output

Re: Best Practice for IDL, WSDL, etc.?

2008-03-12 Thread Stephen Connolly
have the WSDL in it's own module and then have the server and client depend on the WSDL On Wed, Mar 12, 2008 at 9:21 PM, SingleShot [EMAIL PROTECTED] wrote: We have a large number of language-independent interface files, mostly IDL and WSDL. We use these files to generate java, both for the

RE: plugin configured across all maven 2 modules

2008-03-12 Thread Brian E. Fox
I tried snapshot parents once because I thought it was a good idea so I wouldn't have to adjust all the parent poms. Take it from experience...don't do that. Use release versions and only put the bare minimum in the top so it doesn't change often. -Original Message- From: Wayne Fay

Re: Best Practice for IDL, WSDL, etc.?

2008-03-12 Thread nicolas de loof
Option 4 : put the IDL / WSDL at upper common level (parent-pom/src/main/wsdl) and run the code generator with required options to build either server / client jar where the code is used. Avoid dependency on generated-code-only jars. Nicolas. 2008/3/12, SingleShot [EMAIL PROTECTED]: We have

RE: How to run a script from a pom.xml file?

2008-03-12 Thread Tawfik, Sameh E
Thanks Olivier. Sameh -Original Message- From: Olivier Dehon [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 6:03 PM To: Maven Users List Subject: Re: How to run a script from a pom.xml file? Look for the exec plugin. -Olivier On Tue, 2008-03-11 at 19:45 -0500, Tawfik,

RE: plugin dependencies question

2008-03-12 Thread Brian E. Fox
Yes. Compile against foobar normally. The users can specify the dependency they want in the plugin configuration block. This is working in 2.0.9, you can see http://jira.codehaus.org/browse/MNG-3426 and http://jira.codehaus.org/browse/MNG-2972 for more information. In this way you can say your

Adding goals to pom.xml

2008-03-12 Thread david delbecq
Hello, still in process of upgrading to maven2 here :) Most of the work is taking good shape, thanks to informations on this ML. I have a question regarding a few of our goals. We have, for a war project, added a few goals that quickly do a copy of a part of webapp to tomcat (instead of

RE: RE: Version Range Specification

2008-03-12 Thread Brian E. Fox
This may be a bug where it can't satisfy the locked down version for some reason and the error isn't telling you the right thing. Lets work through it to see why and then maybe a jira will come from it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

RE: Adding goals to pom.xml

2008-03-12 Thread Brian E. Fox
You can't create new targets in Maven2 without making a plugin. The targets maven2 understands are either phase or plugin:goal -Original Message- From: david delbecq [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 6:12 PM To: Maven Users List Subject: Adding goals to pom.xml

RE: plugin configured across all maven 2 modules

2008-03-12 Thread Brian E. Fox
Currently, yes. You could play games with properties and stuff, but then you get outside of repeatability. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 6:16 PM To: Maven Users List; Maven Users List Subject: RE: plugin configured across

RE: plugin configured across all maven 2 modules

2008-03-12 Thread EJ Ciramella
But then if the plugin version changes, then we have to go through all the other poms that have a parent pom version and update them as well. Seems like an awful lot of work... Is this truly the only way? -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Wed

Re: maven2 jira plugin?

2008-03-12 Thread Dennis Lundberg
Rémy Sanlaville wrote: Hi Dennis, What about MCHANGES-78 ? Any chance to see it in version 2.0 ? Rémy No, it has been closed as Won't Fix. -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Is it possible to have multiple changes.xml files?

2008-03-12 Thread Gunnar Boström
Hi, We use the changes plugin and it works fine. Now I would like to have more than one (at the moment 3) changes.xml file and create 3 separate reports. Is this possible and if it is can you show the xml for it? The reason for having 3 is that our system we are working with have 3 separate

Re: plugin dependencies question

2008-03-12 Thread Wayne Fay
That's new in 2.0.9. Well, not new, but now it works. ;-) Wayne On 3/12/08, Brian E. Fox [EMAIL PROTECTED] wrote: Yes. Compile against foobar normally. The users can specify the dependency they want in the plugin configuration block. This is working in 2.0.9, you can see

RE: Is it possible to have multiple changes.xml files?

2008-03-12 Thread Brian E. Fox
Each team must have their own module right? You could have each module generate its own changes report. -Original Message- From: Gunnar Boström [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 7:11 PM To: users@maven.apache.org Subject: Is it possible to have multiple

RE: plugin dependencies question

2008-03-12 Thread Brian E. Fox
Handy, isn't it? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 7:18 PM To: Maven Users List Subject: Re: plugin dependencies question That's new in 2.0.9. Well, not new, but now it works. ;-) Wayne On 3/12/08, Brian E. Fox [EMAIL

RE: How to run a script from a pom.xml file?

2008-03-12 Thread Tawfik, Sameh E
Thanks Wayne. I tried the exe plugin and it did what I was looking for, but I noticed it repeated the execution few times and not just one time as needed! I've a Maven project that consists of a number of Maven modules, and I put the following code in the build block of the Parent pom.xml:

Re: How to run a script from a pom.xml file?

2008-03-12 Thread Wendy Smoak
On Wed, Mar 12, 2008 at 4:25 PM, Tawfik, Sameh E [EMAIL PROTECTED] wrote: I tried the exe plugin and it did what I was looking for, but I noticed it repeated the execution few times and not just one time as needed! ... Is there is a way where I can restrict the execution of this exe to just

RE: How to run a script from a pom.xml file?

2008-03-12 Thread Brian E. Fox
Fyi, the inherited in the execution block does not work, but it does work in the plugin block. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 7:55 PM To: Maven Users List Subject: Re: How to run a script from a pom.xml file? On Wed, Mar

Re: plugin configured across all maven 2 modules

2008-03-12 Thread Martin Gainty
Which parent properties would you want to propagate??? Martin - Original Message - From: Brian E. Fox [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Wednesday, March 12, 2008 5:19 PM Subject: RE: plugin configured across all maven 2 modules Currently, yes. You

RE: plugin dependencies question

2008-03-12 Thread Eric Miles
I see there's only 5 issues outstanding left for 2.0.9. Does anyone know when the expected release date is? Thanks so much! On Wed, 2008-03-12 at 19:22 -0400, Brian E. Fox wrote: Handy, isn't it? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March

Re: Filtering Javadoc overview.html and package.html

2008-03-12 Thread Andrew Hughes
Thanks Stephen!!! This sounds like a lot of work and your description is right on the money... so thank you very much! I would prefer not to deviate too much from the maven default behaviour... so this one I might have to let slip. But thanks very much for taking the time to provide such a

RE: plugin dependencies question

2008-03-12 Thread Brian E. Fox
The RC will probably go out tomorrow. I planned on today, but I ran into issues with the integration tests and I had to stop and setup some CI. -Original Message- From: Eric Miles [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 8:55 PM To: Maven Users List Subject: RE: plugin