Re: What's the point of listing all artifacts in archetype.xml?

2008-09-24 Thread Raphaël Piéroni
Hi folks, the file META-INF/maven/archetype.xml is used with the archetype plugin 1.0-alpha the 2.0-alpha version uses META-INF/maven/archetype-metadata.xml Also the create-from-project mojo creates a correct archetype-metadata.xml but it creates a buggy archetype.xml file Hope this helps.

{Disarmed} Antwort: Re: {Disarmed} Antwort: Re: Antwort: Re: Attaching source zip to jar managed by maven

2008-09-24 Thread Ole Laurisch
I don't know what the m2eclipse plugin is supposed to do, but actually it works this way for me: I have a Maven project with only JUnit 3.8.2 as a dependency. After checking the Download Artifact Sources and Download Javadoc checkboxes and running the Maven - Update Dependencies action simply

Maven: JDeveloper 10g and TagLibraries

2008-09-24 Thread Jochen Hebbrecht
I'm using the Trinidad Maven JDev Plugin (v 1.2.7) to generate JDeveloper project files. This works great, but not for the tag libraries. They don't get configured at all. I tried this example: plugin groupIdorg.apache.myfaces.trinidadbuild/groupId

Re: deploy goal no longer deploying

2008-09-24 Thread Nick Stolwijk
I just read a thread over at the Dev list [1] which talked about these stub plugins. Could you run mvn help:effective-pom to see which deploy plugin version is resolved? Hth, [1] http://www.nabble.com/Unintended-usage-of-core-plugin-stubs-td19633933.html Nick Stolwijk ~Java Developer~ Iprofs

RE: Using spring How to share jpa applicationContext.xml file with main src and test source?

2008-09-24 Thread Ben Lidgey
By default src/main/resources should be made available on the test classpath, but _after_ the src/test/resources (allowing you to override stuff for tests by putting it in the src/test/resources directory so it is found first on the classpath). If you run mvn -X test you should be able to find

Re: scm:tag/branch doesn't update scm section

2008-09-24 Thread Emmanuel Venisse
Maven-SCM know nothing about the POM so it don't update the scm section in it and it won't do it in the future. To create a branch for a maven project, the best way is to use the release plugin : http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html To create a tag for a maven

How to get a maven

2008-09-24 Thread 陈思淼
I want to write a plugin which can display all the conflict dependences (the same groupId and artifactId but different version) in the dependences graph.Is the Maven-core provide this function? I want to define some strategy when some conflicts happen, the build process fail. can anybody tell me

Why commons-logging depends on servlet-api?

2008-09-24 Thread 陈思淼
This is commons-logging' pom on central maven repository: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.pom why the commons-logging include servlet-api dependence?Is that should be provided? I can use excludes to disable it, but that is ugly style.

Re: Why commons-logging depends on servlet-api?

2008-09-24 Thread Stephen Connolly
it should be both provided and optionaltrue/optional as far as i know blame the people who wrote that pom On 24 September 2008 09:41, 陈思淼 [EMAIL PROTECTED] wrote: This is commons-logging' pom on central maven repository:

Re: Why commons-logging depends on servlet-api?

2008-09-24 Thread Nick Stolwijk
This is fixed in 1.1.1. See [1]. [1] http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl 2008/9/24 Stephen Connolly [EMAIL PROTECTED]: it should be

RE: Why commons-logging depends on servlet-api?

2008-09-24 Thread Jörg Schaible
Stephen Connolly wrote: it should be both provided and optionaltrue/optional as far as i know blame the people who wrote that pom Blame the auto-converter for M1 to M2 poms :-) - Jörg - To unsubscribe, e-mail: [EMAIL

Re: Why commons-logging depends on servlet-api?

2008-09-24 Thread Stephen Connolly
On 24 September 2008 09:57, Jörg Schaible [EMAIL PROTECTED]wrote: Stephen Connolly wrote: it should be both provided and optionaltrue/optional as far as i know blame the people who wrote that pom Blame the auto-converter for M1 to M2 poms :-) Blame the people who wrote the

Re: How to get a maven

2008-09-24 Thread Stephen Connolly
On 24 September 2008 09:36, 陈思淼 [EMAIL PROTECTED] wrote: I want to write a plugin which can display all the conflict dependences (the same groupId and artifactId but different version) in the dependences graph.Is the Maven-core provide this function? I want to define some strategy when some

Re: [Fwd: verbosetrue/verbose is ignored for maven-compiler-plugin]

