Re: Strange behavior in hudson when using "-Dmaven.repo.local"

2009-10-19 Thread Brian Fox
I haven't used that option specifically, but I define my repos with the -Dmaven.repo.local=xxx command in the build, and everything behaves normally. On Thu, Oct 15, 2009 at 5:22 PM, Roland Asmann wrote: > Hi all, > > I'm sending this to both the maven and the hudson list, because I'm not > sure

Re: how to disable building xxx-tests.jar

2009-10-19 Thread Brian Fox
Check your parent hierarchy, this plugin goal isn't executed by default from Maven, more likely someone has inserted it in a parent pom. On Mon, Oct 19, 2009 at 8:05 PM, Radim Kolar wrote: > > I found that maven 2.1 creates program-version-tests.jar even if no test > directory is configured in po

Re: Offline equivalent only for updates

2009-10-19 Thread Brian Fox
You can set the update policy per repo in your settings. Just change it to never and it will only grab snapshots when you use -U On Mon, Oct 19, 2009 at 8:16 AM, Quintin Beukes wrote: > Hey, > > Is there a --offline equivalent option/property which only affects > checking for updates. Sometimes w

Re: Central Artifact Metadata Outdated

2009-10-19 Thread Brian Fox
This is an Apache project and Nexus is running on Repository.apache.org so I'll repair the metadata there and it will be picked up in the next sync. On Mon, Oct 19, 2009 at 8:21 AM, Anders Hammar wrote: > I'm not sure if the can fix the existing issue, but the surely can make sure > that it doesn

how to disable building xxx-tests.jar

2009-10-19 Thread Radim Kolar
I found that maven 2.1 creates program-version-tests.jar even if no test directory is configured in pom.xml. Is there way to disable it? It seems that http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html jar:test-jar is responsible for it and it is now executed by default. How can

Re: speedier builds possible?

2009-10-19 Thread Roger Pack
> I assume it should only build *direct* descendants, in the dependency > hierarchy.  Mine however seems to be building both direct descendants > and their cousins, for some reason. > > > >>mvn reactor:resume -Dfrom=updatemigrationdb To answer my own question, the correct command is... > mvn reac

release branch not working as expected

2009-10-19 Thread Matt Milliss
I'm having trouble getting the maven-release-plugin to work in a non-interactive way. I'm trying to create a branch with the version 09.20.01-SNAPSHOT from the trunk version 09.20.00-SNAPSHOT. I'm using the following command to branch manually, mvn release:branch -DbranchName=09.20.00_BRANCH -

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
I've seen projects that do this and I don't like it. To my mind "stage" is a runtime concept that your application (or, better yet, the framework your application uses) should adapt itself to, not something which requires different build artifacts. Justin -Original Message- From: Marti

RE: Config.jar project dependency

2009-10-19 Thread Martin Gainty
ok up until i saw httpa and httpb?..as enjoyable as trying to convert a 10 year old unix makefile with no comments how about using classifiers for staging...dev/test/uat/qa/prod ? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de con

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
Ha! I hadn't seen this. But yes, as with anything else, Maven simply provides the tools - how you use (or abuse) them, is up to you. I think the two examples I provided are appropriate cases for classifiers, but reasonable people can disagree. Justin -Original Message- From: anders.g.ham

Re: Config.jar project dependency

2009-10-19 Thread Quintin Beukes
> I believe you're with me on this but I wanted to firmly state this as there > are some very bad examples of classifiers usage. Have a look at this and > weep: > http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-varia/5.1.0.GA/ > [silence]

Re: Config.jar project dependency

2009-10-19 Thread Anders Hammar
I would say that most of the time when you start thinking about using classifiers, you should think again. The Javadoc and sources cases are good examples of when classifiers are the way to go, but I've seen some very ugly cases where people try to go about the original issue with bad Maven design

Re: Config.jar project dependency

2009-10-19 Thread Quintin Beukes
The examples are perfect. Thanks. > I think Todd answered your second question already. One gotcha - there's > only one pom, so you can't have different dependencies per classified > artifact. This can be worked around with excludes in the downstream > project, but if you run into this repeatedly

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
Here's two examples: http://svn.apache.org/repos/asf/sling/trunk/launchpad/base/pom.xml - creates artifacts with "app" and "webapp" classifiers which are then used as dependencies in other projects. http://kenai.com/projects/boxspring/sources/main/content/trunk/boxspring -core/pom.xml?rev=125 - cr

Re: Config.jar project dependency

2009-10-19 Thread Quintin Beukes
That's awesome. Thanks. Quintin Beukes On Mon, Oct 19, 2009 at 8:55 PM, Todd Thiessen wrote: > The jars produced have the same, just different classifier. You simply > use the classifer tag when defining the dependency. ie: > >  a.b.c >  abc >  1.0 >  jdk1.4<\classifer> > > or > >  a.b.c >  ab

RE: Config.jar project dependency

