How to construct an archetype for multi-module build with renamed modules

2008-03-22 Thread stug23
I am seeking advice on how to construct an archetype for a multi-module build such that the artifactId of each respective module becomes the name for the module in the generated directory structure. The result I am looking for would resemble the naming conventions of the Proficio multi-module

Re: How to construct an archetype for multi-module build with renamed modules

2008-03-24 Thread stug23
seeking help with here is a way to rename the folders in the archetype modules based on artifactId when the new project(s) are generated from the archetype. Can someone point me to documentation on the new archchetype NG that shows how to use mojos in an archetype development? stug23 wrote: I

Re: How to construct an archetype for multi-module build with renamed modules

2008-03-25 Thread stug23
difficult to add to the archetype plugin? Raphaël wrote: Hi Pat, I created http://jira.codehaus.org/browse/ARCHETYPE-153 Please comment if this issue does not correspond to your issue. Regards, Raphaël 2008/3/24, stug23 [EMAIL PROTECTED]: Based on the lack of response to my

Maven 'deploy' relationship to large-scale software deployment

2008-07-29 Thread stug23
Maven has its own notion of 'deploying' a software artifact to a Maven repository. And there are quite a number of 'out of band' Maven plugins such as Cargo that can remotely deploy a war file to a running web container. My question centers on how Maven relates to situations where once a

Re: Maven 'deploy' relationship to large-scale software deployment

2008-07-31 Thread stug23
Am I alone in needing to understand how Maven relates to large-scale software deployment? :confused: stug23 wrote: Maven has its own notion of 'deploying' a software artifact to a Maven repository. And there are quite a number of 'out of band' Maven plugins such as Cargo that can

Re: Maven 'deploy' relationship to large-scale software deployment

2008-07-31 Thread stug23
three or more built in a single day). I feel like either there are different terms to describe these things or no one is doing anything to this scale. I'd love some feedback/suggestions as to how others are doing this. -Original Message- From: stug23 [mailto:[EMAIL PROTECTED] Sent

Renaming a file during creation of a project from an archetype

2008-08-11 Thread stug23
Is there an automated way to rename a file contained in an archetype during project creation? For example if the archetype were for a web service it might have a file in WEB-INF/wsdl/ named 'FooService.wsdl'. The objective would to rename the file 'FooService.wsdl' based on the artifactId of the

Re: Maven/Eclipse - Keeping them in sync?

2008-09-19 Thread stug23
To bring project up to date when adding source directories, try selecting the following menu item from the contextual menu (right-click on your project in the Package Explorer): Maven = Update Project Configuration This will synch up the source folders with the Eclipse classpath. David C.

Best Practice for code generation scenarios in Maven

2008-09-23 Thread stug23
I am currently porting an Ant-powered code generator to Maven and would like to get input from this group for best practices with respect to code generation in Maven. Let's see if I have this right: I wrote a Maven mojo to drive the code generator and can configure it in the Maven project used

Re: Best Practice for code generation scenarios in Maven

2008-09-24 Thread stug23
Thanks for the tip on the build helper plugin. This makes setting the generated source more sensible than just altering sourceDirectory. newton.dave wrote: --- On Tue, 9/23/08, stug23 wrote: Does anyone on this group do this differently than what I sketched out here? If so, why and what

Re: Best Practice for code generation scenarios in Maven

2008-09-24 Thread stug23
and add it as a source compile root... attach he plugin to generate-sources and it will be compiled and jar'd up just like other code... see the jaxb2 or xmlbeans plugins for examples... On Wed, 24 Sep 2008 10:16:48 stug23 wrote: I am currently porting an Ant-powered code generator

URL encoding issues on Windows platform

2008-10-09 Thread stug23
One of our developers is using the exec:java plugin to launch a Java application. Within the application the JBoss Microcontainer is used and a java.net.MalformedURLException occurs. Apparently this is a known problem:

How do I exclude an xml file from a jar?

2008-10-09 Thread stug23
I need to have persistence.xml file on the classpath in order to perform DDL generation using the Hibernate Tool hbm2ddl. However I don't want the persistence.xml file to be included in the jar file. How can I exclude persistence.xml from the jar file even though it needs to be on the classpath

Using a property from a mojo in subsequent plugin executions

2008-10-13 Thread stug23
Is there a standard way to access a property that was set/established within a mojo in other, different plugin executions in the same POM? My use case is one where a mojo determines the value for a property that was not set/input to the mojo. This property needs to be available to other plugins

