[ANN] Maven Checkstyle Plugin 2.4 Released

2009-11-19 Thread Mark Hobson
The Maven team is pleased to announce the release of the Maven Checkstyle Plugin, version 2.4. This plugin generates a report on violations of code style and optionally fails the build if violations are detected. http://maven.apache.org/plugins/maven-checkstyle-plugin/ You should specify the

An Ant BuildException has occured: java.lang.IllegalAccessError

2009-11-19 Thread Ken Turner
Here's my environment: Maven version: 2.2.0 Java version: 1.6.0_13 OS name: linux version: 2.4.21-58.el arch: i386 Family: unix Apache Ant version 1.6.5 compiled on June 2 2005 I'm getting this error: [INFO] Building trips-types [INFO] task-segment: [install] [INFO]

Problem with maven-release-plugin

2009-11-19 Thread Peter Niederwieser
In my multi-module project, I have a Maven plugin A and a module B that uses version ${project.version} of A (all modules have the same version number). release:prepare changes version A from 0.3-SNAPSHOT to 0.3, but then fails while processing B because it cannot find version 0.3 of A. Any ideas

AW: Problem with maven-release-plugin

2009-11-19 Thread Mark Struberg
Peter, use the dependencyManagement section in the parent pom to pin down the versions of the single child modules. LieGrue, strub --- Peter Niederwieser pnied...@gmail.com schrieb am Do, 19.11.2009: Von: Peter Niederwieser pnied...@gmail.com Betreff: Problem with maven-release-plugin An:

Re: Problem with maven-release-plugin

2009-11-19 Thread Stephen Connolly
Two options: 1. change your build so that it will work with clean verify whenyour local repository has been blown away. Typically this is because you are using goals like dependency:copy and not dependency:copy-dependencies 2. change the preparation goals in the release plugin to clean install.

Assembly plugin: specifying an alternative extension name for the assembly

2009-11-19 Thread Graham Charters
Hi, I'm trying to create a zip file using the assembly plugin, but I'd like it to have a different extension (not .zip). I've tried using finalName/, but that still insists on giving the file the .zip extension. Is this possible using the assembly plugin, or should I be using something else?

Re: Problem with maven-release-plugin

2009-11-19 Thread Stevo Slavić
Maybe this http://jira.codehaus.org/browse/MRELEASE-467 known issue is related. Regards, Stevo. On Thu, Nov 19, 2009 at 11:50 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Two options: 1. change your build so that it will work with clean verify whenyour local repository has

Problem with maven-release-plugin

2009-11-19 Thread Peter Niederwieser
In my multi-module project, I have a Maven plugin A and a module B that uses version ${project.version} of A (all modules have the same version number). release:prepare changes version A from 0.3-SNAPSHOT to 0.3, but then fails while processing B because it cannot find version 0.3 of A. Any

Re: Problem with maven-release-plugin

2009-11-19 Thread Martin Schayna
We have same scenario. Release plugin only warns can't change version on dependent projects. Released deliveries are OK. Martin Schayna Peter Niederwieser wrote: In my multi-module project, I have a Maven plugin A and a module B that uses version ${project.version} of A (all modules have the

Re: Assembly plugin: specifying an alternative extension name for the assembly

2009-11-19 Thread Joe Hindsley
Hi Graham, The extension for the assembly is configured with the format element of the assembly descriptor. There are only a couple of supported formats. My guess is that you'd have to write a custom Archiver to get a different extension, but haven't looked under the hood of the assembly

Re: Problem with maven-release-plugin

2009-11-19 Thread Peter Niederwieser
Are we talking about the same thing? Do you also have a module with a dependency on your OWN maven plugin located in another module that is part of the same release? On 19.11.2009, at 14:00, Martin Schayna wrote: We have same scenario. Release plugin only warns can't change version on

Re: Problem with maven-release-plugin

2009-11-19 Thread Martin Schayna
Ah, sorry. I looked and it seems that I was wrong. We have the version specified in each pom.xml, even in modules. But actually that is not problem, because only maven-release-plugin does change version, not people. Hence it that I did not remember right. Martin Schayna Peter Niederwieser

