Ideas for integrating the code for a custom build step into project source code

2007-11-01 Thread Karr, David
I work on a large application that is built with Maven 1. It has numerous subproject directories. At one point we realized that it would be handy to write a custom build step that would utilize a custom PMD rule class, along with some Ant code that uses the XMLTask library. The Ant code parses

RE: Ideas for integrating the code for a custom build step into project source code

2007-11-01 Thread Karr, David
- From: Karr, David Sent: Thursday, November 01, 2007 9:24 AM To: Maven Users List Subject: Ideas for integrating the code for a custom build step into project source code I work on a large application that is built with Maven 1. It has numerous subproject directories. At one

Maven1: How to use ant-contrib foreach in a maven.xml goal

2007-11-02 Thread Karr, David
I have a set of targets in an Ant script that I'm trying to integrate into a goal in subproject maven.xml. One of the steps is to iterate over a list of files found in a directory, using the Ant-contrib foreach tag. This works fine in the Ant script, but when I do this in my maven.xml file, when

RE: Maven1: How to use ant-contrib foreach in a maven.xml goal

2007-11-04 Thread Karr, David
=**/${maven.xdoc.navigation.file} / /patternset /fileset /fileScanner j:forEach var=file items=${xmlFiles.iterator()} ... /j:forEach HTH, -Lukas [1] http://commons.apache.org/jelly/tags.html Karr, David wrote: I have a set of targets in an Ant

RE: Maven1: How to use ant-contrib foreach in a maven.xml goal

2007-11-04 Thread Karr, David
-contrib foreach in a maven.xml goal It's antcall, not antCall. However, I don't think this works with maven anyway, as maven has goals, not targets. You should transform your targets into goals and use attainGoal to call them. HTH, -Lukas Karr, David wrote: Duh. I should have

RE: Maven1: How to use ant-contrib foreach in a maven.xml goal

2007-11-04 Thread Karr, David
, not targets. You should transform your targets into goals and use attainGoal to call them. HTH, -Lukas Karr, David wrote: Duh. I should have known that. Going on, however, I seem to be doing something wrong when I use antCall in the forEach loop to call a target, or something

RE: Maven1: How to use ant-contrib foreach in a maven.xml goal

2007-11-04 Thread Karr, David
foreach in a maven.xml goal It's antcall, not antCall. However, I don't think this works with maven anyway, as maven has goals, not targets. You should transform your targets into goals and use attainGoal to call them. HTH, -Lukas Karr, David wrote: Duh. I should have known

RE: Maven1: How to use ant-contrib foreach in a maven.xml goal

2007-11-04 Thread Karr, David
PM To: Maven Users List Subject: Re: Maven1: How to use ant-contrib foreach in a maven.xml goal attainGoal is an empty tag: attainGoal name=${goal} / use j:set before that. -Lukas Karr, David wrote: I tried doing something like this: j:forEach items

Xslt in build.xml when run from other dir from maven gets Provider for javax.xml.transform.TransformerFactory cannot be found

2007-11-08 Thread Karr, David
JDK 1.4.2, Ant 1.5, Maven 1.0.2. I developed an Ant script that uses an xslt task. I tested it in the directory where I put it, and it works fine. I then went to another directory tree managed by maven, and executed some code in my maven.xml in a subproject that calls ant:ant and calls my build

RE: Xslt in build.xml when run from other dir from maven gets Provider for javax.xml.transform.TransformerFactory cannot be found

2007-11-08 Thread Karr, David
sysproperty in the Ant script, but it didn't have any effect. Btw, any reason for not using maven 1.1? It's mostly backward compatible with m1.0.2 [2] and much improved in terms of performance. Good to hear. I don't control our upgrade paths, but I'll mention those two points. Karr, David wrote

Strategies for setting up enhanced build of what's in SCM

2006-06-30 Thread Karr, David
I like the way Continuum does all the work of setting up an internal repository for the local SCM view, so I don't have to define that externally like I do in CruiseControl. Ironically, however, I now see a capability in CruiseControl that I need, that I don't see in Continuum, mostly because of

URL to Maven 1.x POM doesn't go through SCM

2006-07-24 Thread Karr, David
I'm not very familiar with Maven, and less with Continuum, so perhaps I'm just misunderstanding something, but it seems odd to me that when you create a Maven 1.x project, you either specify an HTTP url to the Maven 1.x POM file, or you upload it directly. This seems odd, as my POM file is stored

