[ann] Maven 2.0 Beta 3 Released

2005-10-05 Thread Brett Porter
The Apache Maven team are proud to announce the third beta release of Maven 2.0. Download it from http://maven.apache.org/maven2/download.html Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build,

Re: [ann] Maven 2.0 Beta 3 Released

2005-10-05 Thread fabrice . belingard
The Apache Maven team are proud to announce the third beta release of Maven 2.0. Wouah, the new CSS is cool! :o) Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED]

[m2] running checkstyle as part of a test

2005-10-05 Thread David Sag
I am trying to configure my pom to run the checkstyle plugin when i run the tests. Initially I tried putting this in my POM based on a tutorial I read at http://www.devx.com/Java/Article/28801 build plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: [m2] running checkstyle as part of a test

2005-10-05 Thread Brett Porter
I'm not sure where that came from - I don't recall the checkstyle plugin earlier having a separate test goal. This works: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration failsOnErrortrue/failsOnError /configuration !-- These are the

Re: [m2] running checkstyle as part of a test

2005-10-05 Thread David Sag
Hey Brett, fantastic - that works fine and now I think I have a better understanding of all those undocumented tags :-) if i get a chance i'll write all this up as there is precious little documentation yet on these matters that i can find. or rather the documentation I have found has been well

[m2] working on java webservices jaxb xjc plugin

2005-10-05 Thread Ashley Williams
If anyone is interested in working on a plugin for the xjc schema compiler then please let me know as I have one that sort of works and I know that lack of time will mean that I will never bother improving it. For example it only works on Java 5 at them moment as I haven't had time to

[m1] jalopy plugin how to format generated source

2005-10-05 Thread Rault David
Hi all i'm using maven-1.1b2, jalopy-plugin-1.3.1 and andromda the idea is to run andromda on an UML model, and then format the generated code my problem is that the jalopy plugin directly uses pom.build.sourceDirectory i added a {maven:addPath id=maven.compile.src.set ...} with the location

The simple-webapp example project

2005-10-05 Thread Corné Krul
The link to the simple-webapp example project on http://maven.apache.org/using/war.html is dead. Can anyone tell me where to find this example? Corné - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[m2] site plugin

2005-10-05 Thread Mark Kuzmycz
I have the following layout src |- site |-xdoc | |-folder1 | |-folder2 |-resources |-images |-logo.gif In site.xml I have the dollowing XML fragment bannerRightsrcimages/logo.gif/src /bannerRight

[m2-beta-3] Snapshot dependencies with Ant Tasks

2005-10-05 Thread David Pick
I am using SNAPSHOT builds and the Maven dependencies Ant task to synchronise the local and remote repositories. The install/deploy of the snapsot builds works fine, however when I run the Maven dependencies Ant task on the same POMs I get an error Unable to resolve artifact. The Ant

RE: [m2] site plugin

2005-10-05 Thread Mark Kuzmycz
S orry about that I accident sent the message out early: I have the following layout src |- site |-xdoc | |-folder1 | |-folder2 |-resources |-images |-logo.gif In site.xml I have the dollowing XML fragment bannerRight

Re: [m2-beta-3] Snapshot dependencies with Ant Tasks

2005-10-05 Thread Arik Kfir
Yes I've encountered it also - looks like it's related to http://jira.codehaus.org/browse/MNG-1021 On 10/5/05, David Pick [EMAIL PROTECTED] wrote: I am using SNAPSHOT builds and the Maven dependencies Ant task to synchronise the local and remote repositories. The install/deploy of the

[m2] m1 pom conversion

2005-10-05 Thread Mark Hobson
Hi, I'm trying to resolve MEV-3 which led to this discussion: http://thread.gmane.org/gmane.comp.java.picocontainer.user/723 It appears that multiproject m1 poms and project.properties are the core problems - MAVEN-1390 and friends. What is the official maven stance regarding these features

RE: [m2] site plugin

2005-10-05 Thread Vincent Siveton
Hi Mark, You are right. Can you file it in JIRA? Regards, Vincent -Original Message- From: Mark Kuzmycz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 8:09 AM To: users@maven.apache.org Subject: RE: [m2] site plugin S orry about that I accident sent the message

[m2b3] antrun problems

2005-10-05 Thread Mattias Arbin
Could someone please tell what's wrong here: I want to execute an ant build file. The filename is build.xml, which is located in the same location as the pom.xml. It has a default target. In pom.xml, I have: . plugin artifactIdmaven-antrun-plugin/artifactId executions

artifact:dependencies equivalent

