Can Maven do this?

2007-07-10 Thread Russell Gold
I have a complex of projects that I want to manage. Essentially, it consists of a number of master projects, each of which in turn consists of a number of builds. A rule that I need to follow is that if any two builds refer to the same artifact, they must use the same version - even if they do

Re: Can Maven do this?

2007-07-11 Thread Russell Gold
Alan D. Salewski wrote: Sure, maven can do this. In fact, any project that contains multiple subprojects (which would include any project that produces more than a single artifact) is probably organized to take advantage of the feature. Basically, you declare your common dependencies

Annotation processing?

2012-04-03 Thread Russell Gold
Does anybody have a working example of custom annotation processing in Maven that they could share? I'm finding the documentation on this to be frustratingly sparse. I can find a page claiming to describe a plugin for annotation processing, but it doesn't actually give examples of what it's

Re: Annotation processing?

2012-04-03 Thread Russell Gold
Mostly, I'm trying to figure out why my implementation - which conforms to the documentation I'd found - does not appear to be detected by the compiler. I get that I'm doing something wrong; I just don't know what. I'll examine the code Curtis pointed out and see if it gives me clues. On Apr

Separate unit test / functional test directories?

2012-04-04 Thread Russell Gold
I see that the maven lifecycle includes separate phases for unit tests and functional tests, but I don't see how to take advantage of that. The failsafe plugin, as far as I can tell, uses the exact same directories as the surefire one. Is there a standard maven way to define a set of unit tests

Re: Separate unit test / functional test directories?

2012-04-04 Thread Russell Gold
That wrote: On Wed, Apr 4, 2012 at 2:06 PM, Russell Gold russell.g...@oracle.comwrote: I see that the maven lifecycle includes separate phases for unit tests and functional tests, but I don't see how to take advantage of that. The failsafe plugin, as far as I can tell, uses the exact same

pluginmanagement tag?

2012-04-10 Thread Russell Gold
The current POM documentation says of the pluginManagement tag that it will apply to the inheriting poms in a way that simply using the plugins tag will not. Is this the current functionality? Plan for something new? I've been using the plugins tag in my parent pom and the child poms have been

Re: pluginmanagement tag?

2012-04-10 Thread Russell Gold
Hmm. I guess the mailing list doesn't like embedded links... I was referring to http://maven.apache.org/pom.html - the section referring to the pluginmanagement tag. That's a useful distinction, but I don't think that's what the documentation says. It says, If we added these specifications to

antrun cannot run junit task

2012-04-11 Thread Russell Gold
I am converting a convoluted ant build to maven. It has a large number of functional tests, mostly built on either TestNG or the now-deceased author's private framework, but some on junit. I am running the tests via the antrun plugin, but it when it hits a junit task, it fails with: Could not

Re: antrun cannot run junit task

2012-04-11 Thread Russell Gold
Aha! Thank you! I searched the antrun plugin docs for info, but it's not there. What would it take for this to be added as a FAQ? It seems other people have been running into the same problem. On Apr 11, 2012, at 10:37 PM, Wayne Fay wrote: Could not load class

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

2012-04-15 Thread Russell Gold
If you're just testing servlets, ServletUnit is another reasonable choice. It runs unit tests w/o a web container. On Apr 13, 2012, at 11:03 AM, Lucas Persson 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

[ANN] apt-maven-plugin 1.0-alpha-5 released

2012-07-30 Thread Russell Gold
, The Mojo team. Russell Gold - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html!

[ANN] idlj-maven-plugin 1.2.1 released

2012-08-03 Thread Russell Gold
groupIdorg.codehaus.mojo/groupId artifactIdidlj-maven-plugin/artifactId version1.2.1/version /plugin Release Notes: The following bugs have been fixed: [MIDLJ-17] - plugin fails when a warning is issued (created by just-released fix for MIDLJ-15) Enjoy, The Mojo team. Russell Gold

Re: compiler plugin excludes that don't exclude