How do I prevent maven from searching my own artifacts in public repositories ?

2009-11-19 Thread TorstenKarusseit
Hi, may be a simple question: How do I prevent maven from searching my own artifacts in public repositories ? While I playing around with my pom files there are often situations where maven uselessly disturbs externel maven repositories. Which I want to prevent if possible. Thank you.

maven-assembly-plugin: referencing assembly id from component descriptor

2009-11-19 Thread Stevo Slavić
Hello Maven users, Is there a way to reference assembly id from component descriptor? Is it exposed as some property? Regards, Stevo.

Re: How do I prevent maven from searching my own artifacts in public repositories ?

2009-11-19 Thread Anders Hammar
Different solutions: 1) Make sure your internal repo is searched before any external repos (done on Maven client side). 2) Use a repo manager (e.g. Nexus) that can handle routing rules like this for you. Solution 1) would require some trial and error. I've done this through repo definitions in

findbugs-plugin: Premature end of file.

2009-11-19 Thread Bruno Marti
I'm getting an error in maven-findbugs-plugin on site generation: Environment: win xp, java 1.6.0_16, maven 2.2.1, findbugs-plugin 2.2/2.1/2.0.1 [INFO] Generating FindBugs Report report. [INFO] Plugin Artifacts to be added -[org.apache.maven.reporting:maven-reporting-impl:jar:2.0:runtime,

RE: Maven not taking the latest snapshot

2009-11-19 Thread Yury Kudryashov
Thank you for your response, Brian. Unfortunately upgrading to 2.2.1 did not help - today the problem was reproduced again. After looking at the local repository on the build server we have noticed that there is a snapshot version without the timestamp part in the name. This version is much older

Explanation for maven release:branch parameters

2009-11-19 Thread Jozsef Zsido
Hi, On page: http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html there is a remark at the bottom to control the branch and current versions with a command: mvn --batch-mode release:branch -DbranchName=my-branch-1.2 -Dproject.rel.org.myCompany:projectA=1.2 \

Re: How do I prevent maven from searching my own artifacts in public repositories ?

2009-11-19 Thread Jonathan Gold
Torsten -- I had the same problem with poms I installed locally using the install:install-file task. Once I added '-DgeneratePom=true' to that command, I noticed that maven no longer attempted to search the public repos. I'm new to maven, so I can't confirm why this happened, but I suspect it had

Re: How do I prevent maven from searching my own artifacts in public repositories ?

2009-11-19 Thread Wayne Fay
Anyway, hope that helps, and maybe some more experienced maveners can shed more light. Maven needs poms to know the dependencies etc for a given artifact, right?? If the poms aren't there, it can only assume your artifacts have zero dependencies, and most of the time that is a poor

Re: Maven not taking the latest snapshot

2009-11-19 Thread Brian Fox
It should get updated yes. It is possible that your teamcity instance is also building and producing this jar via some other build? On Thu, Nov 19, 2009 at 11:37 AM, Yury Kudryashov ykudryas...@devexperts.com wrote: Thank you for your response, Brian. Unfortunately upgrading to 2.2.1 did not

Project Builds

2009-11-19 Thread Joel Schuster
It seems that Maven good about particular artifacts, but I can't seem to figure out how to do multiple projects into one distribution... I have various OSGi based applications. The core OSGi framework with all the bundles that all our projects use in common are included in one project. There

Putting a Release in the Repository

2009-11-19 Thread Neil Chaudhuri
I am using the prepare goal of the Maven Release Plugin to publish a release in SVN. The result of course is that the poms in the trunk and in my local copy are updated to the next version snapshot. What I want to do is to take the release in SVN and publish it to my local Nexus repository in the

Re: Putting a Release in the Repository

2009-11-19 Thread Stephen Connolly
mvn release:perform after the prepare Sent from my [rhymes with tryPod] ;-) On 19 Nov 2009, at 19:11, Neil Chaudhuri nchaudh...@potomacfusion.com wrote: I am using the prepare goal of the Maven Release Plugin to publish a release in SVN. The result of course is that the poms in the trunk

