Re: Creating a Custom Artifact Handler

2008-06-09 Thread Tim Kettler
Andrew Madu schrieb: Hi Tim, Perfect! That does exactly what I want. One thing I would like to know, and in relation to the 'standard directory layout', is if I have the following directory in my project: src/main/webapp shouldn't a corresponding web/web-inf directory structure also be part

Binding a plugin with a phase.

2008-06-09 Thread Niranjan Deshpande
I want to bind the maven-antrun-plugin with maven's compile phase. I did it by saying this in the plugin: phasecompile/phase Does this this mean that my plugin will run, after maven has executed the compile phase of the life cycle? My plugin's task is dependent on the compiled classes. --

Re: Binding a plugin with a phase.

2008-06-09 Thread [EMAIL PROTECTED]
Niranjan Deshpande schrieb: I want to bind the maven-antrun-plugin with maven's compile phase. I did it by saying this in the plugin: phasecompile/phase Does this this mean that my plugin will run, after maven has executed the compile phase of the life cycle? My plugin's task is dependent

about eclipse osgi development

2008-06-09 Thread jian
Dear all, I used eclipse PDE + m2eclipse to develop spring osgi bundle. My steps are: 1. Create a project throght m2eclpse wizard, I selected the archettype is spring-osgi-bundle-archetype; 2. Add the dependencies in POM.xml file, m2eclipse downloaded the jar files and added them

How to enable logging of plugin execution

2008-06-09 Thread Jon Seymour
I am trying to enable log4j output in order to capture diagnostics from the execution of a Maven plugin. The execution environment is Maven 2.0.7, running under cygwin. I do the following: export MAVEN_OPTS=-Dlog4j.configuration='c:\temp\log4j.properties' mvn clean install However, I

RE: Need advice about adding native dependencies

2008-06-09 Thread Charlier, Etienne
Yup, The more I think about it, I guess that I should create a full native jar for each architecture, a java jar and hand-pick them in the packaging process. As of Qt-jambi 4.4 the natives jar are already there.. For Qt-jambi 4.3 I wrote a small shell script to create those jars. It's not on

Re: Need advice about adding native dependencies

2008-06-09 Thread Haim Ashkenazi
On Mon, Jun 9, 2008 at 11:18 AM, Charlier, Etienne [EMAIL PROTECTED] wrote: Yup, The more I think about it, I guess that I should create a full native jar for each architecture, a java jar and hand-pick them in the packaging process. As of Qt-jambi 4.4 the natives jar are already there.. For

Re: Checking for updates of versioned dependencies

2008-06-09 Thread manish
Hi Dennis, The dependency is declared as dependency groupIdorg.eclipse.core/groupId artifactIdorg.eclipse.core.resources/artifactId version3.2.0/version /dependency So, unless I'm missing something, maven should look for it at

calling maven-antrun-plugin

2008-06-09 Thread Niranjan Deshpande
i am calling a shell script inside the maven antrun plugin. the script is executed, but it runs into a endless loop, it never stops for me to repond to the echo messages in the script. can any1 help? -- Regards, Niranjan Deshpande Shut yourself from the world and create the reality you want

Component descriptor cannot be found in the component repository