Re: Using a property from a mojo in subsequent plugin executions

2008-10-13 Thread stug23
a property via MavenProject, see the Mojo Developer Cookbook here: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Wayne On Mon, Oct 13, 2008 at 9:04 AM, stug23 [EMAIL PROTECTED] wrote: Is there a standard way to access a property that was set/established within a mojo

Multiple executions of goals under generate-sources: How to avoid?

2008-10-17 Thread stug23
I am working on a code generator plugin that ends up being executed multiple times when in fact I only want it to execute once in the generate-sources phase. According to this posting http://www.mail-archive.com/users@maven.apache.org/msg78484.html this is an expected behavior. How do I avoid

Re: Multiple executions of goals under generate-sources: How to avoid?

2008-10-18 Thread stug23
of them, so I am hoping that someone can help me to disable this feature of the maven-source-plugin. TIA stug23 wrote: I am working on a code generator plugin that ends up being executed multiple times when in fact I only want it to execute once in the generate-sources phase. According

Re: Multiple executions of goals under generate-sources: How to avoid?

2008-10-19 Thread stug23
stug23 wrote: As a clarification, the execution that I am trying to avoid is the second execution of a code generator mojo that is bound to generate-sources phase. The second execution results from uses the maven-sources-plugin which states: Invokes the execution of the lifecycle phase

Multimodule archetype does not propagate the artifactId in module names

2008-10-25 Thread stug23
Archetype NG is supposed to work properly with multimodule projects however I just tested it and found that it is now working. I added a comment to the original JIRA: http://jira.codehaus.org/browse/ARCHETYPE-153 This feature is one that I need for projects in the near term and I would

Re: Multimodule archetype does not propagate the artifactId in module names

2008-10-27 Thread stug23
After further testing, it appears that the problems I have with multimodule projects do not occur on the Windows platform, just on Mac OS X. I will do some more testing to nail this down. stug23 wrote: Archetype NG is supposed to work properly with multimodule projects however I just

Re: Multimodule archetype does not propagate the artifactId in module names

2008-10-28 Thread stug23
wrote: Thanks for all these inforations Raphaël 2008/10/27 stug23 [EMAIL PROTECTED]: After further testing, it appears that the problems I have with multimodule projects do not occur on the Windows platform, just on Mac OS X. I will do some more testing to nail this down. stug23

Re: Status of repo1.maven.org

2008-10-31 Thread stug23
As of 12:55 PM PDT I am able to access Maven Central from my iPhone via EDGE network, but not via my company's internal network via proxy. I am guessing that the problem lies somewhere in the network cloud such that some network providers are accessible and some are not. mclark_114 wrote:

Re: Status of repo1.maven.org

2008-10-31 Thread stug23
I just verified that I can NOT get to either of the ibiblio mirrors in the US (I am located in the Pacific Northwest). However I can get to the Chinese, Danish and Spanish mirrors. Mirrors Repositories http://docs.codehaus.org/display/MAVENUSER/Mirrors+Repositories stug23 wrote

Re: Status of repo1.maven.org

2008-11-02 Thread stug23
Here is another update from Slashdot regarding the problem between Sprint and Cogent: http://tech.slashdot.org/article.pl?sid=08/11/03/0143239from=rss Of course all of this is interesting for folks to discuss and debate . however the real question is: What are those of us that have

Re: Parametrizing directory names in an archetype

2008-11-07 Thread stug23
The 2.0-alpha-4 archetype plugin can do this for filenames -- I haven't tried it with directory names, however this definitely works for sub module directories so I think it will work in the general case. The syntax for your example is (double underscore before and after the property name):

Crash when running site:site

2008-11-12 Thread stug23
I have a Maven project that's not very large or complex, however when I run mvn site a fatal out of memory error occurs. I am enclosing the last portion of the console output as an attached file. When the job reaches the line '[INFO] Generating Dependencies report.' it runs for a long time at

Advice on version conventions for parallel, multi-team development

2008-11-13 Thread stug23
My question is related to the situation where there are multiple teams working on the same project. Let's call the project 'foo-bar' For example, Team A is working on a Subversion branch called 'team-a' and Team B is working on another Subversion branch called 'team-b'. The builds are

Re: Advice on version conventions for parallel, multi-team development

2008-11-16 Thread stug23
Am I the only one with this question? stug23 wrote: My question is related to the situation where there are multiple teams working on the same project. Let's call the project 'foo-bar' For example, Team A is working on a Subversion branch called 'team-a' and Team B is working on another