Newbie issues with maven castor plugin in Maven 1.0.2

2006-07-28 Thread Karr, David
I'm working on a project using Maven 1.0.2, and I'm not that familiar with how Maven works. I'm trying to use the maven castor plugin to generate classes from an XSD, but I need to override the class binding to prevent duplicate classes. I'm finding it a little hard to determine exactly what

RE: Newbie issues with maven castor plugin in Maven 1.0.2

2006-07-28 Thread Karr, David
], it is not supported by the Maven team anymore (but it should work still with Maven 1.0.2). HTH, -Lukas [1] http://maven.apache.org/maven-1.x/plugins/castor/ Karr, David wrote: I'm working on a project using Maven 1.0.2, and I'm not that familiar with how Maven works. I'm

RE: Newbie issues with maven castor plugin in Maven 1.0.2

2006-07-29 Thread Karr, David
the codebase and find another home for the plugin, eg at the sourceforge project [2]. Cheers, -Lukas [1] http://jira.codehaus.org/browse/MPCASTOR [2] http://maven-plugins.sourceforge.net/ Karr, David wrote: I see. So since the the castor plugin for maven 1.x isn't supported

Maven 1.0.2: Possible to new an object and then call methods on it, in Maven plugin?

2007-02-20 Thread Karr, David
I have a modified version of the Castor plugin that enables some Castor features not available through the default plugin. In this plugin, I use ant:java to execute the main method of the class. I've been told that in order to access other features that I'm going to need, I instead have to

How to pass -Xmx to javac in maven 1.0.2?

2007-05-30 Thread Karr, David
I'm testing a new version of Castor in our multiproject build that uses Maven 1.0.2, and for one subproject, the javac runs out of memory. How do I pass a -Xmx option to the javac run from maven 1.0.2? I only want to do this for a single subproject at this point.

RE: Running maven pmd xdoc says no java files to process

2006-04-21 Thread Karr, David
files. -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Does the directory you are running 'maven pmd xdoc' from contain java source files? On 4/22/06, Karr, David [EMAIL PROTECTED] wrote: I'm using Maven 1.0.2, and I'm a maven newbie (other people set up

Fixing not finding maven-resources-plugin

2008-03-29 Thread Karr, David
I know very little about maven2. I'm trying to step through a Struts2 tutorial (Ian Roughley's book). After executing the following: mvn archetype:create -DgroupId=com.fdar.apress.s2 -DartifactId=struts2-starter -DarchetypeGroupId=org.apache.struts

RE: Fixing not finding maven-resources-plugin

