Hi!
I have a alot of jobs on Hudson, most of which are really small and
consist of just a few modules. But one is big and consist of several
modules.
When ever I make a commit to our subversion repository for any of
those several modules in that big job, Hudson builds the entire job
instead of ju
How about configuring a single job to check-out and build just one
module? Would mean that you have lots of jobs (probably one for every
module), but that way the big job wouldn't need to be triggered (don't
forget to turn of polling and the subversion-hook!).
Then you could run the big job at
Sure, that will work but I was hoping for some kind of setting in
hudson or the job "treat modules as jobs" or "treat this job's modules
as jobs".
On Fri, Dec 10, 2010 at 10:48, Asmann, Roland wrote:
> How about configuring a single job to check-out and build just one
> module? Would mean that yo
Hi,
I'm pretty new to Java and Maven, so my question may be very naive
and/or stupid, apologies for that.
I'm trying to compile an open-source project (if that matters, it's
https://plugins.atlassian.com/plugin/details/4832 ), which is supposed
to be built with Maven. I've got Maven 3 installed (A
Hi, I'm sure this will be simple one...
My pom.xml is configured to create a jar; which is does. However, I've added
some config to inlude and exclude certain files etc. When I do this, none
of the class files are added (i.e. package folders).
pom.xml (snippets):
http://maven.apache.org/POM/4.0
Well, you're only including spring-context.xml with that config so Maven
does what you're telling it to. :-)
I think you would get what you want if you just remove the includes snippet
(and keep the excludes).
/Anders
On Fri, Dec 10, 2010 at 13:18, madeOfStarStuff wrote:
>
> Hi, I'm sure this wil
Hi,
Okay, but to be able to help, we need more:
1) where are the sources you try to build? (especially POM)
2) what is the failure? "dependency resolution fails" as missing a
dependency or what?
3) check for network failures on your side, and repeat builds with -U to
force maven to try again (the
Hello Tamas,
1) Sources are checked out from SVN to the local drive.
2) Yes, missing dependencies. The problems stem from things like
missing maven-metadata files in the public repos. (I've checked that,
the repo maintainers do know about the inconsistencies, but they
refuse to fix it.)
3) I've do
On Fri, Dec 10, 2010 at 7:22 AM, Mate Varga wrote:
> However, I have all of the first level (direct) dependencies resolved.
> As far as my knowledge goes, it's enough to have the first level
> dependencies to compile a Java project,
Not necessarily... it depends on whether the project developers
Thanks.
> You mentioned you have an internal repo already, so if the maintainers
> of the remote repos you're trying to pull from won't cooperate, put
> the needed artifacts in your own repo and you'll be good to go.
Yeah, that's what I wanted to avoid. I will do it if there is no other
way, but
Thanks for the reply. The problem is that NO .class files are being included
in the .jar file.
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-create-JAR-tp3300215p3300312.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
Hi Mate,
you can, as a workaround, download the pom.xml of your dependency and copy
those dependencies into your own pom.xml (or another one which only contains
those). Then change/add the "scope" of all those dependencies to "provided",
which should effectively disable deeper dependency resolu
Thanks, that's a good idea.
On Fri, Dec 10, 2010 at 2:07 PM, Stefan Seidel wrote:
> Hi Mate,
>
> you can, as a workaround, download the pom.xml of your dependency and copy
> those dependencies into your own pom.xml (or another one which only contains
> those). Then change/add the "scope" of all
Mate,
You might get more help if you actually provided some details about what
is your build is actually saying and what repos are broken.
Ron
On 10/12/2010 9:07 AM, Stefan Seidel wrote:
Hi Mate,
you can, as a workaround, download the pom.xml of your dependency and copy those dependencies in
Yes. Did you try removing the "includes" part of you config? You're actually
telling the jar-plugin to only include the spring-context.xml file. No
wonder there are no .class files included.
/Anders
On Fri, Dec 10, 2010 at 14:54, madeOfStarStuff wrote:
>
> Thanks for the reply. The problem is t
Ron,
I didn't want to dump mvn output here -- I know what the problem is,
namely that some repositories are not properly set up (for example:
https://maven.atlassian.com/content/repositories/public/com/atlassian/jira/atlassian-jira-webapp/3.12-SNAPSHOT/
-- there is no valid metadata file here, so
Hm,
ping Atlassian to clean-up their Nexus ;)
Also, if you specify an exact dependency with some version (let's say the
timestamped one in this repo) in the depMgt of the POM you are building, it
should override all transitive deps your build tries to pull in.
Thanks,
~t~
On Fri, Dec 10, 2010
> Sure, that will work but I was hoping for some kind of setting in
> hudson or the job "treat modules as jobs" or "treat this job's modules
> as jobs".
In that case, wouldn't this conversation be more productive on the
Hudson Users mailing list rather than Maven Users??
Wayne
--
Hi Everyone,
I'm attempting the first step of migrating a project from ant to maven and
am running into an issue. Note that I'd ultimately like to solve this by
improving the modularity of the project, but for now, I'm trying to closely
mimic what ant was doing.
I have a collection of SQL scripts
>
> spring-context.xml
>
As Anders has told you repeatedly now, this line in your
config tells Maven to "only include the following file(s) in my jar"
and that is exactly what Maven is doing.
Remove the in
On Fri, Dec 10, 2010 at 10:12 AM, Wayne Fay wrote:
> > Sure, that will work but I was hoping for some kind of setting in
> > hudson or the job "treat modules as jobs" or "treat this job's modules
> > as jobs".
>
> In that case, wouldn't this conversation be more productive on the
> Hudson Users m
That box doesn't do what I need. Sure, only changed modules get built
(in the same build I might add) but it also makes all other jobs that
have dependencies to any of the modules downstream jobs so commiting
any change to any module will force a complete rebuild of all
dependent modules (and not j
Hi,
I have a maven build that is doing fine on my old linux box.
Trying now to run it in the new iMac environment, I get an issue with a
spring xml file not being found.
It feels like the classpath is not correctly set.
The pom.xml file is:
http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http:
I need help with configuring the maven-compiler-plugin to run compiler twice,
with different set of source roots and/or different settings for
includes/excludes. Based on the documentation, it seemed to be a simple
thing to do, but somehow I cannot make it work.
It started with the other problem
The file does exist in the source directory:
stephane:learnintouch$ ll core/src/main/resources/
-rwxr-xr-x 1 stephane staff 607 9 déc 17:34 spring-data-source.xml
But it is nowhere to be found in the target directory:
stephane:learnintouch$ll core/target/classes/
drwxr-xr-x 3 stephane
I'm running the following version of maven:
stephane:learnintouch/$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: fr_FR, platform encoding: MacRoman
OS name: "m
On Thu, Dec 9, 2010 at 11:37 PM, Anders Hammar wrote:
> Did you try forcing an update ("-U") with Maven 2? I don't know if that
> should have worked, but I would have tried it...
Interestingly, today it is working, even without a -U or anything.
I wonder if there is some kind of time frame where
I tried starting from scratch with similar steps that I was using to
reproduce it yesterday, and now I can't reproduce it anymore.
But if I do reproduce it again, I'll try the -U option to see if it helps :)
Phillip
On Fri, Dec 10, 2010 at 10:11 AM, Phillip Hellewell wrote:
> On Thu, Dec 9, 201
Hi,
as part of MNG-4893 [0] an inconsistency in the way a version string is
treated as a snapshot or release was detected. In short, the issue is
about what suffix exactly marks a snapshot version.
The current intention is to revise the logic such that the suffix
"-SNAPSHOT" (note the leadin
I've heard talk about the debatable value of profiles, and I wanted to
describe one use I might have for profiles, although I'm still in the
initial stages of converting a large Ant environment to Maven, so things
may change. I'd appreciate any comments.
I think one basic reason that profiles bec
On Fri, Dec 10, 2010 at 9:20 AM, KARR, DAVID (ATTSI) wrote:
> Another desire I have is to allow for developers not even building most
> of the modules, and just letting the "ear" project pull snapshot
> artifacts from the Nexus repo (built by the release team or continuous
> integration). I could
I'd second the very good points that Kalle made. To add some practical
experience from this end, I just last night learned the power of using the
element within a element...
>
>
> all
>
> web
> core
> messa
On 10 December 2010 07:18, Nick Bonatsakis wrote:
> I'm attempting the first step of migrating a project from ant to maven and
> am running into an issue. Note that I'd ultimately like to solve this by
> improving the modularity of the project, but for now, I'm trying to closely
> mimic what ant w
> -Original Message-
> From: Kalle Korhonen [mailto:kalle.o.korho...@gmail.com]
> Sent: Friday, December 10, 2010 9:58 AM
> To: Maven Users List
> Subject: Re: Reasonable use of profiles?
>
> On Fri, Dec 10, 2010 at 9:20 AM, KARR, DAVID (ATTSI)
> wrote:
> > Another desire I have is to all
> -Original Message-
> From: Brian Topping [mailto:topp...@codehaus.org]
> Sent: Friday, December 10, 2010 10:13 AM
> To: Maven Users List
> Subject: Re: Reasonable use of profiles?
>
> I'd second the very good points that Kalle made. To add some
practical
> experience from this end, I ju
An area we've been successful with in using profiles is to distinguish
between local builds and CI build to toggle Fat v Skinny WARs
Curt Yanko | Continuous Integration Services | UnitedHealth Group IT
Making IT Happen, one build at a time, 600 times a day
> -
On Dec 10, 2010, at 1:30 PM, KARR, DAVID (ATTSI) wrote:
> Interesting. This could go into the "build" project POM, but if a
> developer needed a custom list of modules, they could define that in
> their settings.xml. I guess that could work for what I'm looking for.
It's not possible to put t
What is the best tool out for generating a reverse dependency tree?
Also, can anyone give some hints on where to look to set up Hudson or
something else to trigger automatic builds of reverse dependencies
(i.e., continuous integration). Of course, it would have to not only
build the reverse depen
On Fri, Dec 10, 2010 at 4:02 PM, Phillip Hellewell wrote:
> What is the best tool out for generating a reverse dependency tree?
>
> Also, can anyone give some hints on where to look to set up Hudson or
> something else to trigger automatic builds of reverse dependencies
Apache Archiva (repository
We use Sonar and it's Library look up mechanism to do *impact analysis*
if that's what you mean by reverse dependency.
>From a build standpoint AnthillPro support both Push and Pull style
dependency triggers. Since we are a CI shop we use Push to trigger the
build of the item(s) that use what we j
On Fri, Dec 10, 2010 at 10:16 AM, Phillip Hellewell wrote:
> I tried starting from scratch with similar steps that I was using to
> reproduce it yesterday, and now I can't reproduce it anymore.
>
> But if I do reproduce it again, I'll try the -U option to see if it helps :)
I ran into it again, a
Maven 3.0 rocks! :-)
/Anders
On Fri, Dec 10, 2010 at 22:36, Phillip Hellewell wrote:
> On Fri, Dec 10, 2010 at 10:16 AM, Phillip Hellewell
> wrote:
> > I tried starting from scratch with similar steps that I was using to
> > reproduce it yesterday, and now I can't reproduce it anymore.
> >
> >
That's because you haven't configured that folder in the profile. This is
what you have configured:
src/integration/
resources
true
This replaces the resources section defined outside the profiles.
Execute this and check the effective pom:
mvn he
Hmm, I now see that you say it works on Linux. Maybe the resources section
outside the profiles isn't being replaced but added to? Check the effective
pom and you'll know for sure.
/Anders
On Fri, Dec 10, 2010 at 22:52, Anders Hammar wrote:
> That's because you haven't configured that folder in
I very much second Kalle here.
Stay away from profiles as much as possible - most often they are used in
the wrong way. Also, if you're migrating a large system I would very much
recommend that you get someone with good Maven knowledge to help you get
things right. I very often come to projects whe
> I very much second Kalle here.
> Stay away from profiles as much as possible - most often they are used in
> the wrong way. Also, if you're migrating a large system I would very much
> recommend that you get someone with good Maven knowledge to help you get
> things right. I very often come to pr
Beyond the basics and the core principles, it's difficult to write
down the exact instructions for a large scale deployment and use of
Maven because the situations are vastly different. Even if one would
document the best practices for some particular situations, the issue
for the novice is identif
On Fri, Dec 10, 2010 at 2:45 PM, Anders Hammar wrote:
> Maven 3.0 rocks! :-)
Would you recommend it in a production environment?
Phillip
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-ma
I just ran the following command, on the Linux box:
mvn help:effective-pom -Pintegration-test
And it gives the following output:
/home/stephane/dev/java/project/learnintouch/src/main/java^M
src/main/scripts^M
/home/stephane/dev/java/project/learnintouch/src/integration/java
And the same command on the iMac machine:
/Users/stephane/dev/java/projects/learnintouch/core/src/main/java
src/main/scripts
/Users/stephane/dev/java/projects/learnintouch/core/src/integration/java
/Users/stephane/dev/java/projects/learnintouch/core/target/classes
And, again on the iMac, if this time I don't specify the integration-test
profile on the command line
mvn help:effective-pom
I get
/Users/stephane/dev/java/projects/learnintouch/core/src/main/java
src/main/scripts
/Users/stephane/dev/java/projects/learnintouch/core/src/t
> > Another desire I have is to allow for developers not even building
> most
> > of the modules, and just letting the "ear" project pull snapshot
> > artifacts from the Nexus repo (built by the release team or
> continuous
> > integration). I could do this with multiple "build" projects,
> inclu
On Dec 10, 2010, at 8:08 PM, Bryan Loofbourrow wrote:
> You don't need separate projects for this. You just need a bunch of
> developer-facing pom files with different lists. They can certainly
> live in the same directory. This is something we definitely take advantage
> of, for producing in
>> What is the semantic difference between multiple POMs and a single POM
>> containing the different module lists in profiles? It seems like the former
>> is harder to support because a change outside the module sets requires
>> changing every POM. <<
Well, one difference is a separation of
On 10/12/2010 1:24 PM, KARR, DAVID (ATTSI) wrote:
-Original Message-
From: Kalle Korhonen [mailto:kalle.o.korho...@gmail.com]
Sent: Friday, December 10, 2010 9:58 AM
To: Maven Users List
Subject: Re: Reasonable use of profiles?
On Fri, Dec 10, 2010 at 9:20 AM, KARR, DAVID (ATTSI)
wrote:
On 10/12/2010 9:19 PM, Bryan Loofbourrow wrote:
What is the semantic difference between multiple POMs and a single POM containing the
different module lists in profiles? It seems like the former is harder to support
because a change outside the module sets requires changing every POM.<<
Well,
> And, again on the iMac, if this time I don't specify the integration-test
> profile on the command line
>
> with the specified profile replacing the standard resources directory.
>
> Stranges this is happening on this OSX maven..
Run mvn -X help:effective-pom and compare the versions of EVERYTHI
On Dec 10, 2010, at 10:03 PM, Ron Wheeler wrote:
> On 10/12/2010 9:19 PM, Bryan Loofbourrow wrote:
What is the semantic difference between multiple POMs and a single POM
containing the different module lists in profiles? It seems like the
former is harder to support because a ch
58 matches
Mail list logo