searching the archives??

2005-08-22 Thread Chris Berry
Greetings, At the risk of asking a dumb question, is users@maven.apache.org searchable?? When I go to the archives (http://mail-archives.apache.org/mod_mbox/maven-users/) I cannot see any mechanism to search. Am I missing something?? Thanks, -- Chris

[m2] maven-antrun-plugin

2005-08-22 Thread Chris Berry
Greetings, I am trying to get the m2 maven-antrun-plugin to run. I have gotten pretty far but now I'm stumped. First I downloaded the latest/greatest m2 from SVN. Then I pulled the maven-antrun-plugin code out and built it, after hacking a bit. I had to; 1) Change the pom.xml parent version 2)

Re: maven2 : packaging options

2005-08-23 Thread Chris Berry
Thanks Brett. That worked (after updating to the current HEAD from SVN nad building m2 from scratch). I now get the following:: [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [INFO] Executed tasks Although note that I am NOT getting my Ant echo printed to System.out ??? Even if

Re: maven2 : packaging options

2005-08-23 Thread Chris Berry
Actually, it does work when using echo level=error. My mistake... I will add an optional parameter to AntRun that allows one to set echo level. I'll submit it back as a patch... Thanks, -- Chris On 8/23/05, Chris Berry [EMAIL PROTECTED] wrote: Thanks Brett. That worked (after updating

[m2] @parameter, etc

2005-08-23 Thread Chris Berry
Is there any documentation for the Javadoc annotations for m2 Java-based Mojos?? In particular I am interested in @parameter (and it's follow on syntax like; expression=). If not, could someone please point me at the appropriate source project to read the code in... (unfortunately, there are so

[m2] project.artifacts Classpath, etc.

2005-08-23 Thread Chris Berry
Greetings, I am trying to figure out how to pass on the Classpath to Ant. I know how to do this programmatically in Ant (e.g. project.setProperty) . What I am trying to work out is how pass on the Classpath from the *plugin*. By trial and error, I see that ${project.artifacts} results in a HashSet

Re: [m2] project.artifacts Classpath, etc.

2005-08-23 Thread Chris Berry
?? I know that, for example, Ant must be on my Classpath because teh plugin is able to invoke it... Thanks, -- Chris On 8/23/05, Trygve Laugstøl [EMAIL PROTECTED] wrote: On Tue, Aug 23, 2005 at 05:52:59PM -0500, Chris Berry wrote: Greetings, I am trying to figure out how to pass

Re: [m2] project.artifacts Classpath, etc.

2005-08-23 Thread Chris Berry
that helps, - -john Edwin Punzalan wrote: | To get the artifacts that's relative only to your plugin, you can use | ${plugin.artifacts}. | | Its the same as ${project.artifacts} except the project object is your | plugin. | | | | Chris Berry wrote: | | Thanks much for your answer. | When

[m2] javadocs??

2005-08-24 Thread Chris Berry
I suppose the javadocs for maven2 are somewhere on the site -- but I cannot locate them. The old, familiar Project Reports is missing. And I've trolled thru most pages looking. I also tried to run m2 site:site on my local SVN checkout (it died). So I'm at a loss... Are there any javadocs available

[m2] plugin.getDependencyPath

2005-08-24 Thread Chris Berry
Hi, In the bad old days of Jelly, we could type something like:: plugin.getDependendcyPath( 'axis:ant' ); And you got back the full path to a JAR -- so we could use it as:: ant:path id=axis.classpath ant:pathelement path=${plugin.getDependencyPath('axis:axis')}/ Is there an equivalent helper

Re: [m2] plugin.getDependencyPath

2005-08-24 Thread Chris Berry
: On Wed, 24 Aug 2005, Chris Berry wrote: Hi, In m2 you just specify that jar as a dependency in the pom of the plugin. It's then automatically added to the runtime classpath of that plugin's execution environment. Further, you can access the Plugin object and it's properties in a Mojo

Re: [m2] plugin.getDependencyPath

2005-08-24 Thread Chris Berry
Comments inline. Thanks, -- Chris On 8/24/05, John Casey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 One thing we're considering adding to m2 in the very near term is the concept of dependencies that are tied directly to a plugin definition. Don't we already

Re: [m2] properties

2005-09-13 Thread Chris Berry
Hi Ashley, I'm told it will look like this:: properties keyvalue/key So you might have properties foobar/foo And, thus, you can use ${foo} elsewhere Of course, the Mvaen Guys shoudl confirm this ;-) Cheers, -- Chris On 9/13/05, Ashley Williams [EMAIL PROTECTED] wrote: But where

[m2] antfile plugin (was: whether to use ant)

2005-09-15 Thread Chris Berry
Greetings, There was a recent thread on whether to use ant. It is a long thread (19+ posts) and became divergent. So rather than bury that post there, I will raise it here to the top level. Like people in that thread, I firmly believe that a happy marriage between Maven and Ant is in the best

Re: [m2] antfile plugin (was: whether to use ant)

2005-09-15 Thread Chris Berry
Hi Ashley, comments inline. Cheers, -- Chris On 9/15/05, Ashley Williams [EMAIL PROTECTED] wrote: (Chris) Pleased to see fellow users steering Maven more in the direction of ant and I have a few questions about this new plugin. 1. I'm concerned that I have to write java code in order to

Re: [m2] antfile plugin (was: whether to use ant)

2005-09-15 Thread Chris Berry
On 9/15/05, Kenney Westerhof [EMAIL PROTECTED] wrote: :) Well, I agree mostly, so far. So, it's back to Jelly, or, with m2, marmalade. I think an 'ant' scripting language is in the works, next to beanshell / marmalade / java, maybe that'll be the solution then. No mo task wrapping, just

Re: [m2] antfile plugin (was: whether to use ant)

2005-09-15 Thread Chris Berry
On 9/15/05, Ashley Williams [EMAIL PROTECTED] wrote: ROFL! Dude, I must put the record straight: Ashley not Ashleigh ... Glen not Glenda if you get what I mean!!! eeek. sorry about that. Although you completely blew my mental image ;-)

Re: [m2] antfile plugin (was: whether to use ant)

2005-09-15 Thread Chris Berry
If you are interested in seeing this stuff in action I have entered an enhancement request in Maven's Jira. (Per John's request) This Jira entry contains a ZIP which has a full example of what I'm describing -- including the axisant plugin -- which extends the antfile plugin. And a my-app, which

