Re: SSH proxy for deployments

2005-11-06 Thread Brett Porter
For plugins, installing in the local repository is sufficient. However, changes to wagon-ssh would need to be included in the Maven distribution - you can do this either by overwriting the version in $M2_HOME/lib, or using an extensions section in the POM. It'd be great if you have the time to

Missing SAX parser with Java 5?

2005-11-06 Thread Jochen Wiedmann
Hi, I am trying to convert a first program (Apache XML-RPC) from Maven 1 to Maven 2. After doing eclipse:eclipse, my unit tests run fine within Eclipse. However, mvn test fails with the following exception: javax.xml.parsers.FactoryConfigurationError: Provider for

RE: [m2] parent's relativePath

2005-11-06 Thread Jeff Jensen
Thanks Dan, My problem seems similar/same as your MNG-740. I too have the parent pom not in a dir directly above the other components, but in a dir at the same level as the other components. In MNG-740, A doesn't build for me without the listed step 1: install root POM. The relativePath

Re: Local Repository (not shared) and Offline

2005-11-06 Thread Buntingster
Brian Bonner wrote: I have it setup in: m2repo/com/ibm/as400/jt400-full/4.8.0/ -- jt400-full-4.8.0.jar -- pom.xml -- license.txt From what I can tell looking at ibiblio and my local repository, the pom should be named jt400-full-4.8.0.pom I don't know if what you have is supposed to

