Bulding multiple wars for the same artifact

2008-04-11 Thread Javier Sandino
Hi there: I have a maven web project which produces a war artifact, say foo-1.0-SNAPSHOT.war This war file contains a java properties file, foo.properties, specifying the default, deployment-specific configuration variables to be used in production: db.host=production.foo.com db.name=product

Re: Highly Available Archiva

2008-04-11 Thread Jason van Zyl
It's twice as hard then simply replicating a file system. Try in a large organization getting DBAs and the sysadmins synced up. It's just easier replicating the filesystem. Less moving parts equals better. On 11-Apr-08, at 12:39 PM, Nick Stolwijk wrote: I know Archiva is run on a JCR (JackRab

RE: How can I use a plugin SNAPSHOT version?

2008-04-11 Thread Brewster, Richard
Thanks for the replies. I was able to configure a pluginRepository for the codehaus snapshots and then Maven installed the jboss-maven-plugin snapshot. However, I needed to give a specific version number: 1.3.2-20080125.002731-6 to get it. Now, if the jboss-maven-plugin worked, I would be happie

Re: Using antrun plugin

2008-04-11 Thread Wayne Fay
I would doubt that maven.compile.classpath has the runtime-scoped deps in it. So you might want to try maven.runtime.classpath or something (unsure of the exact term). But as Michael already stated, you'll want to add it as runtime when you declare the dependency. Wayne On 4/11/08, Michael <[EMA

Re: webstart question

2008-04-11 Thread walterw
Hi Jerome, Thanks again for your reply. I split my project up into smaller projects (core, webstart, and web application). The core project contains all of the domain, manager, and service objects. The webstart project contains only those classes for the webstart application, and the same for

Re: Using antrun plugin

2008-04-11 Thread Michael
Krishnamurthi, Venkat wrote: I want this dependency as a run-time dependency. I'm using the antrun plugin to launch the application. Define it as a runtime dependency in Maven. -- OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org --

RE: Using antrun plugin

2008-04-11 Thread Krishnamurthi, Venkat
I want this dependency as a run-time dependency. I'm using the antrun plugin to launch the application. Thanks, Venkat -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 5:18 PM To: Maven Users List Subject: Re: Using antrun plugin You should prob

Re: Using antrun plugin

2008-04-11 Thread Wayne Fay
You should probably just add the jar as a dependency in your pom, just like any other dependency, and then it will be included in the compile classpath assuming you set the scope properly. Wayne On 4/11/08, Krishnamurthi, Venkat <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to append an addit

Using antrun plugin

2008-04-11 Thread Krishnamurthi, Venkat
Hi, I'm trying to append an additional jar to "maven.compile.classpath" while using the antrun plugin. How do I add a maven snapshot build jar (or any other external) to this classpath? Than

Re: Svn relocate after release?

2008-04-11 Thread Wayne Fay
Could you not set a generic dns-backed server name eg svn.corp.com and then things just work when you move servers? This would be my approach. Wayne On 4/11/08, Clifton <[EMAIL PROTECTED]> wrote: > > Should I be concerned after relocating our SVN server after a couple of > releases? We just moved

Re: Multiple CPUs

2008-04-11 Thread Simone Gianni
VELO wrote: >> On the build process itself, it has no meaning to parallelize it as you >> properly pointed out. >> >> > > May this is true on Java... > > But on flex is not. Flex compilation always use 100% on a single core > computer and never use more them 50% on multi core. > > Well, if we

Svn relocate after release?

2008-04-11 Thread Clifton
Should I be concerned after relocating our SVN server after a couple of releases? We just moved our svn server to another physical machine which of course changes the URLs. My limited knowledge of the release plugin suggests this could be a potential uh-oh if we want to release an earlier version.

Re: Highly Available Archiva

2008-04-11 Thread Wendy Smoak
On Fri, Apr 11, 2008 at 9:39 PM, Nick Stolwijk <[EMAIL PROTECTED]> wrote: > I know Archiva is run on a JCR (JackRabbit) repository. I've setup a > Jackrabbit cluster on a clustered oracle database. (So twice clustering, one > for the repo, one for the db). I think it shouldn't be too hard to implem

Re: Highly Available Archiva

2008-04-11 Thread Nick Stolwijk
I know Archiva is run on a JCR (JackRabbit) repository. I've setup a Jackrabbit cluster on a clustered oracle database. (So twice clustering, one for the repo, one for the db). I think it shouldn't be too hard to implement this with Archiva also. Hth, Nick S. Jason van Zyl wrote: Not Archiva

Re: Documentation on profile activation by property

2008-04-11 Thread Trevor Torrez
Thanks. Right after I posted that I found this as well: http://docs.codehaus.org/display/MAVENUSER/Profiles On Fri, Apr 11, 2008 at 3:19 PM, Matt Campbell <[EMAIL PROTECTED]> wrote: > I've found a little documentation and a blog posting that may be of help to > you. > > http://maven.apache.org/

Re: Documentation on profile activation by property

2008-04-11 Thread Matt Campbell
I've found a little documentation and a blog posting that may be of help to you. http://maven.apache.org/guides/introduction/introduction-to-profiles.html http://techpolesen.blogspot.com/2007/08/maven-profiles-activation-by-property.html On 4/11/08, Trevor Torrez <[EMAIL PROTECTED]> wrote: > > I

Re: Multiple CPUs

2008-04-11 Thread VELO
> > On the build process itself, it has no meaning to parallelize it as you > properly pointed out. > May this is true on Java... But on flex is not. Flex compilation always use 100% on a single core computer and never use more them 50% on multi core. Well, if we got downloads and tests multith

Documentation on profile activation by property

2008-04-11 Thread Trevor Torrez
Is there documentation available on the specifics of profile activation? I think I read somewhere that stage !test will activate a profile if the "stage" property does NOT have the value "test", but I can't remember where. Thanks -trevor

RE: assembly:assembly failure

2008-04-11 Thread Harper, Brad
I'll be glad to submit an issue and I'll look at assembly:single. Thanks for the response and suggestion. Brad > -Original Message- > From: John Casey [mailto:[EMAIL PROTECTED] > Sent: Friday, April 11, 2008 1:05 PM > To: Maven Users List > Subject: Re: assembly:assembly failure > > Ye

Re: assembly:assembly failure

2008-04-11 Thread John Casey
Yeah, it looks like we need to improve the validation of descriptors. None of the assembly mojos should really work without an assembly id. Would you mind filing an issue at: http://jira.codehaus.org/browse/MASSEMBLY? That way, you can watch/vote for the issue, and see when it gets corrected. Als

Re: Highly Available Archiva

2008-04-11 Thread Jason van Zyl
Not Archiva but Nexus where the disk uses Raid 5 which is then a network mount. The data and artifacts are shared between two instances of Nexus and they sit behind a VIP. If the primary goes down then the VIP flips over to the second instance that's running. With Nexus it's simple disk rep

Re: Repository search order

2008-04-11 Thread Jason van Zyl
This is another classic example of why using a repository manager is a good thing. You can specify repositories in one central place, and with Nexus you can order, group, and route which means you can get certain artifacts from particular repositories if you so choose. Using Nexus will also

Re: maven archiva vs. maven repo

2008-04-11 Thread Trevor Torrez
On Fri, Apr 11, 2008 at 12:33 PM, <[EMAIL PROTECTED]> wrote: > This is a very common pitfall Maven users can fall in. > > You are using a local repository as remote repository. I thought there was > some information on the maven site about the differences between remote and > local repositories

Re: embedded maven engine

2008-04-11 Thread Jason van Zyl
On 10-Apr-08, at 12:16 PM, Jan Torben Heuer wrote: Hi, Is it possible to embed the maven engine in a java program? Yes, but it is based on the trunk work. So many changes have been made in 2.1 to better enable embedding that it's not possible to easily backport it to the current release

Re: maven archiva vs. maven repo

2008-04-11 Thread Jason van Zyl
The best description of why repository managers exist and why you should use one is here: http://www.sonatype.com/book/reference/repository-manager.html# On 11-Apr-08, at 8:38 AM, Peter Horlock wrote: Hi, could anyone explain to me the difference between maven archiva and a regular maven rep

Re: Multiple CPUs

2008-04-11 Thread Simone Gianni
Hi Dana, you are absolutely right, but there are a few things Maven could do to improve speed : using multiple threads/cpus : - Maven downloads stuff. Now, since the network exists, it exists latency, and all net applications work best when multithreaded. Is maven currently parallelizing the jar do

RE: assembly:assembly failure

2008-04-11 Thread Harper, Brad
Ah, thanks. I've since found that "mvn assembly:attached" works, both from the command line and when run as part of a maven build lifecycle [with the same assembly descriptor.] Is the assembly id being inferred or derived from the project then, when running the 'attached' goal? I suggest that th

RE: maven archiva vs. maven repo

2008-04-11 Thread nicklist
This is a very common pitfall Maven users can fall in. You are using a local repository as remote repository. I thought there was some information on the maven site about the differences between remote and local repositories, but the most important one is: A local repository stores snapshots di

RE: maven archiva vs. maven repo

2008-04-11 Thread nicklist
> What's "snapshot purging"??? If you have an internal development team which uses the repository and you make a new release of a component, most of the time the snapshots for that component are no longer needed. Archiva can delete the snapshots for a specific version or after a specific amount

Re: maven archiva vs. maven repo

2008-04-11 Thread Peter Horlock
What's "snapshot purging"??? "access control (who may read/write), search for artifacts" - do you define this for each file, or just general "read" access vs general "write" access? >Archiva works as a mirror proxy, so each artifact you look up on the archiva repository, which isn't found, Archiva

Re: maven archiva vs. maven repo

2008-04-11 Thread Peter Horlock
Well, we've got Maven running on a remote server, and I set this as our maven remote server. As far as I know we don't have additional proxy or so running. So I still don't know why I would need archiva. Peter

Re: Highly Available Archiva

2008-04-11 Thread Joshua ChaitinPollak
You could try LinuxHA, or a commercial solution like ServiceGuard or SteelEye. On Apr 11, 2008, at 11:52 AM, Matthew Tordoff wrote: Hi all, Does anyone have experience in setting up Archiva in a highly available manner? What is the best considered approach for doing this? Is it possible

finding execution ids

2008-04-11 Thread Dmitry Beransky
Hi, I'm binding cargo deployment goals to the deploy phase, but when I do this, the default deploy plugin is still runs deploying the artifact to a remote repository. I don't want this behavior. As far as I understand, I need to override the existing execution binding by specifying the same execu

Highly Available Archiva

2008-04-11 Thread Matthew Tordoff
Hi all, Does anyone have experience in setting up Archiva in a highly available manner? What is the best considered approach for doing this? Is it possible to replicate deployments to a server across all other servers in a cluster? Are there any options for automatic failover? Any advice or p

RE: maven archiva vs. maven repo

2008-04-11 Thread nicklist
What do you mean by a "regular repository"? If you are using a filesystem on a server and deploying to there with mvn deploy, you virtually have an inhouse repository like archiva offers, without the management like snapshot purging, access control (who may read/write), search for artifacts. Al

Re: maven archiva vs. maven repo

2008-04-11 Thread Dennis Lundberg
We a few things written about this at: http://maven.apache.org/repository-management.html Peter Horlock wrote: Hi, could anyone explain to me the difference between maven archiva and a regular maven repository? The explanation I found on the site was pretty short - "With Archiva, you can sh

Re: maven archiva vs. maven repo

2008-04-11 Thread Mick Knutson
if you have a maven repo, you have a LOCAL repo only. Now if you have a team, and want to setup a central repo and not use all the other external repo's (maven, codehaus, apache, jboss etc...), then you can have a central remote repo yourself with maven-proxy, or archiva. On Fri, Apr 11, 2008 at

maven archiva vs. maven repo

2008-04-11 Thread Peter Horlock
Hi, could anyone explain to me the difference between maven archiva and a regular maven repository? The explanation I found on the site was pretty short - "With Archiva, you can share artifacts with other developers..." Isn't that exactly what the regular maven repository does? So why / when / w

Re: assembly:assembly failure

2008-04-11 Thread John Casey
You need to specify assembly-name inside your assembly descriptors. -john On Apr 10, 2008, at 8:34 AM, Harper, Brad wrote: Anyone have thoughts on what's behind the following error? ... [ERROR] BUILD FAILURE [INFO] -- [INFO] The assembly id null is used more than onc

RE: Looking to make internal repository externally access

2008-04-11 Thread Brian E. Fox
How you secure it depends on what you use to run your repo. If it's one of the repo managers, then you would configure security there. If it's something simple like apache, then you would add one of the many authentication modules. -Original Message- From: Mike Leonardo [mailto:[EMAIL PR

RE: build times doubled moving from 2.0.8 to 2.0.9

2008-04-11 Thread Brian E. Fox
Doubled in what context? 30 seconds to 1 minute or 30 minutes to 1 hour? The plugins in 2.0.9 have default versions now, if you haven't locked down your versions, then you potentially also upgraded several plugins at the same time. One of those could be the culprit. I wrote about this aspect of 2.0

Separating base from installation

2008-04-11 Thread Doron Solomon
Hi, I'm installing the standalone distribution of archiva and I'm trying to separate the base from the installation (as suggested in the admin guide at http://maven.apache.org/archiva/docs/1.0.2/adminguide/standalone.html). By doing so, I'm unable to start archiva, whereas I have no problems when

Re: error plugin stage

2008-04-11 Thread Dennis Lundberg
Please don't email project members directly. Use the users@maven.apache.org mailing list instead. See http://maven.apache.org/users/getting-help.html This plugin currently only supports the scp protocol for the target repository. I had a look at the docs, and it seems that this bit is missi

Re: question about changes plugin

2008-04-11 Thread Dennis Lundberg
Yes it is. Read more at http://maven.apache.org/plugins/maven-changes-plugin/usage.html There are also a ton of new features for the JIRA report in the upcoming 2.0 version. Stay tuned. Guillaume Boucherie wrote: Hi, It's possible to generate maven site report for changelog and roadmap fr

build times doubled moving from 2.0.8 to 2.0.9

2008-04-11 Thread deckrider
Using the following targets, my total build time has doubled between maven 2.0.8 and 2.0.9: release:clean clean release:prepare release:perform --batch-mode Am I the only one? Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECT

Re: How can I use a plugin SNAPSHOT version?

2008-04-11 Thread Dennis Lundberg
General instructions for using snapshot plugins can be found here: http://maven.apache.org/guides/development/guide-testing-development-plugins.html In your case you would need to replace the url of the repo to http://snapshots.repository.codehaus.org/ because the plugin you want is not in th

Re: Repository search order

2008-04-11 Thread Glynbach
My mistake, only on seeing it in html on the forum do I see I have left out the http:// Glynbach wrote: > > Hi > > I added the jboss repository to my POM to add a jta dependecy. But running > mvn test gives an error retrieving the jta jar. The error shows maven is > trying to get the jar from

Repository search order

2008-04-11 Thread Glynbach
Hi I added the jboss repository to my POM to add a jta dependecy. But running mvn test gives an error retrieving the jta jar. The error shows maven is trying to get the jar from the maven repository (which exists but has no jar in it) rather than the jboss repository. Can I stipulate which reposi

too many open files with 1.0.2

2008-04-11 Thread Jason Chaffee
With Archvia-1.0.2 running in tomcat, I am getting "too many open files" errors at least twice a day, forcing a reboot of archiva to fix the issue. When I run "lsof", I see that the database files are open more than once so I suspect a resource leak. Is anyone else seeing this?

Re: maven 2 + cargo plugin

2008-04-11 Thread VUB Stefan Seidel
Hi, in your parent project, define the pluginManagement: org.codehaus.cargo cargo-maven2-plugin ... (your configuration) redeploy

question about changes plugin

2008-04-11 Thread Guillaume Boucherie
Hi, It's possible to generate maven site report for changelog and roadmap from jira ? Thanks Guillaume B.

RE: How can I let Maven run a class before packaging

2008-04-11 Thread nicklist
I missed that one, and I think that is the best short term solution. Delicious tagged for future reference. ;) With regards, Nick S. -Original Message- From: Dirk Olmes [mailto:[EMAIL PROTECTED] Sent: Fri 4/11/2008 10:03 To: Maven Users List Subject: Re: How can I let Maven run a class

Re: How can I let Maven run a class before packaging

2008-04-11 Thread Dirk Olmes
[EMAIL PROTECTED] wrote: You could bind a plugin to the process classes phase [1] which is a phase after compile but before packaging. If your class doesn't run as a plugin, you have a few options: 1) Make a plugin, which runs your class. [2] 2) Use the antrun plugin to fire of your class [3]

Re: war overlaying

2008-04-11 Thread António Mota
But that seems such a basic functionality of the plugin that is hard to believe it's a bug and no one ever noticed... I'm going to wait to see of somebody else had the same problem, if not I'll do like you said. Thanks for your response. On 10/04/2008, Brian E. Fox <[EMAIL PROTECTED]> wrote: > >

Re: Looking to make internal repository externally access

2008-04-11 Thread Tim Kettler
Hi, for basic auth just put a element [1] with the same id as your repository definition in your settings.xml. If you want more security than just basic auth, there is a guide [2] describing authentication with client certificates over https on the maven homepage. -Tim [1] http://maven.apache.

RE: How can I let Maven run a class before packaging

2008-04-11 Thread youhaodeyi
Thanks. antrun plugin can solve my problem. Nick Stolwijk wrote: > > You could bind a plugin to the process classes phase [1] which is a phase > after compile but before packaging. If your class doesn't run as a plugin, > you have a few options: > > 1) Make a plugin, which runs your class. [2]

Re: embedded maven engine

2008-04-11 Thread Tim Kettler
Hi, there is a project called maven-embedder [1] for integrating maven in other application (IDE's ...). You also may want to have a look at two other projects that might provide what you are looking for. First there is POMStrap [1], its an application bootstrapper working with pom files. And se

RE: How can I let Maven run a class before packaging

2008-04-11 Thread nicklist
You could bind a plugin to the process classes phase [1] which is a phase after compile but before packaging. If your class doesn't run as a plugin, you have a few options: 1) Make a plugin, which runs your class. [2] 2) Use the antrun plugin to fire of your class [3] Hth, Nick S. [1] http:/