Re: Putting a Release in the Repository

2009-11-19 Thread Stevo Slavić
http://weblogs.java.net/blog/2008/08/31/using-maven-release-plugin http://www.vineetmanohar.com/2009/10/23/how-to-automate-project-versioning-and-release-with-maven/ Regards, Stevo. On Thu, Nov 19, 2009 at 8:19 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: mvn release:perform

RE: Why would 'mvn dependencies:tree' fail while 'mvn compile' works?

2009-11-19 Thread Jamie Whitehouse
What maven commands did you issue to test this? I used the attached project and here's the results. 1) extract zip 2) mvn dependency:tree failed due to dependency resolution 3) mvn clean install 4) mvn dependency:tree see the tree output I think you're misunderstanding how the local maven

RE: Putting a Release in the Repository

2009-11-19 Thread Neil Chaudhuri
I have done those things, but I get the following error: [INFO] [INFO] Cannot execute mojo: clean. It requires a project with an existing pom.xml, but the build is not using one. I thought that error only occurred when the URL to the repo was incorrect. Since I am able to do a release:prepare

Re: Why would 'mvn dependencies:tree' fail while 'mvn compile' works?

2009-11-19 Thread Jonathan Gold
Jamie -- Thanks for trying it out, and for the explanation. This makes sense in terms of why things are happening, so that's nice. I'm not familiar with the dependency plugin developers (are you one?), and wonder if having the dependency plugin be reactor-aware is something they would consider?

RE: Why would 'mvn dependencies:tree' fail while 'mvn compile' works?

2009-11-19 Thread Jamie Whitehouse
Many of the dependency plugin goals are reactor aware, but dependency:tree isn't. I'm not too sure why, but you could search the issue tracker and if there's no issue for this file one. -Original Message- From: Jonathan Gold [mailto:jgold...@gmail.com] Sent: Thursday, November 19,

ejb-jar plug-in - Can we add dependency jars to ejb-jar.jar

2009-11-19 Thread Medishetty, Rajendar
Hi, I'm using ejb-jar plugin to generate the ejb-jar.jar. I have some library jars, which are only used by this ejbModule. So I want them to be packaged inside ejb-jar.jar file only and I don't want them to place them in ear lib directory. I couldn't find anything with ejb-jar plug-in to

Re: ejb-jar plug-in - Can we add dependency jars to ejb-jar.jar

2009-11-19 Thread Stephen Connolly
the jar spec does not support jar files within jar files (technically Java's URL support only goes one level deep: eg jar:url/to/file!path/ in/jar is allowed, but jar:jar:url/to/file!path/in/jar!path/in/jar is not) so while you could copy the jar files inside your ejb jar, nothing will be

Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?

2009-11-19 Thread laredotornado
I'm using Maven 2.2 on Mac 10.5.6 with JBoss 5.1. I have these two dependencies in my pom.xml (I'm building a WAR file) ... dependency groupIdcom.myco.jsf/groupId artifactIdcom-myco-jsf/artifactId version1.11/version /dependency dependency

Re: findbugs-plugin: Premature end of file.

2009-11-19 Thread duality72
I'm having the same problem today. Looks like the findbugs plugin has been updated to version 2.2 and is causing the problem. Reverting to version 2.0.1 has removed the problem. -- View this message in context:

Re: Build multiples war with multiples contexts.

2009-11-19 Thread Wagner Santos
Thanks! It's work (with some modifications). -- Wagner Santos MSN/Gtalk: wagner.gsan...@gmail.com Site: http://www.geracaoelias.blog.br meadiciona:http://meadiciona.com/wagnergsantos/ On Thu, Nov 19, 2009 at 1:00 AM, Wayne Fay wayne...@gmail.com wrote: I have a webapp and two servers

How best to deploy ( different config ) to different machines

