Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Joachim Van der Auwera
Could it be that you are empacted by http://jira.codehaus.org/browse/MCHECKSTYLE-142 I guess not all maven properties are accessible in the checkstyle configuration. Depending on how you defined the cacheFile or checkstyle.cache.file properties, they may not be visible to checkstyle. Kind

RE: sync to central and patched 3rd party artifacts

2012-04-13 Thread Nord, James
I was wondering how things are supposed to work when you have a sync to central but you relly on a patched version of a 3rd party artifact. For example lets assume my library X depends on apache common io, and the current version has a bug that has been sitting around with a path for a

Re: sync to central and patched 3rd party artifacts

2012-04-13 Thread Olivier Lamy
Hello, Did you know those artifacts http://repo.maven.apache.org/maven2/com/madgag/org.eclipse.jgit-parent/ There are probably some others samples :-) 2012/4/13 Nord, James jn...@nds.com: I was wondering how things are supposed to work when you have a sync to central but you relly on a

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Grant Lewis
Okay, the saga continues. I opted for configuring a second POM file to remove the dependency on the parent POM. Now the checkstyle plugin is only configured one time. All is good with the check but I still get the checkstyle report generated twice when I run mvn site. I turned on debug and nothing

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Wayne Fay
configured one time. All is good with the check but I still get the checkstyle report generated twice when I run mvn site. I turned on debug and nothing jumped out. I also run help:effective-pm and noticed an older Have you run mvn clean lately? Perhaps this is leftover from an old build.

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Grant Lewis
I always run a clean before I run site. It's not a leftover. The duplicate is repeatable. Whatever is causing it is inherent in my configuration or possibly some missing markup in my pom file. I'm not trying to compile anything, just run the checkstyle check. The check and report look good now.

Re: How to pass a custom jar file to maven jarsigner plugin for signing

2012-04-13 Thread John Patrick
If you don't need ABC.jar a work around hack until you find the proper solution might be to use antrun at the right phase and move ABC-small.jar to ABC.jar. On 13 April 2012 15:42, Shyamsundar Purkayastha s.purkayas...@airtelmail.in wrote: I have a maven build configuration where I do the

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Wayne Fay
anything, just run the checkstyle check. The check and report look good now. The only issue is the report duplication. I pasted the log statements Are you using Maven3? If so, you need to change the pom configuration a bit: http://www.wakaleo.com/blog/292-site-generation-in-maven-3 If this is

Which in-container test framework do you use?

2012-04-13 Thread Lucas Persson
Hi I am about to migrate some Ant build system to Maven and have run into the JUnitEE ant task. I can not really find any up to date corresponding plugin for Maven. So what do people use now days to test servlets, ejb, JMS etc in the JEE containers?

Re: Which in-container test framework do you use?

2012-04-13 Thread John Patrick
I moved from Cactus and testing the running container, to using dependency injection type patterns and testing them independently and/or with mock objects. i.e. Servlet is just a wrapper to a pojo of business logic, ejb get helpers and other pojo injected, so everything can be tested separately.

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Grant Lewis
It's maven 2.2.1. I'm not overly familiar with site myself. I know maven well but not the reporting plugins as much. I'm guessing a bug in the checkstyle plugin but I can't say for sure. I dropped down to version 2.6 of the plugin, same version defined in our parent pom and the duplicate report

Re: Which in-container test framework do you use?

2012-04-13 Thread Stephen Connolly
I use OpenEJB and just fire up a container per test or per test class On 13 April 2012 16:03, Lucas Persson lucas.pers...@oracle.com wrote: ** Hi I am about to migrate some Ant build system to Maven and have run into the JUnitEE ant task. I can not really find any up to date corresponding

Simple filtering question

2012-04-13 Thread Maven User
Hi all - I'm struggling a bit with what seems like a really simple/silly thing. I have to use an explicit configuration of the maven-resources-plugin to copy and filter some resources. What I'm seeing, regardless of packaging type, is if you explicitly configure this plugin, it won't expand ANY