Is there a way to also copy source jars using dependency plugin?

2008-12-08 Thread stug23
Our project has written a jar extractor that uses the dependency plugin to build a directory of jars from the Maven repository for a project. These jars are to be used by a non-Maven project (which eventually will be converted to Maven, only not yet). We would also like to include the source jars

Question on the dependency plugin

2009-01-07 Thread stug23
I am trying to figure out how to use dependency plugin to copy both .class jar files as well as source jars. Unfortunately, so far I only able to copy the .class jar files, but the source jars (which I know are available for my artifacts) do not get copied. Please have a look at my plugin

RE: Question on the dependency plugin

2009-01-08 Thread stug23
- From: stug23 [mailto:pat.poden...@gmail.com] Sent: Wednesday, January 07, 2009 6:30 PM To: users@maven.apache.org Subject: Question on the dependency plugin I am trying to figure out how to use dependency plugin to copy both .class jar files as well as source jars. Unfortunately, so

Re: [ANN] Maven Site Plugin 2.0 Released

2009-03-11 Thread stug23
As of 9:20 am PDT the version 2.0 plugin doesn't appear to have made it to Maven Central yet: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/ dennisl-2 wrote: The Maven team is pleased to announce the release of the Maven Site Plugin, version 2.0 The Site

Properties: backslashes in pathname on Windows

2009-04-23 Thread stug23
Is there a way in Maven 2.0.9 to end up with forward slashes in a file/directory pathname on the Windows platform when filtering a property such as ${project.parent.basedir}? I need to supply a file URL for a Hibernate URL specified in a persistence.xml configuraton file. The following property

Re: Properties: backslashes in pathname on Windows

2009-04-24 Thread stug23
filetarget/test-classes/persistence.xml/file token\\/token value//value /configuration /execution /executions /plugin stug23 wrote: Is there a way

Problem with web service and WTP in Maven multimodule project

2009-06-27 Thread stug23
I have a multimodule project for a Sun JAXWS web service and am trying figure out the best way to single source the WSDL and XML Schema files for the project. The project multimodule structure is shown below. I am having issues related to the sourcing of these files when using the Eclipse option

Problem getting javasvn to work with build number plugin Click to flag this post

2009-07-10 Thread stug23
Has anyone been successful in getting the javasvn provider for the build number plugin to work? I posted this question to codehaus-mojo/mojo-user forum with the details: http://www.nabble.com/Problem-getting-javasvn-to-work-with-build-number-plugin-td24419164.html TIA! -- View this message

Re: Problem with web service and WTP in Maven multimodule project

2009-07-21 Thread stug23
of the war (type wsdl) then use dependecy plugin to copy dependencies with includeType set to wsdl that will at least give the most interdependency info to standard tools parsing your poms might get you somewhere On Saturday, June 27, 2009, stug23 pat.poden...@gmail.com wrote: I have

How can I drop a custom Velocity tool into archetype:generate?

2009-08-29 Thread stug23
I am finishing up a multimodule project archetype which needs to do some minor string transformations based on the standard archetype property 'rootArtifactId'. For example, if rootArtifactId = purchase-order the requirement is to produce a derived string assigned using a Velocity directive.

Re: Multiple executions of goals under generate-sources: How to avoid?

2009-08-29 Thread stug23
stug23 wrote: Lacking any other solution I went ahead and incorporated an internal Maven property that gets set at the end of the first code generation in the lifecycle. That way subsequent checks of the property provide an indication to skip code generation. This seems kind of kludgy

Re: How can I drop a custom Velocity tool into archetype:generate?

2009-08-31 Thread stug23
possible to use Plexus for the case described above? Sonatype blog article on Plexus injection: Plexus Container Five Minute Tutorial http://www.sonatype.com/people/2009/05/plexus-container-five-minute-tutorial/ stug23 wrote: I am finishing up a multimodule project archetype which needs

Re: How can I drop a custom Velocity tool into archetype:generate?

2009-09-07 Thread stug23
Can anyone give pointers for this question? stug23 wrote: Is there some way to use Plexus injection to accomplish the addition of a custom Velocity tool in an archetype so that archetype:generate can leverage the custom Velocity tool? I recently read an introductory posting on Plexus

Re: How can I drop a custom Velocity tool into archetype:generate?

2009-11-04 Thread stug23
Unfortunately I never did find a way to do what I described in the posting. Perhaps this could eventually be a feature in Maven 3? matinh wrote: Hi stug23! Did you make any progress on this topic? If yes, could you please explain the details. tia, - martin On 07 Sep 2009, stug23

