Well this sounds like a fault of the groovy compiler plugin...
if it has source folders or test source folders it should be adding them as
a souce root IMHO of course this could have unwanted side effects, but
that would be what I think we should be aiming for, and not having to add
the folder
Hi,
yes that works.
I´ve added the build-helper-maven-plugin and joined at the test phase
(before packaging):
org.codehaus.mojo
build-helper-maven-plugin
On Wed, May 27, 2009 at 3:58 PM, Martijn Dashorst
wrote:
> With Wicket, we have Page.html, Page.properties, Page.properties_ru,
> Page.js, Page.css, Page.younameit next to the Java files. This has
> been the official way to work with Wicket, and was 100% supported by
> maven by defining src/main/j
On Wed, May 27, 2009 at 1:17 AM, Barrie Treloar wrote:
> On Tue, May 26, 2009 at 11:03 PM, Martijn Dashorst
> 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
Hi Arnaud,
Sorry, my bad -- missed reading those changes. I re-tested it and it works
fine with the inclusions setting, but I agree with Martijn that MECLIPSE-443
is not the best way to go.
Thanks again,
Ari
Arnaud HERITIER wrote:
>
> Hi Ari,
> Thanks for your feedback.
>
> Did you follow t
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 wrote:
> Anyone (users, devs, contributors, etc) planning on going to Google IO
> conference this week, or Community One / JavaOne confere
On Tue, May 26, 2009 at 8:58 PM, raghu guru 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 C:\my-mvn\pom.xml
> it was readi
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 tr
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
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 o
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
Are you looking for a different location for maven repository?
Try -Dmaven.repo.local=
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 adding -Denvironme
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,
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:
>
I expected it would, yes.
On Tue, May 26, 2009 at 10:54 AM, Brendan Haverlock
wrote:
> 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 Me
On Tue, May 26, 2009 at 11:03 PM, Martijn Dashorst
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 resources in src/main/java
t
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 but
>
> Ant: deleting EDepotServiceBindingImpl.java
> generate-sources
...
>
> Ant: Deploying service with axis-admin
> pre-integration-test
...
> As I understand, I shoul
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 [mai
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 -Dorg.apache.maven.gl
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: users@mav
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=. Other things I tried
were -Denv.home and setting the environment variables user_home. None of
those worked.
2009/5/26 Jason Chaffee
> 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
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 upd
Well,
We have a multi-project build. What we do is define a url in the parent
project and leave out the s 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
defa
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
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 decid
2009/5/26 janszm
>
>
> 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.
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 changes
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
wrote:
> Hi
>
> I need to set the jdk via command line, but having a way to
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 cu
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
wrote:
One way around the excludes hack is to adopt a different directory
structure for it tests and unit tests. For example
src
One way to attach this to (say) the process-resources phase is:
org.codehaus.groovy.maven
gmaven-plugin
1.0-rc-3
generate-sources
execute
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
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 none hack that people used to
configure surefire for multiple executions; debugging tests from an
IDE; skipping one type of tes
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 j
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
wrote:
> use surefire for unit tests
>
> use failsafe if you need to set up a integration test environment and tear
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 wrote:
Is there an explanation somewhere on w
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
> The Mojo team is pleased to announce the release of the Failsafe Maven
> Plugin, version 2.4.3-alpha-1.
>
> The Failsafe Plugin is a
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 the
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 U
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 t
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 mo
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 bra
2009/5/21 Martin Gainty :
>
> 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.
Thanks!
-=r
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
---
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
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 expression="${basedir}/src/m
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 p
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ć
> Thanks Brian, unpack-dependencies does the trick, at least partially. Not
> sure if it's curren
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 wrote:
> Did you try to use m2eclipse or q4e ?They'll be the future.
>
> maven-eclipse-plug
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 use
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.
--
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:
source
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
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 part of the pom into account, rather than
invent yet another way of specifying whe
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 ru
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 wrote:
>
> I'm using the native plugin to build a C++ static library. However, the
> outp
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 on
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 wit
Alright.. This is how the relevant parts of my pom, looks like:
org.apache.maven.plugins
maven-antrun-plugin
1.2
Ant: deleting EDepotServiceBindingImpl.java
gener
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 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 tasks are bound
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
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
folders.
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 wrote:
> Hi
>
> I would like to b
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:
http://www.nabble.com/Specify-Output-File-Name-%3A-Native
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 maven
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 jetty or jetty:run
op
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 wrote:
>
> Hi Arnaud,
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
http://m
70 matches
Mail list logo