Is it possible to activate a profile when executing a specific goal?
Specifically, I want to always activate a "coverage" profile when executing
the "site" goal.
--
---
*A vision without resources is just a hallucination*.
*Adapted from Thomas Edison*
This may not work for you, but I use Eclipse with the Maven plugin (
http://m2eclipse.codehaus.org/) which will automatically do what you are
asking with other dependent projects open in the workspace.
On Fri, May 16, 2008 at 10:34 AM, BenDave [EMAIL PROTECTED] wrote:
Hi,
I am working on 2
+1 to c.
On Tue, Apr 29, 2008 at 8:51 AM, Jochen Wiedmann [EMAIL PROTECTED]
wrote:
On Tue, Apr 29, 2008 at 1:23 PM, Benjamin Bentmann
[EMAIL PROTECTED] wrote:
---clip---
I'd opt for
c) Use a configurable value, by default the current platform encoding.
Should be
* Upwards
One reason might be to run something else between the two?
On Wed, Apr 16, 2008 at 4:43 PM, Brian E. Fox [EMAIL PROTECTED]
wrote:
Why would you declare the plugin twice in the same pom? Just put
multiple executions in the same definition.
-Original Message-
From: Bernhard David
I'd imagine that this would cause an issue when making a distribution, or a
war, also.
On Jan 30, 2008 3:42 AM, Simon Kitching [EMAIL PROTECTED] wrote:
This looks to me like a bug (or at least an oversight) in the dependency
plugin. I presume this is what you are using to copy all the jars
There can be problems caused with a single build destination caused by the
Eclipse incremental compiler that would sometimes require doing a clean in
both maven and eclipse.
On 9/14/07, Jim Sellers [EMAIL PROTECTED] wrote:
I've used separate locations for a few reasons:
1) in web apps to keep
What about creating a global parent pom containing the 1.5 config?
On 7/10/07, Severin Ecker [EMAIL PROTECTED] wrote:
hi jason,
yes i know that and i have that section in my POM. what i want is to
override the default of java 1.3 so i don't have to do that in all my
project POM files which is
I don't know if it would be a best practice, but I've been creating projects
that contains 3 poms...
/pom.xml
/war/pom.xml
/ear/pom.xml
First pom only references the other two poms as modules.
The entire project can be built from the first pom.
On 6/27/07, Mick Knutson [EMAIL PROTECTED]
] wrote:
Can I do;
./pom.xml (EAR)
./war/pom.xml (WAR) (extends EAR pom)
On 6/27/07, Wayne Fay [EMAIL PROTECTED] wrote:
That's how I build my J2EE projects, too. I usually have a couple
/jarN and /ejb directories under there too.
Wayne
On 6/27/07, Thierry Lach [EMAIL PROTECTED] wrote:
I
So Active by default actually means Active unless something else is
active. Right?
On 6/22/07, Julien Stern [EMAIL PROTECTED] wrote:
On Fri, Jun 22, 2007 at 02:55:48PM +0200, Tim Kettler wrote:
That's the intended behaviour as far as I know. If you have something
that is active all the
Is each of these in a different testmethod within a single class, such as
testFirst(), testSecond() ? If so, then this is the standard behavior of
JUnit. Each method is considered to be a test and will fail, but the class
may contain multiple tests.
On 5/31/07, SiSi'mon [EMAIL PROTECTED]
That makes perfect sense.
On 5/4/07, Wayne Fay [EMAIL PROTECTED] wrote:
I believe the reason for this is as follows:
jdk3 is the lowest common denominator
pom.xml is supposedly the one true source for all data you need to
know about a project, and builds are supposed to be
Does anyone know offhand for continuum 1.0 how to increase the amount of
time before continuum forces a new login?
I think that would be scopeprovided/scope under the dependency.
On 4/20/07, Marouane Amraoui [EMAIL PROTECTED] wrote:
Okay;
1. if i have an only one application web : in this case i agree with you
to put all my dependencies in web-inf/lib :
How to do this with maven ???
2. if I have more
That makes a lot of sense.
On 4/12/07, Peter Nilsson [EMAIL PROTECTED] wrote:
The auto-resolver is a pain when using Maven in a corporate environment
when
there is a strong requirement to be able to reproduce a build. As
mentioned
by others one of the problems is to know which plugins are used
. If that repository is
required for the build, it should be in the pom.
On 4/11/07, franz see [EMAIL PROTECTED] wrote:
Good day,
Try adding [1] to your list of repositories in your settings.xml
Cheers,
Franz
[1] http://people.apache.org/maven-snapshot-repository
Thierry Lach-2 wrote:
I did svn co against
I did svn co against [2] and ran mvn site, and got the following error...
[INFO] Scanning for projects...
[INFO]
[ERROR] FATAL ERROR
[INFO]
[INFO]
Subject says it all - does anyone have any examples of how this might be
accomplished using Maven 1.0 ?
On 4/3/07, Mark Hobson [EMAIL PROTECTED] wrote:
A war overlay would be the cleanest solution:
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
Mark
Please put it into Jira as an enhancement request.
On 3/27/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:
It isn't possible for now.
Emmanuel
Justin Deoliveira a écrit :
Hi all,
I am wondering if anyone knows of a good way to setup the subject line
of the mailer so that the build number
I think this will work Define each module in a profile, then activate it
if the pom exists, something like this:
profile
idmodule1-build/id
activation
file
existsmodule1/pom.xml/exists
/file
/activation
modules
modulemodule1/modules
/modules
/profile
On 3/20/07,
[EMAIL PROTECTED] wrote:
That doesn't seem to work: the module never gets built (even when I
don't have an activation section).
Jean-Luc
Thierry Lach wrote:
I think this will work Define each module in a profile, then
activate it
if the pom exists, something like this:
profile
] Finished at: Tue Mar 20 17:31:06 EDT 2007
[INFO] Final Memory: 3M/7M
[INFO]
Jean-Luc
Thierry Lach wrote:
Then you're probably doing something wrong. Here's a simple test case.
(...)
On 3/20/07, Jean-Luc Wasmer [EMAIL
If your development machine is not connected to the internet, but IS connected
to an internal network that has other systems connected to the internet, you
could use one of the maven proxies/managers such as Archiva on one of those
connected machines.
On 3/19/07, Andrew Williams [EMAIL
Quite a while back (possilby 2 years ago) I did that using wget. Be advised
you're probably going to need several gig of disk space for it.
On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote:
What's the easiest way to download the whole central repository? Is
there a maven plugin to do that? Or
Yep - rsync will definitely work better than wget.
On 3/19/07, Wendy Smoak [EMAIL PROTECTED] wrote:
On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote:
What's the easiest way to download the whole central repository? Is
there a maven plugin to do that? Or is there some way to get a zip of
the
I think this was caused by a change to modello. There was a recent email
about it.
Looks good. Thanks.
On 3/13/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:
It should be ok now.
Emmanuel
Thierry Lach a écrit :
I think this was caused by a change to modello. There was a recent
email
about it.
http://www.nabble.com/-modello-dev--IMPORTANT%3A-Re%3A--modello-scm820
Read the following web pages. Not sure if the jars you want will be there,
but...
Maven 1 repository: https://maven-repository.dev.java.net/
Maven 2 repository: https://maven2-repository.dev.java.net/
On 3/13/07, David Wilkinson [EMAIL PROTECTED] wrote:
Hi
I'm new to using maven and I'm
I think that page should be updated to at least mention the two
dev.java.netrepositories.
On 3/13/07, Carlos Sanchez [EMAIL PROTECTED] wrote:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
On 3/13/07, David Wilkinson [EMAIL PROTECTED] wrote:
Hi
I'm new to using maven
Change your directory to proj1/sub and run maven
On 3/9/07, Don Hill [EMAIL PROTECTED] wrote:
I am working on a project that has many subprojects, from the root is
there
a way to compile/install just a targeted subproject. I want to be able to
build/install proj1/sub
Thanks.
root/pom.xml
I've just added this to JIRA (http://jira.codehaus.org/browse/CONTINUUM-1207).
I'm willing to work on this, but I'd need a little bit of guidance since I'm
not familiar with plexus etc. as it is used for database access.
On 2/27/07, Wendy Smoak [EMAIL PROTECTED] wrote:
On 2/27/07, Morgovsky,
What version of continuum are you using?
On 3/6/07, Misura, Gabriel [EMAIL PROTECTED] wrote:
Hi,
To keep the users happy, I want to filter what projects they can see.
There doesn't seem to be a build in feature for this (I see the user admin
can block adding/edit/delete/etc of projects, but
You have your repository declared inside of a profile. Are you activating
that profile?
On 3/7/07, Marcos Silva Pereira [EMAIL PROTECTED] wrote:
Hello, I have deploy some proprietary (and Sun's jars) to my internal
repository, but when I try to use these artifacts like a dependency to a
I'm not sure about how maven does this, but matching the first encountered
does not necessarily imply anything sorted.
On 3/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
I'd like to have more information about the new way to resolve
dependencies
in maven 2.0.5.
In the release
If it doesn't, it should.
On 3/2/07, Elid OR [EMAIL PROTECTED] wrote:
Hi all,
Here my problem, I would like to specify the next version of my project
when I
release with the maven 2 release plugin in batch mode (in a continuous
integration process) because it does not handle my incrementation
the
Maven-style versioning so that release would work properly. Or you
could hack the release plugin code, add this functionality, and
contribute it back via JIRA as an enhancement.
Wayne
On 3/2/07, Thierry Lach [EMAIL PROTECTED] wrote:
If it doesn't, it should.
On 3/2/07, Elid OR [EMAIL
Noticed this again while going through some of the old emails I had marked
for followup.
There is a maven 2 repository also
https://maven2-repository.dev.java.net/
On 2/18/07, Mark Derricutt [EMAIL PROTECTED] wrote:
On 2/19/07, Wendy Smoak [EMAIL PROTECTED] wrote:
2)
Did you ever get an answer for this?
On 2/16/07, Brian Topping [EMAIL PROTECTED] wrote:
On Feb 16, 2007, at 6:18 AM, Jason van Zyl wrote:
Continuum does not use Acegi. It uses Plexus Redback for security.
So is LDAP supported and can someone point to documents on how to do
so? Google does
Is it possible to declare a pom as a dependency, so that its dependencies
would be inherited? If that doesn't work, them maybe it should be added as
an enhancement.
On 2/27/07, jp4 [EMAIL PROTECTED] wrote:
I wonder if it would make sense to create a project of type jar that does
nothing more
Actually settings properties not being available in filtering might cause us
some problems in converting to M2.
Each of our developers has their own oracle schema that they can do unit
testing against (dbunit). In M1 we put the connection strings into
build.properties. We copy unit test
Thanks for the clarification. That will work well enough.
On 2/28/07, John J. Franey [EMAIL PROTECTED] wrote:
Thierry Lach-2 wrote:
Actually settings properties not being available in filtering might
cause
us
some problems in converting to M2.
Properties in settings file are available
OK then what would be the purpose for using a system scoped dependency?
On 2/27/07, Wayne Fay [EMAIL PROTECTED] wrote:
System scoped dependencies are not handled as you might expect by
various packaging plugins ie EAR, WAR etc. They are not bundled into
the package like other dependency Jars
I've just posted this to JIRA (
http://jira.codehaus.org/browse/CONTINUUM-1181).
On 2/21/07, Thierry Lach [EMAIL PROTECTED] wrote:
I'm trying to get Continuum to store its data in a postgres database while
running under JBoss and I'm getting an exception. It seems that someone is
trying
I'm trying to get Continuum to store its data in a postgres database while
running under JBoss and I'm getting an exception. It seems that someone is
trying to change the transaction isolation during a transaction.
I'm running postgres 8.1.4-1 on MS Windows (and am using the driver jar
I'm not part of the maven developers, but on the surface, if any plugin
finds two different configurations, it wouldn't surprise me if it ran once
for each of them.
On 2/19/07, EJ Ciramella [EMAIL PROTECTED] wrote:
We did and that's how we diagnosed this, but that doesn't answer the
question
Well great! Thanks!
Happy Valentine's Day to the Maven User community!
On 2/13/07, Jason van Zyl [EMAIL PROTECTED] wrote:
On 6 Feb 07, at 11:23 AM 6 Feb 07, Thierry Lach wrote:
Any idea when Maven 2.0.5 will be released?
Tomorrow.
Jason
This Eclipse plugin does a decent job of consolidating M2 and Eclipse...
http://maven.apache.org/eclipse-plugin.html
It creates an Eclipse classpath container that is dynamically loaded from
the pom.xml (or from the parent and child pom.xml files if there are
embedded child modules).
On
Any idea when Maven 2.0.5 will be released?
I suggest you download Better Builds with Maven from
http://www.mergere.com/m2book_download.jsp and look at section 3.
On 2/1/07, ritesh_riv [EMAIL PROTECTED] wrote:
can u please let me know how to do it. is it possible to create a jar from
a
subproject.
Thierry Lach-2 wrote:
I would
I'm trying to run mvn site and am getting the NPE stack trace below. Any
ideas what I am missing?
TIA.
[INFO]
[DEBUG] Trace
java.lang.NullPointerException
at
to what BBwM shows in section 3.4
On 1/29/07, Andi Anderson [EMAIL PROTECTED] wrote:
did you try putting
version[1.0,)/version in the dependancy section of
the ear pom for the war?
--- Thierry Lach [EMAIL PROTECTED] wrote:
I'm working on a small example project and am
trying to incorporate a lot
I would suggest creating jar A in a subproject rather than in the parent.
On 1/30/07, ritesh_riv [EMAIL PROTECTED] wrote:
In my project , suppose project A is parent for project B.
In such a case, project A packaging should be of type pom.
Then how can i get a jar for project A if needed.
I
try putting
version[1.0,)/version in the dependancy section of
the ear pom for the war?
--- Thierry Lach [EMAIL PROTECTED] wrote:
I'm working on a small example project and am
trying to incorporate a lot
of maven features into it. It's got a main pom and
modules for multiple
jars
I'm working on a small example project and am trying to incorporate a lot
of maven features into it. It's got a main pom and modules for multiple
jars, a war, and an ear. I've just added dependencyManagement, but the ear
pom does not seem to pick up the version from the dependencyManagement and
Create third jar artifact containing common code. war and ejb include
common jar as dependencies.
On 1/26/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
The common code needs to into war file too. How could I do that without
using two copies of the common code?
Thanks
Maruf
Niels Gylling
Can you provide a general overview of what you changed to do your custom
authentication please?
On 1/22/07, Martin van den Bemt [EMAIL PROTECTED] wrote:
A couple of things :
- Authentication is left to another system (our portal)
- Implemented group security (so a member of group x only see
OK I've also been waiting for an answer on this. Anyone know?
On 1/15/07, jp4 [EMAIL PROTECTED] wrote:
Recently I have had some issues with version management where we upgrade a
particular artifact to a new version, but some how, not all projects
reference the new version. I have tried to
Check out the announcement on the maven 1 page
http://maven.apache.org/maven-1.x/
On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote:
And even if I try wget, I get 403: Forbidden
[EMAIL PROTECTED]
:~/releasemanagement/systemone/core/systemone-core-configuration$
wget
Warning - m2 programming noobie here.
I'm trying to write a mojo that will execute when maven runs anytime the
plugin is referenced, without adding the executions.
In other words, I want the pom to be:
plugin
groupIdorg.example.maven/groupId
Warning - m2 programming noobie here.
I'm trying to write a very simple mojo to display a message which will
include the version number of the plugin.
I use the following annotations to access the plugin:
/**
* Plugin descriptor.
* @parameter default-value=${plugin}
* @required
} should work. Is this a bug?
On 1/11/07, Thierry Lach [EMAIL PROTECTED] wrote:
Warning - m2 programming noobie here.
I'm trying to write a very simple mojo to display a message which will
include the version number of the plugin.
I use the following annotations to access the plugin
You can execute the maven command line inside of eclipse if you have the
maven plugin installed. Right click on pom.xml and select the Run As menu
option, then select Maven build. The results appear in a standard eclipse
console. IMNSHO much handier than switching between different windows.
OK I think I found out how to do this. I wouldn't be using different
scopes, but I would be using different assemblies. Correct or not?
On 1/5/07, Thierry Lach [EMAIL PROTECTED] wrote:
I'm putting together a build process in which I want to be able to
customize the war build to optionally
Since I was interested in the same thing, I did a little source code
archaeology, and it appears that one way to accomplish this is to have a
file META-INF/maven/lifecycle.xml in the jar. I found an example in
maven-2.0.x/integration-tests/maven-core-it-plugin/src/main/resources/...
Disclaimer:
I'm putting together a build process in which I want to be able to customize
the war build to optionally exclude certain jars under certain profiles.
Specifically, I want to exclude the junit jar from WEB-INF/lib if (and only
if) I'm building using the profile jboss, triggered by -Djboss-build on
65 matches
Mail list logo