2005-10-05 Thread Antonio PAROLINI
Hi, Anyone knows if there is a m2 artifact:dependencies pathId=dependency.classpath equivalent in maven 1 ? If not, how can I create a Ant fileset from a project.xml file with maven 1 ? Best Regards, Antonio ** This

Re: [m2] site plugin

2005-10-05 Thread Geoffrey
If it starts with a / and the doc is in a subdirectory, the plugin could add ..'s. For example: bannerRight src/images/logo.gif/src /bannerRight Becomes in /src/site/xdoc: images/logo.gif /src/site/xdoc/folder1: ../images/logo.gif /src/site/xdoc/folder1/folder2: ../../images/logo.gif just

RE: [m2b3] antrun problems

2005-10-05 Thread Yann Le Du
Hi Mattias, By phasegenerate-sources/phase , you mean that your configuration must only be used in generate-sources phase (see [1] for details on phases). Calling m2 antrun:run doesn't go into this phase, so it's normal build.xml isn't called. If you want your configuration be always used, put

SV: [m2b3] antrun problems

2005-10-05 Thread Mattias Arbin
Thanks Yann. I will try this. However, what I initially wanted to do was indeed to execute this ant task in the generate-source phase. (It is a java2wsdl task that generates java source) I thought that the configuration previously sent would automatically be executed before the compile phase. So,

[m2] Surefire doesn't discover new tests

2005-10-05 Thread Michael Deck
I've just installed Maven 2.0 beta-3 and I'm walking through some simple exercises to get a feel for the app. I've used the archetype plugin to create a simple java project and it seems to build fine. However, if I add another test class to the src/test/java directory m2 doesn't seem to

RE: SV: [m2b3] antrun problems

2005-10-05 Thread Yann Le Du
Hmm, that's pretty strange, because, according to the Build Lifecycle, calling compile should indeed call generate-sources. I tried it and it's working. What is the type of your artifact, jar or other ? Can you send your whole POM ? Just to be sure... :) did you try to replace your task by a

m2: java plugins - configuration and xml

2005-10-05 Thread Robert Biernat
Hi, I'm looking for info that shows how a m2 plugins configuration which is specified in the pom maps to the mojos parameters. For example lets say I had a mojo that had a parameter of type String[] called options. i.e /** * @parameter * private String[] options; What would

Re: [Fwd: Re: Assembly plugin -- couple of questions [m2a3]]

2005-10-05 Thread Erick Dovale
Hi Brett, I finally got the assembly 2.0-beta-2-SNAPSHOT to work this morning after downloading the m2-beta-3. It seems to be working fine except for the fact that it is not including the jars for the modules nor their dependencies. Maybe I am missing something here: At first it was

Deployed extensions hardcoded to jar

2005-10-05 Thread Daniel Hannum
Hi, I'm using the ant tasks to add dependency management and repositories to my ant project. I'm using the following tasks to deploy a zip that I built to the repository. artifact:pom file=pom.xml id=maven.project/ artifact:deploy file=build/web/foo.zip

M2: best way to include property file in a jar artifact?

2005-10-05 Thread phillip rhodes
I am using maven 2 and cannot find an example by which I can have a property file get put into my jar file. I have the property file sitting in with the java code in /src/main/java/com/ Is this best done via pom resource declaration or via pre-compile goals? Is there any complete examples

[m102] is there a migration guide to m2?

2005-10-05 Thread Thomas_Perry
hello, We are currently using v1.0.2 I looked at the maven2 site but did not see anything that might serve as a guide to migrating from m1 to m2. Is there a helpful guide out there? something that might map m1's project.xml/project.properties/maven.xml

Re: M2: best way to include property file in a jar artifact?

2005-10-05 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Typically, these kinds of non-code jar resources are kept separately under src/main/resources, but you can also specify the following: project ... ~ build ~ ... ~resources ~ resource ~directorysrc/main/java/directory ~

Re: [m2] Surefire doesn't discover new tests

2005-10-05 Thread Daniel Krisher
I believe that the surefire plugin only includes classes with names ending in Test by default. If this is your problem, you can modify this behavior with a configuration section for the surefire plugin... Dan On 10/5/05, Michael Deck [EMAIL PROTECTED] wrote: I've just installed Maven 2.0

Re: [m2] project descriptor tags

2005-10-05 Thread Yann Le Du
Just for the archive : the problem is now solved (in m2b3), using the wonderful plugindependencies , instead of extensions Thanks again, Yann --- Yann Le Du [EMAIL PROTECTED] a écrit : Hi Jesse, Yes, my trunk was older than that, that's why the XSD wasn't correct. I'm using beta-1 now.

Re: Maven 2.0 Cruisecontrol plugin?