Re: [m2] reasons for sticking with maven

2005-09-20 Thread Chris Berry
Ashley, I recommend that you pull my AntFile Plugin (as a ZIP) from the M2 Jira. I think you will see that this provides exactly what you're asking for -- a simple, clean blending of Ant w/ Maven (Included is an Axis WSDL2Java plugin that demonstrates it's usage pattern). You script with Ant, roll

Re: [m2] reasons for sticking with maven

2005-09-20 Thread Chris Berry
Yes, it is the equivalent. But one thing confuses me, it's not about executing a java process (per se) -- it's about executing Ant. And it's not about maintenance. I think the heart of the discussion is reuse. Not reinventing what Ant already does. Providing a mechanism for reuse and versioning

Re: [m2] Antfile plugin

2005-09-21 Thread Chris Berry
This is it Cheers, -- Chris allows use of Ant build files - Key: MNG-897 URL: http://jira.codehaus.org/browse/MNG-897 Project: Maven 2 Type: Improvement Components: maven-ant-plugin Versions: 2.0-alpha-3 Reporter: Chris Berry

SocketException downloading JARs

2005-09-21 Thread Chris Berry
Greetings, I am having trouble building the latest/greatest m2 HEAD from SVN. I am getting a SocketException: Invalid argument or cannot assign requested address when it is trying to download a JAR from http://repo1.maven.org What is odd is that 1) I can see POMs that have been loaded into my

Re: SocketException downloading JARs

2005-09-21 Thread Chris Berry
I wonder if this has something to do with redirects?? http://repo1.maven.org redirects to ibiblio but the SNAPSHOTs repo does not redirect... Although I don't know what to do with that info ;-) On 9/21/05, Chris Berry [EMAIL PROTECTED] wrote: Greetings, I am having trouble building the latest

Re: [m2] properties

