you need to put the executions in different phases if they need a
defined order
I don't want that phases to execute. For example clean will clean, compile
wil compile. If there any phases besides initialize that do nothing ?
Stephen Connolly-2 wrote:
not the bug you think it is
you
I just noticed that you have no tests in your subproject. You are thus affected by
a backward compatibility issue that is documented on the test-plugin home page:
http://maven.apache.org/maven-1.x/plugins/test/
See if the workaround given there can help you...
HTH,
-Lukas
laredotornado
I don't think you understand Maven's concept of lifecycle. Please read the
following chapter to get basic understanding:
http://www.sonatype.com/books/maven-book/reference/simple-project-sect-lifecycle.html
/Anders
On Wed, Nov 11, 2009 at 09:59, boraldo bora...@hotbox.ru wrote:
you need to
Hey,
I have to make a distribution now. It contains a bunch of modules, 2
of which are standalone applications.
How can I generate a JAR for this, which has in it's manifest a
Main-Class and Classpath attribute, and have all the libs taken from
the repo and put in a lib/ subdirectory (which
Drink the Maven Kool-aid.
You are fighting the Maven way, that is usually a sign that you are
doing something that you really do not want to do (but you just have
not realised it yet)
Perhaps if you told us what plugin-x and plugin-y do we can help...
Also, sometimes the solution is to split
Google is amazing:
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/
/Anders
On Wed, Nov 11, 2009 at 10:28, Quintin Beukes quin...@last.za.net wrote:
Hey,
I have to make a distribution now. It contains a bunch of modules, 2
of which are standalone applications.
Hello,
I would like to create a maven plugin, which would delegate to other
plugins based on parameters. Something like mvn mymojo:dotask -Dtask=xxx
and then in the dotask mojo I would see what the value of task is, and
if it's xxx then execute Mojo1, if it's yyy then Mojo2 etc...
How can
Short answer: Don't
Long answer: for a mojo to extend another maven plugin, it will need
to depend on that maven plugin. The maven plugin classloader only
loads a plugin once, and the first version loaded is the version used
forever more (until maven exits). When a newer version of the plugin
OK so my use case would be
mvn do-task -Dtask=xxx
Do you suggest I change that into
mvn do-task-xxx?
Regards, Csaba
Stephen Connolly wrote:
Short answer: Don't
Long answer: for a mojo to extend another maven plugin, it will need
to depend on that maven plugin. The maven plugin
Hi,
I'd like to release a project using the maven-release-plugin. Now, if
I run release:prepare, I get the following message:
[INFO] Checking dependencies and plugins for snapshots ...
There are still some remaining snapshot dependencies.: Do you want
to resolve them now? (yes/no) no: :
I would suggest that maybe profiles would be better suited... if you specify
the defaultGoal in the profile it gets even easier...
But to be honest, you are going against *The Maven Way™*
This is usually (but not always) a sign that you will soon be fighting
Maven, and that is a fight that you
Hi:
I have two project A and project B,and B is a web module which is to be
deployed under the servlet contain, the B has a dependency of A.
There is a servlet in A,and I config this servlet in the web.xml under the
B/web-info.
Now I want to add breakpoints in the servlet (in the project A) to
What you want to use is remote debugging. That would be a complete
Maven-independent setup.
For Maven integration in Eclipse, I would suggest M2Eclipse.
/Anders
On Wed, Nov 11, 2009 at 11:45, maven apache apachemav...@gmail.com wrote:
Hi:
I have two project A and project B,and B is a web
2009/11/11 Anders Hammar and...@hammar.net
What you want to use is remote debugging. That would be a complete
Maven-independent setup.
For Maven integration in Eclipse, I would suggest M2Eclipse.
Yes I am using m2eclipse.
/Anders
On Wed, Nov 11, 2009 at 11:45, maven apache
If you created your added your project vy using the maven-eclipse-plugin
i.e mvn eclipse:eclipse, it will not by default create the appropriate
eclipse web tools platform metadata that results in you being able to do
Run AsRun On Server etc.
There is helpful page on the plug-in site that shows
2009/11/11 Adam Leggett (UPCO) adam.legg...@upco.co.uk
If you created your added your project vy using the maven-eclipse-plugin
i.e mvn eclipse:eclipse, it will not by default create the appropriate
The project is created by the m2eclipse
eclipse web tools platform metadata that results in
Hi,
I try to integrate Springs Maven repository, but it doen't work. Specifically I
try to integrate Spring Security 3.0.0.RC1 (package:
org.springframework.security.authentication.encoding).
I've adde the following repositories to my pom.xml:
repositories
repository
Hi Damon,
Thanks for replying, I can see what you're getting at. I don't really want to
start explicitly naming files or their locations in my poms (as the folk
developing the files to overlay are not maven-friendly and the overlay is a
3rd-party war) so I'll stick to using version 2.0.1. I
The Maven team is pleased to announce the release of the Maven Ant
Plugin, version 2.3.
This plugin generates build files for Ant from a POM. See the plugin's
site for more details:
http://maven.apache.org/plugins/maven-ant-plugin/
To use the updated plugin in your projects, you need to add
think of this a factory and method-advising package for Web-application and
J2EE containers (such as catalina or grizzly)
but now you need the Spring framework to work on the Plexus container
so you will need to configure and implement plexus-spring adapter
Von: Martin Gainty mgai...@hotmail.com
An: users@maven.apache.org
Gesendet: Mittwoch, den 11. November 2009, 15:24:00 Uhr
Betreff: RE: How to get Spring Security with Maven?
think of this a factory and method-advising package for Web-application and
J2EE
containers (such as catalina
Hi,
I have set up maven to run my test.
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.3/version
configuration
includes
include${basedir}/src/**/Test*.java/include
I think your include line should be
include**/Test*.java/include
http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html
Then try
mvn clean test
If you still have problems, check that the surefire plugin doesn't say No
sources to compile (as it does in your post
If you don't have the test classes in the default location maven is
looking, src/test/java, then you have to give the location.
build
testSourceDirectorysrc/test/testSourceDirectory
The includes are relative to that location, I think.
Upul
On Wed, Nov 11, 2009 at 8:44 PM, MrPotatoe
includes
include${basedir}/src/**/Test*.java/include
/includes
In Maven, tests belong in ${basedir}/src/test/java. Move them there,
remove this include from surefire plugin node, and everything should
run just fine. (AKA stop fighting Maven
urlhttp://repository.springsource.com/maven/bundles/release/url
urlhttp://repository.springsource.com/maven/bundles/external/url
urlhttp://repository.springsource.com/maven/bundles/milestone/url
If you click on these URLs, they all give 404. Are you sure these are
valid
If you absolutely *must* put your tests in a dir other than the
convention then you can configure that too:
http://maven.apache.org/pom.html#Directories
On Wed, 2009-11-11 at 09:48 -0600, Wayne Fay wrote:
includes
If you click on these URLs, they all give 404. Are you sure these are
valid URLs for Maven repos?
Uups! I've found these URLs on the Spring website (and some other sites).
A small file with the name security.core-3.0.0.RC1.jar is added
to the local repository, but its size is only 5 kb.
I own and have read the book. Perhaps repo is overstating what I'm trying
to do here. I'm really just trying to pull 2 arbitrary jars into my build.
The phrase file system repo just seemed to do what I wanted. Apparently,
it doesn't mean what I took it to mean. There is nothing in the book
The jar file contains a html page from Amazon S3 Service,
which is the host of the Maven repository (or should be).
This happens when you have pointed Maven at a repo which is not
properly configured. The repo should return a proper 404 status code
which Maven will report as a bad repo and
I would like to do something very simple at regular intervals (say every hour):
*Build the primary artifact-- a WAR file
*Check it into SVN at a specified location in the trunk
How could I do this?
Thanks.
Have you considered/tried specifying the arbitrary jars as system scoped
dependencies?
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
On Wed, 2009-11-11 at 08:34 -0800, monkeyden wrote:
I own and have read the book. Perhaps repo is
The solution is: there is no Spring Security 3.0.0.RC1 (or M1) in the
repository! For the moment I use Spring Security 2.0 and it works with given
repositories.
The URLs doesn't work because of the strange interface of Amazon S3 service.
One have to specifiy the excat URL and cannot view the
Sounds like you could benefit from a Continuous Integration Server ... Try
https://hudson.dev.java.net/ -- very easy to set up.
You could configure it to check in the generated artifact via a post-build
command (setup via hudson), but you might want to consider just publishing your
generated
The Mojo team is pleased to announce the first beta release of DITA
Open Toolkit Maven Plugin version 1.0.
http://mojo.codehaus.org/dita-maven-plugin/
This plugin is a thin wrapper to DITA-OT Ant build system to transform
DITA source into various output formats
such as PDF, Microsoft Help
I'd suggest not checking binaries in if you can help it. Source control
isn't particularly efficient with binaries.
2009/11/11 Neil Chaudhuri nchaudh...@potomacfusion.com
I would like to do something very simple at regular intervals (say every
hour):
*Build the primary artifact-- a WAR file
Well, certain people want access to the build artifact at various times and
don't want to go through the apparently arduous process of building it
themselves.
Still can you elaborate on why you say that?
Thanks.
-Original Message-
From: Ricky Clarkson
I am in fact using a CI tool. So I can build a WAR at regular intervals. But
publishing the SNAPSHOT, how do you do that?
Thanks.
-Original Message-
From: Nayan Hajratwala [mailto:na...@chikli.com]
Sent: Wed 11/11/2009 10:49 AM
To: Maven Users List
Subject: Re: Automated Build and
The same way you publish a released artifact: mvn deploy.
You do need a corporate Maven repo setup. And your CI server needs to
have a settings.xml file which know were it is so Maven can deploy to
it.
---
Todd Thiessen
-Original Message-
From: Neil Chaudhuri
Why, use the maven deploy plugin, of course! :-)
http://maven.apache.org/plugins/maven-deploy-plugin/usage.html
Once this is done, anyone depending on the SNAPSHOT version will automatically
get the latest CI built artifact when their maven installation looks for
updates.
---
Nayan
I solved it.
The problem was server based.
Sorry to have taken your time unnecessary.
/Ludwig
-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf
Of Anders Hammar
Sent: den 11 november 2009 08:53
To: Maven Users List
Subject: Re: Maven password
Hi,
I'm trying to sign and deploy some artifacts for the Apache Mahout project
(the POM is at
https://svn.apache.org/repos/asf/lucene/mahout/trunk/pom.xml).
I have it set up to use the GPG Sign plugin and the relevant configuration
is:
execution
idcreate-hadoop-core-artifact/id
Hi there,
Sorry for breaking the threading in your email reader, but I just found
the fix for the above subject and alas I don't have the original thread to
reply to.
In any case, you may look at the thread discussion at nabble:
I have a multimodule project that I want to deploy a site for, but it seems
like my site deployment distributionManagement configuration is not being
inherited by subproject child modules.
parent
- moduleA
- moduleB
They are located relative to each other
/parent/
/moduleA/
/moduleB/
exactly what I was looking for. thanks Adam.
Adam Leggett (UPCO) wrote:
Have you considered/tried specifying the arbitrary jars as system scoped
dependencies?
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
On Wed, 2009-11-11 at
Hello Doug,
That modules section seems to be wrong, module../moduleA-common/module
should probably be module../moduleA/module.
Personally I prefer putting child module directories within parent - its
natural, some plugins and tools used to have problems with relative paths,
and you don't have to
Have you considered/tried specifying the arbitrary jars as system scoped
dependencies?
This is not the way to go. System scope is/soon will be deprecated.
You will run into problems with your build if you do this -- system
scoped dependencies do not behave the way you might expect (not
included
Hi,
I am clearly not understanding how properties propagate in maven...
I have a multi-module project where I have a root pom.xml
(packagingpom/packaging) and a number of child modules.
In my root pom.xml I have this:
properties
createDbfalse/createDb
/properties
In one of the my child
System scope is/soon will be deprecated.
That really can't be true, can it? I have found that very useful in any number
of situations.
-Jim
-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Wednesday, November 11, 2009 4:37 PM
To: Maven Users List
Subject: Re:
Sorry about that, you're correct, I had renamed some things in my pom.xml like
my modules to make my example clearer and I forgot to rename that properly.
I'm wondering if anyone knows of any issues with the site plugin and why my
subproject modules would generate all the source files except
Hmm... Just tried specifying createDbfalse/createDb in my
settings.xml and it STILL does NOT activate any profiles! Anyone has
any idea of what's going on here?
Thanks in advance for your help.
Yaakov.
On Wed, Nov 11, 2009 at 5:44 PM, Yaakov Chaikin
yaakov.chai...@gmail.com wrote:
Hi,
I am
Le Wed, 11 Nov 2009 17:00:51 -0600,
Gerardo Corro rob_gar_...@hotmail.com a écrit :
Hi all,
Today, I was using Maven as usual in my Ubuntu laptop, then I decided to
update Ubuntu to the 9.10 version, after that I tried to use maven as usual
but now I get this error all the times I try
System scope is/soon will be deprecated.
That really can't be true, can it? I have found that very useful in any
number of situations.
I suppose we'd need someone from the Maven PMC to weigh in to know for
sure... but this is my understanding. Of course, I haven't seen
anything yet about
Hi all,
Today, I was using Maven as usual in my Ubuntu laptop, then I decided to update
Ubuntu to the 9.10 version, after that I tried to use maven as usual but now I
get this error all the times I try to compile or install anything:
[WARNING] *** CHECKSUM FAILED - Checksum failed on
Le Wed, 11 Nov 2009 18:07:31 -0500,
Yaakov Chaikin yaakov.chai...@gmail.com a écrit :
Hmm... Just tried specifying createDbfalse/createDb in my
settings.xml and it STILL does NOT activate any profiles! Anyone has
any idea of what's going on here?
Thanks in advance for your help.
It seems
Hi,
Thanks for your message, however is not working :-( the same error is
triggered again.
Best regards
I suggest you to delete the directory in your local repository
/data/repository/org/apache/maven/plugins/maven-install-plugin/2.3/
anyway, for me nothing to see with ubuntu (I
Ok, I'll share what exactly is going on with everyone else...
The maven docs says this about activating profiles through a property:
*
Currently, this detection is limited to prefix-matching of the JDK
version, the presence of a system property or the value of a system
property. Here are
On Wed, Nov 11, 2009 at 6:19 PM, Tony Chemit che...@codelutin.com wrote:
Le Wed, 11 Nov 2009 18:07:31 -0500,
Yaakov Chaikin yaakov.chai...@gmail.com a écrit :
Hmm... Just tried specifying createDbfalse/createDb in my
settings.xml and it STILL does NOT activate any profiles! Anyone has
any
What do you see if you open it with a browser:
https://www.mycomp.com/maven2/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom
Is it a valid pom or some garble?
With regards,
Nick Stolwijk
~Java Developer~
IPROFS BV.
Claus Sluterweg 125
2012 WS
VERKEERDE PAGINA!
Martin
__
Tevrden verander/wijzig of onderbreek deze transmissie niet - Bedankt
Date: Thu, 12 Nov 2009 01:21:26 +0100
Subject: Re: Not a v4.0.0 POM error
From: nick.stolw...@gmail.com
To: users@maven.apache.org
What do you
I don't know about the 3.0.0.RC1 release but we get the
3.0.0.CI-SNAPSHOT versions like this:
repositories
repository
idspring-milestone/id
nameSpring Portfolio Milestone Repository/name
urlhttp://s3.amazonaws.com/maven.springframework.org/milestone/url
/repository
repository
If I define a src/site/site.xml, and src/site/apt/index.apt in my parent and
child projects, it will generate an index.html for all child subproject modules.
I did have to do the workaround of defining a distributionManagement for each
subproject module, but that's not that bad.
-Original
It's a valid pom:
$ ls -l maven-install-plugin-2.3.pom
-rw-r--r-- 1 corro corro 1486 2009-11-12 01:33 maven-install-plugin-2.3.pom
$ file maven-install-plugin-2.3.pom
maven-install-plugin-2.3.pom: gzip compressed data, from Unix
$ gunzip -c maven-install-plugin-2.3.pom
?xml version=1.0
Pardon me but usually the .pom is an xml text file.
you should be able to open w/ text editor on ubuntu.
try using vi or gedit.
Sean
-Original Message-
From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
Sent: Wednesday, November 11, 2009 5:11 PM
To: users@maven.apache.org
Subject: RE:
It is trying to get the remote file and that one (the link you
provided) does not work on my computer. It may be you have changed the
link in your mail, or it that it will let you in. But if you get the
same as me, then there is your problem. Who or what put the pom file
on the url you are
I'm finally getting the chance to migrate some of our m1 projects to m2, and
am wondering about the m2 way to do the following.
During our m1 test phase we replace macros such as @db.host@ in some config
files. The maven.xml file has a goal which defines some filters, and
individual developers
My response isn't an answer, but for what it's worth... The title
personal property substitution almost sounds like a real estate post
:-)
Paul
On Wed, Nov 11, 2009 at 9:17 PM, Jeff French j...@mdbconsulting.com wrote:
I'm finally getting the chance to migrate some of our m1 projects to m2,
Ok, here what you should do:
1) define a property, let's say skip.db.creation and define a default
value of false.
2) bind the plugin to the appropriate phase. Configure it and use the
property above for the skip param.
No, if you run mvn install for instance, the default behavior will kick in
Hi all,
I am trying to build set stack of java products which fails due to the
relocation of https://maven-repository.dev.java.net/nonav/repository/. From
the product stack I am buiding Apache Axis2 very first and I cannot see this
repository in Axis2 pom.xml. So I tried to put the new location
AFAIK,
Axis2 is an apache project and would be deploying to repo1.maven.org.
The rules for repo1.maven.org are that you cannot rely on any
artifacts which are not hosted on repo1.maven.org.
As such, I would expect that Axis2 _should not_ require artifacts from
java.net, and should not have any
Each user defining this property through a profile in his/her settings.xml
is the way to go. However, best practice is to have default values of the
properties defined in the project's pom. The project should NOT rely on
configuration in settings.xml.
/Anders
On Thu, Nov 12, 2009 at 04:17, Jeff
Hi Stephen,
On Thu, Nov 12, 2009 at 12:10 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
AFAIK,
Axis2 is an apache project and would be deploying to repo1.maven.org.
The rules for repo1.maven.org are that you cannot rely on any
artifacts which are not hosted on
Hello Doug,
Maybe I'm wrong but I have a feeling that you either haven't read completely
my initial reply or didn't understand it. In that parent pom snippet you've
configured maven-project-info-reports
pluginhttp://maven.apache.org/plugins/maven-project-info-reports-plugin/not
to generate index
73 matches
Mail list logo