Re: Maven v3.0.3, PDF plugin v1.1 : fo:list-block is not a valid child element of fo:list-block

2012-07-03 Thread Lukas Theussl
Andy wrote: Caused by: org.apache.maven.plugin.MojoExecutionException: Error during document generation: Error creating PDF from /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/mav en- pdf-plugin.fo: org.apache.fop.fo.ValidationException:

Re: Mojo @execute with both phase and goal

2012-07-03 Thread Thomas Broyer
On Mon, Jul 2, 2012 at 10:03 PM, Olivier Lamy ol...@apache.org wrote: 2012/7/1 Thomas Broyer t.bro...@gmail.com: Hi all, Let's say I have a mojo that requires both a phase (process-classes) and a goal (war:exploded) to be executed before it itself is run, am I right to think that I should

Re: Code coverage report for multi module maven project reports zero in some modules

2012-07-03 Thread kfmohamm
Thanks Thomas, I tried what you suggested and now we have the code coverage report for all our modules. Thanks Khurram On 1 July 2012 03:51, kfmoh...@uci.edu wrote: Yes, I have moduleA, moduleB, moduleC, moduleD, moduleE and module F. I run JUnit tests from module F. This is not the way

Re: Adding native shared objects to class path during test phase

2012-07-03 Thread Benson Margulies
Native objects are never added to the 'class path'. You need to use the options of the surefire plugin to set the java.library.path system property and, as needed, the PATH, LD_LIBRARY_PATH, or DYLD_LIABRARY_PATH option as needed.

Re: Mojo @execute with both phase and goal

2012-07-03 Thread Wayne Fay
Am I on the right track? What would be the best practice? Perso I would use the lifecycle approach which is more IMFO in the maven supported approach. Is that your frank opinion or h... Didn't know you felt so strongly about it, Olivier. ;-) Wayne

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Benson Margulies
Please post the actual configuration for the shade plugin that you are trying. I've certainly seen shade respect include and exclude. On Tue, Jul 3, 2012 at 9:21 AM, Jason Rutherglen jason.rutherg...@gmail.com wrote: I am trying to package up a large project, eg, Solr and do not want

Re: Mojo @execute with both phase and goal

2012-07-03 Thread Olivier Lamy
2012/7/3 Wayne Fay wayne...@gmail.com: Am I on the right track? What would be the best practice? Perso I would use the lifecycle approach which is more IMFO in the maven supported approach. Is that your frank opinion or h... Didn't know you felt so strongly about it, Olivier. ;-) hehe F

reactor build changes in module recompilation of dependent modules

2012-07-03 Thread Dmitry Trunikov
Hi All, It seems that my question has an obvious answer. Unfortunately googling didn't give me a good one. Prerequisites: I have a classical multi-module project. The root POM declares two modules: 'api' and 'impl'. These modules have references to the parent. The module 'api' contains

Re: Mojo @execute with both phase and goal

2012-07-03 Thread Thomas Broyer
Le 3 juil. 2012 16:42, Olivier Lamy ol...@apache.org a écrit : 2012/7/3 Wayne Fay wayne...@gmail.com: Am I on the right track? What would be the best practice? Perso I would use the lifecycle approach which is more IMFO in the maven supported approach. Is that your frank opinion or

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Jason Rutherglen
Benson, thanks for taking a look. This is probably the relevant XML being used, sorry for clogging up the body, attachments probably do not work. I have tried variants on excludeorg.apache.solr/exclude such as excludeorg.apache.solr.*/exclude and excludeorg/apache/solr/exclude plugin

Re: structuring builds