2008-09-24 Thread Gabriel Garcia
Count me in for someone that wanted to compile with more verbosity (e.g., to see warnings properly). The only thing that worked for me is seeing the deprecated classes (which is another parameter). Other than that, verbose=true didn't work. Gabriel 2008/9/24 Sahoo [EMAIL PROTECTED]: Has anyone

who know how the m2eclipse's depences graph design?

2008-09-24 Thread 陈思淼
That's a awesome tool for my to analyze the depence of my project, I want to know how you guy write this tool? is this a maven-plugin denpends on maven-core? can I get the source code to learn it?

Re: who know how the m2eclipse's depences graph design?

2008-09-24 Thread Nick Stolwijk
I don't know for sure, but I guess it uses the functionality of the dependency plugin [1] and especially the resolve goal. Also take a look at the various analyze goals of that plugin. [1] http://maven.apache.org/plugins/maven-dependency-plugin/ Hth, Nick Stolwijk ~Java Developer~ Iprofs BV.

Re: How to get a maven

2008-09-24 Thread 陈思淼
we're a big company's project, our project combine with jar dependence's. To manage the dependence is a hard work to do.for example, our last accident is becourse of dependence override. our project denpends on ice 3.1.0, our partner group provide us a jar which denpends on ice 3.2.0.GBK, the

Re: who know how the m2eclipse's depences graph design?

2008-09-24 Thread 陈思淼
It's warm heart of you. 2008/9/24 Nick Stolwijk [EMAIL PROTECTED] I don't know for sure, but I guess it uses the functionality of the dependency plugin [1] and especially the resolve goal. Also take a look at the various analyze goals of that plugin. [1]

A question about error message annotations are not supported in -source 1.3

2008-09-24 Thread thomas2004
Hi all, I use Eclipse and the maven2 plugins to build project in Eclipse. I get an error as I run mvn install: [code] ... D:\Temp\myproject\src\main\java\com\mycompany\Person.java:[41,1] annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations)

Re: who know how the m2eclipse's depences graph design?

2008-09-24 Thread Mark Hobson
I believe it uses maven-dependency-tree: http://maven.apache.org/shared/maven-dependency-tree/ Mark 2008/9/24 陈思淼 [EMAIL PROTECTED]: It's warm heart of you. 2008/9/24 Nick Stolwijk [EMAIL PROTECTED] I don't know for sure, but I guess it uses the functionality of the dependency plugin [1]

Re: A question about error message annotations are not supported in -source 1.3

2008-09-24 Thread Nick Stolwijk
Can you run mvn -X install and look for the compile goal. There you see the arguments to the java compiler. Is the source parameter used? Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Sep 24, 2008 at 11:45 AM, thomas2004 [EMAIL

Re: [ANN] Maven 2.1.0-M1 Released

2008-09-24 Thread Asgeir S. Nilsen
Where is this new make-like reactor documented? Is it part of 2.1.0-M1? I also could not find a tag for 2.1.0-M1 in Subversion, so verifying what is actually part of 2.1.0-M1 is a bit difficult. Asgeir On Fri, Sep 19, 2008 at 10:33, Brett Porter [EMAIL PROTECTED] wrote: Well that isn't too

Any idea for us about dependence conflict management.

2008-09-24 Thread 陈思淼
we're in a big company's project, our project combine with other team's jar dependences. To manage the dependence is a very hard work to do.for example, our last accident is becourse of ice jar dependence override. our project denpends on ice 3.1.0, but one of our partner group provide us a jar

Re: [ANN] Maven 2.1.0-M1 Released

2008-09-24 Thread Brett Porter
2008/9/24 Asgeir S. Nilsen [EMAIL PROTECTED]: Where is this new make-like reactor documented? See the end of http://docs.codehaus.org/display/MAVEN/Make+Like+Reactor+Mode. Is it part of 2.1.0-M1? No, it's on the branch for 2.1.0-M2, or available in the plugin being voted on. I also could

Re: [Fwd: verbosetrue/verbose is ignored for maven-compiler-plugin]

2008-09-24 Thread Sahoo
I filed http://jira.codehaus.org/browse/MNG-3764. As a work around, I am thinking of setting fork=true and passing -verbose as option to compiler. Sahoo Gabriel Garcia wrote: Count me in for someone that wanted to compile with more verbosity (e.g., to see warnings properly). The only thing

Re: deploy goal no longer deploying

2008-09-24 Thread smitherz
Here is the output of the effective pom. Names changed in some places to protect the guilty. ;-) [INFO] [help:effective-pom] [INFO] Effective POMs, after inheritance, interpolation, and profiles are applied: !-- == -- !--

Re: How to get a maven