2008-03-30 Thread Karr, David
That appeared to resolve the problem. From: Kedar Mhaswade [mailto:[EMAIL PROTECTED] Sent: Sat 03/29/2008 3:35 PM To: Maven Users List Subject: Re: Fixing not finding maven-resources-plugin Karr, David wrote: I know very little about maven2. I'm trying

Setting proxy information for Surefire

2011-09-02 Thread KARR, DAVID
I have an integration test run with Surefire using Spring's SpringJUnit4ClassRunner. I have it loading my applicationContext.xml, but it fails when it tries to load the schemas referenced in the context. I've verified the schema exists at that URL. I can get it in the browser and also with

RE: Setting proxy information for Surefire

2011-09-02 Thread KARR, DAVID
-Original Message- From: KARR, DAVID Sent: Friday, September 02, 2011 6:57 AM To: Maven Users List Subject: Setting proxy information for Surefire I have an integration test run with Surefire using Spring's SpringJUnit4ClassRunner. I have it loading my applicationContext.xml

Does the versions plugin deal with transitive references to two different versions of an artifact?

2011-10-28 Thread KARR, DAVID
If I have a build with a lot of modules, and I end up with two transitive dependency references to commons-lang, one for version 2.2, and one for version 2.4, does the versions plugin let me define rules that will let me choose either the older or newer version to actually use? From the

RE: Does the versions plugin deal with transitive references to two different versions of an artifact?

2011-10-28 Thread KARR, DAVID
schrieb KARR, DAVID dk0...@att.com: If I have a build with a lot of modules, and I end up with two transitive dependency references to commons-lang, one for version 2.2, and one for version 2.4, does the versions plugin let me define rules that will let me choose either the older or newer

How to install the pom when it's also an aggregator?

2012-03-09 Thread KARR, DAVID
I'm trying to build a project where the top-level POM is both a parent POM and an aggregator. This seems like it sets up a chicken-and-egg problem for the first build. How do I install the POM for the top-level without trying to process the modules?

RE: How to install the pom when it's also an aggregator?

2012-03-09 Thread KARR, DAVID
. It is possible to just build the top pom (mvn deploy -N), but this should not be required. On Fri, Mar 9, 2012 at 21:45, KARR, DAVID dk0...@att.com wrote: I'm trying to build a project where the top-level POM is both a parent POM and an aggregator.  This seems like it sets up a chicken- and-egg

Some questions about customizing the build on the Maven command line

2012-05-10 Thread KARR, DAVID
I have a top-level agg pom (call it level1) that has a module with an agg pom (call it level2) that specifies several modules. The directory that agg pom is in has an additional directory (call it level3) that is not in the modules list, but is also a pom module. I have a basic idea of how I

RE: Some questions about customizing the build on the Maven command line

2012-05-10 Thread KARR, DAVID
-Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Thursday, May 10, 2012 7:24 PM To: Maven Users List Subject: Re: Some questions about customizing the build on the Maven command line The directory that agg pom is in has an additional directory (call it

RE: Some questions about customizing the build on the Maven command line

2012-05-11 Thread KARR, DAVID
-Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Friday, May 11, 2012 7:31 AM To: Maven Users List Subject: Re: Some questions about customizing the build on the Maven command line Why can't you simply make level2 a child (module) of level1, and the same for

RE: Some questions about customizing the build on the Maven command line

2012-05-11 Thread KARR, DAVID
considered creating a custom and separate pom at the level where we had the additional module, but I didn't think of having this at the top level, to specify a module below the level of the first child. I believe this could work also. -Original Message- From: KARR, DAVID Sent: Friday, May 11

Fact-checking a statement about Maven from a book

2012-05-29 Thread KARR, DAVID
I'm reading Continuous Delivery, which is a good book, but I read one statement about Maven that seems out of date to me. I'd appreciate a bit of fact-checking here. It said: ... in its default configuration, it is self-updating. Maven's core is very small, and in order to make itself

How to make failsafe:integration-test fail the mvn command, but not be part of the default build

2012-08-08 Thread KARR, DAVID
I have a build with both unit tests and component tests. I want the unit tests to run as part of the default build, but I only want the component tests to run when specifically requested with failsafe:integration-test. What I have right now does this, but I noticed that when one of the

uses for site generation for internal enterprise software when a CI server is in use?

2012-08-15 Thread KARR, DAVID
I'm putting together a Maven benefits doc for an internal organization. I was wondering if I could make any argument for the value of Maven's site generation functionality. Our documentation is on wikis, and we have a CI server that aggregates build and analysis reports. Does anyone make

In plugin dev, how do you spec the containing and child elements for multi-valued param?

2012-08-17 Thread KARR, DAVID
I'm reading the Maven Complete Reference doc from Sonatype. In the section on Multi-valued Mojo Parameters, it has the example of an excludes property, where you specify an excludes container element with child exclude elements. What I don't understand is how it knows to expect the exclude

RE: In plugin dev, how do you spec the containing and child elements for multi-valued param?

2012-08-17 Thread KARR, DAVID
. But I could be wrong. /Anders On Sat, Aug 18, 2012 at 12:15 AM, KARR, DAVID dk0...@att.com wrote: I'm reading the Maven Complete Reference doc from Sonatype. In the section on Multi-valued Mojo Parameters, it has the example of an excludes property, where you specify an excludes

Any way to combine plugin settings between pom and parent pom?

2012-08-24 Thread KARR, DAVID
I'm investigating what abilities I have for integrating plugin configurations between a project pom and its parent. For instance, in the Surefire configuration in my project pom there are some settings that I would want for all Java projects, but there are some that are specific to a project

Understand need for relativePath/ in parent references?

2012-08-31 Thread KARR, DAVID
I have an app with a couple of modules, and I use a small parent hierarchy to define common settings. In source control, I have a somewhat flat hierarchy, where the main Java project is a peer of the three projects that define the parent poms. I normally check out the individual projects

RE: Understand need for relativePath/ in parent references?

2012-08-31 Thread KARR, DAVID
-Original Message- From: KARR, DAVID Sent: Friday, August 31, 2012 10:09 AM To: Maven Users List Subject: Understand need for relativePath/ in parent references? I have an app with a couple of modules, and I use a small parent hierarchy to define common settings. In source

Strategies for managing coordinates of release variations of individual projects?

2012-09-01 Thread KARR, DAVID
I assume that many of you using Maven every day work with large applications in the following context: * The application consists of numerous individual projects * There are several development teams, some focusing on specific projects, some on multiples * There are multiple release trains in

Arguments for Maven vs. Gradle

2012-09-09 Thread KARR, DAVID
At the risk of starting a flame war, what are some arguments for Maven vs. Gradle? This is in the context of a change and risk-averse organization that currently has a large Ant build, although with some associated Maven builds. I see the advantages of Gradle as a much better Ant, but I would

RE: Arguments for Maven vs. Gradle

2012-09-10 Thread KARR, DAVID
it easy to specify dependencies through Maven coordinates. I would assume that means it also handles transitive dependencies, but I'm not sure. It's a good idea to know your enemy, not that I consider Gradle an enemy in any way. On 09/09/2012 5:20 PM, KARR, DAVID wrote: At the risk of starting

Is the release plugin intended to be run manually?

2012-09-11 Thread KARR, DAVID
I noticed a comment in http://www.dzone.com/links/r/continuous_delivery_using_maven_3.html about not using the release plugin because it checks in POMs after updating versions, which isn't suited to a continuous delivery pipeline. Is the release plugin intended to be run manually, and not

Proper fix for non-resolvable dependency in build server

2012-12-18 Thread KARR, DAVID
I have a project that is building fine on my laptop. Today I started to set up the build for this on our Bamboo server. Everything is checked in. Both my laptop and the build server are using Maven 3.0.4. I have a top-level aggregator pom that specifies several modules, but this pom is not

RE: Proper fix for non-resolvable dependency in build server

2012-12-19 Thread KARR, DAVID
-Original Message- From: KARR, DAVID Sent: Tuesday, December 18, 2012 7:26 PM To: Maven Users List Subject: Proper fix for non-resolvable dependency in build server I have a project that is building fine on my laptop. Today I started to set up the build for this on our Bamboo

RE: Proper fix for non-resolvable dependency in build server

2012-12-19 Thread KARR, DAVID
-Original Message- From: KARR, DAVID Sent: Wednesday, December 19, 2012 9:11 AM To: Maven Users List Subject: RE: Proper fix for non-resolvable dependency in build server -Original Message- From: KARR, DAVID Sent: Tuesday, December 18, 2012 7:26 PM To: Maven Users

RE: Proper fix for non-resolvable dependency in build server

2012-12-19 Thread KARR, DAVID
-Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, December 19, 2012 10:09 AM To: Maven Users List Subject: Re: Proper fix for non-resolvable dependency in build server I have a top-level aggregator pom that specifies several modules, but this pom

RE: Proper fix for non-resolvable dependency in build server

2012-12-19 Thread KARR, DAVID
@maven.apache.org/msg127878.html but haven't seen any replies. On 12/19/2012 10:24 AM, users-digest-h...@maven.apache.org wrote: Subject: Proper fix for non-resolvable dependency in build server From: KARR, DAVID dk0...@att.com Date: 12/18/2012 10:26 PM To: Maven Users List users

Detecting any dependencies specified without versions?

2012-12-20 Thread KARR, DAVID
I just noticed that our large project has a lot of poms with dependencies with no version specified. I'd like to detect that at build time. I see that the enforcer plugin comes close out of the box, with the requirePluginVersions rule. However, there doesn't appear to be a

RE: Detecting any dependencies specified without versions?

2012-12-20 Thread KARR, DAVID
of devs are going through the same class this week, so perhaps I'll have another chance to diagnose this. :) Original-Nachricht Datum: Thu, 20 Dec 2012 17:09:59 + Von: KARR, DAVID dk0...@att.com An: Maven Users List users@maven.apache.org Betreff: Detecting any

PowerMock tests work fine in Eclipse, but don't execute in Maven build

2013-01-20 Thread KARR, DAVID
I normally use Mockito and JUnit with Maven. I'm trying to write some tests using PowerMock. I got the PowerMock test working fine in Eclipse, but now I'm noticing that the test is not running in the Maven build. Maven finds the test class, but it seems to think there are no tests. It's

RE: PowerMock tests work fine in Eclipse, but don't execute in Maven build

2013-01-21 Thread KARR, DAVID
demo project somewhere like on github, maybe we can help help you more easily. Just a small guess: isn't powermock full some special jar embedding 3rd Party code like testng and that would get selected? Cheers Le 21 janv. 2013 00:55, KARR, DAVID dk0...@att.com a écrit : I normally

store file in top parent pom, along with property pointing to it, and ref that property in child poms

2013-01-25 Thread KARR, DAVID
My project uses a small hierarchy of parent poms. I believe it would be a good idea to set my Sonar connection settings in the top parent pom, instead of telling all the users to add a certain set of settings to their ~/.m2/settings.xml. In addition, we're using the sonar.secretKeyPath

RE: store file in top parent pom, along with property pointing to it, and ref that property in child poms

2013-01-25 Thread KARR, DAVID
-Original Message- From: KARR, DAVID Sent: Friday, January 25, 2013 10:31 AM To: Maven Users List Subject: store file in top parent pom, along with property pointing to it, and ref that property in child poms My project uses a small hierarchy of parent poms. I believe it would

RE: Run unit tests before commiting

2013-02-15 Thread KARR, DAVID
-Original Message- From: Alberto Ivo [mailto:alberto...@gmail.com] Sent: Friday, February 15, 2013 4:52 AM To: Maven Users List Subject: Run unit tests before commiting Hello, Nowadays When I change the code, I manually run the unit test (suite) and then commit using Eclipse

Trouble resolving conflicting slf4j-simple references

2013-05-17 Thread KARR, DAVID
I'm working on a unit test in code that I haven't looked at before. I noticed that I was getting a NoSuchMethodError with a SLF call. This apparently is due to different versions of the SLF pieces in the dependency tree. I see both 1.6.1 and 1.5.2 in various places. I traced it back to one peer

RE: Trouble resolving conflicting slf4j-simple references

2013-05-17 Thread KARR, DAVID
-Original Message- From: KARR, DAVID Sent: Friday, May 17, 2013 11:05 AM To: Maven Users List Subject: Trouble resolving conflicting slf4j-simple references I'm working on a unit test in code that I haven't looked at before. I noticed that I was getting a NoSuchMethodError

How to define properties in a parent pom that are referenced in a child pom relative to the parent, not the child?

2013-08-15 Thread KARR, DAVID
I'm trying to setup javascript unit tests with phantomjs. I'm trying to store the phantomjs executable in a parent pom along with a path setting relative to that. When it's referenced from a child pom, I need the path to be relative to the parent pom, not the child pom. I have a similar

RE: How to define properties in a parent pom that are referenced in a child pom relative to the parent, not the child?

2013-08-15 Thread KARR, DAVID
as I'd like it to be that way. I've settled on the smelly workaround of simply hardcoding a reference to ../src/test/resources/... for the parent pom. 2013/8/15 KARR, DAVID dk0...@att.com: I'm trying to setup javascript unit tests with phantomjs. I'm trying to store the phantomjs executable

How to tell what arch value Maven is going to find?

2013-08-15 Thread KARR, DAVID
I defined a profile for Linux to set a path to a Linux executable. The executable is 64-bit, and the architecture is 64-bit (the uname -a output has x86_64). I didn't put anything in the profile specification for architecture. For completeness, I wanted to define a profile with 32-bit

How to deal with checksum errors on public artifacts?

2013-10-31 Thread KARR, DAVID
I was building a toy application that we're using to start work on a prototype for something, and a build failed with an error like the following: Could not transfer artifact org.ops4j.pax.runner:pax-runner-no-jcl:pom:1.4.0 from/to central (http://repo1.maven.org/maven2/): Checksum validation

RE: How to deal with checksum errors on public artifacts?

2013-10-31 Thread KARR, DAVID
validation on. On Thu, Oct 31, 2013 at 4:44 PM, KARR, DAVID dk0...@att.com wrote: I was building a toy application that we're using to start work on a prototype for something, and a build failed with an error like the following: Could not transfer artifact org.ops4j.pax.runner:pax-runner

Access denied downloading artifact from nexus

2013-11-14 Thread KARR, DAVID
- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Access denied downloading artifact from nexus

2013-11-14 Thread KARR, DAVID
(Sorry for the initial blank body. Not sure what happened there.) I'm having trouble downloading an artifact from a nexus pro repo in a Maven build on a build server. I don't know if this is a Maven problem, or a Nexus problem, although it's probably the former. I'm working on a Maven build

RE: Access denied downloading artifact from nexus

2013-11-14 Thread KARR, DAVID
... 401 Unauthorized Reusing existing connection to nexusprohost.com:8084. HTTP request sent, awaiting response... 403 Forbidden 2013-11-14 09:47:27 ERROR 403: Forbidden. - On Nov 14, 2013, at 4:35 PM, KARR, DAVID dk0...@att.com wrote: (Sorry for the initial blank body. Not sure

How to script the downloading of the latest snapshot of an artifact?

2013-11-19 Thread KARR, DAVID
Someone I work with needs to build an automated solution to get the latest version of a snapshot jar from our nexus server. They've tried the simplistic wget/curl solution, but that requires hardcoding the verbose snapshot jar url. What are cleaner ways to do this? This could be automated

RE: How to script the downloading of the latest snapshot of an artifact?

2013-11-20 Thread KARR, DAVID
. Thanks. For what we're doing, this is the best solution. If we later want to implement build-based distribution, we might look at the other possibilities. On Tue, Nov 19, 2013 at 6:09 PM, KARR, DAVID dk0...@att.com wrote: Someone I work with needs to build an automated solution to get

Is it possible to deliberately have two dependencies with the same groupid, artifactid, and packaging, but different version?

2014-01-13 Thread KARR, DAVID
I have a situation where it would be convenient for my pom to have two dependencies that are almost identical, only being different by the version. The makeup of the artifact is such that it would be safe (and intended) to use both of them. The Java package used in each is similar, but

RE: Is it possible to deliberately have two dependencies with the same groupid, artifactid, and packaging, but different version?

2014-01-14 Thread KARR, DAVID
2014 10:54, KARR, DAVID dk0...@att.com wrote: I have a situation where it would be convenient for my pom to have two dependencies that are almost identical, only being different by the version. The makeup of the artifact is such that it would be safe (and intended) to use both of them

RE: Is it possible to deliberately have two dependencies with the same groupid, artifactid, and packaging, but different version?

2014-01-14 Thread KARR, DAVID
2014 01:40, KARR, DAVID dk0...@att.com wrote: Again, I didn't want to debate whether this is convenient, I just wanted to know if Maven dependency resolution and things like the EAR plugin will have any trouble incorporating multiple dependencies with the same G:A, but different version

RE: Is it possible to deliberately have two dependencies with the same groupid, artifactid, and packaging, but different version?

2014-01-14 Thread KARR, DAVID
? On 14 January 2014 22:49, KARR, DAVID dk0...@att.com wrote: -Original Message- From: Barrie Treloar [mailto:baerr...@gmail.com] Sent: Tuesday, January 14, 2014 2:23 PM To: Maven Users List Subject: Re: Is it possible to deliberately have two dependencies with the same

Does Maven provide a way to list which repository each dependency was obtained from?

2014-09-17 Thread KARR, DAVID
I don't need this, but someone else asked a related question. Does Maven provide a way to list, for a project, which repository each dependency was obtained from? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

What is the minimum required config for the Maven Cobertura plugin to instrument, run, and generate xml and html reports?

2014-10-09 Thread KARR, DAVID
I have a working configuration that runs unit tests with Cobertura using Maven. I've always been a little mystified by Maven phases and how various plugins integrate with it (and I've read the user guide). I'd like to understand the minimum required configuration to get Cobertura

Strategies for building Docker image for Tomcat with Maven-built webapps with docker-maven-plugin

2016-08-10 Thread KARR, DAVID
I have a simple multi-project build (just two projects), and the webapps produced from the two projects will be deployed to Tomcat (TomEE, actually). The TomEE instance requires some non-standard configuration for these apps to work. I'm considering having a third subproject using the

Multiproject build that needs to build one project only if on a particular os?

2016-08-16 Thread KARR, DAVID
I have a multiproject build with three modules, not counting the top-level. I can build this on either Windows or Linux, but if I'm building on Windows, one of the subprojects should not be built. I vaguely remember seeing ways to set architecture properties and check for those, but I can't

RE: Strategies for building Docker image for Tomcat with Maven-built webapps with docker-maven-plugin

2016-08-15 Thread KARR, DAVID
act versions, so somehow the dependency copy has to remove the version number from the artifact file. What is the best way to do this? > On Wed, Aug 10, 2016 at 8:44 AM, KARR, DAVID <dk0...@att.com> wrote: > > > I have a simple multi-project build (just two projects), and the &g

RE: Strategies for building Docker image for Tomcat with Maven-built webapps with docker-maven-plugin

2016-08-15 Thread KARR, DAVID
er-maven-plugin > > use destFileName > http://maven.apache.org/plugins/maven-dependency-plugin/copy- > mojo.html#artifactItems Ok. After some research, I think that perhaps just setting "stripVersion" to true might be all that I need. > On Mon, Aug 15, 2016 at 10:22 AM, KARR, DAV

RE: Multiproject build that needs to build one project only if on a particular os?

2016-08-16 Thread KARR, DAVID
Or do you make a OSGi build? A docker image for Linux. > On 16/08/16 21:47, KARR, DAVID wrote: > > I have a multiproject build with three modules, not counting the top- > level. > > I can build this on either Windows or Linux, but if I'm building on > > Windows, one of

Building Docker image works in subproject, not from aggregator

2016-08-17 Thread KARR, DAVID
I'm using the "docker-maven-plugin" to build a simple image based on TomEE. This is one subproject in a small multiproject build. Two other subprojects build the webapps that are installed into the TomEE instance. I've been able to get the image to build by building from the "image"

RE: Building Docker image works in subproject, not from aggregator

2016-08-17 Thread KARR, DAVID
't needed, but I still get the error, so the issue is likely due to the "dockerDirectory" value. In any case, I tried changing the value to "${basedir}/src/docker", but it made no difference. > On Wed, Aug 17, 2016 at 1:04 PM, KARR, DAVID <dk0...@att.com> wrote: >

RE: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-22 Thread KARR, DAVID
ing config code? > > Hi! > > On Mon, 20 Feb 2017 16:32 "KARR, DAVID" <dk0...@att.com> wrote: > > > Although my issue is about configuring the "jacoco-maven-plugin", I > > think it's really more of a pure Maven configuration issue, as I don't

Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-20 Thread KARR, DAVID
Although my issue is about configuring the "jacoco-maven-plugin", I think it's really more of a pure Maven configuration issue, as I don't think this situation is unique to JaCoCo. I have a somewhat large multi-module project. Each of the child modules has a parent pom that configures the

RE: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-20 Thread KARR, DAVID
n.apache.org_pom.html=DQIFAg=LFYZ- > o9_HUMeMTSQicvjIg=OsTemSXEn- > xy2uk0vYF_EA=FHuWQ_q8B5maEN_es6oJCbGAxMD8fxn8FxP0AQ9VZ3w=GptXYbOIzWw > xSTYZmwZufxSKr6WYerQ_ll_D1fVE-D4= Good to know that mechanism exists, but I don't think it applies to my situation. Still looks like the alternate parent pom has the best balance of trad

RE: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-22 Thread KARR, DAVID
n.apache.org_pom.html=DQIFAg=LFYZ- > o9_HUMeMTSQicvjIg=OsTemSXEn- > xy2uk0vYF_EA=FHuWQ_q8B5maEN_es6oJCbGAxMD8fxn8FxP0AQ9VZ3w=GptXYbOIzWw > xSTYZmwZufxSKr6WYerQ_ll_D1fVE-D4= How do I override the "executions" list? These properties aren't valid there. > -Original Message- > From: KARR, DAVID [mailto:

RE: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-27 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Wednesday, February 22, 2017 11:04 AM > To: Maven Users List <users@maven.apache.org> > Subject: RE: Strategies for overriding parent plugin configuration in > some modules without duplicating config code? >

RE: Building Docker image works in subproject, not from aggregator

2016-08-18 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Wednesday, August 17, 2016 11:46 AM > To: Maven Users List <users@maven.apache.org> > Subject: RE: Building Docker image works in subproject, not from > aggregator > > > -Original Message-

Dependency error with javadoc:aggregate, and confused about overall javadoc aggregate setup

2016-10-27 Thread KARR, DAVID
I have a somewhat largish multi-project build. It's all building successfully right now. I'm working on generating an aggregate Javadoc artifact. We're not generating a "site". It seems like the existing docs assume the use of that, so it's not completely clear how to set this up if we're

Strange result between "bundle" and "jar" type wrt javadoc and dependency resolution

2016-10-28 Thread KARR, DAVID
I have a subproject in a large multi-module project with the following dependency: -- org.apache.httpcomponents httpclient-osgi 4.5.2 bundle --

RE: Strange result between "bundle" and "jar" type wrt javadoc and dependency resolution

2016-10-29 Thread KARR, DAVID
ependencies instead. This is an OSGi project, and the subproject with this dependency is producing a bundle. Besides httpclient-osgi, we also have a httpcore-osgi dependency (curiously, version 4.4, not 4.5.2). > On

Strategies for augmenting jar manifest with source provenance info?

2016-11-10 Thread KARR, DAVID
I'm thinking of augmenting builds to add provenance info to the manifest of the artifacts we produce, to indicate what git url the current artifact is associated with (a "ContactInfo" tag might also be useful). Is this something that anyone has ever tried to do? If so, what strategies have

RE: Strategies for augmenting jar manifest with source provenance info?

2016-11-10 Thread KARR, DAVID
interesting is to include the exact git commit at > point of packaging, which I believe could be possible to add using the > release plugin..? (It already rewrites the scm tag of the pom). One step at a time. :) > On 10 Nov 2016 11:35 pm, "KARR, DAVID" <dk0...@att.com> wrote:

RE: Comparing specifying repositories in pom vs. settings.xml?

2016-10-19 Thread KARR, DAVID
> -Original Message- > From: Mark H. Wood [mailto:mw...@iupui.edu] > Sent: Wednesday, October 19, 2016 5:55 AM > To: users@maven.apache.org > Subject: Re: Comparing specifying repositories in pom vs. settings.xml? > > OK, I'm going to learn a lot from this thread. > > On Tue, Oct 18,

RE: Comparing specifying repositories in pom vs. settings.xml?

2016-10-17 Thread KARR, DAVID
in the build script). The requirement about "generally will want all your developers using the same set of repositories" is pretty important to me, but the recommended solution just seems counterproductive. Specifying it in the POM for the project seems to be the most direct way to