2005-09-25 Thread Chris Berry
Hi John, Don't know if it's a bug but properties m2.version2.0-beta-2-SNAPSHOT/m2.version /properties . version${m2.version}/version does NOT work. But, without the . in the property name, it does work. I.e. properties m2version2.0-beta-2-SNAPSHOT/m2version /properties .

Re: [m2] properties

2005-09-26 Thread Chris Berry
...at least, IMHO. Cheers, John Brett Porter wrote: | I guess a lot of people are going to want to use dotted properties, so | we should support it. | | It probably is attempting to do reflection on m2. | | - Brett | | | On 9/26/05, Chris Berry [EMAIL PROTECTED] wrote: | |Hi John

Re: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Chris Berry
I don't think you can do what you want with Spring. It cannot have a master set of dependencies because Spring is split up into a pay-as-you-go set of JARs (i.e there are many JARs available -- but you use a subset). Once you know that subset, m2 has a cool way of building Composite POM Projects

repositories in settings.xml

2005-09-28 Thread Chris Berry
Greetings, Can one declare a repository at the top level of the settings . In other words, outside of a profile?? Many of us use a few local repos -- say, a local mirror of ibiblio or a local repo for internal JARs. -- common to all projects, and it makes sense to me that this is a global setting

Re: Best Solution to Parent POM Chicken Egg Problem

2005-09-30 Thread Chris Berry
As I've said previously, I do not believe that repository info has *any* place in a POM -- at any level of the hierarchy. A POM should be thought of as a recipe. And with any recipe, the recipe itself does not prescribe where to shop for the ingredients!! This is especially important for

Re: Best Solution to Parent POM Chicken Egg Problem

2005-09-30 Thread Chris Berry
Kenney, It's not about taste. Defining repos in teh POM are a real problem. Here's an example; I recently got a POM from someone that had the SNAPSHOT repo defined in the POM. Fine, as long as you could get at it, which we couldn't. But that aside, this repo element defined snapshots

Re: [m2] using java web services

2005-10-03 Thread Chris Berry
Hi Ashley, There may be a JAXB plugin that I'm unaware of ?? There is an Axis WSDL2Java plugin at mojo.codehaus.orghttp://mojo.codehaus.org . I have also written a WSDL2Java plugin that actually just offloads to an Ant build file to do all of the work. You could easily canibalize my work for JAXB.

Re: [m2] using java web services

2005-10-03 Thread Chris Berry
to create my own artifact for jaxb using this pom and my downloaded xjc jar file. As for wsdl, not using it yet simply because there aren't 37 hours in a day to look at it, but it's definitely on my radar ;) Cheers AW On 3 Oct 2005, at 17:27, Chris Berry wrote: Hi Ashley, There may

Re: [m2] using java web services (off topic)

2005-10-03 Thread Chris Berry
these warts. You're right about centering on something like wsdl, but I have to start somewhere! I'd start w/ WSDL -- it's where you will eventually end up . ;-) wsdl2java looks great, just the sort of thing that gives me confidence in Maven. off-topic On 3 Oct 2005, at 20:12, Chris Berry wrote

Re: [m2] how to reference lots of jar files

2005-10-04 Thread Chris Berry
Hi Ashley, I had a similar issue for Axis -- It has many dependencies, which I wanted to keep grouped together - so that I can easily upgrade versions -- or keep Servers and my Axis WSDL2Java plugin easily in sync So I build a POM project -- i.e. a project (e.g. axis-deps-1.2.1) that's artifact

[m2] lastUpdated ??

2005-10-04 Thread Chris Berry
Greetings I recently tried to do a build (this AM) -- and it asked me if I wanted to get newer versions -- I said all -- and then my build broke (BTW; it is using SNAPSHOTS) I get the error:: Root error: Unrecognized tag: 'lastUpdated' Do I need to build a later version of m2?? BTW:

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

[m2] proxyactive

2005-10-17 Thread Chris Berry
Greetings, Perhaps I don't understand the usage, but I assume that proxy activefalse/active should turn off the proxy. But in my case (beta3) it does not. I had to comment out the entire proxy element. Is this a bug or a misunderstanding?? Thanks, -- Chris

mailing list archives

2005-10-17 Thread Chris Berry
Greetings, FYI: the archives link off the mailing list page in m2 (project-reports-mailing-lists) points to the apache archives (BTW: for the wrong list; [EMAIL PROTECTED]) -- which is not searchable while the one in m1 points to the correct list in MARC, which is searchable. Cheers, -- Chris