Re: xmltask-equivalant Maven plugin

2009-12-15 Thread stug23
There is a Maven XML plugin that uses XSLT to transform a document that you may want to have a look at: http://mojo.codehaus.org/xml-maven-plugin/ lukewpatterson wrote: Does anyone know of a Maven plugin which provides functionality similar to the xmltask [1] Ant Task? description:

Basic question on dependency:unpack plugin goal - use of destFileName?

2009-12-16 Thread stug23
Examples for using dependency:unpack show a configuration property: destFileName[ filename ]/destFileName however I can't get this to work. In other words unpack a file from a zip and rename it in its destination. Is this simply in the unpack goal because the artifactItem includes

Re: How do I find the Jar that conatains this method signature?

2010-01-28 Thread stug23
You can easily research the class by using the very handy jarvana.com web site: http://jarvana.com/jarvana/search?search_type=classjava_class=org.apache.xpath.compiler.FunctionTable From the search link above you can drill into the class to see all of the methods. For example:

Re: Way to customize file names in archetypes?

2010-02-27 Thread stug23
In your archetype, you can use variable substitutions wherein a variable name is enclosed with two underscores before and after the property name. These variable substitutions are intended to take place during project creation. For example, shown below is a directory name within the archetype

Continuous Delivery and Maven

2010-11-02 Thread stug23
I've been reading about Continuous Delivery http://continuousdelivery.com/ and trying to understand how to best combine Maven and Continuous Delivery. There is a thread in the Continuous Delivery google group where this discussion has started:

RE: Continuous Delivery and Maven

2010-11-08 Thread stug23
I wanted to comment on something we have done for our builds with respect to SNAPSHOTS that helps with being able repeat a build for the SNAPSHOT. We record the Subversion revision number for each SNAPSHOT in the MANIFEST. Also we have a so-called base-pom, which all projects inherit from, that

RE: Continuous Delivery and Maven

2010-11-08 Thread stug23
I suspect that there is a reasonable way to adjust the builds in Maven such that they robustly support Continuous Delivery. I know that Jason van Zyl has started looking at CD as well. On the Google forum http://groups.google.com/group/continuousdelivery/browse_thread/thread/c8440681058f2db8

Re: Continuous Delivery and Maven

2010-11-09 Thread stug23
We need to figure out how to best leverage Maven (keeping in mind its process and practices) in a Continuous Delivery solution. I like the conversation around this topic and also see that there is this other discussion about the meaning of CD versus CI. From the comments so far, there has been a

Re: RE: Continuous Delivery and Maven

2010-11-10 Thread stug23
Stephen's solution makes sense to me. It doesn't try to conflate the meaning of SNAPSHOTs and it retains the metadata in trunk that keeps everything in the Maven build instead of relying on an outside tool. Anyone see any issues with this approach? I think I like it from what I understand so

jmockit in Maven Central

2011-07-04 Thread stug23
I spotted this post over in the jmockit issues page: http://code.google.com/p/jmockit/issues/detail?id=172 They seem to feel it's too hard to get artifacts into Maven Central. Can anyone here comment on this? Thanks -- View this message in context:

Warning when using expression for version in pom.xml

2012-01-10 Thread stug23
I am investigating the use of an expression for the value of the version in the pom.xml. There are properties that fully specify the actual value of the version in the same pom.xml, so I'm not sure why the warning is issued. The expression is correctly evaluated (i.e., value = 1.2.0-67936). The

Re: Warning when using expression for version in pom.xml

2012-01-12 Thread stug23
I got at least one feedback on this question over in the Google Group for Continuous Delivery: https://groups.google.com/d/msg/continuousdelivery/hdlALMDuiyU/jLMBYTbJ0MEJ Anyone here have opinions or experience with this question? Thanks. -- View this message in context:

Better way to capture output from a Maven job

2014-04-11 Thread stug23
I have a script that needs to obtain the three-part numerical version from a Maven pom.xml. I am using the Maven help plugin to the version number as follows: mvn help:evaluate -Dexpression=project.version Of course when running the Maven job, you get a great deal of output lines and towards the

Re: Better way to capture output from a Maven job

2014-04-11 Thread stug23
I also noted that someone has requested that help:evaluate values be returned in quiet mode: https://github.com/apache/maven-plugins/pull/17 -- View this message in context: http://maven.40175.n5.nabble.com/Better-way-to-capture-output-from-a-Maven-job-tp5790942p5790951.html Sent from the