How to put project information metadata into a top-level POM, and have it be part of generated effective POM in META-INF/maven tree?

2016-11-11 Thread KARR, DAVID
I work on a large multi-project build. We produce a framework that other teams use. Although all of the teams that use our framework know who we are, it occurred to me that it would be considerate to make sure that there is metadata in the generated artifact that would give someone

First build in CI with Maven 3.0.5 gets bundle errors

2016-11-11 Thread KARR, DAVID
I'm working with a large multi-module project that produces OSGi artifacts. I cloned it to my desktop, and it builds fine with maven 3.3.9. Today I set up a Jenkins pipeline job to build it. The first time I ran it, I saw errors like the following: --- Invalid extension descriptor

RE: Strategies for augmenting jar manifest with source provenance info?

2016-11-11 Thread KARR, DAVID
to store this info in the very top-level POM, and have it be used in all of the subprojects. I don't understand how to make that happen. > On 10 Nov 2016 11:35 pm, "KARR, DAVID" <dk0...@att.com> wrote: > > > I'm thinking of augmenting builds to add provenance info to th

RE: Dependency error with javadoc:aggregate, and confused about overall javadoc aggregate setup

2016-10-28 Thread KARR, DAVID
> aggregate-jar > > > private > > true > > *.temp.* > > >