2012-08-28 Thread Russell Gold
Hi Benson, Javac compiles not only the files you specify, but also any classes that they reference. The only way to keep the dependencies from compiling is to remove them from the directory (and get a compile error) or modify the source code so that they are no longer referenced. On Aug 28,

Problem with release:perform step: target/check/pom.xml not found?

2012-10-21 Thread Russell Gold
This is my first time releasing this project via maven, and I am presumably doing something wrong.The release:prepare step seems to work just fine, ending with: [INFO] Building jar: /Users/rgold/projects/httpunit/httpunit/target/httpunit-1.7.2-javadoc.jar [INFO] [INFO] ---

[ANN] rmic-maven-plugin 1.2.1 Released

2012-12-26 Thread Russell Gold
The Mojo team is pleased to announce the release of the RMIC maven plugin, version 1.2.1 This plugin allows the generation of CORBA stubs from Java classes http://mojo.codehaus.org/rmic-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration:

[ANN] rmic-maven-plugin 1.2.1 Released

2012-12-26 Thread Russell Gold
The Mojo team is pleased to announce the release of the RMIC maven plugin, version 1.2.1 This plugin allows the generation of CORBA stubs from Java classes http://mojo.codehaus.org/rmic-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration:

Maven introductory course reviewers needed

2013-03-07 Thread Russell Gold
Hi, I am developing an introductory course for Maven users. The publisher will eventually provide technical reviewers, but I was hoping for some earlier feedback. The full course is expected to be a bit over 2 hours long; I have 3/8 sections created so far (14 videos totaling a bit over 45

Finding Maven properties?

2013-03-13 Thread Russell Gold
Hi, How does one get a complete list of available Maven properties? I found a sonatype doc which suggested looking at the Javadoc for the Model class in Maven http://maven.apache.org/ref/3.0.3/maven-model/apidocs/ but I cannot find any mention there of methods which would define

Link in upper right of generated website?

2013-03-14 Thread Russell Gold
Hi, By default, the maven-site-plugin generates a link in the upper right-hand corner within the div class=wright tag. The link is, by default, the project name and just points back to the project. How is this configured? I've seen sites that had multiple such links. Thanks, Russ Gold

Re: Link in upper right of generated website?

2013-03-14 Thread Russell Gold
Through a bit of experimentation, I found the answer. It's a link element. On Mar 14, 2013, at 4:30 PM, Russell Gold russell.g...@oracle.com wrote: Hi, By default, the maven-site-plugin generates a link in the upper right-hand corner within the div class=wright tag. The link

Compiler plugin magically working?

2013-03-17 Thread Russell Gold
Could somebody please try this? I have a project defined at http://russgold.github.com/russgold/maven-video/sample6.zip. I believe that this should not compile. If I compile the one source file with javac, it fails, as expected. But when I run with mvn compile, it passes! Any ideas what I

Re: Compiler plugin magically working?

2013-03-17 Thread Russell Gold
the version of the compiler-plugin. Robert Op Sun, 17 Mar 2013 19:29:32 +0100 schreef Russell Gold r...@gold-family.us: Could somebody please try this? I have a project defined at http://russgold.github.com/russgold/maven-video/sample6.zip. I believe that this should not compile. If I

Re: com.sun.tools.javac.*

2013-03-20 Thread Russell Gold
Hi Martin, I don't understand your question. I am not claiming any documentation says anything of the kind. Regards, Russ On Mar 17, 2013, at 6:57 PM, Martin Gainty mgaint...@gmail.com wrote: Hi Russ

Test Javadoc generation by default?

2013-03-20 Thread Russell Gold
Hi, I started using the javadoc reporting plugin and noticed that by default it generates test javadocs as well as regular ones. I know that I can configure it only to produce the regular ones, but I was wondering if somebody could explain why the defaults are as they are. Do most projects

Re: Test Javadoc generation by default?

2013-03-20 Thread Russell Gold
example project somewhere that demonstrates the behavior you are seeing? Regards, Curtis On Wed, Mar 20, 2013 at 7:53 AM, Russell Gold r...@gold-family.us wrote: Hi, I started using the javadoc reporting plugin and noticed that by default it generates test javadocs as well

Re: com.sun.tools.javac.*

2013-03-20 Thread Russell Gold
It doesn't do what I need - which is to be able to have a compile program (not Maven itself) invoke the java compiler. On Mar 20, 2013, at 12:36 PM, Martin Gainty mgai...@hotmail.com wrote: then your ok implementing the new compiler org.apache.maven:maven-compiler-plugin:2.0.X (instead of

Re: com.sun.tools.javac.*

2013-03-20 Thread Russell Gold
#getSystemJavaCompiler() Since JDK 1.6 (but as with com.sun.tools.javac, you need to run your program with a JDK, a JRE won't be enough) On Wed, Mar 20, 2013 at 6:03 PM, Russell Gold r...@gold-family.us wrote: It doesn't do what I need - which is to be able to have a compile program (not Maven

Why does the release process seem to require duplicate effort?

2013-04-17 Thread Russell Gold
Hi, Why does the normal release process require both release:prepare and then release:perform? Under what conditions would you choose not to do the perform step after a successful prepare step? Why do both generate source and javadoc jars and prompt for the PGP pass phrase? Thanks, Russ

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-23 Thread Russell Gold
I'd think this would be better suited for the maven developers list… But it seems to me that in the case where modules are not supposed to know where their parents are located, the working assumption is that the parent is already in the repo and built separately. That is, there are two cases:

Re: No mojo definitions found for plugin

2013-05-23 Thread Russell Gold
OK, never mind - I found it. I needed to add the maven-plugin-plugin. Thanks, Russ On May 23, 2013, at 12:10 PM, Russell Gold r...@gold-family.us wrote: Hi, I saw a previous discussion of this that seemed to be debian-specific. I am building now on MacOS X and deliberately trying

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-23 Thread Russell Gold
[I'm posting to the users list to avoid disturbing the dev list in case I've missed something obvious] Russell Gold wrote: I'd think this would be better suited for the maven developers list. But it seems to me that in the case where modules are not supposed to know where their parents

Guaranteeing JDK 5 compatibility?

2013-05-24 Thread Russell Gold
By default, as I understand it, Maven 3 compiles with the source and target options set to 1.5. This guarantees that later language features (such as diamond notation) will result in compile errors, and the generated classes will run in a JDK 1.5 JVM. But what about API calls? Does the compile

Re: Maven Profile for distincts web.xml

2013-05-27 Thread Russell Gold
I believe this is quite reasonable. Developers would like to be able to see a lot of reports on the code internals. The ability to generate those is one of Maven's strengths; however, users (which I assume is meant by production) should generally not be given all that information, especially if

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-27 Thread Russell Gold
the parent repo. Best regards Mike Russell Gold wrote: Only the developers could say for sure, but I would guess that it was done as part of code cleanup - that it's not so much that they wanted to remove the feature as it was that cleaning up the code might have made it hard to support

Re: maven 3 doesn't use reactor to find parent - revert to maven 2 behaviour

2013-05-27 Thread Russell Gold
. Your case (3) is not following any accepted pattern that Maven supports. It is often said, if you fight with Maven, you will lose. On May 27, 2013, at 12:01 PM, Russell Gold r...@gold-family.us wrote: I'm having trouble understanding your use case still, I think - and you are disregarding

pre-site binding examples?

2013-05-28 Thread Russell Gold
Hi, I'm looking for an example of a plugin that runs in the pre-site phase. I used to generate web pages dynamically from data stored in xml, using java classes to format various xml files, and I'm looking for a way to do that in maven. I presume that I want something analogous to the way code

Re: MessageBundle problem for using maven test

2013-06-02 Thread Russell Gold
Hi Jade, Where are you placing the ftp.properties file and how does your program attempt to find it? - Russ On Jun 2, 2013, at 12:07 AM, Jade evokeraluc...@gmail.com wrote: Hello everyone : I'm a beginner of maven. In my project, I have an file ftp.proterties only use for ftp

Re: MessageBundle problem for using maven test

2013-06-02 Thread Russell Gold
3, 2013 at 2:19 AM, Russell Gold [via Maven] ml-node+s40175n5757956...@n5.nabble.com wrote: Hi Jade, Where are you placing the ftp.properties file and how does your program attempt to find it? - Russ On Jun 2, 2013, at 12:07 AM, Jade [hidden email]http://user/SendEmail.jtp?type

Site plugin, breadcrumbs, and inheritance in multi-project sites

2013-06-02 Thread Russell Gold
Hi, I really like the ability to use this plugin to generate and deploy project sites, but I am having some problems making some things work: 1) I had ONCE gotten the breadcrumbs to show up. Now they don't. I am using the default version (3.0). 2) Most of the project info pages (developers,