2005-10-05 Thread Eric Biesterfeld
According to the plugin matrix (http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix) it hasn't been updated yet, and is listed as low priority. We're going to need it ourselves, so I may just take the time to get some basic functionality. On 10/4/05, Frank Zhao [EMAIL PROTECTED] wrote:

[m20b3] Problems Getting My First Plugin to Work

2005-10-05 Thread Allison, Bob
I am trying to build my first plugin and having a problem. I wrote a plugin which I can run as sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi and that works perfectly. I want to set things up so I can reference the goal as hello:sayhi but can't seem to get it to work. I added sample.plugin

Question on tags for logging

2005-10-05 Thread Weaver, Jonathan
I am creating a plugin and using log:debug and log:info, etc. to get output on the console or in a log file. But I have not been able to find out how to configure maven to output the log messages anywhere. I added a log4j.properties to my user profile folder. I added the

Re: [m20b3] Problems Getting My First Plugin to Work

2005-10-05 Thread Wendell Beckwith
I had a the exact same problem however it went away when I updated to m2b2 and blew away my local repo allowing m2 to recreate it. Since then, it has all work fine. Wb On 10/5/05, Allison, Bob [EMAIL PROTECTED] wrote: I am trying to build my first plugin and having a problem. I wrote a

[m2] pom.xml syntax

2005-10-05 Thread John Fallows
Is it possible to customize the syntax of pom.xml without impacting the rest of the Maven2? For example, could one provide a CustomMavenProjectBuilder and then register it as a Plexus MavenProjectBuilder component? How would Maven2 decide which implementation to use, if both the Default and

[m2] managing transitive dependencies

2005-10-05 Thread John Fallows
Suppose I have 3 Maven2 projects, A, B and C. A is self-contained. B depends on A for-implementation-only. C depends on B. My understanding of dependency scopes is that if C depends on B at compile scope, then all of B's compile scope dependencies will also become transitive compile scope

bug in DefaultLog

2005-10-05 Thread Chris Berry
Greetings, The class DefaultLog should protect againg NPE's It is filled with lines like; logger.debug( content.toString(),...) where content can surely be null at times Cheers, -- Chris

Maven era plugin

2005-10-05 Thread jan_bar
Hi, (don't know if this is Maven 1.1 specific). The ear plugin doesn't handle type=aop in cactus:generate-ear-descriptor goal. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Maven era plugin

2005-10-05 Thread jan_bar
It's too late and I made two typos. I am speaking about Maven EAR plugin and EAR:generate-ear-descriptor goal. (the very same problem is in cactus:generate-ear-descriptor goal too) Time to sleep, Jan (don't know if this is Maven 1.1 specific). The ear plugin doesn't handle type=aop in

Re: [m2] pom.xml syntax

2005-10-05 Thread Jason van Zyl
On Wed, 2005-10-05 at 18:56 +, John Fallows wrote: Is it possible to customize the syntax of pom.xml without impacting the rest of the Maven2? In theory yes, but would we want to allow that I don't know. What do you want to customize? Is is something generally useful that might be

Re: [m2] pom.xml syntax

2005-10-05 Thread Arik Kfir
I love maven(2) as it is - but I guess one could come up with a scenario such as database-stored POMs or something of the sort... But I agree this is definitely way out of the main-stream... ;-) On 10/6/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Wed, 2005-10-05 at 18:56 +, John Fallows

Re: [m2] Surefire doesn't discover new tests

2005-10-05 Thread Jason van Zyl
On Wed, 2005-10-05 at 11:53 -0400, Daniel Krisher wrote: I believe that the surefire plugin only includes classes with names ending in Test by default. If this is your problem, you can modify this behavior with a configuration section for the surefire plugin... The defaults are as follows

Re: [m102] is there a migration guide to m2?

2005-10-05 Thread Jason van Zyl
On Wed, 2005-10-05 at 11:38 -0400, [EMAIL PROTECTED] wrote: hello, We are currently using v1.0.2 I looked at the maven2 site but did not see anything that might serve as a guide to migrating from m1 to m2. We will be releasing tools to help you convert your

Re: [Fwd: Re: Assembly plugin -- couple of questions [m2a3]]

2005-10-05 Thread Jason van Zyl
On Wed, 2005-10-05 at 11:07 -0400, Erick Dovale wrote: Hi Brett, I finally got the assembly 2.0-beta-2-SNAPSHOT to work this morning after downloading the m2-beta-3. It seems to be working fine except for the fact that it is not including the jars for the modules nor their dependencies.

Re: m2: java plugins - configuration and xml