Comparing specifying repositories in pom vs. settings.xml?

2016-10-17 Thread KARR, DAVID
One thing I run into when jumping between different projects is different expectations for what maven repos I need to be using. In the past, I had to have multiple copies of "~/.m2/settings.xml" lying around, and I would hack the specified repos when I needed to. Recently, I saw a situation

RE: Need to fully understand bad implications of combined aggregator and parent pom

2016-11-30 Thread KARR, DAVID
re different. > > > > I have built many projects with the the one-parent structure, and they > > typically have interdependencies between the modules, and they work > > fine. Can you boil this down to a failing case on github? Can you > > share some poms? > > >

How to generate two different javadoc aggregate jars?

2016-12-02 Thread KARR, DAVID
I have a large multi-module project. In the parent pom (which is not the aggregator POM), I'm using "maven-javadoc-plugin". It has two executions, both in the package phase, one for the "jar" goal, and one for the "aggregate-jar" goal. This nicely generates a full aggregate Javadoc jar of all

Need to fully understand bad implications of combined aggregator and parent pom

2016-11-29 Thread KARR, DAVID
A while ago, I started working on an existing project with many developers. The codebase has a large multi-project Maven build. The top directory is both an "aggregator" and "parent" POM, as it has a "modules" list, and all of the child modules have it as their parent POM, for dependencies

  1   2   >