Re: AW: AW: AW: maven-eclipse-plugin: Facet Issues

2008-05-16 Thread Chris_Graham
Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote on 15/05/2008 16:47:26: That's why I'm using the runtime argument. I guess that my point, is that I do not really have a good idea on the fit of and the point in having the eclipse plugin itself. Having to specify the workspace, not

Re: Checkstyle and Velocity Logging

2008-05-16 Thread Takaisan
Hello, my checkstyle version is 2.1. I had a look at the fixes for 2.2 but i couldn't find anything that looked like it had something to do with my problem. The verbose output is spam insofar as it has nothing to do with the task at hand, namely checking the validity of the source format. It

Re: Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingmaven-archetype.

2008-05-16 Thread Tim Kettler
Hi, an archetype project is a standard jar project. There is no specific 'maven-archetype' packaging defined, hence the error. Just omit the packaging/ declaration or change it to 'jar'. Have a look here [1] for a short introduction of how to create archetypes by hand and here [2] for a

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
Hi, I do it like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory

Re: Maven 1 classes in my plugin JAR not on ant:java runtime classpath?

2008-05-16 Thread Lukas Theussl
IIRC artifacts of type plugin are not added to the runtime classpath (if you run with -X you should see a corresponding message). You have to deploy/install the plugin as a jar and declare a dependency of a jar type. HTH, -Lukas christo wrote: Hi All, I've read the docs, googled, read

Cobertura plugin excludes

2008-05-16 Thread Petteri Heinonen
Hi, I'm trying to make Cobertura plugin to skip XML-beans classes in its instrumentation, like this: ignores ignorecom.xyz.abc.protocol.*/ignore ignorecom.xyz.abc.gateway.cache.*/ignore /ignores excludes

Re: running mvn idea:idea

2008-05-16 Thread kace
Thanks, any idea when 2.2 will be released? Regards, ..kace -- View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17270683.html Sent from the Maven - Users mailing list archive at Nabble.com.

Cobertura plugin excludes

2008-05-16 Thread Petteri Heinonen
Hi, I'm trying to make Cobertura plugin to skip XML-beans classes in its instrumentation, like this: ignores ignorecom.xyz.abc.protocol.*/ignore ignorecom.xyz.abc.gateway.cache.*/ignore /ignores excludes

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
Many thanks Tim. I was using the same thing, excepted targetPathWEB-INF/targetPath It works now ! 2008/5/16 Tim Kettler [EMAIL PROTECTED]: Hi, I do it like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId

Re: OSGi project architecture (reopened)

2008-05-16 Thread SchneiderR
Hi Arnaud, I have a similar concern and a few questions how you did it: 1.) Do you use a predefined assembly or a custom one? 2.) Do you somehow generate the config.ini? Thanks in advance, Roland Arnaud Vandyck-2 wrote: Solved by using maven-assembly-plugin, many thanks. ... On

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
Strange. I could get thru filter ${user.home} or ${java.version} but not ${user.name} Any idea ? 2008/5/16 Henri Gomez [EMAIL PROTECTED]: Many thanks Tim. I was using the same thing, excepted targetPathWEB-INF/targetPath It works now ! 2008/5/16 Tim Kettler [EMAIL PROTECTED]: Hi, I do

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
Strange, indeed. Looks like a bug to me. I tried with this in web.xml and no filter property files: pom.name: ${pom.name} user.name: ${user.name} name: ${name} foo.name: ${foo.name} pom.version: ${pom.version} os.version: ${os.version} version: ${version} foo.version:

Re: OSGi project architecture (reopened)