2008-06-09 Thread Rice Yeh
Hi, I met the following error when doing mvn package for a web application which has jars from other projects. Any clue? Regards, Rice [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal

Excluding packages and classes from jar

2008-06-09 Thread Peter Horlock
Hi, I would like to define a profile to exclude certain packages and classes from the jar builded - we have an internal common package containing shared functionality, but for a specific project for a specifc client I have to exclude certain classes and packages (because of security and licencing

using maven-javadoc-plugin

2008-06-09 Thread Niranjan Deshpande
In Ant we have a javadoc task javadoc, it uses the doclet element, to generate a output file for the give source java file, based on a given doclet file. , http://ant.apache.org/manual/CoreTasks/javadoc.html - see the doclet section. Maven has a plugin for the same, and i know how to configure

RE: How to enable logging of plugin execution

2008-06-09 Thread Bernhard David
Hello, is it possible to use the plugin logging facility? You can call getLog() in your mojo to get the plugin logger. It's not log4j (it's a plexus logger) but it does pretty much the same. I tried myself to get log4j and maven to work together, I'd be interested if anyone else succeeds.

RE: Binding a plugin with a phase.

2008-06-09 Thread Bernhard David
Hello, there is a phase process-classes in the maven build lifecycle which comes just after compile and is intended for post-compile work on your classes. Maybe that's what you're looking for? Though, as Niranjan said, binding it to compile should work too (if it doesn't execute, you might need

Re: using maven-javadoc-plugin

2008-06-09 Thread Wendy Smoak
On Mon, Jun 9, 2008 at 5:53 AM, Niranjan Deshpande [EMAIL PROTECTED] wrote: Maven has a plugin for the same, and i know how to configure itin the pom. The question is, how do i tell maven which source file, and doclet file to be used for the generation?I have my own custom doclet. The plugin

Re: Build Error - Error assembling WAR: Deployment descriptor:

2008-06-09 Thread Wayne Fay
On 6/8/08, Andrew Madu [EMAIL PROTECTED] wrote: Error assembling WAR: Deployment descriptor: C:Documents and Settings\mysite\mysite-spring-app\target\mysite-spring-app-1.0-SNAPSHOT\WEB-INF\web.xml does not exist It appears that you do not have web.xml file in your src/main/webapp/WEB-INF

Re: about eclipse osgi development

2008-06-09 Thread Wayne Fay
Assuming your code matches what's in SVN, it appears that the problem is related to a bad jar file. See line 279 here: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java?annotate=616922 There's already a

Re: [m2] help getting site scp configuration

2008-06-09 Thread Mick Knutson
I can login with plink just fine *Using username admin. [EMAIL PROTECTED]'s password: Last login: Mon Jun 9 07:34:55 2008 from 65.213.63.17 ←]0;[EMAIL PROTECTED]:[EMAIL PROTECTED] ~]$ ^C* But I still get the same prompt afterwards doing a site-deploy. On Fri, Jun 6, 2008 at 5:01 AM, Dennis

Re: [m2] help getting site scp configuration

2008-06-09 Thread Mick Knutson
Here are the directions I followed to set scp up: section name=import Private Key pNow you need to create a private key from the remote server that you would like to deploy your files to./p pa href=file://C:/putty/puttygen.exeRun puttygen/a/p 1. Ensure

Re: Trouble with import scope

2008-06-09 Thread Syvalta
Wayne Fay wrote: Tim, I totally get where you're coming from, and I understand why you might be a little bit confused about the import scope. I agree that your use case makes a lot of sense and would help management of artifact bundles across projects -- perhaps it can be incorporated

Re: HowTo: Configure the ArchiveManager

2008-06-09 Thread Wayne Fay
Most people who want to create their own distribution format simply use the Assembly plugin to do it. Is this something you have looked at? Is there a reason it is not going to work for you? Wayne On 6/7/08, Andrew Madu [EMAIL PROTECTED] wrote: Hi, can anyone kindly inform me how to go about

RE: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread EJ Ciramella
The one curiosity about this is it forces the user to move to the next version (unless I'm missing something). As I said earlier, when we close in on a release, we build more frequently then we did during development. When we run the release plugin, it moves the version of the pom from

Re: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread Kalle Korhonen
Yes, absolutely it forces to move to the next version. I think a build number (for example automatically increasing or last digit matching the revision number in the version control system) is a relic from the time where properly versioning something was too difficult. Maven makes versioning easy.

RE: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread Mark Struberg
I think you have a different understanding of what a SNAPSHOT is, than maven has. For maven, a SNAPSHOT version has no really defined state in the SCM but only any current checkout which is NOT reproducable. So, it imho does _not_ make sense to perform user testing with this version.

RE: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread EJ Ciramella
I agree very much with your final assessment. Sometimes when we work ourselves here into a m2 pigeon hole, we step back and review what we're doing and where possible, try to alter the processes around something. Sometimes that's just not duable. I agree that snapshots shouldn't necessarily

Re: Excluding packages and classes from jar

2008-06-09 Thread Rémy Sanlaville
Hi, and called it like that:mvn package -P myflag Not sure but you have an extra space between -P and myflag try mvn package -Pmyflag If it is not working, first try without profile in order to be sure that the exclusion configuration is working. HTH, Rémy

next step for encoding support: reporting output files

2008-06-09 Thread Hervé Boutemy
Hi, After XML then source files, it's time now for the next step on encoding support: reporting output files. There is a new proposal to unify reporting encoding configuration and change default value to UTF-8: http://docs.codehaus.org/display/MAVEN/Reporting+Encoding+Configuration The change

[m2] Error running site documentation on hudson

2008-06-09 Thread Mick Knutson
When I run site-deploy locally, I have no issue creating site documentation, but when I check everything back into svn, then kick off Hudson to create the same site-deploy, I get this velocity error: [INFO] [INFO] Building

RE: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread EJ Ciramella
Here's another view that many have here, what exactly does running the release plugin buy us? So far, it doesn't seem to fit the bill (and I can't just plant the anchor and spin the queen mary around it - ie: change process), why NOT just skip it and use deploy:deploy or deploy:deploy-file

Re: [m2] Error getting reports from the plugin 'org.apache.maven.plugins:maven-project-info-reports-plugin'

2008-06-09 Thread Mick Knutson
I seem to have a follow-on to this issue when I move to my Linux build machine trying to run site or site-deploy. When I run site-deploy locally, I have no issue creating site documentation, but when I check everything back into svn, then kick off Hudson to create the same site-deploy, I get

Re: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread Kalle Korhonen
I think you should re-read the release plugin documentation ( http://maven.apache.org/plugins/maven-release-plugin/, the examples give you the steps the plugin does) and then try it out on a small project. release:prepare changes the version numbers, creates the tag and then prepares the trunk for

Re: Checking for updates of versioned dependencies

2008-06-09 Thread Dennis Lundberg
Right. Now that's a seriously strange repo. Are they in the middle of a reorganisation? I'm out of clues now... manish wrote: Hi Dennis, The dependency is declared as dependency groupIdorg.eclipse.core/groupId artifactIdorg.eclipse.core.resources/artifactId version3.2.0/version

Re: AW: modifying version number in POM

2008-06-09 Thread Chris_Graham
No, I meant exactly what I said. Maven itself needs to be able to check in/out etc from your SCM. We use ClearCase in with UCM Dynamic Views, which is not supported (particularly well (if at all?)) by maven. So, in that instance, we will need to basically to a release manually. If maven fully

Re: AW: modifying version number in POM

2008-06-09 Thread Chris_Graham
Mark Struberg [EMAIL PROTECTED] wrote on 05/06/2008 18:32:23: So long as maven supports your scm... But then it is still much better to get this SCM supported then having hundred of developers tweaking around manually. Which SCM you need isn't supported yet? Since I already wrote the

Simple Archetype Question

2008-06-09 Thread Chris_Graham
Hi All. Can an archetype create more than one project? Ta. -Chris ** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended

Maven @ Silicon Valley Web Developer Java User Group

2008-06-09 Thread Jason van Zyl
Hi, For any Maven users who are interested in Eclipse IDE integration and Maven repository managers I will be speaking at the Silicon Valley Web Developer Java User Group on June 17th at Google in Mountain View. I will be speaking extensively on Nexus and m2eclipse and doing demos of

Re: resource filtering and your IDE

2008-06-09 Thread Kalle Korhonen
For Eclipse, both Q4E and m2eclipse do resource filtering; personally Q4E has felt more automatic for me - i.e. the default settings have typically worked well. Kalle On Mon, Jun 9, 2008 at 5:23 PM, Patrick Flynn [EMAIL PROTECTED] wrote: Hi everyone, I think that I must be hitting a google

Re: resource filtering and your IDE

2008-06-09 Thread Martin
Patrick-- As the filteringfalse/filtering is defaulting to false so you would have to override the filtering value to change the output of pom.xml The doc http://maven.apache.org/guides/getting-started/index.html states In addition, we had to explicitly state that the resources are located in

Re: Tip about Skinny Wars - is an enforcer plugin's bug side effect :-(

2008-06-09 Thread Lee Meador
Maybe I'm missing something but I thought the purpose of a skinny war was to consolidate shared dependencies between several wars and some ejb jars. If the new feature will build a jar in the same project as the war and that jar contains dependencies there has to be some other feature that takes

Re: need help in ant's javadoc task (from maven)

2008-06-09 Thread Lee Meador
Niranjan, If I were debugging this I would try to run any by itself on your build.xml file and see if it runs outside of Maven. Run it from the folder where the pom and build.xml both reside. (I'm assuming you have them in the same folder, which is the root of your maven project. If it doesn't,

Re: Moving from snapshot to release - how do _you_ do it

2008-06-09 Thread nicolas de loof
Please note I've added a new goal release:stage to cover such a use case : prepare the release, stage it to a test / demo repository. When something is wrong, simply rollback and delete/rename the tag in SVN. 2008/6/10 Kalle Korhonen [EMAIL PROTECTED]: I think you should re-read the release

How to make nexus work with thirdparty libraries??

2008-06-09 Thread Kent Närling
I have read the FAQ on how to upload thirdparty jars to a repository, but cannot seem to get it working? I have tried to upload the jacorb jar to our own local repository (nexus) with the command: mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb -Dversion=2.3 -Dpackaging=jar