Hi Matthew,
I have gotten around this problem by deploying the SNAPSHOT projects in
question to an internal repository, after first renaming their versions
from X.X.X-SNAPSHOT to X.X.X-myco-X (or something similar). This can
get messy, since SNAPSHOTs sometimes depend on other SNAPSHOTs, and
Hi Farhan,
I don't know how to do exactly what you want, but you can do something
close with a profile.
If you put the antrun execution (or any other execution) in a profile
with no explicit activation spec, and bind it to a really early phase
(say, the initialize phase), then you can invoke it
Hi Vihung,
What you want is build-helper-maven-plugin:add-test-source
http://mojo.codehaus.org/build-helper-maven-plugin/
Steve
Vihung Marathe wrote:
Am I missing something, or is it not possible to specify more then one
directory as a test source directory?
I am working with an existing
Hi Mick,
According to the Sonatype book
http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution,
the artifactId should be ant-contrib.
Steve
Mick Knutson wrote:
I want to use the ant-run plugin and my ant task relies upon ant-contrib but
I can seem to find it in ibiblio in
Hi Farhan,
I think you can do what you want with a profile:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
If you put your plugin's settings in a profile, then you could then use
a cmdline something like:
mvn -P profile-id plugin:goal
Steve
Farhan Sarwar wrote:
Hi Mathias,
In Maven parlance, what you want is called an Internal Repository.
See the Maven intro to repos for some discussion:
http://maven.apache.org/guides/introduction/introduction-to-repositories.html
Steve
Mathias P.W Nilsson wrote:
I think I better explain this a little better
Ray Wenderlich wrote:
I am using Maven 2.0.8.
Wow, where can I get me one of them? :)
(2.0.7 is the most recent release.)
Steve
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Proguard:
http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin/introduction.html
Steve
Vihung Marathe wrote:
Does anyone know of a code obfuscator [commercial or otherwise] plugin
that can be incorporated into a Maven build? It seems to make sense to
do this as part of a release
Hi David,
I have used an antrun plugin execution to generate a timestamp
properties file in the initialize phase, like this:
properties
...
generated-resources-dir
target/generated-resources
/generated-resources-dir
...
/properties
build
...
plugins
...
plugin
Hi Francois,
Francois Fernandes wrote:
for some time now I've been looking for a easy way to generate a simple
class containing version information of our artifact. I know that it is
possible to filter resources. But to avoid any resource loading issues I
would like maven to generate such a
Hi Dmitry,
Dmitry wrote:
My application is a jar file and when I run mvn package it generates my
jar ok.
But I need to distribute my app with all the related jar dependencies so
I wonder how could I do it with maven2..
Actually, I did an ant task that at package cycle copy my project
Hi Dmitry,
Dmitry wrote:
I want to be able to interpolate ${pom.version} in Java source code
before compilation. How can I do this (Eclipse IDE)?
I see that there is a simple way to turn on resource filtering, but that
does not appear to be applicable to source code.
I also see that the
Hi Robin,
Have you tried turning off all of your anti-virus, anti-spyware, etc.
software? Sometimes these helpers silently disable network functionality.
Once you've determined that it is one of these, you should be able to
figure out how to tell it to allow traffic through for the apps you
Hi Severin,
Here's an undocumented profiles trick:
profiles
profile
idundefined-property-value/id
activation
property
name!my.property.name/name
/property
/activation
properties
my.property.namedefault-value-here/my.property.name
/properties
Hi Barrett,
Here's what I do in this situation:
plugin
artifactIdmaven-release-plugin/artifactId
configuration
...
arguments-Pmy.release.profile/arguments
/configuration
/plugin
the -Pprofile-id argument activates profile-id when the release:*
goals are run.
Steve
Barrett Nuzum
Hi Severin,
Here's an undocumented profiles trick:
profiles
profile
idundefined-property-value/id
activation
property
name!my.property.name/name
/property
/activation
properties
my.property.namedefault-value-here/my.property.name
/properties
Hi Rogrigo,
Rodrigo Madera wrote:
I was wondering if anyone has a suggestion on the best practice to
execute post-build scripts, such as copying output files to a
template directory for installer generation.
Right now I'm using a shell script to do the copying and calling my
Hi Rodrigo,
On 7/13/07, Rodrigo Madera [EMAIL PROTECTED] wrote:
Is using Ant scripts really acceptable from a Maven good-practice point of
view?
maven-antrun-plugin copy tasks are the conventional means for moving
files around, mostly because Maven 2 does not provide a generalized
facility for
Hi Joël,
Have you tried using the -X option to mvn? It might give more details
on the problem.
I checked your SapiensCommonsCore POM against maven-4.0.0.xsd, and it
appears to be valid, but you don't have a groupId there - are you
expecting to inherit it from the parent?
It might also be
Hi Brian,
Sounds like you're using Maven 1.X (I'm guessing because you refer to
.maven/cache/, a 1.X phenomenon) - you should know that at least 95% of
the traffic on this mailing list has to do with Maven 2.X, and that
people will assume that that's what you're using unless you say otherwise.
Hi Jon,
release:perform mostly does what you want - it checks out a clean
working copy from the tag created by release:prepare, and then does the
stuff you tell it to.
So, you can tell it to do stuff like you want. Take a look at the
goals parameter to the maven-release-plugin:
Hi Dennis,
Why not use /src/changes/ instead of /src/main/resources/ ?
By default, for jar packaging anyway, everything /src/main/resources/
will be put into the artifact, but why would anybody ever want an email
announcement template in the artifact?
Just curious,
Steve
Dennis Lundberg wrote:
Hi Mick,
From http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide:
${project.name} or ${pom.name} refers to the name of the project.
Steve
Mick Knutson wrote:
I want to take:
nameMIS File Intake/name
and add it to site.xml:
menu name=${name}
But want to know what to
Hi Daniel,
The plugin docs reveal all; from
http://maven.apache.org/scm/plugins/examples/scm-advance-features.html:
If you want to change the default scm provider
implementation, for exemple you want to use the
native cvs instead of the pure java implementation,
you must configure
Hi Peter,
Just to make sure terminology is in sync: local repository in
Maven-speak is the cache Maven uses for project dependencies (plugins
and external libraries), and is managed by Maven. Is this what you mean
when you say local repository?
If so, then what are you doing with CVS and
Hi Niraj,
I can't claim to know what's going on, but until you provide Maven
version numbers for before and after the strict checking started
happening, I'm certain that no-one will be able to help.
Steve
Alok, Niraj wrote:
Hi,
We found an issue where we had pom files missing from the
file.
The reason we do this is we build the tar ball on one build box push
it on to PROD servers. We run a make on each PROD server which will
invoke M4 and the M4 will generate the files specific to that server.
Regards,
Nagesh
Steven Rowe wrote:
Nagesh,
If you could be more
Hi Javier,
Specify tagBasehttp://server/autentia/tags/tagBase in the
configuration for maven-release-plugin, and make sure that this
directory exists in the repository - Subversion refuses to make a tag in
a directory which is not already in the repository.
Steve
javijava wrote:
Thanks to
Try adding useReleaseProfilefalse/useReleaseProfile to the
configuration for maven-release-plugin.
According to:
http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html
useReleaseProfile: boolean [default: true]
Whether to use the release profile that adds sources
and
Hi Nagesh,
Here are some places to start:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
http://www.sonatype.com/book/profiles.html
Steve
nash4403 wrote:
We have different environments like DEV,QA,STAGE and PRODUCTION.
We have m4 files which generate the content
Steven Rowe wrote:
Hi Nagesh,
Here are some places to start:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
http://www.sonatype.com/book/profiles.html
Steve
nash4403 wrote:
We have different environments like DEV,QA,STAGE and PRODUCTION.
We have m4
Hi Jason,
Ferguson, Jason M TSgt 375 CSPTS/SCE wrote:
executions
execution
phaseinitialize/phase
configuration
goals
goalrun/goal
/goals
The goals
Hi Daniel,
Siegmann Daniel, NY wrote:
I tried placing a .doc file in the ./src/site directory, and in the
./src/site/xdoc directory. However, it was not copied over to the target
directory when I run site. Any idea what I'm doing wrong?
From
Hi R.C.,
If your project has no real sources, then you don't need the reporting
provided by coberatura-maven-plugin, right? Just remove mention of it
from the buildreporting section of your POM.
Steve
CodingPlayer wrote:
Hi,
i'm trying to run 'mvn site' for my archetype-project, but always
How about maven-antrun-plugin, using the Ant copy task?
About the variable naming, it depends on where the information comes
from - can it be set on the cmdline? Is it available as an environment
variable?
Profiles are a standard Maven mechanism to get the build to respond
differently to
Hi Giovanni,
Giovanni Azua wrote:
... I wanted to activate the SCM report plugin only on demand
e.g.
mvn clean install site -Dgenerate.statsvn=true
...
reporting
plugins
j:if test=${context.getVariable('generate.scm')=='true'}
ant:echoGenerating StatSVN report using
Hi Greg,
Greg Thompson wrote:
In my javadoc-plugin configuration, I currently have something along the
lines of:
bottom![CDATA[somestuff copy; 2007 somestuff.]]/bottom
For various reasons, I'd like to move the value into a property. So
I've added this to my pom's properties:
Greg Thompson wrote:
Steven Rowe wrote:
Have you tried to add one or more levels to the entity expansion?
E.g., specify the following in your properties section:
jdBottom![CDATA[somestuff amp;copy; 2007 somestuff.]]/jdBottom
Or equivalently:
jdBottomsomestuff amp;amp;copy; 2007
Hi Olivier,
Olivier Dehon wrote:
What ${} expression should I use in my POM or Mojo to reference
configuration values of another plugin?
This doesn't directly answer your question, but since it's not clear
exactly what problem you're trying to solve, here's a solution to a
different problem :)
Maybe you're talking about transitive dependencies?
Here's an interesting blog entry from Carlos Sanchez that describes the
situation:
http://jroller.com/page/carlossg?entry=using_transitive_dependecies_the_right
Steve
ScottBrank wrote:
other thing i want to know..
my project has a lot of
Hi Brian,
Ehmann, Brian wrote:
Can someone tell me how to specify a custom location of the .m2
directory? I need to put this folder outside of the user.home
directory.
PROMPT$ mvn --help
usage: mvn [options] [goal(s)] [phase(s)]
Options:
[snip]
-s,--settings Alternate path
Hi Gonzalo,
Gonzalo Vásquez Sáez wrote:
I've followed the instructions using scmType / scmVersion, but have had no
success at all, any hints please?
What is no success? Did you get any error messages? Or any output at
all?
Steve
Did you specify scmVersionType=tag ?
Also, what type of repository are you trying to download from?
Gonzalo Vásquez Sáez wrote:
I just got checked out the latest version of every file, not the specified
in the scmVersion parameter.
On 15/06/07, Steven Rowe [EMAIL PROTECTED] wrote:
Hi
scm:checkout -DscmVersion=myversion -DscmVersionType=tag
On 15/06/07, Steven Rowe [EMAIL PROTECTED] wrote:
Did you specify scmVersionType=tag ?
Also, what type of repository are you trying to download from?
Gonzalo Vásquez Sáez wrote:
I just got checked out the latest version of every file
Hi David,
Bernier David wrote:
I'm a new user on Maven since few weeks and i'd like to know how can i
use a property defined in a filter properties file directly in my
pom.xml ?
[snip]
How can i use an external file containg my property used in the pom.xml
in an another ways than defining
Hi Libor,
Libor Kramoliš wrote:
Is it possible to make some properties hook to enhance set of
properties after pom reading and before starting of first goal
execution of any lifecycle/phase?
You could take a look at the source for the properties-maven-plugin,
which injects properties read
Hi Greg,
Greg Thompson wrote:
Is there a complete list of packaging types?
There's a bigger list (though perhaps a bit dated) here:
http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
Steve
-
To
Hi Jens,
Jens Hohl wrote:
when i only compile my multiproject which also contains an war module I
get an error when the WAR is module ist compiled that there are missing
dependencies.
Is that correct ? The war simply have to compile small amount of code
against already compiled sourcecode
Hey Y.,
gc134728 wrote:
If i perform a release using the maven release plugin can automate it to send
a mail to a developers list? and I like to have different mailing lists some
projects need to inform everybode on release and some project just by a select
number of people.
I use the
Hi Shoe,
The maven-release-plugin has functionality to do this sort of thing,
though I'm not sure how you would combine it with continuous integration:
http://maven.apache.org/plugins/maven-release-plugin/
Steve
Shoe wrote:
Gang
Thanks in advance for your help.
I want to set up my
This Appassembler plugin will do this and more:
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
Jon Strayer wrote:
I'm currently using maven 2. Most of our applications are batch
applications that run from cron via a bash script. I've written a
plugin that (among other
/6/07, Steven Rowe [EMAIL PROTECTED] wrote:
This Appassembler plugin will do this and more:
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
Jon Strayer wrote:
I'm currently using maven 2. Most of our applications are batch
applications that run from cron via a bash script
Hi Jerome,
This JIRA issue looks like it's related (suggestion of adding a
reportingManagement section to the POM):
http://jira.codehaus.org/browse/MNG-1931
Steve
Jerome Thibaud wrote:
Hi All,
using: Maven 2.0.4
I defined the checkstyle reporting plugin in my parent pom, and for a
Hi Robert,
I don't directly use the scm plugin, but Subversion's usage model
requires you to add things before you can checkin them. So maybe
what you're looking for is scm:add?:
http://maven.apache.org/scm/plugins/add-mojo.html
Why aren't you using the subversion executable directly,
Hi Graham,
I'm guessing that the exception started soon after you upgraded the
version of the release plugin installed in your local repository
(probably via mvn -U or -cpu).
Wierdnesses like this seem to often have at their root a corrupted local
repository. Have you tried removing your local
Have you tried removing your entire local repo? That seems to fix lots
of problems...
Steve
ertnutler wrote:
I've read through and followed this:
http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html
I have a custom plugin whose groupId I've configured in a
Hi Ian,
[Warning: Following is untested.]
I don't know about the best way, but I think you should be able to set
up an execution for each of the filterings you want to do, something like:
build
...
plugins
...
plugin
artifactIdmaven-resources-plugin/artifactId
executions
Hi Advait,
How about:
mvn initialize myplugin:mygoal
(where you fill in myplugin and mygoal with your specific info)
Steve
Advait Trivedi wrote:
I have a POM containing dependencies. I run some plugin goals which are not
bound to any lifecycle phase from this directory. Maven does not
Hi Richard,
As far as I know, Maven does not have direct support for what you want.
But lots of people have been asking for just this functionality recently.
See http://www.nabble.com/Specify-a-dynamic-profile-t3754208s177.html
for a discussion of some workarounds.
Steve
Richard Allen wrote:
Hi Alessio,
I'm a Maven newbie, and am only responding because no one else has...
I have seen a couple of messages to the effect that plugin extension is
not supported by the Maven architecture.
See this thread for a couple of workarounds:
Hi Vidya,
You will probably get a quicker response from the Mojo Project mailing
lists for questions about Mojo Project plugins:
http://mojo.codehaus.org/jaxb2-maven-plugin/mail-lists.html
Steve
Vidya Mahavadi wrote:
Hi,
I am using jaxb2-maven-plugin and in the application I would like
Hi Neil,
My approach for a similar issue was to create a plugin with the
necessary functionality, then add the goal to the configuration for
maven-release-plugin in my POM, e.g.:
plugin
artifactIdmaven-release-plugin/artifactId
configuration
goalsdeploy site-deploy myplugin:mygoal/goals
Hi Averill,
What exactly do you mean by append each jar? To what? What outcome
are you looking for?
I think (over)writing the jar file in the repository is exactly what
is meant by adding jar files to the local repository. Maybe your
terminology is causing miscommunication.
The main point of
Hi William,
The way I do this is by reading in the release.properties file that
release:prepare generates, something like:
import java.util.Properties;
...
Properties releaseProps = new Properties();
releaseProps.load(new FileInputStream(release.properties));
String
Hi Smitha,
[EMAIL PROTECTED] wrote:
I am getting the following exception when trying to execute mvn clean
install
[...]
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist or no valid version could be found
Looks to me like Maven can't connect to the central
Hi Ian,
I think (though you haven't said anything about your setup) that you
don't have a site descriptor, the default location for which is
src/site/site.xml.
See http://maven.apache.org/guides/mini/guide-site.html for info about
what can go in there.
Here's a quick vanilla site descriptor
Are you using Mevenide2-Netbeans (and hence Maven 2.0.X)? If so, you
can use the exec-maven-plugin[1], bound (in pom.xml) to the install
(compile) phase to achieve what you want.
If you're using Mevenide for Maven 1.X, you could set up a pre-goal to
do what you want, in maven.xml.
Hope it
Hi Jose,
maven-clean-plugin's clean goal can clean other directories besides
the default - see
http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html
Steve
Jose Alberto Fernandez wrote:
Hi,
Can someone point me at the correct way to tell Maven's assembly or
Hi Adam,
You could interpolate ${url} in your tomcat-maven-plugin configuration:
build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdtomcat-maven-plugin/artifactId
configuration
url${url}/url
/configuration
/plugin
/plugins
/build
and then
Hi,
I want to be able to interpolate ${pom.version} in Java source code
before compilation. How can I do this?
I see that there is a simple way to turn on resource filtering, but that
does not appear to be applicable to source code.
I also see that the process-sources phase is where source
Under Maven v2.0.6, with Surefire plugin v2.3, the directory containing
the .class files generated by the test-compile phase
(${basedir}/target/test-classes/) is not included in java.class.path
when I run mvn test. (I got this info from the
target/surefire-reports/TEST-MyClass.xml file for a
Hi Adrian,
How are you invoking Maven? mvn package? (or some lifecycle phase
after process-test-resources)?
Steve
Adrian Herscu wrote:
Hi all,
I am using the exec-maven-plugin to run some Java program.
The java goal is bound to the process-test-resource build phase.
The
I'm running into (what appears to be) the exact same problem that Tom
Huybrechts described a few months ago, with Maven v2.0.6 and
maven-site-plugin v2.0-beta-5.
Tom, did you ever resolve this problem? I also attempted (without
success) to use maven-site-plugin v2.0-SNAPSHOT, but it failed with
How about:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
configuration
archive
manifestEntries
Build-Version${version}/Build-Version
/manifestEntries
/archive
/configuration
/plugin
And
Hello,
I want to bind a custom plugin goal to a phase in the
maven-release-plugin's lifecycle, but when I attempt to do so, the
binding appears to be ignored:
build
plugins
plugin
groupIdmy.group/groupId
artifactIdmy-maven-plugin/artifactId
executions
Hi Davis,
There is source code for a plugin named maven-buildinfo-plugin, included
with the free book Better Builds with Maven, that seems to do
something like what you want (and then some). The source is in the
Chapter5 .zip file[1]. Caveat coder: you may need to read Chapter 5 to
understand
Hi,
I'm in the process of converting my (small) organization's Maven 1.X
infrastructure to Maven 2.
As a Maven 2 newbie, I'm curious about the differences between
release:perform and scm:bootstrap, and the reasons why both of these
apparently very similar goals co-exist in Maven2. The latter
I'm guessing that you use a non-Subversion repository, since Subversion
makes no distinction between branches and tags (or any other directory,
for that matter) -- the distinction is maintained outside the
repository, in the minds of the people who adopt a policy to associate
branching activity
You should create a plugins tag inside your build tag, then put the
plugin tag for xdoclet configurion inside of the plugins tag.
See http://maven.apache.org/pom.html.
Steve
Peter L. Berghold wrote:
On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote:
for what you say your frustrations
79 matches
Mail list logo