2008-09-24 Thread Stephen Connolly
I'm not disagreeing with what you want to do... I'm just saying that it would be better to write this check as an enforcer rule rather than a whole plugin. The idea of the enforcer plugin is to enforce stuff and fail the build if the stuff has not been enforced. It sounds like you are writing a

Supressing the download progress animation when downloading dependencies

2008-09-24 Thread Matthias Grunwalde
Hi, When performing a clean build, maven will download all necessary dependencies to the local repository. While it's doing this, it shows an animation giving the amount it has downloaded, with the final file size. This changes - is overwritten on the same line - during the download. This is

Re: Supressing the download progress animation when downloading dependencies

2008-09-24 Thread Brett Porter
mvn -B is the option you need. - Brett 2008/9/24 Matthias Grunwalde [EMAIL PROTECTED]: Hi, When performing a clean build, maven will download all necessary dependencies to the local repository. While it's doing this, it shows an animation giving the amount it has downloaded, with the final

Re: [ANN] Maven 2.1.0-M1 Released

2008-09-24 Thread Baptiste MATHUS
You can have a look at http://docs.codehaus.org/display/MAVEN/Maven+2.1.0+Release+Plan to have an idea of what should be in the release. In this doc, Make-like is planned for M3. Cheers. 2008/9/24 Asgeir S. Nilsen [EMAIL PROTECTED] Where is this new make-like reactor documented? Is it part of

Re: Best Practice for code generation scenarios in Maven

2008-09-24 Thread stug23
Thanks for the tip on the build helper plugin. This makes setting the generated source more sensible than just altering sourceDirectory. newton.dave wrote: --- On Tue, 9/23/08, stug23 wrote: Does anyone on this group do this differently than what I sketched out here? If so, why and what

Re: Best Practice for code generation scenarios in Maven

2008-09-24 Thread stug23
Thanks I'll take a look at how jaxb maven plugin does this. Is there really a difference in what you are recommending? When you say 'new directory' don't you just mean somewhere under target (e.g., target/codegen/java)? Michael McCallum-3 wrote: no you should generate into a new directory

Maven and umlgraph/dotuml

2008-09-24 Thread Matthias Dorfner
Hey, is anyone of you experienced with umlgraph in your javadoc? I found the dotuml plug-in for Maven here (http://maven-plugins.sourceforge.net/maven-dotuml-plugin/) , but it looks a bit deprecated. Should I use the dotuml plug-in or include the umlgraph in my pom as it is described

RE: Purpose and Status of 'stage' Plugin

2008-09-24 Thread Harper, Brad
Would anyone happen to know the JIRA number for this issue? Thanks. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 4:44 PM To: Maven Users List Subject: Re: Purpose and Status of 'stage' Plugin there already a JIRA for that.

Inconsistent handling on SNAPSHOT dependencies between maven-jar-plugin 'addClassPath' and maven-assembly-plugin 'dependencySet'?

2008-09-24 Thread Marat Radchenko
When artifact has SNAPSHOT dependency, 'addClassPath' feature of maven-jar-plugin will use 'SNAPSHOT' as version string. However, maven-assembly-plugin's 'dependencySet' feature will save file using fully qualified repository version (something like 20080924.150522-14). This inconsistency leaves

Re: Maven release plugin

2008-09-24 Thread Rémy Sanlaville
Hi, ping: Someone know when the 2.0-beta-8 of maven release plugin will be released ? We are really waiting for it. Thanks, Rémy

Re: Maven and umlgraph/dotuml

2008-09-24 Thread Rune Flobakk
Try the howto here: http://maven.apache.org/plugins/maven-javadoc-plugin/examples/alternate-doclet.html - Rune Matthias Dorfner skrev: Hey, is anyone of you experienced with umlgraph in your javadoc? I found the dotuml plug-in for Maven here

Re: Directory deploy for ear project

2008-09-24 Thread Kem Elbrader
Anyone wanna give this one a try? :) On Mon, Sep 22, 2008 at 10:41 AM, Kem Elbrader [EMAIL PROTECTED] wrote: We directory deploy our ear project during development. We've noticed that the most time spent in the build of our ear is while it is Building jar: Since we aren't using the .ear

Re: Purpose and Status of 'stage' Plugin

2008-09-24 Thread Dan Tran
http://jira.codehaus.org/browse/MSTAGE On Wed, Sep 24, 2008 at 8:54 AM, Harper, Brad [EMAIL PROTECTED] wrote: Would anyone happen to know the JIRA number for this issue? Thanks. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 4:44 PM

Re: Attaching source zip to jar managed by maven

