B can use types form A in its public interface. Do we really want to
force all C's to know which of B's dependencies appear in its public
interface? Or do all B's document which dependencies they re-export,
i.e. which should be considered transitive, and which not?
Actually, that last idea,
Hi!
On Monday 25 May 2009 torsten.reinh...@gi-de.com wrote:
I´m trying to include some additional files in my sources.jar:
src\main\java
src\main\groovy
I never used it, but I guess you have to use the build helper maven plugin
to add additional source paths to you project. See
Hi Ari,
Thanks for your feedback.
Did you follow this doc to setup your eclipse project :
http://maven.apache.org/plugins/maven-eclipse-plugin-2.7-SNAPSHOT/examples/specifying-source-path-inclusions-and-exclusions.html
??
Arnaud
On Tue, May 26, 2009 at 2:29 AM, ari.meyer ari.me...@gmail.com
Hi
I would like to bind an ant task from maven antrun plugin only when I
use the jetty:run goal : my task basically extracts and preconfigures
a few files needed at webapp startup.
I've managed to bind antrun to the compile phase, but this is not good
enough. I've tried the goaljetty/goal or
Hello,
- I'm executing maven in java 6 = OK
+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.6.0_05
OS name: windows xp version: 5.1 arch: x86 Family: windows
- I want to compile in java 1.4 = OK by setting the maven-compiler-plugin
- I want to execute the
I'm using the native plugin to build a C++ static library. However, the
output name is always ${project.artifactId}.a. I would like to the name of
the out file. Is there a way to do this?
Thanks,
Abhinav
--
View this message in context:
You can only bind goals to a phase, never to a goal.
Just make a shell script which calls mvn ant:run jetty:run.
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Tue, May 26, 2009 at 10:38 AM, Laurent Perez hak...@gmail.com wrote:
Hi
I
Hi all!
We (a software-house developing a b2b java web application) are currently
planing to move from ant to maven.
I successfully migrated your ant build.xml to a maven pom stucture
including multiple modules etc.
We are using the assembly-plugin to package all dependencies and required
When executing 'mvn antrun:run' my tasks are not run.. I have an echo task,
but no output is shown.. When running the phases that the tasks are bound
to, they do get executed..
--
View this message in context:
http://www.nabble.com/maven%2C-ant%2C-antrun%3Arun-tp23720986p23720986.html
Sent from
I am sure you ll get a lot of feedback on that one. It has so much details
about our problem.
On Tue, May 26, 2009 at 2:09 PM, vpalle vpa...@daimi.au.dk wrote:
When executing 'mvn antrun:run' my tasks are not run.. I have an echo task,
but no output is shown.. When running the phases that the
Alright.. This is how the relevant parts of my pom, looks like:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.2/version
executions
execution
Do you mean: given two zip archives, version n and n+1, you'd like to be
able to generate something like a version nton+1 zip that'd only contain the
different components that'd different between n and n+1 versions?
If so, then I don't know if this is possible. Maybe with a special
dev/profile
Thanks Brian, unpack-dependencies does the trick, at least partially. Not
sure if it's currently best solution, to have jar's of these unpacked
dependencies excluded from the war I use maven assembly plugin.
Wish war plugin or even dependency declaration itself would support such a
scenario, so
It is not possible to change the output file name, even using finalName
http://jira.codehaus.org/browse/MOJO-896
-D
http://jira.codehaus.org/browse/MOJO-896
On Tue, May 26, 2009 at 1:53 AM, Abhinav Sharma abhin...@qualcomm.com wrote:
I'm using the native plugin to build a C++ static library.
I have a java program which takes an input-file and output-file as
parameters. I need to run this for a set of files in a directory.
How can I best achieve this with Maven? I have looked at the Exec Maven
plugin and as per http://mojo.codehaus.org/exec-maven-plugin/usage.html I
can use this to
In my opinion MECLIPSE-443 is a very bad idea. Should every plugin be
configured so that the resources available in src/main/java are
treated as classpath entries? According to me the eclipse plugin
should take the resources part of the pom into account, rather than
invent yet another way of
Did you try to use m2eclipse or q4e ?They'll be the future.
maven-eclipse-plugin will probably die under its own weight. There are too
many use cases and testing coverage isn't conclusive because we only checks
what we generate and not that we are able to import/use it in eclipse . We
have really
Hey,
How to generate TestNG report with Maven 2?
Thanks.
--
View this message in context:
http://www.nabble.com/How-to-generate-TestNG-report--tp23724692p23724692.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Yes, and I've been burned by m2eclipse, and haven't heard loving
reports from co-workers about q4e either. Not installing any of them
anytime soon.
Martijn
On Tue, May 26, 2009 at 4:09 PM, Arnaud HERITIER aherit...@gmail.com wrote:
Did you try to use m2eclipse or q4e ?They'll be the future.
that's exactly what i want to do.
i'm just writing my own plugin which does following:
-) fetch new artifact jar
-) fetch old artifact jar
use java.util.zip.Zipfile to get all entries and compare their crc's. if the
file changed or was not present in old artifact, add the file; if entry is
not
The easiest way is to just write a plugin...
seriously, it's quite simple
start with the archetype for a maven plugin (mvn archetype:generate)
then just modify the sample Mojo that it creates.
you will want to add two parameters to your Mojo, e.g.
/**
* @parameter
Hello
I am installing maven in solaris 8 SPARC, but don't work. When I try run mvn
script from bin directory. Don't run and don't prompt any error. I tried with
several versions of maven (binaries) 2.0.8 , 2.0.9, 2.0.10 and the same
problem. Don't run the script.
Then I downloaded the
Well, it depends on what you want to do.
Maven is not designed to be used as a scripting engine for administration
tasks.
Do you want to do this as a part of your packaging/build process? If so,
then look at Stephen answer. If you want to script something moving in a
production envt, then just
Hi
I need to set the jdk via command line, but having a way to use a default one.
In maven one I used:maven.compile.source and maven.compile.target property
In maven 2 I found at this page:
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgument
It tells:
In general people seem to be moving towards not having any exploded jars in
a war file... and indeed that would be the best practice that Maven seems
to encourage.
-Stephen
2009/5/26 Stevo Slavić ssla...@gmail.com
Thanks Brian, unpack-dependencies does the trick, at least partially. Not
sure
I'm kind of at a loss as to how to make junit a little more verbose
(sorry to ask a question not specifically maven related, but I hoped
someone might have a clue). i'm looking for an output like
running test a: success
running test b: success
that type of thing.
Any thoughts?
-=r
2009/5/21 Martin Gainty mgai...@hotmail.com:
can you display your pom.xml to determine which processes are being
spawned/exec'ed
Martin
Absolutely. If I have any unit test in this module that just sleeps
ex:
Thread.sleep(10);
and I just hit ctrl-c, it leaves an orphaned process behind.
Do you mean the Invoker plugin?
The ultimate goal is to be able to selectively build only projects that
have changed since the last build.
One piece of that is that we are trying to automate the version property
of the POM for each branch, based on the most recent Perforce changenum
for that
Baptiste MATHUS wrote:
Well, it depends on what you want to do.
Maven is not designed to be used as a scripting engine for administration
tasks.
Do you want to do this as a part of your packaging/build process? If so,
then look at Stephen answer. If you want to script something moving
Hello
I am installing maven in solaris 8 SPARC, but don't work. When I try run mvn
script from bin directory. Don't run and don't prompt any error. I tried with
several versions of maven (binaries) 2.0.8 , 2.0.9, 2.0.10 and the same
problem. Don't run the script.
Then I downloaded
I am using 2.1.0, and it doesn't seem to make a difference which order I put
them in. Based on what you said, shouldn't this be working in my version?
Thanks,
Brendan Haverlock
-Original Message-
From: Brian Fox [mailto:bri...@infinity.nu]
Sent: Monday, May 25, 2009 3:19 PM
To: Maven
Dear community.
I have a project on Ubuntu that is compiled with maven 2 (version 2.0.8), it
compiles and builds perfectly, creating the correct jars.
The problem comes when I try to do the same in a chrooted environment, with
pbuilder. The maven instalation is created when pbuilder starts, and
Is there an explanation somewhere on when to use surefire and when this
failsafe plugin? What are the main differences?
regards,
Wim
2009/5/25 Stephen Connolly stephen.alan.conno...@gmail.com
The Mojo team is pleased to announce the release of the Failsafe Maven
Plugin, version
use surefire for unit tests
use failsafe if you need to set up a integration test environment and
tear it back down again after the integration tests have ran
-Stephen
Sent from my [rhymes with myPod] ;-)
On 26 May 2009, at 19:34, Wim Deblauwe wim.debla...@gmail.com wrote:
Is there an
Will there be an effort to add the integration testing features to the
original? I would like to not have multiple testing plugins.
On Tue, May 26, 2009 at 1:54 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
use surefire for unit tests
use failsafe if you need to set up a
sorry I missed your second question.
the main difference is when a build failure is triggered.
surefire triggers a build failure immediately after finishing running
all the (unit) tests. this makes it a poor choice if you need to set
up and tear down a (integration) test environment (think
I am not opposed to doing so. the block for me is my lack of Apache
commit access.
there are valid arguments for keeping these as separate plugins
though, eg the excludesnone/excludes hack that people used to
configure surefire for multiple executions; debugging tests from an
IDE;
One way around the excludes hack is to adopt a different directory structure
for it tests and unit tests. For example
src/test -- unit tests
src/itest -- integration tests
Jason
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Tuesday, May 26,
One way to attach this to (say) the process-resources phase is:
plugin
groupIdorg.codehaus.groovy.maven/groupId
artifactIdgmaven-plugin/artifactId
version1.0-rc-3/version
executions
execution
but that looses source folder config in ide setup, and hacks with test-
compile
Sent from my [rhymes with myPod] ;-)
On 26 May 2009, at 20:22, Jason Chaffee jason.chaf...@zilliontv.tv
wrote:
One way around the excludes hack is to adopt a different directory
structure for it tests and
Yes, it would basically force Maven to adopt it as a standard and it would
might mean even adding a itest-compile phase, etc.
Not sure if I prefer this idea over the current protocol, but I do think the
FailSafe plugin is very good and clever approach to integration tests with the
way things
Maybe you can use a profile in your pom to modify the
maven-compiler-plugin configuration?
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
/Anders
On Tue, May 26, 2009 at 17:34, emerson cargnin
echofloripa.y...@gmail.com wrote:
Hi
I need to set the jdk via command
and you'd probably want an integration-test scope as well for
dependencies used for integration testing, and you'd need to add an
integrationTestSources element to the build, as well as
integrationTestResources
that is if you want to do things properly.
and I am not opposed to such
2009/5/26 janszm me...@jansz.com
Baptiste MATHUS wrote:
Well, it depends on what you want to do.
Maven is not designed to be used as a scripting engine for administration
tasks.
Do you want to do this as a part of your packaging/build process? If so,
then look at Stephen answer.
I'm sending this missive to user's lists of both hudson and maven
because it concerns using these two tools together, and I'll need help
from both parties to make this work.
Rather than separately site-deploying the sites of the 30 or so maven
projects hudson is building for me at work, I've
Yep, I concur with you a 100%. I think the solutions for this until now
(FailSafe), were highly undesirable and caused many other issues.
It might be something the Maven folks might want to think about in the future,
adding support for integration testing in an more appropriate way (adding the
Well,
We have a multi-project build. What we do is define a url in the parent
project and leave out the urls in all of the other poms. When we do
this, the maven generated site correctly links the parent projects to the
child projects. It kind of sounds like you may be overriding some of the
Can I use this plugin for the following purpose?
Project A build has a folder in its directory structure that holds assets
from a different svn location/project (project B) that I want to include in
my build. During my build before the compile phase I would like to use this
plugin to do an svn
2009/5/26 Jason Chaffee jason.chaf...@zilliontv.tv
Yep, I concur with you a 100%. I think the solutions for this until now
(FailSafe), were highly undesirable and caused many other issues.
It might be something the Maven folks might want to think about in the
future, adding support for
Hi,
I am trying to tell mvn via command line not to use my OS user home
directory for settings (that is, to store the directory .m2 somewhere else).
I tried adding -Denvironment.home=new directory. Other things I tried
were -Denv.home and setting the environment variables user_home. None of
This is covered in the help: mvn --help
You want to use the -s option to tell mvn where your settings.xml file is,
like so:
mvn -s /some/other/dir/settings.xml
-Original Message-
From: Rodrigo de Salvo Braz [mailto:b...@ai.sri.com]
Sent: Tuesday, May 26, 2009 3:07 PM
To:
I also think you can use the following command-line parameters:
org.apache.maven.global-settings to assign the location of global settings
org.apache.maven.user-settings to assign the location of the user's settings
For our developers, we use the following alias for mvn
mvn
I really like the idea of breaking up unit, integration, and functional tests.
This is how I would prefer to break up my tests. I had to use TestNG groups to
do this effectively in the current scheme of things.
Thanks for the link!
Jason
-Original Message-
From: Stephen Connolly
execution
idAnt: deleting EDepotServiceBindingImpl.java/id
phasegenerate-sources/phase
...
execution
idAnt: Deploying service with axis-admin/id
Anyone (users, devs, contributors, etc) planning on going to Google IO
conference this week, or Community One / JavaOne conference next week
in San Francisco, CA USA?
I haven't heard about a Maven BOF so I assume that's not going to
happen this year. I believe there was one a couple years back
On Tue, May 26, 2009 at 11:03 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
In my opinion MECLIPSE-443 is a very bad idea. Should every plugin be
configured so that the resources available in src/main/java are
treated as classpath entries?
It was my understanding that if you had
I expected it would, yes.
On Tue, May 26, 2009 at 10:54 AM, Brendan Haverlock
brend...@mirthcorp.comwrote:
I am using 2.1.0, and it doesn't seem to make a difference which order I
put
them in. Based on what you said, shouldn't this be working in my version?
Thanks,
Brendan Haverlock
Well, here's one for q4e. Ever since they implemented the incremental
builder, I haven't had any issues with it and it's been fast enough for me
(got 30 or so linked Eclipse projects on my workspace).
Kalle
On Tue, May 26, 2009 at 7:35 AM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
Like Brian, I expected this would work right in 2.0.10 and 2.1.0, so
I'm a bit surprised it didn't work.
Having said that, let me remind you what I said earlier... ;-)
This just won't work at all, at least not consistently. Build a
different jar containing just the classes you DON'T override,
Are you looking for a different location for maven repository?
Try -Dmaven.repo.local=new directory
Rodrigo de Salvo Braz wrote:
Hi,
I am trying to tell mvn via command line not to use my OS user home
directory for settings (that is, to store the directory .m2 somewhere
else).
I tried
What's wrong with using TestNG? Why is it better to change Maven standard
directory layout? TestNG works already and doesn't impose package or test
class naming constraints. Btw, Surefire plugin support for TestNG could be
better.
Failsafe plugin is welcome but I'd prefer a single well maintained
Nothing is wrong with TestNG and I agree TestNG and Maven/Surefire integration
could be better, but there that is not all on Maven/Surefire, there are some
issues with how TestNG supports integration as well.
The point I was making is that, currently, maven doesn't really support
integration
Martijn Dashorst wrote:
Yes, and I've been burned by m2eclipse, and haven't heard loving
reports from co-workers about q4e either. Not installing any of them
anytime soon.
The same here. I'd rather maintain a fork of the m-e-p that does exactly
what I want than installing one of the eclipse
Hi All
I want to use pom.xml which is different than my src/main/java.
lets say i have dir structure for sources has C:\src\main\java and i have
my pom.xml at C:\my-mvn\pom.xml and yes i did use mvn -f C:\my-mvn\pom.xml
it was reading this file. but its taking base dir has
C:\my-mvn\pom.xml i
On Tue, May 26, 2009 at 8:58 PM, raghu guru raghure...@gmail.com wrote:
Hi All
I want to use pom.xml which is different than my src/main/java.
lets say i have dir structure for sources has C:\src\main\java and i have
my pom.xml at C:\my-mvn\pom.xml and yes i did use mvn -f
I'm going to JavaOne. I mailed Brian Fox regarding a Maven meetup, but
there is currently no plans for that.
/Anders
On Wed, May 27, 2009 at 00:56, Wayne Fay wayne...@gmail.com wrote:
Anyone (users, devs, contributors, etc) planning on going to Google IO
conference this week, or Community One
66 matches
Mail list logo