2009-10-19 Thread Todd Thiessen
The jars produced have the same, just different classifier. You simply use the classifer tag when defining the dependency. ie: a.b.c abc 1.0 jdk1.4<\classifer> or a.b.c abc 1.0 jdk1.5<\classifer> --- Todd Thiessen > -Original Message- > From: Quintin Beukes [mailto:qu

Re: Abstract method error in surefire?

2009-10-19 Thread Quintin Beukes
Did you ever learn more about this problem? Quintin Beukes On Wed, Oct 14, 2009 at 9:53 AM, Quintin Beukes wrote: > Really, the only ways I can think of is to (a) dump a stack trace (b) > set a breakpoint and run it inside a debugger. You need to see what is > causing the error and the best wa

Re: Config.jar project dependency

2009-10-19 Thread Quintin Beukes
>> OK, firstly you can only produce one artifact per POM. > This is not true. A POM has one GAV, but you can produce multiple artifacts > with different classifiers. For example, most Java projects using the release > plugin will have a source JAR file produced from the same POM and codebase. >

RE: how to set environment variables

2009-10-19 Thread Martin Gainty
Good Afternoon Martin i presume maven is called from a cmd/bash/cshell/kshell (shell environment) so one would need to reach back and change the configuration of the invoking parent environment (which i dont how to accomplish from any child shell) there are workarounds such as modifying the sy

RE: how to set environment variables

2009-10-19 Thread Edelson, Justin
Those are Maven properties, not environment variables. You can't set environment variables for the current process in Java at all, let alone in Maven. If you're forking a new process, you may be able to set environment variables on the subprocess via ProcessBuilder. Justin -Original Message--

Re: how to set environment variables

2009-10-19 Thread Manuel Grau
Is not possible? I'm using them. Take a look to my pom: development true env dev

Re: Easiest way to build in connectionless environment?

2009-10-19 Thread Jason van Zyl
That is not a good idea. If you want to create a connectionless environment that mocks the way a real environment works then using a repository manager locally is the best option. Mixing the use of a single directory structure as your remote and local repository is almost certainly going to

how to set environment variables

2009-10-19 Thread Martin Trummer
hi, I've already read a lot about this seems, that it's not possible to set env-vars in a pom.xml or profiles.xml file in maven 2 is that correct? does anyone know a workaround or a mini-plugin that allows to set those env vars? TIA, martin --

Re: Easiest way to build in connectionless environment?

2009-10-19 Thread janneefef
Sounds very good, thanks! Nick Stolwijk-4 wrote: > > Make a copy of your settings file and add to that: > > /tmp/tmpRepository > > > userrepository > User Repository > file://${user.home}/.m2/repository > * > > > > Now do a mvn install -s settings.xml

RE: Config.jar project dependency

2009-10-19 Thread Edelson, Justin
Quintin Beukes wrote: > OK, firstly you can only produce one artifact per POM. This is not true. A POM has one GAV, but you can produce multiple artifacts with different classifiers. For example, most Java projects using the release plugin will have a source JAR file produced from the same POM an

Re: Hosting a local repo w/out a Repo Manager?

2009-10-19 Thread Stephen Connolly
great minds think alike... fools seldom differ 2009/10/19 Todd Thiessen > hehe. Some kind of universal mind meld? ;-) > > --- > Todd Thiessen > > > > -Original Message- > > From: Quintin Beukes [mailto:quin...@skywalk.co.za] > > Sent: Monday, October 19, 2009 9:12 AM > > To: Maven Users

RE: Hosting a local repo w/out a Repo Manager?

2009-10-19 Thread Todd Thiessen
hehe. Some kind of universal mind meld? ;-) --- Todd Thiessen > -Original Message- > From: Quintin Beukes [mailto:quin...@skywalk.co.za] > Sent: Monday, October 19, 2009 9:12 AM > To: Maven Users List > Subject: Re: Hosting a local repo w/out a Repo Manager? > > Heh, about an hour ago

Re: Hosting a local repo w/out a Repo Manager?

2009-10-19 Thread Quintin Beukes
Heh, about an hour ago I noticed that block proxy option and thought of this exact thread. I come here to answer it and you did so at about the same time I noticed the option :> Quintin Beukes On Mon, Oct 19, 2009 at 2:25 PM, Todd Thiessen wrote: > I don't think you need to get pro to do what

RE: Hosting a local repo w/out a Repo Manager?