2009-11-19 Thread Sony Antony
Reading the following thread brings forth this question ( Actually there was a thread on this few weeks back. But it wasnt very detailed ) : We have this configuration file that contains machine/server specific information. Assuming my application is an ear, how do I do a build so that I dont

Re: How best to deploy ( different config ) to different machines

2009-11-19 Thread Jesse Farinacci
Sounds like a job for JNDI. On Thu, Nov 19, 2009 at 7:23 PM, Sony Antony sony.ant...@gmail.com wrote: Reading the following thread brings forth this question ( Actually there was a thread on this few weeks back. But it wasnt very detailed ) : We have this configuration file that contains

Re: How best to deploy ( different config ) to different machines

2009-11-19 Thread Sony Antony
I was thinking of exactly teh same when I wrote it ( the name of the particular config file to be chosen is stored in JNDI. Using the application event listener, teh particular file is preread when app comes online ) But I wanted to ask if this is really how most well maintained projects do it ?

[WARNING] POM is invalid. error messages in Maven 2.2.1 but not in 2.0.10

2009-11-19 Thread Ellecer Valencia
Hi, How come when I try a build using Maven 2.2.1 I get multiple messages like this: [WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid. Its dependencies (if any) will NOT be available to the current build. These errors weren't displaying when I was using Maven 2.0.10

Re: [WARNING] POM is invalid. error messages in Maven 2.2.1 but not in 2.0.10

2009-11-19 Thread Brett Randall
Hi Ellecer What is the output of mvn -e -X ... Brett On Fri, Nov 20, 2009 at 11:41 AM, Ellecer Valencia elle...@gmail.comwrote: Hi, How come when I try a build using Maven 2.2.1 I get multiple messages like this: [WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is

Re: [WARNING] POM is invalid. error messages in Maven 2.2.1 but not in 2.0.10

2009-11-19 Thread Ellecer Valencia
Hi Brett, Thanks for the suggestion. I may have found the issue. Would it be this: Validation Errors: [DEBUG] For dependency Dependency {groupId=weblogic, artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency must specify an absolute path systemPath. [DEBUG] For managed

Re: [WARNING] POM is invalid. error messages in Maven 2.2.1 but not in 2.0.10

2009-11-19 Thread Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :). On Fri, Nov 20, 2009 at 2:59 PM, Ellecer Valencia elle...@gmail.com wrote: Hi Brett, Thanks for the suggestion. I may have found the issue. Would it be this: Validation Errors: [DEBUG] For dependency Dependency

Re: [WARNING] POM is invalid. error messages in Maven 2.2.1 but not in 2.0.10

2009-11-19 Thread Ellecer Valencia
No, not my team. I think a more sensible fix is to just put the weblogic jars in Artifactory, but it's in a pom that I don't have much control over. Maybe 2.2.2 will fix it. =) On Fri, Nov 20, 2009 at 3:42 PM, Brett Randall javabr...@gmail.com wrote: http://jira.codehaus.org/browse/MNG-4379 ...

Re: Isn't listing a dependency supposed to download that JAR file into your WEB-INF/lib folder?

2009-11-19 Thread Anders Hammar
They should. Two reasons why they aren't that I can think of right now are: 1. Their scope is provided 2. The war plugin is configured to exclude them (param 'packagingExcludes' or 'packagingIncludes'). Run help:effective-pom to get the effective pom to see the complete picture. mvn install -X

Re: How best to deploy ( different config ) to different machines

2009-11-19 Thread Anders Hammar
This is a generic Java question. It doesn't matter if you use Maven or, for instance, Ant to build your Java EE app. Read the properties file from class path. Then make sure that the properties file is on the class path in the container (but outside of the ear), in each environment. In JBoss for

Custom Archetypes: Creating empty directories

2009-11-19 Thread Richard Hauswald
Hello list, I'm trying to create a custom archetype. All is working fine except that I can't create empty directories. Is this impossible or do miss something? Thanks, Richard -- Richard Hauswald Blog: http://tnfstacc.blogspot.com/ LinkedIn: http://www.linkedin.com/in/richardhauswald Xing: