Hi,
Make a separate module containing your test properties in src/main/resources.
Then include this module as a test scope dependency to other modules that need
them for tests.
Guillaume Jeudy - Sr. Java developer
Java and Open Source Application Development - Montreal Solutions Centre
1801,
Hi guys,
Anyone know when maven deploy 2.5 plugin is due out?
We are waiting on http://jira.codehaus.org/browse/MDEPLOY-78
Thanks!
Guillaume Jeudy - Sr. Java developer
Java and Open Source Application Development - Montreal Solutions Centre
1801, McGill College Avenue, Suite 1100
Hi Maven enthusiasts!
We are using the release plugin to release WAR/EAR artifacts to the maven2
repository. The problem we have is we can't figure out the best way to filter
environment specific properties.
1. We tried the approach with a different classifier per environment. We then
had
See my comments: [gj]
-Guillaume
From: David Hoffer [mailto:dhoff...@gmail.com]
Sent: Thu 6/4/2009 4:33 PM
To: Maven Users List
Subject: Re: Need to convince my manager to switch to maven
See below for my comments.
-Dave
On Thu, Jun 4, 2009 at 1:50 PM,
Hi,
I'm using maven 2.0.9 with maven jar plugin: 2.2, maven deploy plugin 2.4 and
maven release plugin 2.0-beta-9.
I noticed the test jar as generated using this snippet is not being deployed in
a release:perform execution:
plugin
groupIdorg.apache.maven.plugins/groupId
Hi,
I'm using maven 2.0.9 with a working setup that was fine last week. Now all of
a sudden I get the below error, it can't find a plugin setup in my remote
plugin repository:
The plugin repository is an alternate one setup in pluginRepositories section
of my pom. I tried deleting my local
Wayne,
You are right I use mvn hotdeploy:exploded as recommended by the MOJO
creator at: http://code.google.com/p/ctpjava/wiki/MavenSeamHotdeployPluginUsage
I tried your approach with mvn
(groupId):maven-hotdeploy-plugin:(version):exploded it goes further into the
execution but it fails
Hi maven users,
I have distributionManagement information that is common to all projects at my
company. Do you know of any tricks to ensure all projects share the same
distributionManagement info? I don't want to use pom hierarchy if possible
because that would mean I would need a master
it and
inheriting from it...
Any thoughts, insights appreciated...
Regards,
-Guillaume
From: Jeudy, Guillaume [mailto:gje...@teksystems.com]
Sent: Tue 03/02/2009 11:12 AM
To: users@maven.apache.org
Subject: Re-use global distributionManagement
Hi maven users
Julien,
You should be able to achieve this by taking advantage of maven resource
filtering feature. Including it in the pom is a bit more tricky though, you can
replace a ${variable_placeholder} in the POM by providing the version on the
commandline likeso: -Dmyversion=value. However this
advantage of the hierarchical option is that it allows the option of having
multiple depths of hierarchy without the quick growth of the number of
folders on a level. It also helps organize the structure when there's a
large number of sub-projects.
My 2 cents :-D
w
On Fri, Nov 21, 2008 at 8:44 PM, Jeudy
Hi Maven gurus,
I would like to know what is the best recommended way of definining maven
multi-module projects?
Is it the hierarchical ?
parent/pom.xml
parent/childA/pom.xml
parent/childB/pom.xml
or flat-structure ?
parent/pom.xml
childA/pom.xml
childB/pom.xml
I'm using eclipseIDE
Yes or you can use the jboss-maven-plugin:
groupIdorg.codehaus.mojo/groupId
artifactIdjboss-maven-plugin/artifactId
google it for more info :)
Guillaume
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Wed 19/11/2008 7:04 PM
To: Maven Users List
Subject: Re:
You can use maven release plugin to help alleviate the burden of updating the
versions in the pom files.
Also isnt it the whole point of CVS tagging combined with maven build to
reproduce exactly the same binaries ? I would strongly advise against checking
any sorts of binaries in your
to have multiple values shared across Maven projects and
was hoping to centralize these in a single properties filed that can be
referred from pom files.
-Original Message-
From: Jeudy, Guillaume [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2008 10:57
To: Maven Users List
Subject: RE
Hi,
I've been using the release plugin with a maven2 multi-module project and found
things go smoothly as long as all the submodules share the same release cycle.
Let's say I have a project structure like the following:
A-parent
A-dao
A-service
A-web
what should I do if I want
You can use ${pom.version} in PORTAL.A and PORTAL.B projects. Don't interfere
with release plugin, one of it's purpose is to manage the versions. So for
example set 1.0.0-SNAPSHOT version on the parent pom and dont specify a version
in the child modules just refer to parent 1.0.0-SNAPSHOT. You
Hi Chris,
Specifying the SCM section only in the parent pom should be sufficient. I've
been using this setup with the release plugin and it works like a charm.
-Guillaume
From: ChrisGWarp [mailto:[EMAIL PROTECTED]
Sent: Wed 27/08/2008 11:51 PM
To:
and so on to
avoid the conflict. Is there a better way? I am not sure if the folder
name (entities) can be different from the artifactId.
Regards,
Shakun
Jeudy, Guillaume wrote:
An artifact is uniquely identified by its groupId, artifactId, version and
classifier.
In your case I hope your
Shakun,
try using dependency
exclusions
...
/exclusions
/dependency
on one of them.
mvn dependency:tree will give you details of all dependencies for your project.
From: Shakun Gupta [mailto:[EMAIL PROTECTED]
Sent: Mon 25/08/2008 6:30 AM
To: Maven Users
An artifact is uniquely identified by its groupId, artifactId, version and
classifier.
In your case I hope your groupId, artifactId is different because your 'M'
module really(i deduce) is a different module for 'A' 'B' projects.
If your M module is a shared module then I suggest that
temporarily switch to another repo ?
From: Bouiaw [mailto:[EMAIL PROTECTED]
Sent: Mon 25/08/2008 5:53 AM
To: Maven Users List
Subject: Re: repo1 is down
repo1 respond, but it is very very slow : 30 seconds by request !
On Mon, Aug 25, 2008 at 11:35 AM, Arnaud
Hi,
My local repo is populated to build my project, I'm not using any SNAPSHOT
versions as dependencies. Can someone tell me why maven stubbornly does a
remote lookup to repo1 wasting valuable time ? (it does not download anything I
just get log entries like):
Downloading:
to download it, but it
doesn' exist on repo1 too so it will try for each build.
Emmanuel
On Mon, Aug 25, 2008 at 4:58 PM, Jeudy, Guillaume [EMAIL PROTECTED]wrote:
Hi,
My local repo is populated to build my project, I'm not using any SNAPSHOT
versions as dependencies. Can someone tell me why maven
Hi,
I'm trying to use mvn scm:bootstrap plugin with the below command-line:
mvn scm:bootstrap -DconnectionUrl=scm:cvs:ext:[EMAIL
PROTECTED]:/data/vol01/cvs/ARCH:dataplace/backoffice/rdm
-DscmVersion=rdm_1_0_0_branch -DscmVersionType=branch -Dgoals=install -Prdm,int
Can you explain in more details what you are trying to achieve ? I don't think
a pom can have multiple parents.
Regards,
-Guillaume
From: Raffaele [mailto:[EMAIL PROTECTED]
Sent: Mon 21/07/2008 11:42 AM
To: users@maven.apache.org
Subject: Multi Inheritance
Hi,
It's funny you asked, I just went through this recently. Do you already have a
private key setup with your ssh prog? maven will automatically search for your
private key in known locations such as ~/.ssh/id_dsa, ~/.ssh/id_rsa.
Then you may have to setup a passphrase in your
Hi,
I have a parent pom in a multi-module maven2.0.9 project with a generic
resource directory:
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
This all works fine until I specify another resource directory in the child pom:
resource
Hi,
I'm trying to automate the copy of an archive to my application server and
dynamically configure the server instance name on the command-line.
If I do mvn install -Ddeploy.server=instance1
deploy.server value 'instance1' gets passed normally to plugin through maven
pom file property
Hi all,
I have been playing with maven2 release plugin and wanted to get insight from
the community. The following link was very useful in getting a setup going:
http://jlorenzen.blogspot.com/2007/09/how-to-create-release-using-maven2.html.
However there is still a gray area into how
Hi maven savvy developers,
Is there an automated way to trigger a maven build from a cvs tagged version ?
Basically I want to check out the source code for a given tag and trigger the
maven build.
So far I need to do these steps separately (checkout with cvs then build with
maven).
I use
and the code is in its right place, however I
haven't yet figured out how to go about generating a pom file to feed maven
with all the correct dependencies in it, keeping in mind inter-dependence
and whatnot (such that things aren't listed multiple times..)
On Wed, Jun 18, 2008 at 10:38, Jeudy
Nestor,
You will have to create a top level aggregator project of packaging: pom.
Then you can have 2 sub modules with 1 of the EAR and the other WAR packaging.
At least that is how I setup the maven project on my end. The format is 1
archive for 1 pom file, you cannot really work around
Hi,
I have a datasource XML file that is deployed to jboss deploy directory. Is
there a possibility for maven2 to apply filtering capabilities on my datasource
XML file without having it copied to the target directory and packaged with
within my artifact ? Id like to filter the XML file and
/baselogic/src/main/filters/filter-local.properties/filter.file
Then I assume you can point the filter.file to anywhere on the machine for
building.
On Wed, Jun 4, 2008 at 11:07 AM, Jeudy, Guillaume [EMAIL PROTECTED]
wrote:
Hi,
I have a datasource XML file that is deployed to jboss deploy directory
Hi,
I'm trying to use maven release plugin with maven 2.0.8.
The downloaded scm plugin was 1.0 and the release plugin is version 4.
when I run mvn release:prepare -Dusername=gjeudy -Dpassword=passwd I get the
below exception when it is trying to checkin the modified pom files.
Im using a
From: Jeudy, Guillaume
Sent: Mon 28/04/2008 3:02 PM
To: users@maven.apache.org
Subject: Didn't find password for CVSROOT - mvn release plugin
Hi,
I'm trying to use maven release plugin with maven 2.0.8.
The downloaded scm plugin was 1.0 and the release plugin
Hi,
I am getting a NullPointerException when running SureFire plugin and getting a
failed test:
No exceptions are thrown if all the tests pass. I am using SureFire plugin
2.4.2 (latest):
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
Hi,
I'm trying to add some files to under META-INF directory with the jar
plugin. Can someone help me? It doesn't seem to work. Here's what I'm
using:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
28, 2008 2:56 PM
To: Maven Users List
Subject: Re: Adding includes in jar plugin
Easiest thing would be to move them to src/main/resources/META-INF.
Any reason they're not there already?
Wayne
On 1/28/08, Jeudy, Guillaume [EMAIL PROTECTED] wrote:
Hi,
I'm trying to add some files to under
Hi all,
I get a list of jars that are added to my war without me specifying it
anywhere in my pom.xml as a dependency. Is it because of the dependency
transitivity feature ?
My pom.xml uses: packagingwar/packaging
some jars are added in WEB-INF/lib inside the war file even though they
are
packagingear/packaging. I get a list of 75 jars, I changed the
scope of all dependencies in this pom file to compile and I still get
all the jars as part of the ear distribution. What could be wrong ?
Thanks,
-Guillaume Jeudy
From: Jeudy, Guillaume
Sent
greatly appreciated,
Thanks,
-Guillaume
From: Jeudy, Guillaume
Sent: January 24, 2008 5:26 PM
To: Jeudy, Guillaume; 'users@maven.apache.org'
Subject: RE: maven 2 war packaging - adds unwanted jars in WEB-INF/lib
Hi all,
It turns out it was an issue
43 matches
Mail list logo