2008-09-24 Thread Eugene Kuleshov
Olel wrote: I don't know what the m2eclipse plugin is supposed to do, but actually it works this way for me: I have a Maven project with only JUnit 3.8.2 as a dependency. After checking the Download Artifact Sources and Download Javadoc checkboxes and running the Maven - Update

Re: Maven release plugin

2008-09-24 Thread Zucchi Alessandro
Olivier Lamy said: Hi, Personnaly, I have planned to do it near end of September. I hope will be so. Bye Remy Sanlaville wrote: Hi, ping: Someone know when the 2.0-beta-8 of maven release plugin will be released ? We are really waiting for it. Thanks, Rémy -- View

How to know programatically the SNAPSHOT version

2008-09-24 Thread mateamargo
I have setted the version to 1.0-SNAPSHOT, but I need to know what's the current value. Is there a way to know that using any Maven API? or maybe generating a file after compiling? Thanks. -- View this message in context:

Pass Command-Line Param to Surefire Plugin

2008-09-24 Thread leojhartiv
Hello, I searched the archive, but was not able to find an answer to my question. I am running maven as follows: mvn clean test -Dsomeparameter=somevalue someparameter will vary per mvn call. It does not appear that my surefire tests are able to find this variable when they execute, so I'm

Re: Pass Command-Line Param to Surefire Plugin

2008-09-24 Thread Kalle Korhonen
We do it like this: artifactIdmaven-surefire-plugin/artifactId configuration forkModeonce/forkMode workingDirectorytarget/workingDirectory argLine-Djava.library.path=lib/argLine On Wed, Sep 24, 2008 at

Re: Pass Command-Line Param to Surefire Plugin

2008-09-24 Thread leojhartiv
Thanks for your reply. Well, it looks like you are hard-coding the -D line into the plugin config. In my situation, would this work? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.4.3/version configuration

archetype:create vs. archetype:generate??

2008-09-24 Thread Justin Miller
Which is the preferred goal to execute? The online documentation seems to contradict itself. In certain places it indicates that 'create' is deprecated, however http://maven.apache.org/guides/mini/guide-creating-archetypes.html which was updated on 9/19/08, still says create.

Re: Directory deploy for ear project

2008-09-24 Thread Wendy Smoak
On Wed, Sep 24, 2008 at 11:30 AM, Wendy Smoak [EMAIL PROTECTED] wrote: Take a look at the lifecycle [1] and see if you can stop at one of the earlier phases. Maybe 'mvn test' or 'mvn compile' would do what you need. Missing footnote. :) [1]

Re: Directory deploy for ear project

2008-09-24 Thread Wendy Smoak
On Mon, Sep 22, 2008 at 9:41 AM, Kem Elbrader [EMAIL PROTECTED] wrote: We directory deploy our ear project during development. We've noticed that the most time spent in the build of our ear is while it is Building jar: Since we aren't using the .ear file during development it'd be nice if

archetype creation and velocity

2008-09-24 Thread Justin Miller
Is there any good documentation that explains how Velocity fits into creating your own archetypes?? Thanks! Justin

Re: archetype:create vs. archetype:generate??

2008-09-24 Thread Raphaël Piéroni
Hi Justin The prefered goal is archetype:generate. May you please fill a jira against the maven site stating that the guide is outdated. And also please fill a jira againt the archetype plugin linking to the last. Thanks, Raphaël 2008/9/24, Justin Miller [EMAIL PROTECTED]: Which is the

Run plugin after modules complete in multi-module project

2008-09-24 Thread Sam Wilson
Hello List, I am putting together a multi-module project that I would like, at the end, to bundle up two or three of the sub-modules into a .tar.gz with accompanying documentation (app consists of multiple components that are deployed separately). I had started out with the idea of include a

Re: Run plugin after modules complete in multi-module project

2008-09-24 Thread Wendy Smoak
On Wed, Sep 24, 2008 at 12:05 PM, Sam Wilson [EMAIL PROTECTED] wrote: Unfortunately it does not seem as though there is a way to attach this assembly plugin to the root-pom project's lifecycle in such a way that it will be run after all the child modules have been produced. So I am stuck

Re: release-plugin: execute at generate-sources phase

2008-09-24 Thread Klaus
Sorry, i do not get it. My explict configuration in buildpluginsplugin overwrites the default config (or, that is what i expect). Where is the conflict? I thought that i just missed a configuration... Thanks Klaus On Tue, Sep 23, 2008 at 6:35 AM, Brett Porter [EMAIL PROTECTED]wrote: I think

Re: frustration with testNG tests running twice.