2008-05-16 Thread Stuart McCulloch
2008/5/16 SchneiderR [EMAIL PROTECTED]: Hi Arnaud, I have a similar concern and a few questions how you did it: 1.) Do you use a predefined assembly or a custom one? 2.) Do you somehow generate the config.ini? FYI, there are two other solutions you might want to look into if you want to

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
Problem in maven-war 2.0.2 or in maven 2.0.9 ? 2008/5/16 Tim Kettler [EMAIL PROTECTED]: Strange, indeed. Looks like a bug to me. I tried with this in web.xml and no filter property files: pom.name: ${pom.name} user.name: ${user.name} name: ${name} foo.name: ${foo.name}

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
*.version = pom.version *.name = pom.name 2008/5/16 Henri Gomez [EMAIL PROTECTED]: Problem in maven-war 2.0.2 or in maven 2.0.9 ? 2008/5/16 Tim Kettler [EMAIL PROTECTED]: Strange, indeed. Looks like a bug to me. I tried with this in web.xml and no filter property files: pom.name:

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
I suspect something weird in maven-war plugin (2.0.2) since I get the same error from m2eclipse which use maven 2.1 embedded 2008/5/16 Henri Gomez [EMAIL PROTECTED]: *.version = pom.version *.name = pom.name 2008/5/16 Henri Gomez [EMAIL PROTECTED]: Problem in maven-war 2.0.2 or in maven

maven deploy plugin in eclipse

2008-05-16 Thread Laura Lozano
Hello, I don't find any facility in eclipse to deploy an artifact in a remote repository. Is not included this feature in the maven integration with eclipse? have I to do it in command line? Thank you

jaxws failed under m2eclipse

2008-05-16 Thread Henri Gomez
I can build jar projects using the jaxws wsgen mojo (1.9) under maven 2.0.x but it failed under m2eclipse (0.9.3) when using maven 2.1 embedded (it works if I switch m2eclipse to use the maven 2.0.9 on my system). I tried with various JVM (Sun and IBM 5 and 6) but still got the problem with maven

Re: jaxws failed under m2eclipse

2008-05-16 Thread Henri Gomez
I tried with maven 2.1-620417 and 2.1-655675 from command line, and same problem 2008/5/16 Henri Gomez [EMAIL PROTECTED]: I can build jar projects using the jaxws wsgen mojo (1.9) under maven 2.0.x but it failed under m2eclipse (0.9.3) when using maven 2.1 embedded (it works if I switch

Re: Memory issues in 2.0.9

2008-05-16 Thread Brett Porter
Yeah, I was going to run yourkit over it myself - but be my guest :) http://svn.apache.org/repos/asf/archiva/trunk/ Build with mvn clean install -Dmaven.test.skip=true (just to be faster to analyse, it still occurs) It fails in the webapp module on 2.0.9. In the past, I tried commenting out

Re: Custom Checkstyle Integration | Need Help

2008-05-16 Thread shinjan sen
Hi Dennis, Thanks so much for the mail. Yes after trying out the approach you said, I could verify that this in fact was due to some version problem. I then tried using the version 2.0-alpha-2 and it worked. This is what I currently have: groupIdorg.apache.maven.plugins/groupId

Priorities of properties

2008-05-16 Thread Clifton
AM I confused or does Maven override command line properties with profile properties in the pom and profiles.xml? Shouldn't command line properties always take precedence? Could somebody explain the priority order of properties in Maven? I've been trying to do things like have a switch in one

Re: running mvn idea:idea

2008-05-16 Thread Clifton
Interesting topic. I've been having trouble with Idea's native Maven support and would like to consider using the Idea Maven plugin again. The problems I have is synchronizing a single module. When I hit the synchronize button it synchronizes all of the modules and I have one non-standard module

Overriding parent's distribution management

2008-05-16 Thread Krishnamurthi, Venkat
Hi, I'm trying to override a parent pom's distribution management through the child's pom. (Deploy the artifacts in different directories). When I tried adding a distributionManagement element in the child pom, it is still picking up the details from the parent's pom. Please help me resolve this

[maven-surefire-plugin] problem with my tests