[m2] new plugins for m2 RC??

2005-10-17 Thread Chris Berry
Greetings; Are new plugins available for m2 RC?? If I understand things, I would think that they might be made available?? I.e. When building m2 from SVN one gets a new set of base plugins constructed (e.g. 2.0-beta-3-SNAPSHOT) But with the RC release-- which is distributed as JARs -- the

Re: [m2] new plugins for m2 RC??

2005-10-17 Thread Chris Berry
, Chris Berry [EMAIL PROTECTED] wrote: Greetings; Are new plugins available for m2 RC?? If I understand things, I would think that they might be made available?? I.e. When building m2 from SVN one gets a new set of base plugins constructed (e.g. 2.0-beta-3-SNAPSHOT) But with the RC release

[m2] Building a generic build system in m2

2005-10-18 Thread Chris Berry
Greetings, I have found that one could easily produce a generic build system in m1 using the import statement from jelly:core inside of the maven.xml file. I.e . j:import inherit='true' file='mybuildtools-1.2.3.xml' / where the file; mybuildtools-1.2.3.xml, would contain parametrized goals

Re: [m2] Building a generic build system in m2

2005-10-18 Thread Chris Berry
, Chris. :) Comments inline. Chris Berry wrote: | Greetings, | I have found that one could easily produce a generic build system in m1 | using the import statement from jelly:core inside of the maven.xml file. I.e | . | | j:import inherit='true' file='mybuildtools-1.2.3.xml' / | | where

Re: [m2] new plugins for m2 RC??

2005-10-18 Thread Chris Berry
Hi John, I guess what's problematic is that many of us have been working from the HEAD of SVN so that we could workaround this or that bug. So now that we have a release candidate (RC) -- it is only a portion of the picture (no plugins are provided). So do we stick with our current SNAPSHOT

Plugins of plugins

2005-10-18 Thread Chris Berry
Greetings, Is it possible to write a plugin of plugins?? I.e. a plugin that is simply a composite of other plugins. To make this concrete, imagine that you have a common set of plugins that are used across many projects -- together forming a common build system. For example, in project A you have

Re: Plugins of plugins

2005-10-18 Thread Chris Berry
the maven.xml. I'd love to be able to set up a composit plugin where I could define a set of goals to execute. - Brill Pappin On 10/19/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Tue, 2005-10-18 at 22:00 -0500, Chris Berry wrote: Greetings, Is it possible to write a plugin of plugins

Re: Plugins of plugins

2005-10-19 Thread Chris Berry
this would be the solution. I don't think this would be hard to do but would be good to get a couple more concrete use cases first. - Brill Pappin On 10/19/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Tue, 2005-10-18 at 22:00 -0500, Chris Berry wrote: Greetings, Is it possible

Re: Plugins of plugins

2005-10-19 Thread Chris Berry
I think the Composite Pattern would fit nicely here... CompositePlugin implements Plugin AbstractPlugin implements Plugin And CompositePlugin contains an array of Plugins Cheers, -- Chris On 10/19/05, Jason van Zyl [EMAIL PROTECTED] wrote: On Wed, 2005-10-19 at 09:45 -0500, Chris Berry wrote

Re: partial multiproject release

2005-10-19 Thread Chris Berry
Hi Orjan, I guess the moral of the story is that you should not put dependencies on SNAPSHOTs. Or put another way, if you depend upon SNAPSHOTs then you are coupling yourself to the release cycle of the SNAPSHOT project. Separating generic,a,b, and c into separate projects, you are saying that

Re: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
This brings up a bigger question; How does maven want to handle OS information in the repo?? To be successful w/ other languages like C, the repo will need to delineate information such as i586 and linux. Are these to be rolled into the groupId?? That doesn't smell right. Seems that we may need

Re: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
somehow transparently fill in OS info when constructing the URL. Cheers, -- Chris On 11/1/05, dan tran [EMAIL PROTECTED] wrote: You can use groupId for platform specific or add platform specific string to your artifact id. -D On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: This brings