2009-10-19 Thread Todd Thiessen
I don't think you need to get pro to do what you want. Simple right click on the repo and select "Block proxy". Nexus won't try and download new artifacts but it will still service the existing ones. --- Todd Thiessen > -Original Message- > From: Larry Shatzer, Jr. [mailto:lar...@gmail.

Re: Central Artifact Metadata Outdated

2009-10-19 Thread Anders Hammar
I'm not sure if the can fix the existing issue, but the surely can make sure that it doesn't happen again. /Anders On Mon, Oct 19, 2009 at 14:18, Quintin Beukes wrote: > So I should contact the xbean/geronimo project? > > Quintin Beukes > > > > On Mon, Oct 19, 2009 at 2:12 PM, Anders Hammar wr

Re: Central Artifact Metadata Outdated

2009-10-19 Thread Quintin Beukes
So I should contact the xbean/geronimo project? Quintin Beukes On Mon, Oct 19, 2009 at 2:12 PM, Anders Hammar wrote: > Sonatype manages central (at least they're paying for it). I've seen Jason > mentioning the checksum issue several times. However, I'm not sure if their > policy is to fix it

Offline equivalent only for updates

2009-10-19 Thread Quintin Beukes
Hey, Is there a --offline equivalent option/property which only affects checking for updates. Sometimes with very large builds I can sit waiting for hours while all the SNAPSHOT updates are being checked, but it does happen that I don't always have all the dependencies in the local repo where I'm

Re: A maven/nexus repos manager/missing dependency question

2009-10-19 Thread Quintin Beukes
>     >         >             >                org.apache.maven.plugins >                maven-javadoc-plugin >             >         >     > > > That is the only plugin specified in my pom.  The plugin that looks to be > causing the problem is a maven plugin (the maven-project-info-reports-plugin

Re: Central Artifact Metadata Outdated

2009-10-19 Thread Anders Hammar
Sonatype manages central (at least they're paying for it). I've seen Jason mentioning the checksum issue several times. However, I'm not sure if their policy is to fix it or not. My guess is not as it hasn't been done and it should be quite easy to do with a script. One of the main problems are tha

Central Artifact Metadata Outdated

2009-10-19 Thread Quintin Beukes
Hey, I'm getting the following, repeatedly. It's being downloaded via Nexus, but I repeatedly get the following messages (everytime it's checked for updates): Downloading: http://blade:7081/nexus/content/groups/public/org/apache/xbean/xbean-asm-shaded/3.6/xbean-asm-shaded-3.6.jar 118K downloaded

Re: A maven/nexus repos manager/missing dependency question

2009-10-19 Thread Sean Davis
On Mon, Oct 19, 2009 at 6:46 AM, Quintin Beukes wrote: > You should add it to the plugin's dependencies. > > Here is an example extract from one of my POMs (the irrelevant bits > removed): > > >. > > >org.apache.maven.surefire >surefire-a

Re: A maven/nexus repos manager/missing dependency question

2009-10-19 Thread Quintin Beukes
You should add it to the plugin's dependencies. Here is an example extract from one of my POMs (the irrelevant bits removed): . org.apache.maven.surefire surefire-api 2.4.3 Quintin Beukes On

Re: A maven/nexus repos manager/missing dependency question

2009-10-19 Thread Sean Davis
On Mon, Oct 19, 2009 at 5:15 AM, Quintin Beukes wrote: > Try adding the commons-lang dependency. > > Thanks, Quintin. However, it appears that this dependency is arising in a maven plugin, if I understand things correctly? So, adding the dependency to my own pom won't have an effect on the build

Re: Standalone Maven Embedder

2009-10-19 Thread Espen Wiborg
dreedyman writes: > Thanks for the followup. I've taken a look at m2eclipse, and I frankly > dont see any examples of how to use embedding in a standalone > way. Perhaps you can point me to specific references? > > The fundamental issue here seems to be bootstrapping the maven > environment via th

Producing archives from file sets or depency sets

2009-10-19 Thread zakmck
Hi all, I'd like to use the assembly plug-in to create a project like this: app.zip run.sh util.sh README app.jar Where app.jar will contain all the needed java classes (the ones picked by dependencySet). Is that possible? In the descriptor specification, there isn't anything like to

Re: A maven/nexus repos manager/missing dependency question

2009-10-19 Thread Quintin Beukes
Try adding the commons-lang dependency. Quintin Beukes On Sun, Oct 18, 2009 at 10:34 PM, Sean Davis wrote: > I have been using maven pretty successfully for low-end java > programming--I'm not much of a developer.  I have finally convinced a few > folks to potentially work with me on some proj

Re: Two projects in eclipse together

2009-10-19 Thread Manuel Grau
I think the best option is creating a modular project. Then, you can importa modules as eclipse projects. Try this, I think this must work. 2009/10/19 taffb > > Hello, > I’m sure this is quiet easily answered I’m just missing something pretty > trivial. > > I have two projects in eclipse “Projec

Two projects in eclipse together

2009-10-19 Thread taffb
Hello, I’m sure this is quiet easily answered I’m just missing something pretty trivial. I have two projects in eclipse “ProjectA” and “ProjectB”. ProjectA produces a .jar. ProjectB produces a .war. However the .war from project requires the .jar from ProjectA. I added the .jar as a dependency i

Re: Maven and Eclipse (WTP)

2009-10-19 Thread Jason van Zyl
On 2009-10-18, at 8:52 PM, Damon Silver wrote: Off-topic: On that note, I've tried half a dozen times to subscribe to the M2Eclipse Users list via the link on that page to no avail. Is there some other avenue to use instead, or someone who has to be notified that the subscription link i