2008-05-16 Thread Guillaume Boucherie
Hi all, I have a strange behavior with my junit tests. I have a project with multi-modules. When I run the tests individually for module (mvn test) everything is ok. But when I run the tests from the parent pom (mvn test) I have always an error when my program try to parse an xml file. See the

[maven-archetype-plugin] Possible to add a role-hint to the ArchetypeGenerationQueryer interface

2008-05-16 Thread Gert Vanthienen
L.S., Would it be possible to add a role-hint to the components.xml for the ArchetypeGenerationQueryer to allow replacing it with another implementation (providing better defaults for users)? I guess there is no other way to plug in my own implementation without that (cfr.

Maven 2 Dependency on java source folder rather than jar file

2008-05-16 Thread BenDave
Hi, I am working on 2 projects, one is Dependant on the other. The usual way of dealing with this is to add a dependency to a jar file located in the repository. This works fine but the source project (on which the target project depends) is constantly evolving, as we are doing some iterative

Re: Maven 2 Dependency on java source folder rather than jar file

2008-05-16 Thread Manuel EVENO
Why don't you simply checkout the two projects and make a Eclipse dependency between them ? Just for dev purpose of course, keep the maven dependency configuration) .. Manuel On Fri, May 16, 2008 at 4:34 PM, BenDave [EMAIL PROTECTED] wrote: Hi, I am working on 2 projects, one is Dependant

Re: Maven 2 Dependency on java source folder rather than jar file

2008-05-16 Thread nicolas de loof
If you are using Eclipse, this is allready supported by the maven-eclipse-plugin : project dependencies are set as workspace project dependencies in place of jars, so that you can code and test under eclipse with no jar to install. I also use the sysdeo-tomcat-maven-plugin from mojo to avoid

Re: Maven 2 Dependency on java source folder rather than jar file

2008-05-16 Thread Thierry Lach
This may not work for you, but I use Eclipse with the Maven plugin ( http://m2eclipse.codehaus.org/) which will automatically do what you are asking with other dependent projects open in the workspace. On Fri, May 16, 2008 at 10:34 AM, BenDave [EMAIL PROTECTED] wrote: Hi, I am working on 2

Test classpath issue with v2.0.8 and v2.0.9

2008-05-16 Thread jlo_gestalt
When trying to access test resources in my unit tests, maven 2.0.8 and above are returning the wrong directory. Here is my basic code to access the folder def file = new JmblXsltDriverTest().getClass().getResource(/)?.file println file On 2.0.7 this would print

Re: Custom Checkstyle Integration | Need Help

2008-05-16 Thread Dennis Lundberg
shinjan sen wrote: Hi Dennis, Thanks so much for the mail. Yes after trying out the approach you said, I could verify that this in fact was due to some version problem. I then tried using the version 2.0-alpha-2 and it worked. This is what I currently have:

Re: roll-up installer

2008-05-16 Thread Eric White
Thanks for the response! I think profiles might help. But this would mean defining the latest version numbers in my settings.xml. Which means my component builds would have to parse settings.xml and replace their version numbers when they build. Doable but not elegent. One question, is this

unable to deploy site with webdav

2008-05-16 Thread rossputin
Hi, I am using maven 2.0.9, and everything is working great except for site deployment with webdav. I have not tried any other kind of deployment yet, as I do it manually, so it may not be just site deployment that is not working for me. I have an apache webdav setup in place, and can access

RE: Bug in maven 2 -

2008-05-16 Thread EJ Ciramella
Any other suggestions on this? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 2:13 PM To: Maven Users List Subject: RE: Bug in maven 2 - Ah yes, when the resources are processed, there are some scripts that have ${some.property} in them.

Use property for dependency artifact version

2008-05-16 Thread Stanley Lee
Hi, I have two projects: projectA and projectB, projectB depends projectA. In Release, I want to increase their version together. So I define the version as property project.release.version and set it in pom.xml. After the build, I see projectA-6.0.0.jar and projectB-6.0.0.war. But in

Re: com/oracle/ojdbc14 where are Oracle driver jars?

2008-05-16 Thread Wendy Smoak
On Thu, May 15, 2008 at 8:06 PM, mfs [EMAIL PROTECTED] wrote: Any follow up on this ? AFAIK, no one is working on it. The Oracle client/driver jars are unlikely to be available in a public repository any time soon, unless Oracle changes the license to make it possible to distribute them

Re: unable to deploy site with webdav

2008-05-16 Thread Wendy Smoak
On Fri, May 16, 2008 at 7:53 AM, rossputin [EMAIL PROTECTED] wrote: Has anyone successfully deployed with any recent version of maven over webdav? One of the books I have on it suggests using it. I have not seen much on the mailing list though. Yes, it works for me with wagon-webdav as a

Re: Overriding parent's distribution management

2008-05-16 Thread Clifton
Thank you for asking this question. I had the very same problem and I'd love to hear a best practices approach. My workaround, not the best, is to define them separately in profiles. Then you can use cmd line properties to activate one or the other in the activation section of the profile. It may

RE: Memory issues in 2.0.9

2008-05-16 Thread Brian E. Fox
No, it wasn't until 2.0.9 that we started providing defaults in the superpom. I wrote about it here: http://blogs.sonatype.com/brian/2008/04/10/1207873624557.html -Original Message- From: Ryan Moquin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 12:58 PM To: Maven Users List

Re: Use property for dependency artifact version

2008-05-16 Thread Clifton
You want to use the release plugin with a multi module project. Setup a super pom with packaging = pom and artifactId set to whatever (eg. artifactId: MyProj) and include projects A and B as sub modules. When your ready to cut a release just run mvn release:prepare release:perform on the cmd

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
It's a bug in the war plugin. The resource filtering is seriously borked there, see here [1] for a bug report back from Nov 2007. The obvious and simple workaround would be to filter web.xml as a normal resource in a custom invocation of the resource plugin. But unfortunately there is a bug in

Re: Test classpath issue with v2.0.8 and v2.0.9

2008-05-16 Thread Dan Fabulich
jlo_gestalt wrote: When trying to access test resources in my unit tests, maven 2.0.8 and above are returning the wrong directory. Here is my basic code to access the folder def file = new JmblXsltDriverTest().getClass().getResource(/)?.file println file On 2.0.7 this would print

Re: [maven-surefire-plugin] problem with my tests

2008-05-16 Thread Dan Fabulich
Guillaume Boucherie wrote: I have a strange behavior with my junit tests. I have a project with multi-modules. When I run the tests individually for module (mvn test) everything is ok. But when I run the tests from the parent pom (mvn test) I have always an error when my program try to parse an

Re: Use property for dependency artifact version

2008-05-16 Thread Stanley Lee
Thanks for suggestion! I found my problem: shouldn't use a variable like project.release.version. Maven must try to look that value under project node. When I replace with a uncommon name like fancyBuild.version, then everything works as expected. On Fri, May 16, 2008 at 1:12 PM, Clifton [EMAIL

Re: Test classpath issue with v2.0.8 and v2.0.9

2008-05-16 Thread Clifton
I have a couple of observations... First off I see you're writing you unit tests in Groovy! That's a good thing of course for far too many reasons. It's also an important detail to pay attention to. There are a hole host of other details to look at as well. Secondly it appears you are trying to

second zip artifact from the same pom?

2008-05-16 Thread ziprman
Hi, I have a typical war webapp which I deploy to tomcat. At the same time I have the typical static content (images, js, css) that needs to go to my webservers. It is easy enough to exclude the static content from my war, but I would like to zip up the static content and also deploy it to my

Re: second zip artifact from the same pom?

2008-05-16 Thread matthew sporleder
On Fri, May 16, 2008 at 3:16 PM, ziprman [EMAIL PROTECTED] wrote: Hi, I have a typical war webapp which I deploy to tomcat. At the same time I have the typical static content (images, js, css) that needs to go to my webservers. It is easy enough to exclude the static content from my war, but

Re: Test classpath issue with v2.0.8 and v2.0.9

2008-05-16 Thread jlo_gestalt
I disagree with you on accessing the resources my way, but that is for another post. Anyways, I was able to upgrade to maven 2.0.8 and surefire plugin 2.4.3 and things worked as expected. The only unfortunate thing is that now it won't work on maven 2.0.7, but oh well. Clifton wrote: I have

RE: second zip artifact from the same pom?

2008-05-16 Thread EJ Ciramella
Additionally, you can use the attach option to make it part of the regular build rather than having an extra step... -Original Message- From: matthew sporleder [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 4:02 PM To: Maven Users List Subject: Re: second zip artifact from the

Re: com/oracle/ojdbc14 where are Oracle driver jars?

2008-05-16 Thread mfs
yeah..thats what i plan to do, but i wish oracle (being such a big share holder in the industry) realize that exposing these as maven-ized jars would really save the extra effort people have to put in, in maintaining these jars locally. I wish they had given more weight to the problem. Farhan.

Re: com/oracle/ojdbc14 where are Oracle driver jars?

2008-05-16 Thread Dan Tran
I wished the pom should never have been there at the first place. Too many repeated discussions of this matter and no results :-) -D On Fri, May 16, 2008 at 1:38 PM, mfs [EMAIL PROTECTED] wrote: yeah..thats what i plan to do, but i wish oracle (being such a big share holder in the industry)

Re: com/oracle/ojdbc14 where are Oracle driver jars?

2008-05-16 Thread Wayne Fay
It would certainly be nice if Oracle would copy similar moves by Sun, JBoss, etc and make their own repository where they could host various artifacts such as these. (Assuming of course their own licensing etc would permit such an approach.) Of course, Sun and JBoss are just hosting open source

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
I tested with 2.1-alpha and same problem ;( 2008/5/16 Tim Kettler [EMAIL PROTECTED]: It's a bug in the war plugin. The resource filtering is seriously borked there, see here [1] for a bug report back from Nov 2007. The obvious and simple workaround would be to filter web.xml as a normal

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
There is a patch provided in http://jira.codehaus.org/browse/MWAR-133. How can I contact the maintener for a fix ? 2008/5/16 Henri Gomez [EMAIL PROTECTED]: I tested with 2.1-alpha and same problem ;( 2008/5/16 Tim Kettler [EMAIL PROTECTED]: It's a bug in the war plugin. The resource

What does this warning mean: [WARNING] Attempting to build MavenProject instance for Artifact of type jar; constructing POM artifact instead

2008-05-16 Thread Seva Popov
Hi, We switched from Maven 2.0.7 to Maven 2.0.9 and started observing the following warnings for our projects that we could not understand: [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing

Unexpected element artifact:dependencies

2008-05-16 Thread sudheshna iyer
I have downloaded apache-maven-2.0.9-bin.tar.gz and extracted to dir: C:\apache-maven-2.0.9 I have added C:\apache-maven-2.0.9 to the path. When I run mvn --version at cmd prompt, I got the following results: C:\Work\GettingStartedWithHibernate3mvn --version Maven version: 2.0.9 Java version:

Re: roll-up installer

2008-05-16 Thread Brett Porter
I was referring to profiles in your POM, not in the settings - sorry for the misunderstanding. - Brett 2008/5/17 Eric White [EMAIL PROTECTED]: Thanks for the response! I think profiles might help. But this would mean defining the latest version numbers in my settings.xml. Which means my

Re: Unexpected element artifact:dependencies

2008-05-16 Thread Wayne Fay
As Wendy told you on the Dev list, Maven2 does not use files named build.xml but rather files named pom.xml. Thus, it seems like you do not have a Maven project at all, but rather some Ant build script (I guess?). Where did this build.xml file come from -- you should probably ask that person how