Re: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
/05, dan tran [EMAIL PROTECTED] wrote: You can use groupId for platform specific or add platform specific string to your artifact id. -D On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: This brings up a bigger question; How does maven want to handle OS information in the repo

Re: Migrate jelly execute scripts to M2? (was RE: Wanted: Help with documentation on M2)

2005-11-01 Thread Chris Berry
Hi Siegfried, I think the short answer is; write a plugin. Now if you're like me, and your Jelly was mostly just a bunch of Ant calls with a bit of Jelly glue, then you might consider using the new m2 Ant plugins. This would allow you to transfer the knowledge directly to an Ant buildfile and

Re: [m2] internal repository docs?

2005-11-01 Thread Chris Berry
Hi Wendy, I had to do this too and used:: repositories repository idCWB/id urlfile:///C:/cberry/work/3rdparty-repo//url layoutlegacy/layout /repository /repositories Note the /// on windoze. And note the trailing / Cheers, -- Chris On 11/1/05, Wendy Smoak [EMAIL PROTECTED] wrote: I asked

Re: Building C++ projects with Maven (2)

2005-11-01 Thread Chris Berry
: You can use groupId for platform specific or add platform specific string to your artifact id. -D On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: This brings up a bigger question; How does maven want to handle OS information in the repo?? To be successful w/ other

Plugin Inheritance

2005-11-02 Thread Chris Berry
Greetings, I am looking for guidance on POM inheritance. I know that I can set up a build system where all common functionality is pulled into a Parent POM, so that Child POMs can be remarkably small. What I'm uncertain on is how I override some of the plugins -- leaving the others as is. I see

Re: Plugin Inheritance

2005-11-02 Thread Chris Berry
is inherited. And you can override any config properties or add new ones where necessary. Powerful, good stuff. This, plus the ability to parameterize with properties, makes it really easy to create a malleable build system good job maven guys ;-) Cheers, -- Chris On 11/2/05, Chris Berry [EMAIL PROTECTED

Re: Migrating from Ant to Maven

2005-11-03 Thread Chris Berry
Hi, The move from Ant to Maven is relatively painless, particularly with Maven2. I would definitely recommend going with Maven2. Maven1 uses Jelly which is pretty nasty to deal with -- you can call out to Ant with Jelly easily, but Jelly is quite unpredictable and you will spend a lot of time

[continuum] ruby xmlrpc client

2006-08-22 Thread Chris Berry
Greetings, Has anyone yet created a Ruby-based xmlrpc client for Continuum that they would be willing to share?? Thanks, -- Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

maven-ant-script and bash scripts

2006-10-05 Thread Chris Berry
Greetings, I need to call a bash script -- from an Ant script -- that I want to roll into a Maven plugin based on maven-ant-script. Sound convoluted ;-) It is, but this is the path of least resistance. I have an existing Ant build to convert. My question; Can one do this from maven-ant-script??

Re: maven-ant-script and bash scripts

2006-10-05 Thread Chris Berry
, but until that JAR is unpacked, it can only solve a subset of problems. Of course, I could be missing something... Cheers, -- Chris On 10/5/06, dan tran [EMAIL PROTECTED] wrote: exec-maven-plugin ? On 10/5/06, Chris Berry [EMAIL PROTECTED] wrote: Greetings, I need to call a bash script -- from

Problem w/ HttpUtils

2005-01-30 Thread Chris Berry
Greetings, I am using HttpUtils to manually fetch dependencies. I do this because maven does not adequately chain dependencies. I.e if A depends on B, and B depends on C, then B should chain in it's own dependencies and not force A to prescribe them (since A should not know this directly) So I

multiple vesions of a plugin

2005-01-30 Thread Chris Berry
Greetings, Is it possible for multiple versions of the same plugin to exist simultaneously in a cache?? If so, how does one specify explicitly which plugin to use?? Imagine the following: You are working on several projects simultaneously, all on their own lifecycles. Project A is code frozen and

RE: Problem w/ HttpUtils

2005-01-30 Thread Chris Berry
artifactIdmaven/artifactId version1.0.2/version /dependency regards! /Ole From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Sun 30/01/2005 17:51 To: users@maven.apache.org Subject: Problem w/ HttpUtils Greetings, I am using HttpUtils to manually

