How to perform ordered tasks in Maven2 build

2010-03-18 Thread Perez Ronen
Hi, I am trying to migrate a Java application built by Ant to Maven2. among other the build perform the following operations: 1) Running a javadoc doclet to find annotated Java files to be externalize later as web services 2) compile a small part of the code for step 3 3) run Axis java2wsdl on

RE: auto code format eclipse .settings

2010-03-18 Thread Ludwig Magnusson
I don't really agree here. I think it's pretty much on a project level. I have different projects in my workspace that has different formatting requirements. And in my project, we have the exported xml-file version controlled. I defenetly think it would be great if the maven-eclipse-plugin could

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Stephen Connolly
On 18 March 2010 07:11, Perez Ronen ronen.pe...@comverse.com wrote: Hi, I am trying to migrate a Java application built by Ant to Maven2. among other the build perform the following operations: 1) Running a javadoc doclet to find annotated Java files to be externalize later as web services

Re: auto code format eclipse .settings

2010-03-18 Thread Dan Tran
feel free to submit patches. I have seen this request to configure code-style per project before, but it kind a die out -D On Thu, Mar 18, 2010 at 12:29 AM, Ludwig Magnusson lud...@itcatapult.com wrote: I don't really agree here. I think it's pretty much on a project level. I have different

how to use maven-scm-plugin to checkout a CVS tag

2010-03-18 Thread Dan Tran
Hi every one, I have a need to checkout a CVS tag at build time, and have no idea how to configure the tag. Any advice is greatly appreciated here is my configuration configuration connectionUrl${cvsroot}:mymodule/connectionUrl /configuration Thanks -Dan

RE: auto code format eclipse .settings

2010-03-18 Thread Ludwig Magnusson
I can create a JIRA-task and look into if I can solve it. Perhaps I will do it within the next month then. But it would also be nice to get confirmation that it canät be done using the available configuration possibilities today. /Ludwig -Original Message- From: Dan Tran

Re: auto code format eclipse .settings

2010-03-18 Thread Sipungora
Thank you, Patrick, I try this. Thank you for all, who has taken a part in this discussion. Best Regards, Sipungora Patrick Turcotte-4 wrote: Maybe this could help. If you make the modification through Eclipse interface, and check how the files were modified in .settings, you could

Re: how to use maven-scm-plugin to checkout a CVS tag

2010-03-18 Thread Dan Tran
never mind, The secret is in scmVersionType adn scmVervsion configuration On Thu, Mar 18, 2010 at 1:02 AM, Dan Tran dant...@gmail.com wrote: Hi every one, I have a need to checkout a CVS tag at build time, and have no idea how to configure the tag. Any advice is greatly appreciated here is