Cobertura multi-module report?

2013-06-03 Thread Russell Gold
Hi, I see that the cobertura-maven-plugin has a parameter named, aggregate which I had hoped was similar to the aggregate report supported by the jar and javadoc plugins; however, when I enable it and disable inheritance, the report it generates is a blank page, so presumably I am not using it

create manifest with jars in multiple directories?

2013-06-04 Thread Russell Gold
If I enable manifest class path creation, the jar or assembly or shade plugin will create a manifest class path that lists all of my dependencies in the same directory. But what if I need them in different directories? Our current requirements place certain jars in specific directories so that

Re: create manifest with jars in multiple directories?

2013-06-05 Thread Russell Gold
for the maven-shade-plugin. Robert Op Tue, 04 Jun 2013 20:11:21 +0200 schreef Russell Gold r...@gold-family.us: If I enable manifest class path creation, the jar or assembly or shade plugin will create a manifest class path that lists all of my dependencies in the same directory. But what

Re: Maven release plugin

2013-06-06 Thread Russell Gold
Hi Markos, You need to release your dependencies first (to create the non-snapshot versions) and then update your project POMs to refer to the released versions. Then you can release your main project. It is only when the dependencies are themselves modules in your project and will be released

Re: Release not creating source and javadoc jars

2013-06-07 Thread Russell Gold
How are you running the release process? On Jun 7, 2013, at 8:29 AM, Timothy I. McGinnis tmcgin...@glatfelters.com wrote: I am using MyEclipse Bling 10.6 with Maven 3.0.3. When I run the release process it does not create the sources and javadoc jars. Does anyone have a clue as to why?