RE: Problem w/ HttpUtils

2005-01-30 Thread Chris Berry
in your plugins' dependency-list? /Ole From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Sun 30/01/2005 19:25 To: Maven Users List Subject: RE: Problem w/ HttpUtils Unfortunately, that doesn't help. --- Ole Matzura [EMAIL PROTECTED] wrote: Hi

RE: Problem w/ HttpUtils

2005-01-30 Thread Chris Berry
From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Sun 30/01/2005 19:56 To: Maven Users List Subject: RE: Problem w/ HttpUtils These jars are a part of maven itself I don't think that I should have to explicitly declare them. And also, this same

mutable properties from a file

2005-01-31 Thread Chris Berry
Greetings, I am trying to read a mutable property from a file (I use it within a loop). I have tried using the ant-contrib var task with unset=true -- as shown below. But this is not reseting the Ant property?? Does anyone know a maven way of reading properties from a file which allows for the

Re: mutable properties from a file

2005-01-31 Thread Chris Berry
Answering my own question. Use something like teh following:: u:properties var=props file=${jarsListFile} / j:set var=jarsFlist value=${props.getProperty( 'jarsFlist' )} / Cheers, -- Chris --- Chris Berry [EMAIL PROTECTED] wrote: Greetings, I am trying to read a mutable property

[m2] missing dependency features??

2005-11-20 Thread Chris Berry
Greetings, Seems that dependencies should provide two features they do not already; 1) the ability to explicitly specify the URL from which to download an artifact (in m1, if I recall, this was handled by the jar element). This is particularly important when one depends upon interface definitions

Re: [m2] missing dependency features??

2005-11-21 Thread Chris Berry
Inline. Thanks, -- Chris On 11/20/05, Brett Porter [EMAIL PROTECTED] wrote: On 11/21/05, Chris Berry [EMAIL PROTECTED] wrote: Greetings, Seems that dependencies should provide two features they do not already; 1) the ability to explicitly specify the URL from which to download

Re: How to disable transitive dependency?

2005-11-21 Thread Chris Berry
I think the gist of this thread is that, yes, we can add optional or exclusions -- but why not simply add a dependency attribute such as:: dependency transitive=off or even dependencies transitive=off Although it seems that this should be a project-specific property and should not be

Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Chris Berry
Hi Wim, I had to do something like this as well w/ the antrun Plugin. Ant expects to find a real File for build.xml, and won't extract it from JAR. So I simply used Ant to do all the work. You can ignore the part where I build the ant task. The pertinent part is shown below. BTW. you could even

type vs packaging looping over dependencies

2005-12-13 Thread Chris Berry
Greetings, A couple of questions; 1) Can someone point me at the docs, or if none are available (as it seems), tell me how to create a type of dependency that doesn't actually map directly to it's underlying type -- e.g. say I want to create a type CAR (some hypothetical type) that is actually a

Re: type vs packaging looping over dependencies