2012-07-03 Thread Ron Wheeler
On 02/07/2012 5:26 PM, chad.da...@emc.com wrote: I'm beginning to sense that the structure of your build, e.g. the choices you make in grouping certain builds into multi-module builds and how you structure your directories in source control, have huge impacts on the ease of doing software

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Benson Margulies
On Tue, Jul 3, 2012 at 11:12 AM, Jason Rutherglen jason.rutherg...@gmail.com wrote: relocation !-- pattern*/*/pattern -- shadedPatterncom.custom.solr./shadedPattern excludes

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Jason Rutherglen
I ran this through a debugger, this line is not behaving as expected, where for example 'java/lang/ThreadGroup' matches 'org/apache/solr/*' SimpleRelocator.isExcluded: if ( SelectorUtils.matchPath( exclude, path, true ) ) On Tue, Jul 3, 2012 at 11:39 AM, Benson Margulies

Re: [mvn-3] jar files causing problems

2012-07-03 Thread Wayne Fay
[WARNING] The POM for org.apache.xalan:xalan:jar:2.7.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details Cat the jar file or open it in vi etc. I bet you see an HTTP 503 or a 404 or something other HTML in there instead of the proper

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Jason Rutherglen
Debugged into SelectorUtils, it seems to be working correctly. I downloaded 1.5.5, step through that source. The matchPath methods returns false, however the if statement in isExcluded evaluates to true. Must be looking at the wrong code? On Tue, Jul 3, 2012 at 11:46 AM, Jason Rutherglen

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Benson Margulies
What version of Shade are you trying to use? On Tue, Jul 3, 2012 at 2:26 PM, Jason Rutherglen jason.rutherg...@gmail.com wrote: Debugged into SelectorUtils, it seems to be working correctly. I downloaded 1.5.5, step through that source. The matchPath methods returns false, however the if

Re: How to add additional info to the MANIFEST.MF

2012-07-03 Thread Wayne Fay
I am using WID 7's serviceDeploy.bat to generate the EAR file from Maven. How can I inject some build information into the MANIFEST.MF file inside the EAR file? I want something like this: I have no idea about WID7 or serviceDeploy.bat but this is simple with plain-jane Maven:

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Jason Rutherglen
This is what's in the pom.xml so hopefully it's trying to use this, which matches the source version being debugged. groupIdorg.apache.maven.plugins/groupId artifactIdmaven-shade-plugin/artifactId version1.7.1/version On Tue, Jul 3, 2012 at 2:32 PM, Benson Margulies bimargul...@gmail.comwrote:

Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong
*Here is the part of the POM:* `` plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.4/version executions execution idunpack-scripts/id

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Jason Rutherglen
Here's where the source for Maven Shade 1.7.1 was obtained: http://svn.apache.org/repos/asf/maven/plugins/tags/maven-shade-plugin-1.7.1 Also not sure how to view the return type inside an if statement using Eclipse. On Tue, Jul 3, 2012 at 2:52 PM, Jason Rutherglen jason.rutherg...@gmail.com

Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread Wayne Fay
1. Where does this file comes from: CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip? Why it's unpacking this file? This is why: classifierscripts/classifier typezip/type 3. Currently a mvn deploy to upload the final zip file onto Nexus. If I want to upload the zip

Re: reactor build changes in module recompilation of dependent modules

2012-07-03 Thread Wayne Fay
Question: Why Maven didn't complain on second build? What are the versions of the various projects in your build? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail:

Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong
The project is depends on CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip, what does this classifierscripts/classifier exactly do? I thought unpack will only download CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip and unpack to outputDirectory. Who created this CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip? Thanks Jirong

Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread Wayne Fay
The project is depends on CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip, what does this classifierscripts/classifier exactly do? I thought unpack will only The use of classifier is documented on the Maven site. I'm sure you can find it and/or Google for more info. Who created this

Resource filtering with substitution targets defined by regex?

2012-07-03 Thread Garrison, Jim (ETW)
I'm building a webapp that will use a number of 3rd party Javascript/CSS libraries. A typical sloppy approach would be to open the distribution zips, copy the required files into webapp/css and webapp/js, and forget about it until you have to upgrade a UI library. At this point you have no

Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread Jörg Schaible
Hi Jirong, hujirong wrote: The project is depends on CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip, what does this classifierscripts/classifier exactly do? I thought unpack will only download CDIPubSubMgmtMed-0.0.1-SNAPSHOT.zip and unpack to outputDirectory. Right. However, you seem to inherit this

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Jason Rutherglen
I found the issue, the exclude needs to look like this, two asterisks at the end. Thanks for your help. excludeorg.apache.solr.**/exclude On Tue, Jul 3, 2012 at 5:05 PM, Jason Rutherglen jason.rutherg...@gmail.com wrote: Here's where the source for Maven Shade 1.7.1 was obtained:

Re: Maven shade relocating everything not excluding

2012-07-03 Thread Benson Margulies
You're welcome. Please feel free to submit a patch with a better explanation of this in the doc. On Tue, Jul 3, 2012 at 6:55 PM, Jason Rutherglen jason.rutherg...@gmail.com wrote: I found the issue, the exclude needs to look like this, two asterisks at the end. Thanks for your help.

How to activate proxies

2012-07-03 Thread Bruno Borges
I see that there's an option active for proxies under settings.xml... But how to toggle this flag through command-line interface? Thanks, *Bruno Borges* (21) 7672-7099 *www.brunoborges.com*

Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong
I found CDIPubSubMgmtMed-0.0.1-SNAPSHOT-scripts.zip in Nexus in this folder: local:8080/nexus/content/groups/mdm-public/com/nbfg/max/wesb/CDIPubSubMgmtMed/0.0.1-SNAPSHOT/ So I guess because the project is depending on the following: dependency

Re: How to activate proxies

2012-07-03 Thread Barrie Treloar
On Wed, Jul 4, 2012 at 6:05 AM, Bruno Borges bruno.bor...@gmail.com wrote: I see that there's an option active for proxies under settings.xml... But how to toggle this flag through command-line interface? I've never bothered, but I dont think you can. Why would you want to be able swap this

Re: Help me to understand this unpack-dependencies?

2012-07-03 Thread hujirong
Wayne Fay wrote Deploy has a particular meaning in the world of Maven, which means to push the resulting build file into a Maven repo. Maven doesn't really have a specific answer for how users should propagate their build artifacts to various environment-specific servers. This is seen as