2005-10-05 Thread Jason van Zyl
On Thu, 2005-10-06 at 00:55 +1000, Robert Biernat wrote: Hi, I'm looking for info that shows how a m2 plugins configuration which is specified in the pom maps to the mojos parameters. For example lets say I had a mojo that had a parameter of type String[] called options. project

RE: [m2] Surefire doesn't discover new tests

2005-10-05 Thread Dave Neuer
Does this go for abstract base classes too? I.e., Will surefire find tests defined in a superclass whose name doesn't look like that? Dave -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 7:29 PM To: users@maven.apache.org Subject: Re:

[m1.0.2] war file not in dependency list in goal execution

2005-10-05 Thread Anthony Kong
Hi, all, Due to a particular need of my project, i have to copy some dependencies to another directory. The dependencies include a war file. I have written this code fragment in a maven.xml j:forEach var=lib items=${pom.artifacts} ant:echo ${lib.name}/ant:echo j:set

RE: [m1.0.2] war file not in dependency list in goal execution

2005-10-05 Thread Anthony Kong
I think I have found out the cause (not the solution, though) Actually in my dependency list I have these entries: ... dependency groupIdmyprojectA/groupId artifactIdmyapp/artifactId version3.1.4/version typeejb/type /dependency dependency

Re: artifact:dependencies equivalent

2005-10-05 Thread Brett Porter
maven.dependency.classpath is a pathId of the current project.xml fileset j:forEach var=dep items=${dep.artifacts} pathelement location=${dep.path} / /j:forEach /fileset should do what you need. - Brett On 10/5/05, Antonio PAROLINI [EMAIL PROTECTED] wrote: Hi, Anyone knows if

RE: [m1.0.2] war file not in dependency list in goal execution

2005-10-05 Thread Anthony Kong
I further found out that this problem is solved in m1.1b2. If I want to, in my custom plugin, to detect maven's version number, how can I do that? I want to make sure the user runs a maven of version greater than 1.0.2. Anything like this as in perl? Cheers, AK -Original Message-

Re: m2: java plugins - configuration and xml

2005-10-05 Thread Brett Porter
On 10/6/05, Jason van Zyl [EMAIL PROTECTED] wrote: Having to specify the implementation there will be fixed shortly but that's what you have to do for now and the fix will be backward compatible we're just going to default to java.lang.String. s/will be fixed shortly/was fixed in beta-3/

Re: [m2] Surefire doesn't discover new tests

2005-10-05 Thread Brett Porter
Surefire only looks for the other classes to create suites from, but any tests in superclasses will be used. - Brett On 10/6/05, Dave Neuer [EMAIL PROTECTED] wrote: Does this go for abstract base classes too? I.e., Will surefire find tests defined in a superclass whose name doesn't look like

Re: [m2] m1 pom conversion

2005-10-05 Thread Brett Porter
As Joerg mentions, the artifact plugin (1.5.2 for Maven 1.0.2, or 1.6 as included in Maven 1.1 beta 2) now deploys a complete pom instead. I have closed MAVEN-1390 as won't fix. - Brett On 10/5/05, Mark Hobson [EMAIL PROTECTED] wrote: Hi, I'm trying to resolve MEV-3 which led to this

Re: [m2] managing transitive dependencies

2005-10-05 Thread Brett Porter
Sorry, I'm missing something. Why isn't B depending on A with runtime scope? - Brett On 10/6/05, John Fallows [EMAIL PROTECTED] wrote: Suppose I have 3 Maven2 projects, A, B and C. A is self-contained. B depends on A for-implementation-only. C depends on B. My understanding of dependency

Re: Question on tags for logging

2005-10-05 Thread Brett Porter
These tags should go to the normal output, and are controlled by Maven's log4j.properties. debug is only shown with -X info is suppressed with -q Did you include a dependency on comons-jelly-tags-logging? - Brett On 10/6/05, Weaver, Jonathan [EMAIL PROTECTED] wrote: I am creating a plugin

Re: Deployed extensions hardcoded to jar

2005-10-05 Thread Brett Porter
it's controlled by packaging/ in the pom. However, you might need more functionality from the ant task - please file a bug. - Brett On 10/6/05, Daniel Hannum [EMAIL PROTECTED] wrote: Hi, I'm using the ant tasks to add dependency management and repositories to my ant project. I'm using the

Re: [m2] faulty scp protocol handling in wagon?

2005-10-05 Thread Brett Porter
have jsch indicated when they might include it? is the scpexe protocol a viable alternative for you? - Brett On 10/5/05, Orjan Austvold [EMAIL PROTECTED] wrote: I noticed that sch 0.1.22 got released yesterday. Only to bad that that it did not include a fix for the MNG-678 issue. In the