2005-12-14 Thread Chris Berry
Thanks Dan, I found some info here as well http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html I had read this before but forgot that this info was there... Thanks, -- Chris On 12/14/05, dan tran [EMAIL PROTECTED] wrote: On 12/13/05, Chris Berry [EMAIL PROTECTED

Re: Is it possible to make pom.xml simpler?

2005-12-15 Thread Chris Berry
Hi Matt! A big +1 from me. I've been discussing this w/ John, Jason, et al. A push towards simplifying/shortening the XML would be a big help. Cheers, -- Chris On 12/15/05, John Casey [EMAIL PROTECTED] wrote: Actually, an even better thing to do would be to participate in the design for 2.1.

Re: Is it possible to make pom.xml simpler?

2005-12-15 Thread Chris Berry
IMO. Many folks prefer to use simple text editors and they're unlikely to fire up Eclipse just to edit their pom.xml. Matt Milos Chris Berry wrote: Hi Matt! A big +1 from me. I've been discussing this w/ John, Jason, et al. A push towards simplifying/shortening the XML would

[m2] problem with new packaging

2005-12-16 Thread Chris Berry
Greetings, I am trying to create my own packaging type (named car -- a configuration archive). I need to do this so that I can find all dependencies of type car in a project and process them specially. A car is really just a jar that requires special processing. So I created a special Car Plugin

Re: [m2] problem with new packaging

2005-12-16 Thread Chris Berry
/component On 12/16/05, Chris Berry [EMAIL PROTECTED] wrote: Greetings, I am trying to create my own packaging type (named car -- a configuration archive). I need to do this so that I can find all dependencies of type car in a project and process them specially. A car is really just

[m2] disabling ibiblio repo search

2005-12-18 Thread Chris Berry
Greetings, I have an m1 project that I'm converting to m2. And I have a full m1, legacy-style repository. The mail archives tell that supposedly one can disable the use of ibiblio by specifying a repo with the name central. I have tried this, and it's not working for me. This is what I've tried::

[m2] Repository precedence

2005-12-18 Thread Chris Berry
Greetings, I would like to prescribe a repository precedence order. I have a legacy-style repo that I want searched first for artifacts -- then second, my ibiblio mirror -- and then possibly ibiblio. How does one set repository precedence in m2?? This was easily and cleanly done in m1 using the

[m2] Missing POMs for m1, legacy-style projects

2005-12-18 Thread Chris Berry
Greetings, AFAICT, m2 goes off and searches for POMs for each artifact it encounters. This is all well and good if the POMs exist, but when one is using a mix of m1 m2 repos, then there will be many artifacts that do not have associated POMs. m2 figures this out and moves on -- as it should --

[m2] add to maven classpath from Ant

2005-12-18 Thread Chris Berry
Greetings, Is it possible to add to the maven Classpath from Ant. In Jelly we would use:: maven:addPath id=maven.dependency.classpath refid=libEntryPath/ Is there an equivalent way to do this manipulation from Ant script Thanks, -- Chris

Re: [m2] disabling ibiblio repo search

2005-12-19 Thread Chris Berry
Hi Dan, I figured out what went wrong. On windoze one must put your settings.xmlfile into Documents and Settings/name/.m2. This is true even if you use cygwin and even if you put your local repo into another HOME (i.e. cygwin-based). When I use the settings as shown above, central can be

Re: [m2] Missing POMs for m1, legacy-style projects

2005-12-19 Thread Chris Berry
Inline. Cheers, -- Chris On 12/18/05, Brett Porter [EMAIL PROTECTED] wrote: On 12/19/05, Chris Berry [EMAIL PROTECTED] wrote: Does anyone know how to work around this?? Previously, we'd written a dummy into the local repository, but this meant that if you then went and corrected

[m2] issue w/ dependency mediation

2005-12-19 Thread Chris Berry
Greetings, Yesterday I saw an issue w/ m2's dependency mediation. Some transitive dependency wanted JUnit 3.7 and I'm assuming 3.8.1. Since this one was seen first, it won. So, of course, my build broke. (Before you ask, I don't directly declare the JUnit dependency in my POM because I have a

Re: Support for mojos written in Ant

2005-12-22 Thread Chris Berry
Hi Filip, I think your best bet might be to checkout the Plugin from SVN. IMHO, this is the best way to get the full picture as things are still in flux -- and the docs will likely not have caught up with the code. Of course, you'll need a Subversion Client (I use TortoiseSVN) AFAIK, this should

[m2] m1 - m2 surefire problem

2005-12-22 Thread Chris Berry
Greetings, I am converting an m1 project to m2. Unfortunately I am getting different behavior in the test phase of the build. In m1, of course, it all runs fine. But under m2 (i.e. surefire) when my test accesses the Internet, it is has Proxy issues and fails, and when I work around that; it has

Re: [m2] Antrun / Javac

2005-12-23 Thread Chris Berry
Actually, I think this is a bug in the antrun Plugin. Ant, by definition, should have system properties available to it -- such as the ${ java.class.path} property you require or ${user.home} or whatever. In my local version of antrun I had to do the following fix in

Re: Support for mojos written in Ant

2005-12-23 Thread Chris Berry
can't find anything about that here http://maven.apache.org/guides/mini/guide-using-ant.html Filip Chris Berry wrote: Hi Filip, I think your best bet might be to checkout the Plugin from SVN. IMHO, this is the best way to get the full picture as things are still in flux

Re: Running a single test?

2005-12-23 Thread Chris Berry
mvn -Dtest=MyTest test Note: MyTest is your java test class. Note: Use it unqualified -- without its package name (e.g. without com.myco.) otherwise, this confuses m2 On 12/23/05, Raymond N. Ritz [EMAIL PROTECTED] wrote: Is there a way to run a single junit test case in maven 2? Raymond

Re: Re: Running a single test?

2005-12-23 Thread Chris Berry
not know why this was done. Thanks Ray -Original Message- From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 1:39 PM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: Running a single test? mvn -Dtest=MyTest test Note: MyTest is your java test class

[m2] required JDK version

2006-01-04 Thread Chris Berry
Greetings, I would like clarification on what version of the JDK is required for m2 -- particularly with respect to creating Plugins. As far as I know, JDK 1.5 is not required -- and maven has a special way to handle annotations. I believe I have read about this somewhere, but can no longer locate

[m2] multi-module question

2006-01-04 Thread Chris Berry
Greetings, Is it possible to specify multiple modules in a POM that are deeper than 1 level. In other words, say I have the following structure: /top/pom.xml == the multi-module POM /top/a/b/c/d/pom.xml== build 1 /top/a/e/f/pom.xml== build 2 /top/g/h/pom.xml ==

Re: ${project.build.directory} different in M2.0 M2.0.1

2006-01-05 Thread Chris Berry
We have seen the same issue, and it is a serious PITA. Now we will have to go through any home grown Plugins and modify them accordingly. 1) the absolute path makes more sense, and more importantly, matches all previous behavior, particularly m1!! 2) this sort of change should come with a huge