2008-09-24 Thread Mick Knutson
What I want to have, is testng.xml tests run once in the test phase, and testng-functional.xml tests to run once in the integration-test phase. Right now, I have the cfg I sent. So I have my testng.xml tests running twice in the test phase, and the testng-functional.xml tests running twice in the

Re: archetype creation and velocity

2008-09-24 Thread Brad Szabo
Hey Justin, I am not sure about detailed Velocity documentation, but essentially all files within your archetype that are configured to be filtered will be processed by Velocity, i.e. any file can be a template. The files to be filtered are configured in the archetype-metadata.xml file. For

Re: frustration with testNG tests running twice.

2008-09-24 Thread Mark Derricutt
In the config you first post, only one of your executions mentions a XML file so it'll ignore (or generate) your testng.xml. What what maven/testng stuff I've done - if you mention the suitexml file then groups/exclusions defined in the pom are ignored ( or should be ). On Thu, Sep 25, 2008 at

pom versions and svn branches

2008-09-24 Thread Andreas Ebbert-Karroum
Hi, is there a general recommendation if and how to change your versions when you branch? Simple scenario is when you branch off released code for maintenance and use the release plugin for that. But what if you want to branch from some random point of your trunk? Maybe this is more a svn

Re: release-plugin: execute at generate-sources phase

2008-09-24 Thread Brett Porter
I would normally expect to see the resources in build, but you have a second configuration outside the execution attempting to override that. Is it your intent to copy the one filtered file from src/main/resources in process-sources and then only the files in src/main/resources/META-INF during

Accessing child/parent properties

2008-09-24 Thread Andre Dantas Rocha
Hi all, I'd like to access a child pom property from its parent. Is it possible? Something with this syntax: ${parentProject.childProject.property}. The problem is that I have an EAR project and would like to use properties from EJB and WAR projects and vice-versa. Thanks, Andre

local repository grows indefinitely on CI server

2008-09-24 Thread Craig
Our CI server builds and deploys snapshots to our nexus repository server every time someone commits. During the build of a snapshot multi-module project, it downloads the previous snapshots of the modules to the local repository, even though they are in the reactor about to be built. This has

Re: How to know programatically the SNAPSHOT version

2008-09-24 Thread Wayne Fay
Give us more context -- is this in a plugin, are you using Maven embedded, or what?? Wayne On Wed, Sep 24, 2008 at 9:42 AM, mateamargo [EMAIL PROTECTED] wrote: I have setted the version to 1.0-SNAPSHOT, but I need to know what's the current value. Is there a way to know that using any Maven

New Archetypes inside Eclipse

2008-09-24 Thread Patel, Ronak (US SSA)
Hi all, I am new to Maven's eclipse plugin. I installed a new archetype using the command line mvn install command. How can I use that archetype inside of eclipse to create a project? Eclipse asks me for some catalog file that contains information about the new archetype so I was

RE: New Archetypes inside Eclipse

2008-09-24 Thread Patel, Ronak (US SSA)
Hi all, I am new to Maven's eclipse plugin. I installed a new archetype using the command line mvn install command. How can I use that archetype inside of eclipse to create a project? Eclipse asks me for some catalog file that contains information about the new archetype so I was

Re: Confused with activeProfile

2008-09-24 Thread Brett Porter
2008/9/18 Marc Schneider [EMAIL PROTECTED]: So running : mvn -P testLocal clean tomcat:deploy should be equivalent to : mvn clean tomcat:deploy ? But if I don't put -P testLocal I get an error message as if some parameters are missing. What is the error message? - Brett -- Brett

maven ant tasks and the provided scope

2008-09-24 Thread William Vuong
I have something like this in my ant file and the maven ant tasks 2.0.9 and ant 1.7 that loads a pom.xml file and creates a bunch of filesets: target name=wtf !-- declare pom.xml -- artifact:pom id=maven.project file=pom.xml / !--

Re: frustration with testNG tests running twice.

2008-09-24 Thread Mick Knutson
plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.4.3/version configuration argLine-Xmx256m/argLine

Re: New Archetypes inside Eclipse

2008-09-24 Thread Eugene Kuleshov
Patel, Ronak (US SSA) wrote: I am new to Maven's eclipse plugin. I installed a new archetype using the command line mvn install command. How can I use that archetype inside of eclipse to create a project? Eclipse asks me for some catalog file that contains information about the new

building two artifacts with shared source code

2008-09-24 Thread Tomek Maciejewski
Hi, I have some problem. I am developing an application which should work on mobile devices and desktop. The problem is that I don't want to duplicate the common code. So I createdd a project common which contains common part of code. I also have a mobile project and desktop project, both of them