Re: Release not creating source and javadoc jars

2013-06-07 Thread Russell Gold
release:prepare and one for release: perform. I have the Maven Runtime specified as the external Maven 3.0.3 runtime. Tim McGinnis Sr. Programmer/Analyst Glatfelter Insurance Group (800) 233-1957 Ext. 7856 (717) 741-7856 -Original Message- From: Russell Gold [mailto:r...@gold

Re: maven-metadata.xml Error

2013-06-12 Thread Russell Gold
If you look closely, you will see that your first error is: [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused Given your corporate policy, I suspect

Re: mvn site:site fails

2013-06-12 Thread Russell Gold
You only need to remove it from the name. The descriptor is perfectly fine. On Jun 12, 2013, at 5:32 AM, Philippe Tjon-A-Hen wrote: I have the following pom.xml project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=

Re: Ant Project Convert To Maven

2013-06-13 Thread Russell Gold
Hi Raja, Having done this several times, with projects of varying complexity, I am sorry to say that AFAIK there is no automated way to do it. The problem is that ant is a very free form scripting language that allows you to describe builds - but ant writers cannot be guaranteed to do

Re: maven setting.xml properties can not use in dependency

2013-06-17 Thread Russell Gold
Your profile is not active, so maven ignores it. You need to add something like: activeProfiles activeProfilebroada-nexus/activeProfile /activeProfiles after your profile to make it usable. On Jun 17, 2013, at 6:48 AM, 吴靖 qhwj2...@126.com wrote: hi,everyone i use the maven ,but here

Problem with multi-module site

2013-06-19 Thread Russell Gold
I am using the site-maven-plugin (version 3.3) and cannot seem to get it to work. Using the exact same site.xml and additional files (faq, apt and xhtml types) that worked fine in a single project site, I am not getting breadcrumbs or custom menu items. I do get the submodules with their own

Re: Problem with multi-module site

2013-06-20 Thread Russell Gold
correctly, one problem is, when the name/directory of the module does not equal the artifactId of the module. Regards Mirko -- Sent from my mobile On Jun 20, 2013 1:04 AM, Russell Gold r...@gold-family.us wrote: I am using the site-maven-plugin (version 3.3) and cannot seem to get it to work

Re: Problem with multi-module site

2013-06-20 Thread Russell Gold
should be inherited as long as the parent defines some: http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Breadcrumbs HTH, -Lukas Russell Gold wrote: Thanks for the suggestion; all of the sub-modules are indeed in properly named directories, as far as I

Problem with clean in multi-module project that includes new mojos

2013-06-20 Thread Russell Gold
This sounds a bit obscure, but I think it's a reasonable scenario. I have a large multi-module project with custom plugins. If I add a new mojo to a plugin, use that mojo in a later modules, and commit the changes to CM, anybody who checks out the source will be unable to do a mvn clean on the

Re: How can I get error output for maven-antrun-plugin (if=fail) error?

2013-06-20 Thread Russell Gold
That seems odd, since you're showing the ant task as bound to the package phase - and from what you're saying, it shouldn't reach that phase. How are you invoking maven? Why don't you try: mvn test That should not even try to get to the package phase and the ant plugin. - Russ On Jun 20,

Re: Problem with multi-module site

2013-06-21 Thread Russell Gold
is in the project's root directory, it should be in src/site/ HTH, Lukas Russell Gold wrote: Hi Lukas, My problem is that the custom menus don't even show up in the parent, nor do the breadcrumbs. The docs suggest that the site descriptors are not attached automatically in maven 3

Re: First Steps with Maven

2013-06-27 Thread Russell Gold
Thanks, Eric. Hi Nayana, If you're interesting in trying the course-in-progress and giving me some feedback, I'd be happy to give you access. Email me directly. - Russ On Jun 27, 2013, at 10:40 AM, Eric Kolotyluk eric.koloty...@gmail.com wrote: Russell Gold is working on a great

Re: Installation Maven - Variable in the Systems Variables

2013-06-27 Thread Russell Gold
iirc MAVEN_HOME was the convention for Maven 1; I don't believe it should matter. I used a standard installer (MacPorts) and I have no such variable. OTOH, if you are going to be working with somebody else, it would probably be best to stick with the conventional names. On Jun 27, 2013, at

Re: With mvn release:prepare, is it possible to instruct Maven to use a forward slash in the submodule pom locations for the commit command?

2013-06-28 Thread Russell Gold
I don't suppose you're open to the solution: use linux or mac? I think what you're running into a general cygwin problem: other than those built it, the tools are mostly windows tools and expect path names to refer to the windows file system, but cygwin uses its own paths and they don't always

Re: The Maven way for delivery pipelines

2013-07-05 Thread Russell Gold
Hi Mirko, Have you looked at the Cargo plugin? http://cargo.codehaus.org/Functional+testing - Russ On Jul 5, 2013, at 4:29 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I should

Re: Accessing *reactor* build path in an Ant-Maven-plugin

2013-07-10 Thread Russell Gold
Hi Mirko. If you want the compile class path for the pom executing a plugin, you can do this: 1. Configure the plugin to require compile and runtime dependency resolution: @Mojo( ... requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME) 2. Specify a parameter configured to

Re: Maven site fluido skin and checkstyle

2013-07-10 Thread Russell Gold
You are creating the site and THEN running the check style mojo independently. You should be specifying the check style plugin in your reports section. On Jul 10, 2013, at 3:26 PM, Spammer Juliano s...@danandlaurajuliano.com wrote: There is a beautiful example of the fluido skin used for site

Failsafe report for website?

2013-07-10 Thread Russell Gold
Hi, If you are running the failsafe plugin for integration tests, and you bind only the integration-test goal and not the verify goal, you can have test failures in your build. Is there a way to report them on the project website? Thanks, Russ - Come read my webnovel, Take a

Re: Failsafe report for website?

2013-07-10 Thread Russell Gold
report names. Can you do that with this plugin? Thanks, Russ On Jul 10, 2013, at 9:14 PM, Russell Gold r...@gold-family.us wrote: Hi, If you are running the failsafe plugin for integration tests, and you bind only the integration-test goal and not the verify goal, you can have test failures

Re: Error of after running 'mvn package' command

2013-07-10 Thread Russell Gold
Hi, Do you have a repository configured? You're trying to read artifacts from maven.glassfish.org, which is generally intended for glassfish development. You should be able to get most of what you want from maven central. - Russ On Jul 10, 2013, at 9:46 PM, 邹志勇 zouzhiyong0...@163.com wrote:

Re: Error of after running 'mvn package' command

2013-07-11 Thread Russell Gold
It could be configured either in your POM or your settings.xml. On Jul 11, 2013, at 6:04 AM, 邹志勇 zouzhiyong0...@163.com wrote: I don't config repository and where can i see the repository configured? Thanks. At 2013-07-11 09:46:57,邹志勇 zouzhiyong0...@163.com wrote: Hi, After i run

Re: simple questions - where to put unpackaged config files?

2013-07-11 Thread Russell Gold
Hi Richard, You can use the property${basedir} to refer to root of the project, so the directory in question would be ${basedir}/src/main/config - Russ On Jul 11, 2013, at 1:24 AM, Richard Sand rs...@idfconnect.com wrote: I've several projects that were created before we began using

Re: Error of after running 'mvn package' command

2013-07-12 Thread Russell Gold
Are those the actual pom and settings.xml files you are using? They look like unedited samples. On Jul 12, 2013, at 12:01 AM, 邹志勇 zouzhiyong0...@163.com wrote: From my observation, in POM file and settings.xml don't do any config about repository, the following are two files content : In

Re: input artifacts to plugin

2013-07-13 Thread Russell Gold
HI Richard, What do you want to do? If all you want is the compile dependencies: 1. Configure the plugin to require compile and runtime dependency resolution: @Mojo( ... requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME) 2. Specify a parameter configured to receive

Re: input artifacts to plugin

2013-07-17 Thread Russell Gold
inputArtifact /inputArtifacts Best regards, Richard -Original Message- From: Russell Gold [mailto:r...@gold-family.us] Sent: Saturday, July 13, 2013 10:28 PM To: Maven Users List Subject: Re: input artifacts to plugin HI Richard, What do you want to do

Re: Maven bug in conjunction with annotation processing ?

2013-07-19 Thread Russell Gold
Hi Tommy, I've run into some problems along these lines, but in my case, it only happens when I build first using Maven and then try to recompile in the IDE. The problem appears to be that the two disagree on where the generated classes go (there was a change in one of the JDK releases, I

Re: Maven bug in conjunction with annotation processing ?

2013-07-19 Thread Russell Gold
produces new versions of the same classes they are compiled again and produces exactly the same class file targets as already produced before during the build. This causes the duplicate class exception. That is at least my theory. /Tommy 19 jul 2013 kl. 17:28 skrev Russell Gold r

Re: API to resolve an artifact in Maven3

2013-07-21 Thread Russell Gold
Hi Richard, Can you be more specific? What exactly is your goal? - Russ On Jul 20, 2013, at 11:02 PM, Richard Sand rs...@idfconnect.com wrote: Can someone please share the secret of how to do dependency resolution in Maven3? And specifically in 3.1? -Richard -Original Message-

Re: Error of after running 'mvn package' command

2013-07-21 Thread Russell Gold
Well this is rather strange. What happens when you invoke: ls -al /home/zouzy/.m2 On Jul 19, 2013, at 11:13 PM, 邹志勇 zouzhiyong0...@163.com wrote: I think the POM and setting are used during execute process, you can check all the debug information in the attachment. For the debug , it

Re: Validate html encoding with maven in webapp project

2013-07-21 Thread Russell Gold
What would validation consist of? How would you determine that interpreting the file as UTF-8 would produce the correct view? It seems to me that if you can actually decide what the rules are that you could write a test for it. But I cannot imagine any general automatic way to do it, as a

Re: API to resolve an artifact in Maven3

2013-07-22 Thread Russell Gold
think I need to find some time to sit with each of the principle author of maven3 and publish what I learn. -Richard -Original Message- From: Russell Gold [mailto:r...@gold-family.us] Sent: Sunday, July 21, 2013 7:52 AM To: Maven Users List Subject: Re: API to resolve

Re: how to properly propagate plugin results into subsequent phases

2013-07-22 Thread Russell Gold
Hi Richard, I would probably use a multi-module project, here, with the war module depending on the others it needs to include. - Russ On Jul 22, 2013, at 1:55 AM, Richard Sand rs...@idfconnect.com wrote: Hoping someone in the know will work with me to get this answered. Its an important

Re: mvn release:prepare does not update parent version

2013-07-23 Thread Russell Gold
The example you mention updates the build artifacts only. When you release code, you would of course assign a version number to the release, and you can specify what snapshot version you want to use next. That makes the release consistent with all of the tests. It's simple labeling what is

Re: mvn release:prepare does not update parent version

2013-07-24 Thread Russell Gold
Hi Markus, I think we're all a bit confused about what you are trying to do. Can you create a very simple project that recreates the problem or describe what you are doing in a different way? Maybe just letting us know the relationship among the modules in your project would suffice. Or

Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
Hi, Maybe somebody else has run into this. I'm converting a really messy 200-ant-script build to maven, and some steps seems to run a lot slower, now. The case I'm wondering about now is one where we have over 10,000 source files in a directory, and compile them bit-by-bit. One step specifies

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
I wish I could break it up. Among the problems with this code is the extreme bit of coupling. The scripts list 300 files to compile because that's all that we would have wanted, but they pull in other files, which pull in yet others. Trying to compile this fairly small subsystem winds up

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
ago, shortly after putting it in place over the objections of most of the senior staff, and we haven't been able to remove it. Russ On Jul 24, 2013, at 3:28 PM, Ron Wheeler rwhee...@artifact-software.com wrote: On 24/07/2013 12:35 PM, Russell Gold wrote: I wish I could break it up. Among

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
On Jul 24, 2013, at 8:36 PM, Ron Wheeler rwhee...@artifact-software.com wrote: On 24/07/2013 4:40 PM, Russell Gold wrote: Oh, you underestimate the coupling of this code. Yes, there are packages, but the classes in those packages reference one another willy-nilly. It's not a problem

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
Or let me rephrase that. In simple terms, I have dependency graphs like this: A B C ^ | \--- D / How do I put these classes into separate modules? On Jul 24, 2013, at 10:28 PM, Russell Gold r...@gold-family.us wrote: On Jul 24, 2013, at 8:36 PM, Ron

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
api that won't have these problems, but even if I get that approved, we have to support this for several releases. If there's an alternative, I'm all ears. On Jul 24, 2013, at 10:38 PM, Barrie Treloar baerr...@gmail.com wrote: On 25 July 2013 12:06, Russell Gold r...@gold-family.us wrote: Or let

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
, Russell Gold r...@gold-family.us wrote: Or let me rephrase that. In simple terms, I have dependency graphs like this: A B C ^ | \--- D / How do I put these classes into separate modules? Short answer is: Break the graph

Re: Any reason ant should compile faster?

2013-07-24 Thread Russell Gold
, 2013, at 12:34 AM, Ron Wheeler rwhee...@artifact-software.com wrote: On 24/07/2013 10:56 PM, Russell Gold wrote: Exactly. Which I cannot do because these classes are public and our customers rely on them. If I break the graph, that means changing a behavior that a customer might be using

Re: Preventing Maven from downloading certain versions from external repositories

2013-07-25 Thread Russell Gold
Maven has a fair number of conventions that are respected by a lot of its code. Trying to work against those conventions is likely to cause problems for you. Maybe if you explain what your goal is, we can suggest a more Maven-like way of accomplishing the same thing. On Jul 25, 2013, at 8:58

Re: Obtain a dependency version for output in resource filtering

2013-09-29 Thread Russell Gold
Hi Mark, Can you explain this requirement a bit more? Where is the version number coming from, and why? Are you trying to create the file that lists the versions? My initial reaction is that it sounds like a normal thing to want to do; maybe I'm missing something. Regards, Russ On Sep 29,

Looking for class property-substitution plugin

2013-09-30 Thread Russell Gold
Before I write this myself… I am converting an ant build to maven. One of the steps processes a template file, using properties from a properties file to replace tokens and produce a java source file, which is then compiled. Is there an existing plugin which does this? The resource plugin can

Re: Looking for class property-substitution plugin

2013-09-30 Thread Russell Gold
/language folder, and do a replace function, pointing to that src/main/language folder. Thanks, Roy Lyons On 9/30/13 9:44 AM, Russell Gold r...@gold-family.us wrote: Before I write this myselfŠ I am converting an ant build to maven. One of the steps processes a template file, using

Re: Maven Version 3.0.4 compatibility with Java Version

2013-10-02 Thread Russell Gold
You would think so, but a co-worker of mine ran into the same issue without putting anything in his POM. He had installed it using apt-get on ubuntu, but when he replaced that with 3.0.4 from the maven website, it worked fine. I never delved into the issue, but I wonder if apt-get is somehow

New Maven video course!

2013-10-02 Thread Russell Gold
I'd like to mention the release of my video course, Getting Started with Apache Maven, now available from PackT publications. It's a bit over two hours long and takes the viewer from installation of the tool through development of multi-module projects and websites. Check it out!

Re: New Maven video course!

2013-10-02 Thread Russell Gold
Yes, that's the one. On Oct 2, 2013, at 5:55 PM, Jose Manuel Garcia Maciel/Mexico/IBM jos...@mx1.ibm.com wrote: is it this one? http://www.packtpub.com/getting-started-with-apache-maven/video Manuel Garcia, regards - Author, Getting Started with Apache Maven

Alternate to SureFire plugin forkmode=always?

2013-10-03 Thread Russell Gold
Hi, We have some unit tests that were always forked per-test in ant, and are now converting to maven. The forkmode = always setting works, but without it, a number of the tests fail (there are issues with the way they are written, and we don't have time to rewrite them right now). The forkmode

Re: maven compiler plugin

2013-10-10 Thread Russell Gold
Hi Irfan, The behavior you describe sounds surprising. Can you attach a full listing of the run when you do mvn compile:compile? Thanks, Russ On Oct 9, 2013, at 11:42 PM, Irfan Sayed irfu.sa...@gmail.com wrote: hi, i am using maven compiler plugin. i havent mentioned anything related to

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-10 Thread Russell Gold
The simplest way to do this is actually to run it in your IDE directly. IntellijIDEA community edition can import your maven project and thus get all of the dependencies. Then you just run the program in the debugger. I presume Eclipse can do something similar. On Oct 10, 2013, at 10:52 AM,

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-10 Thread Russell Gold
, 2013 11:04 AM To: Maven Users List Subject: Re: Is there a Maven plugin for the Java debugger (jdb)? I could also use an IDE for package management, but I'd rather use plain Maven and an arbitrary text editor instead. On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold r...@gold-family.us wrote

Re: [ANN] 2013 Committer School for people who want to become Maven Committers

2013-10-11 Thread Russell Gold
Yes, very interesting - but where is the Maven source found? The site is a bit confusing on that score, and it is rather difficult to construct a patch when you cannot see the CM system. On Oct 11, 2013, at 2:42 AM, Barrie Treloar baerr...@gmail.com wrote: We still want more people to get up

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Russell Gold
, but the text editor of our choice. This is best accomplished by Maven tasks which interact with the command line jdb tool. On Thu, Oct 10, 2013 at 5:27 PM, Russell Gold r...@gold-family.us wrote: Why do you want to do that? I suspect we are not getting at your actual requirement. On Oct

  1   2   3   >