Re: Maven 2 and Ant classpath issue

2006-01-10 Thread Chris Berry
Hassan, Please search the list archives -- this has been covered many times recently. If that doesn't answer your question, then please post the POM snippet that shows the ant call. (You may have forgotten inheritRefs=true) Cheers, -- Chris On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Re: Support for mojos written in Ant

2006-01-11 Thread Chris Berry
I use Ant as a fundamental scripting language for Maven. I use the antrun plugin. I have a hacked up version that allows me to build Plugins that hold an Ant build file and a simple, thin Mojo that extends the Antrun base class. When executed this Plugin unpacks the Ant build.xml and executes

Re: Support for mojos written in Ant

2006-01-11 Thread Chris Berry
http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html On 1/11/06, Chris Berry [EMAIL PROTECTED] wrote: I use Ant as a fundamental scripting language for Maven. I use the antrun plugin. I have a hacked up version that allows me to build Plugins that hold an Ant build file

Re: Unittests and test data files in maven

2006-01-16 Thread Chris Berry
hi Dave, Make sure that you add /target/test-classes to your CLASSPATH for IntelliJ. Your test resources end up here. Cheers, -- Chris On 1/15/06, Dave Hoffer [EMAIL PROTECTED] wrote: Emmanuel, Thanks, I understand the idea you suggest but I am having some trouble getting it to work. I am

Re: [m2] Repeatable build and plugin version resolution

2006-01-16 Thread Chris Berry
I agree 100%. The Release Plugin should 1) Insure that all dependency versions, including those of maven itself, are captured for repeatability 2) Insure that no dependencies, including those of maven itself, are SNAPSHOTs, which, by definition, are not repeatable BTW: to truly insure

Re: [m2] Ant driven plugins and classpath refid's

2006-01-17 Thread Chris Berry
Did you follow this doc; http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Cheers, -- Chris On 1/17/06, Henrik Mejlgaard [EMAIL PROTECTED] wrote: Hi, From the documentation in http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html, I have successfully

Re: Executing a task before Clean

2006-01-18 Thread Chris Berry
Hi Paul, You can, you will have attach the task early on in the build process -- say, at the validate phase. Currently, all attached Plugins execute after teh phase they refer to. I am uncertain what the actual lifecycle (i.e. the phases) is for the Clean Plugin, maybe a M2 expert can tell us

custom dependency type

2008-03-24 Thread Chris Berry
Greetings, I am wondering if there is a standard solution to this problem anywhere. I can't seem to find one, but I could have easily have overlooked it... What we need to do is; download a file, put it in the local repo, and also on the classpath. To make this concrete, I'll explain our

  1   2   >