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
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
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 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
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
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
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
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.
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
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
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
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:
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
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
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
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
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
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
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
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
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
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:
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
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
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):
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
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
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
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
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
-
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
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
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
filetarget/test-classes/persistence.xml/file
token\\/token
value//value
/configuration
/execution
/executions
/plugin
stug23 wrote:
Is there a way
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
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
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
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.
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
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
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
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
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:
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
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:
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
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:
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
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
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
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
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:
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
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:
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
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
56 matches
Mail list logo