[m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Alexander Hars
Hi, The assembly:directory goal can be used to simply copy files and dependencies into some target directory without packing into a jar or zip. This is useful when we have custom plugins that need to do some special processing on certain files/directories. However, in the current version of

Re: [m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Kenney Westerhof
On Sun, 6 Nov 2005, Alexander Hars wrote: This fixes your issue, but it's not meant for that - you now get all files directly in the target/ dir without a common parent dir ( i think ). Sounds like you want your plugins to run in the process-resources etc. phase, and you're just abusing the

Re: [m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Anuerin Diaz
hi, i have a need similar to what alexander wrote but for a different reason. the artifacts in my project are distributed as separate jars files and on a specific directory structure. is there a way to really specify how the recipient directory is structured in the assembly configuration file?

[m2] module paths for system scope are relative to parent pom

2005-11-06 Thread Jeff Jensen
When building from the parent POM dir, all paths are relative to it. A problem occurs when its modules have dependencies of scopesystem/scope - the module's corresponding systemPath is relative to the parent POM dir, instead of the module's POM dir. With a module's systemPath set to compile

[M2] - maven-release-plugin cannot load SCM provider

2005-11-06 Thread Trent Rosenbaum
I have been using Maven 2 for my current project and I am now at a position where I want to tag and release a version. I really want to use maven-release-plugin, but I am having problems. I am using SVN on the local file system. I have been using subclipse with eclipse 3.1.1 to access the

RE: keyword SNAPSHOT in depedency version is ignored

2005-11-06 Thread Jeff Jensen
When I have this in the parent POM: dependencyManagement dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version[3.8.1,)/version scopetest/scope /dependency [snip] This is the result when run in a module: [INFO]

Re: [m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Alexander Hars
Kenny, Many people have the same problem I mentioned. You may be a little fast at claiming abuse. Just take a look at how the assembly:directory goal came about and the related discussion (see e.g. http://jira.codehaus.org/browse/MNG-735). Maybe the includeBaseDirectory really has different

Source Archives?

2005-11-06 Thread Jochen Wiedmann
Hi, recently I came into a situation where I suspected a bug in servlet-api-2.4.jar. No problem, it seems: This is open source software, get the sources, add them to you Eclipse project and start debugging. It turned out not so easy: For starters, what are the exact sources of

Multiple source directories (again)

2005-11-06 Thread Aleksandar Likic
I am trying to find out how to tell maven 2 to compile multiple source directories. I am using JAXB to generate code in target/src, and then compile it together with the rest of the code. I could have multiple projects, but it simply doesn't make sense to me to in this particular case. The build

RE: Multiple source directories (again)

2005-11-06 Thread Aleksandar Likic
OK, I found it: sourceDirectory./sourceDirectory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0/version configuration

Re: Multiple source directories (again)

2005-11-06 Thread Alexandre Poitras
A even better solution is to use the xjc plugin : http://mojo.codehaus.org/xjc-maven-plugin/. I use it for my jaxb transformations and it's work great. I can post you my pom tomorrow from my job if you need a exemple to get it working. On 11/6/05, Aleksandar Likic [EMAIL PROTECTED] wrote: OK, I

Re: [m2] multi-module support broken in assembly-plugin ?

2005-11-06 Thread Alexandre Poitras
I proposed a solution about that problem with the assembly plugin about aggregating multiple projects. If I have some free time, I try to write it myself. http://jira.codehaus.org/browse/MNG-1406 On 11/5/05, Kenney Westerhof [EMAIL PROTECTED] wrote: On Sat, 5 Nov 2005, Christian Schulte wrote:

Re: [m2] pmd and java 1.5 site error: pmd doesn't know it's 1.5

2005-11-06 Thread Brett Porter
Plugins cannot share configuration at present (they can read it from the pom manually, but that doesn't take into account defaults, etc). This is a feature we will probably introduce for 2.1, but it needs to be carefully considered - ie the compiler plugin needs to explicitly declare what it is

RE: [m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Brian E. Fox
I have a plugin that does just a copy but I haven't published it yet. If you are interested, shoot me an email and I can send you the code or binary if you prefer. It works like this: plugin groupIdcom.stchome.maven.mojo/groupId artifactIdcopy-dependancy/artifactId

Re: [m2] aspectj

2005-11-06 Thread Brett Porter
I don't believe this is currently working. You're probably the 3rd person that has asked all year - so that probably justifies the priority :) That's possibly just a matter of it not being there though - I'm sure if it was started more would come out of the woodwork. There has been some

Re: Producing directory artifacts

2005-11-06 Thread Brett Porter
Does WebObjects have any file format for distributing these files together? You can use the assembly plugin (there are a few docs on the site about this now) to create a tarball/zip file from this structure, deploy it to the repo, and later depend on it. I believe the assembly plugin can also

[m1] WAS 5 Plugin Releases

2005-11-06 Thread Dion Gillard
The maven-plugins team is pleased to announce the WebSphere 5 (5.0/5.1) Plugin 2.0.2 release! http://maven-plugins.sourceforge.net/maven-was5-plugin A plugin to manage a WebSphere AppServer 5/5.1 artifacts and installation Changes since the 1.x series include: Fixed bugs: o Check for ws_ant

Re: [m2] install plugin bug with classifiers ?

2005-11-06 Thread Brett Porter
Take a look at maven-model in the Maven sources. It does exactly this, and last time I checked it worked :) - Brett On 11/4/05, Julien Stern [EMAIL PROTECTED] wrote: On Fri, Nov 04, 2005 at 09:22:25AM +1100, Brett Porter wrote: I think you need: phasepackage/phase and goals

Re: [m2] Updating *.properties files according to environment

2005-11-06 Thread Brett Porter
Yes, you can do this. filters filterPROFILE_NAME-filters.properties/filter /filters can be added to each profile with a different set of substitutions for DATABASE_DRIVER, etc. On 11/4/05, Samuel Le Berrigaud [EMAIL PROTECTED] wrote: Thanks Vincent, but I already looked at the profiles,

Re: [m2] does a plugin bound to a phase execute before or after that phase?

2005-11-06 Thread Brett Porter
Spot on, thanks Anuerin! There is no way to get something to run before the default goals in the phase, other than to run it in the previous phase :) - Brett On 11/5/05, Anuerin Diaz [EMAIL PROTECTED] wrote: [quote=http://maven.apache.org/maven2/lifecycle.html] The second way to add goals to

Re: [m2] Strange Build Error

2005-11-06 Thread Brett Porter
Do you want to file a bug for the error reporting? Thanks, Brett On 11/5/05, Allison, Bob [EMAIL PROTECTED] wrote: I figured out what caused this: A jar file listed as a plugin in your POM that does not contain META-INF/maven/plugin.xml -Original Message- From: Allison, Bob

Re: Dependencies and Maven 2

2005-11-06 Thread Brett Porter
On 11/5/05, Duane Homick [EMAIL PROTECTED] wrote: Just want to thank everyone who has been answering my questions over the last couple days. Your help is much appreciated! Couple quick questions: 1. Is there a way to have maven build a subproject (and only that subproject) without having

Re: [M2] Nullpointer wil generating site

2005-11-06 Thread Brett Porter
Can you add your details to that issue anyway (and watch it), I expect that the fix will be similar if not identical. - Brett On 11/5/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Nope. I have this: project xmlns=http://maven.apache.org/POM/4.0.0;

Re: [M2] eclipse plugin: tools.jar incorrectly added

2005-11-06 Thread Brett Porter
The Eclipse and Site plugins are both still marked as beta. They are very close to a release. After that, no beta plugins will be released into the main repository, so you won't have to worry about the automated update aspect. Additionally, you can lock your projects to particular versions of

Re: [M2] Why is debug deprecated for maven-compiler-plugin?

2005-11-06 Thread Brett Porter
Appears to be a brain explosion on my part. Fixed. - Brett On 11/5/05, KC Baltz [EMAIL PROTECTED] wrote: The documentation for the compiler plugin says that the debug parameter is deprecated. Why is this and what's the recommended replacement?

Re: How-to for building for different environments

2005-11-06 Thread Brett Porter
Thanks for this Janek. I'd encourage people to give thier feedback on this, and if possible if someone such as Janek could contribute this as an apt document for the website under the guides section, it would be much appreciated. If you'd like to use wiki.apache.org/maven to collaborate on this,

Re: maven2 jnlp plugin

2005-11-06 Thread Brett Porter
It is being worked on at http://mojo.codehaus.org/ On 5 Nov 2005 16:16:22 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I see on the plugin matrix (http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix) that a jnlp plugin is available for Maven2, but where can it be found?

Re: Strange M2 behavior

2005-11-06 Thread Brett Porter
They are only inside JARs built with m2. - Brett On 11/6/05, Oscar Picasso [EMAIL PROTECTED] wrote: -- Kenney Westerhof [EMAIL PROTECTED] wrote: On Sat, 5 Nov 2005, Oscar Picasso wrote: ... Furthermore in any case the resulting jar contains the following: META-INF/

Re: Local Repository (not shared) and Offline

2005-11-06 Thread Brian Bonner
Jared, thanks. I'll try it right now. On 11/6/05, Buntingster [EMAIL PROTECTED] wrote: Brian Bonner wrote: I have it setup in: m2repo/com/ibm/as400/jt400-full/4.8.0/ -- jt400-full-4.8.0.jar -- pom.xml -- license.txt From what I can tell looking at ibiblio and my local

Re: Local Repository (not shared) and Offline

2005-11-06 Thread Brian Bonner
That did the trick. Thanks. When I run the mvn install:install-file. It didn't put the pom in the location automatically, I dropped it in there based on my recollection that it was supposed to be in their. Did I miss something. Thanks again, Jared for helping with the naming--I overlooked

Re: Missing SAX parser with Java 5?

2005-11-06 Thread Brett Porter
This is a known issue (see the maven-surefire-plugin component in JIRA). - Brett On 11/6/05, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, I am trying to convert a first program (Apache XML-RPC) from Maven 1 to Maven 2. After doing eclipse:eclipse, my unit tests run fine within Eclipse.

Re: Source Archives?

2005-11-06 Thread Brett Porter
This is possible with Maven 2.x (the Maven libraries certainly do it already) - what will be important is ensuring that projects themselves utilise this functionality. - Brett On 11/7/05, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, recently I came into a situation where I suspected a bug in

Re: keyword SNAPSHOT in depedency version is ignored

2005-11-06 Thread Brett Porter
Could you run with -X so it tells you exactly which file has the checksum error (it could be the metadata, the pom, or the JAR). We are in the process of minotiring the repository for such errors. - Brett On 11/7/05, Jeff Jensen [EMAIL PROTECTED] wrote: When I have this in the parent POM:

Re: [M2] - maven-release-plugin cannot load SCM provider

2005-11-06 Thread Brett Porter
Your SCM URL should start: scm:svn:file://... Maven has no knowledge of the SVN protocols, just the scm type given in the second argument above. - Brett On 11/7/05, Trent Rosenbaum [EMAIL PROTECTED] wrote: I have been using Maven 2 for my current project and I am now at a position where I

RE: keyword SNAPSHOT in depedency version is ignored

2005-11-06 Thread Jeff Jensen
Looks like the jar itself: [INFO] artifact junit:junit: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '732552cf5a2673094c0d6ceb38249ebc9dfbe9e3'; remote = 'da39a3ee5e6b4b0d3255bfef95601890afd80709' - RETRYING [WARNING] *** CHECKSUM FAILED

[m2] how to generate two jars

2005-11-06 Thread Miguel Griffa
Hello all I have a m2 project which I want to generate two different jars based on some configuration, property or parameter. how to I specify this on the pom? any idea? thanks for any advice -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355

RE: keyword SNAPSHOT in depedency version is ignored

2005-11-06 Thread Jeff Jensen
Actually, I should say I can't tell! Is there more info to get somehow? Was there something specific you were expecting that isn't there?? -Original Message- From: Jeff Jensen [mailto:[EMAIL PROTECTED] Sent: Sunday, November 06, 2005 7:28 PM To: 'Maven Users List' Subject: RE: keyword

RE: [m2] how to generate two jars

2005-11-06 Thread Jeff Jensen
Checkout profiles. That may take care of what you are looking for. -Original Message- From: Miguel Griffa [mailto:[EMAIL PROTECTED] Sent: Sunday, November 06, 2005 7:37 PM To: Maven Users List Subject: [m2] how to generate two jars Hello all I have a m2 project which I want to

Re: keyword SNAPSHOT in depedency version is ignored

2005-11-06 Thread Brett Porter
Yes, I was expecting something more. I thought there'd be a stack trace associated with the warning. I'll take a look. - Brett On 11/7/05, Jeff Jensen [EMAIL PROTECTED] wrote: Actually, I should say I can't tell! Is there more info to get somehow? Was there something specific you were

RE: [m2] parent's relativePath

2005-11-06 Thread Jeff Jensen
Brett, Based on your comment of MNG-624 on 11/6/05 7:56 pm, I'm either not using relativePath correctly, or can't/not supposed to at all. So is there a way to do what I tried below, or must the parent POM be in the repo? Does MNG-740 have any merit? Are there doc/clarification notes on

Re: [m2] parent's relativePath

2005-11-06 Thread Brett Porter
The docs on relativePath are lacking, and it really makes it quite deceptive. It is not extend from m1. What it does is modifies the behaviour of dan's first point. Basically, we have a concept of a universal source directory (more generally, a workspace) that is partially implemented - it means

Re: Source Archives?

2005-11-06 Thread Jochen Wiedmann
Brett Porter wrote: This is possible with Maven 2.x (the Maven libraries certainly do it already) - what will be important is ensuring that projects themselves utilise this functionality. Thanks for the reply, Brett. Can you, please, give me a hint on what to do to turn the feature on in my

Re: Source Archives?

2005-11-06 Thread Brett Porter
Run install or deploy with -DperformRelease=true (done automatically be the release plugin). This triggers the extra attachments defined here: http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml?rev=326633view=markup -

RE: [m2] parent's relativePath

2005-11-06 Thread Jeff Jensen
Yes, thank you. So if I understand correctly now, MNG-740 is a valid bug(?), and specifying relative path of ../../x/y/pom.xml should work(?) (of course, group and artifact ids and version are specified too). This is what I have configured, and MNG-740 describes the config and failure. Thanks

Re: [m2] how to generate two jars

2005-11-06 Thread Miguel Griffa
thanks! seems to be exactly what I needed, I'm still reading the introduction to profiles though On 11/6/05, Jeff Jensen [EMAIL PROTECTED] wrote: Checkout profiles. That may take care of what you are looking for. -Original Message- From: Miguel Griffa [mailto:[EMAIL PROTECTED]

[m2] config of goals

2005-11-06 Thread David Sag
I am having real problems getting my plugin config to work. Here's my use case: a developer compiles and as part of her build checkstyle must be run and fail a build on any checkstyle errors. this is easy and works fine. but within the same pom.xml file Continuum needs to build everything