Re: [ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT

2010-03-18 Thread Karl Heinz Marbaise
Hi Laurent, after investigating the problem i found the cause for this...sorry..;-( I hope to get a new update on the weekend... Thanks for testing MLV... Kind regards Karl Heinz Marbaise -- View this message in context:

Re: [ANN] Riding Ruby on Rails3 with Maven3

2010-03-18 Thread Karl Heinz Marbaise
Hi Kistrian, cool.. one question: Is Maven 3 required or would it work with Maven 2.2.1 as well ? Or didn't you test it ? Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/-ANN--Riding-Ruby-on-Rails3-with-Maven3-tp27941758p27942775.html Sent from

How to Invoke different goals of 1 plugin

2010-03-18 Thread izak.wessels
Hi, We would like to invoke different goals on 1 plugin. From reading the documentation, it seems that the best way to achieve this is to setup a profile and specify the same plugin but with a different goal. Here is the 1st time that the plugin is defined in the pom.xml. Take note of the

Re: How to Invoke different goals of 1 plugin

2010-03-18 Thread Stephen Connolly
give each execution a different id and if you don;t want something inherited by child projects, set inheritedfalse On 18 March 2010 11:38, izak.wessels izak.wess...@gmail.com wrote: Hi, We would like to invoke different goals on 1 plugin. From reading the documentation, it seems that the

Re: How to Invoke different goals of 1 plugin

2010-03-18 Thread izak.wessels
stephenconnolly wrote: give each execution a different id and if you don;t want something inherited by child projects, set inheritedfalse Yup, we tried that. Example : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId

Re: How to Invoke different goals of 1 plugin

2010-03-18 Thread Stephen Connolly
build plugins plugin artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution idechodir/id goals goalrun/goal /goals phaseverify/phase *

RE: How to perform ordered tasks in Maven2 build

2010-03-18 Thread subir.sasikumar
Have different executions in different phases to ensure the order. In the same phase you cannot gaurantee any order AFAIK. Subir -Original Message- From: Perez Ronen [mailto:ronen.pe...@comverse.com] Sent: Thursday, March 18, 2010 12:42 PM To: Maven Users List Subject: How to perform

Re: How to Invoke different goals of 1 plugin

2010-03-18 Thread izak.wessels
We still want the plugin to be inherited by the child projects. But thanks for the clarification on the syntax. -Original Message- From: stephenconnolly [via maven users] ml-node+4756077-278159017-469...@n2.nabble.com Date: Thu, 18 Mar 2010 04:16:17 To:

Must timestamped snapshot deps be called out by full snapshot?

2010-03-18 Thread Benson Margulies
The instructions at: http://code.google.com/p/java-twitter/ call for one to declare their repo, and then just cite the g/a/v with version 0.9-SNAPSHOT. When I call it out in a pom, I get [INFO] Unable to find resource 'net.unto.twitter:java-twitter:jar:0.9-SNAPSHOT' in repository

RE: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Perez Ronen
From Maven documentation: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html It says: a build phase can also have zero or more goals bound to it. If a build phase has no goals bound to it, that build phase will not execute. But if it has one or more goals bound to

Insert currentDate with archetype templates

2010-03-18 Thread saltnlight5
Hello maven-archetype-plugin users, I am looking to insert a current datetime stamp into file generated by my own archetype. I found an old ticket http://jira.codehaus.org/browse/ARCHETYPE-63 said it's been implemented since alpha-1, but $currentDate still doesn't work on my alpha-4 version. Any

Re: auto code format eclipse .settings

2010-03-18 Thread Sipungora
I've solved it. This is my parent model: http://old.nabble.com/file/p27945404/pom.xml pom.xml Warning: It doesn't work so. It must be extended. It should only show the principle. Settings for .settings files were made with eclipse first and then they was saved in foo-core.xml and in foo-ui.xml

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Ron Wheeler
Another section for the Best Practices Guide Sonotype has an article that almost describes how to do this. It is pretty good but lacks a bit about how (and why) to create a pom for the jars you need to upload. Ron Wayne Fay wrote: pThe document has moveda

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Ron Wheeler
Another Best Practice example about how to structure a project into Maven projects with libraries and dependencies to avoid the Big Bang theory of deployment. Ron Perez Ronen wrote: Hi, I am trying to migrate a Java application built by Ant to Maven2. among other the build perform the

Re: Must timestamped snapshot deps be called out by full snapshot?

2010-03-18 Thread Ron Wheeler
Perhaps a silly question but did you add their repository to your list of repositories. Perhaps I am mistaken but it looks like there is a extra 0.9-SNAPSHOT in the real path and their instructions are not correct. I did not test this but you might want to try it

Re: [ANN] Riding Ruby on Rails3 with Maven3

2010-03-18 Thread kristian
On Thu, Mar 18, 2010 at 1:56 PM, Karl Heinz Marbaise k...@soebes.de wrote: Hi Kistrian, cool.. one question: Is Maven 3 required or would it work with Maven 2.2.1 as well ? Or didn't you test it ? it really needs maven 3 due to the way all the rubygems get downloaded as gem artifacts

Re: [ANN] Riding Ruby on Rails3 with Maven3

2010-03-18 Thread Karl Heinz Marbaise
Hi Kristian, First thanks for the answer But i know of the nar plugins which are used for C++/C compilings etc. and dependency download (nar-files) etc. and they are working for MVN 2.2.1 as well... http://duns.github.com/maven-nar-plugin/ Kind regards Karl Heinz Marbaise -- View this

RE: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Perez Ronen
Guys, I am trying to push Maven in my organization, so I am facing the reality of existing mega projects with mega chaos and the resistance of some zealous ant users. Do you have an operative suggestions? -Original Message- From: Ron Wheeler [mailto:rwhee...@artifact-software.com]

RE: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Yanko, Curtis
You can set up maven in paralell, non-disruptively. Once you have that, get site reports working and then ask the Ant guys to produce a bill-of-materials! === Curtis Yanko UHGIT Computer Services - ADIS Continuous Integration Service https://ulink.uhc.com/groups/cis

Re: Must timestamped snapshot deps be called out by full snapshot?

2010-03-18 Thread Benson Margulies
I did add the repo. On Thu, Mar 18, 2010 at 9:27 AM, Ron Wheeler rwhee...@artifact-software.com wrote: Perhaps a silly question but did you add their repository to your list of repositories. Perhaps I am mistaken but it looks like there is a extra 0.9-SNAPSHOT in the real path and their

Re: Getting the path to an individual dependency for use with the antrun plugin

2010-03-18 Thread David Smiley @MITRE.org
Did you make any progress? I'm trying to do this same. ~ David Allan Ditzel wrote: Hi, We have the need to run some ant tasks within our maven project, but we need to get a fully qualified path to the artifact to pass in to some ant tasks. The only thing I've found so far is the

Does site set a property that it is running?

2010-03-18 Thread Jeff Jensen
Is there a property set by the site plugin when the site goal runs (as the release plugin sets the performRelease property)? If there is, where/how could I have found the answer?  I looked in site plugin doc, lifecycle pages, googled,

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Ron Wheeler
Perez Ronen wrote: Guys, I am trying to push Maven in my organization, so I am facing the reality of existing mega projects with mega chaos and the resistance of some zealous ant users. Do you have an operative suggestions? Unfortunately there is not a best practices guide. I can give

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Wayne Fay
Another section for the Best Practices Guide There are multiple books written about Maven (many as free PDFs) in addition to the Maven website, various plugin documentation, Maven User Wiki, and many other resources. At least one third of the questions on this list are straight out of the

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Wayne Fay
Guys, I am trying to push Maven in my organization, so I am facing the reality of existing mega projects with mega chaos and the resistance of some zealous ant users. Do you have an operative suggestions? It sounds like you would benefit from a mandate from someone higher up that will gently

Re: Must timestamped snapshot deps be called out by full snapshot?

2010-03-18 Thread Wayne Fay
The instructions at: http://code.google.com/p/java-twitter/ call for one to declare their repo, and then just cite the g/a/v with version 0.9-SNAPSHOT. Perhaps a silly question but did you ask on their user list first? This may be a known error in their documentation that they can help you

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Ron Wheeler
Wayne Fay wrote: Another section for the Best Practices Guide There are multiple books written about Maven (many as free PDFs) in addition to the Maven website, various plugin documentation, Maven User Wiki, and many other resources. There is no shortage of documentation but it is not

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Ron Wheeler
Wayne Fay wrote: Guys, I am trying to push Maven in my organization, so I am facing the reality of existing mega projects with mega chaos and the resistance of some zealous ant users. Do you have an operative suggestions? It sounds like you would benefit from a mandate from someone higher

Re: Must timestamped snapshot deps be called out by full snapshot?

2010-03-18 Thread Benson Margulies
Guilty as charged. I have this sense that I've gotten into trouble with snapshot timestamps before, so I lept here. On Thu, Mar 18, 2010 at 1:22 PM, Wayne Fay wayne...@gmail.com wrote: The instructions at: http://code.google.com/p/java-twitter/ call for one to declare their repo, and then just

RE: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Thiessen, Todd (Todd)
PS- Who is producing and assuming ongoing responsibility for this BPG? The community. It won't get done. Someone needs to come forward and lead the charge. All these suggestions going to the mailing list I am sure a lot of readers are enjoyoing but I doubt anyone is actually

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Wayne Fay
Can you provide examples of large organizations that made the move from Ant to Maven and were happy with the process and felt that the benefits outweighed the initial costs. I can only speak for the companies that I work for, and Maven has only been adopted in pockets, not broadly due to the

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Wayne Fay
- unambiguous - no you might do this or mayby that just if your situation is this and you want the best development environment do exactly this. But notice some recent questions on the list... - how to compile from multiple source directories - migrating a large ant build to maven without any

RE: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Thiessen, Todd (Todd)
For the most part, I agree with Wayne's sentiment. We did it in stages, and even now it isn't fully adopted. Like just about everyone else, before Maven we were using ant. A number of more agile projects which had more empowerment heard about Maven and just tried it on their projects. Some of

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Justin Edelson
On 3/18/10 2:06 PM, Wayne Fay wrote: My personal opinion (and it is shared by many of the active people on this list) is that jumping in with your first Maven project as a big Ant migration is the worst possible way to get started with Maven and is nearly guaranteed to fail. Just to echo

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Wayne Fay
It was key for us that it happened in a grass roots fashion. A meritocrocy approach, while slow, is generally the best way to get buy in. If you force it, everyone will hate it and not be very productive. I agree 100% with the grassroots, meritocracy approach. But it sounded like the OP in

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Ron Wheeler
Wayne Fay wrote: - unambiguous - no you might do this or mayby that just if your situation is this and you want the best development environment do exactly this. But notice some recent questions on the list... - how to compile from multiple source directories - migrating a large ant build

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Anders Hammar
I believe there are some blog posts over at Soantype's blog about success stories migrating to Maven. Have a look there! http://blogs.sonatype.com /Anders On Thu, Mar 18, 2010 at 18:35, Ron Wheeler rwhee...@artifact-software.comwrote: Wayne Fay wrote: Guys, I am trying to push Maven in my

Javadoc plugin configuration: can I specify it once for build and reporting?

2010-03-18 Thread Laird Nelson
I don't see an easy way to specify the same configuration values for the maven-javadoc-plugin so that they'll apply when it is used from buildplugins as well as from reporting. What's the best way to do this? Thanks, Laird

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Justin Edelson
On 3/18/10 3:55 PM, Ron Wheeler wrote: Wayne Fay wrote: - unambiguous - no you might do this or mayby that just if your situation is this and you want the best development environment do exactly this. But notice some recent questions on the list... - how to compile from multiple

RE: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Thiessen, Todd (Todd)
Interesting. Much of what you say I think is already documented. For example the definitive guide explains quite well that by convention Maven supports one artifact per project. It also contains many if not most of the best practices that users often ask on this list how to circumvent. But I

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Ron Wheeler
Justin Edelson wrote: On 3/18/10 3:55 PM, Ron Wheeler wrote: Wayne Fay wrote: - unambiguous - no you might do this or mayby that just if your situation is this and you want the best development environment do exactly this. But notice some recent questions on the list...

Re: Dealing with artifacts that have been moved - What to do?

2010-03-18 Thread Ron Wheeler
Thiessen, Todd (Todd) wrote: Interesting. Much of what you say I think is already documented. For example the definitive guide explains quite well that by convention Maven supports one artifact per project. It also contains many if not most of the best practices that users often ask on this

RE: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Gorham-Engard, Frank
Hey Wayne, We don't need to start name calling here. zealous ant users? Would that be someone who believes that their favorite tool must be best for everybody. Remind you of anyone? There are ant users and maven users. And there are zealous users and pragmatic users. You don't have to be a

Re: How to perform ordered tasks in Maven2 build

2010-03-18 Thread Wayne Fay
Hey Wayne, We don't need to start name calling here. zealous ant users? Would that be someone who believes that their favorite tool must be best for everybody. Remind you of anyone? Read the posts in this thread from Ronen Perez before making assumptions about me calling anyone names... this

including dependency jars within EJB jar

2010-03-18 Thread Seetamraju Uday Bhaskar Sarma
Hi All, I am creating an EJB jar (not EJB-client). Its supposed to have a dependency jar (ussi.jar) included within it for deployment, but the EJB jar created never contains the ussi.jar. I am using compile-scope dependencies. If you do have a few minutes, please take a look at the

Re: including dependency jars within EJB jar

2010-03-18 Thread Wayne Fay
Its supposed to have a dependency jar  (ussi.jar) included within it for deployment, but the EJB jar created never contains the ussi.jar.   I am using compile-scope dependencies. Google for maven ejb jar bundle gave this link at the top:

3rd party JARs -- local vs. remote repositories

2010-03-18 Thread Seetamraju Uday Bhaskar Sarma
Hi, For the following, lets take a simple example of :- Create a Session Bean that is deployed --by itself-- and not within a EAR. And also, lets assume that the session bean depends on a commercial (3rd party) JAR for (say) statistical analysis. EJB jars always had dependency JARs

Tar header error from assembly plugin

2010-03-18 Thread Benson Margulies
Anyone have any help for this? [INFO] Failed to create assembly: Error creating assembly archive src: Problem creating TAR: request to write '4218' bytes exceeds size in header of '4095' bytes - To unsubscribe, e-mail:

Re: [ANN] Riding Ruby on Rails3 with Maven3

2010-03-18 Thread kristian
On Thu, Mar 18, 2010 at 7:18 PM, Karl Heinz Marbaise k...@soebes.de wrote: But i know of the nar plugins which are used for C++/C compilings etc. and dependency download (nar-files) etc. and they are working for MVN 2.2.1 as well... http://duns.github.com/maven-nar-plugin/ that is great - I

Re: 3rd party JARs -- local vs. remote repositories

2010-03-18 Thread Wayne Fay
EJB jars always had dependency JARs located under META-INF/lib; Has this changed? Again, what Java app server or EJB container and JVM/JDK are you using? This is not part of the JAR specification [1] and does not comply with Sun's advice regarding J2EE packaging in general [2]. i.e., should