Possible to execute Maven Goals from API level calls?

2012-04-13 Thread Tobias Maslowski
Hello, It might be silly, but I was wondering if it was possible to use maven goals from api. I'ld like to do something like this: Maven mvn = new Maven(mySettings.xml); MavenCoordinates coords = new MavenCoordinates(my.group.id, ArtifactID, 1.0.0-SNAPSHOT); try { Artifact dep =

Re: Simple filtering question

2012-04-13 Thread Maven User
Doesn't seem that different, but this does work. Can't use includes? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId version2.5/version executions execution

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Robert Scholte
Since checkstyle-2.8 there's a second report: the checkstyle-aggregator-report[1] This causes the the duplicate loglines for the checkstyle-plugin, one for each report. My intuition would say that should always be only 1 report: the checkstyle-aggregator is for pom-packaged projects Robert

Re: Possible to execute Maven Goals from API level calls?

2012-04-13 Thread Wayne Fay
It might be silly, but I was wondering if it was possible to use maven goals from api. I'ld like to do something like this: ... Can anyone tell me if it's possible (and reasonable) to do so? If so, where can I have a look at the API? If you are just wanting to access your Maven Artifacts,

Re: Simple filtering question

2012-04-13 Thread Wayne Fay
What I'm seeing, regardless of packaging type, is if you explicitly configure this plugin, it won't expand ANY properties within the file. I doubt this is what is going on. Lots of people use filters with various configurations applied. For grins, I took the same file I wanted to filter, put

Why doesn't Browse or Search find my artificts?

2012-04-13 Thread Jeff
Using Archiva 1.3.5 currently In ramping up my Maven/Archiva processes and adding new projects, I've been doing more releases and new SNAPSHOT builds and though the Jenkins Maven Release build process says SUCCESS, the Browse nor Search functionality from the WebUI shows those new artifacts,

Re: Why doesn't Browse or Search find my artificts?

2012-04-13 Thread Olivier Lamy
Hello Jeff, For questions regarding Archiva please use Archiva mailing lists. 2012/4/13 Jeff predato...@gmail.com: Using Archiva 1.3.5 currently In ramping up my Maven/Archiva processes and adding new projects, I've been doing more releases and new SNAPSHOT builds and though the Jenkins

Re: Possible to execute Maven Goals from API level calls?

2012-04-13 Thread tobias maslowski
Thank you so much! This is pretty much exactly what I had in mind, but could not find :-) Am 13. April 2012 22:57 schrieb Wayne Fay wayne...@gmail.com: It might be silly, but I was wondering if it was possible to use maven goals from api. I'ld like to do something like this: ... Can

if condition in pom.xml

2012-04-13 Thread wzhao6898
Hi there, Is there a way for me configure maven-war-plugin (or any plugin in general) to execute conditionally? e.g.: I want to configure to exclude a js directory if property notExclude set to false, and skip if property notExclude set to true: plugin

Re: if condition in pom.xml

2012-04-13 Thread Olivier Lamy
You can use profiles and configure the plugin with your values in each profile. 2012/4/14 wzhao6898 wzhao6...@gmail.com: Hi there, Is there a way for me configure maven-war-plugin (or any plugin in general) to execute conditionally? e.g.: I want to configure to exclude a js directory if

Re: if condition in pom.xml

2012-04-13 Thread Jeff MAURY
Look at maven profiles Jeff Le samedi 14 avril 2012, wzhao6898 a écrit : Hi there, Is there a way for me configure maven-war-plugin (or any plugin in general) to execute conditionally? e.g.: I want to configure to exclude a js directory if property notExclude set to false, and skip if

Need to pass munge directives to 'mvn site:site'

2012-04-13 Thread Eugene Koontz
Hi, I'm trying to debug an error in running 'mvn site:site' within the Apache Giraph project's top-level directory. The pom.xml is here: https://github.com/apache/giraph/blob/trunk/pom.xml Note that there is a default profile, hadoop_0.20.203. This profile has the munge symbols