Re: Release plugin and updating a release with some fixes

2010-04-30 Thread Tim O'Brien
mvn versions:set -DnewVersion=1.1-SNAPSHOT On Fri, Apr 30, 2010 at 9:07 AM, Jan Torben Heuer wrote: > Wendy Smoak wrote: > >> If you find you need to make a fix, then you can branch from the tag >> -- in your case the version number on your branch might be >> 1.5.1-SNAPSHOT. > > How do I create

Re: Release Plugin and local working copy changes

2010-04-29 Thread Tim O'Brien
I just tested this with mvn 2.2.1 + 2.0-beta-9. It refused to run release:prepare with the following error message: [INFO] Cannot prepare the release because you have local modifications : [pom.xml:modified] What version of the release plugin are you using? On Wed, Apr 28, 2010 at 8:35 PM, M

Re: maven inheritance for multiple build executions

2010-04-26 Thread Tim O'Brien
On Mon, Apr 26, 2010 at 8:39 AM, Marshall Schor wrote: > My use case: > > I'm running the maven docbkx plugin to produce both pdf and html outputs > from multiple docbook sources. > > The docbkx plugin says to use two executions (with ids, for instance, of > "html" and "pdf", one for each of the o

Re: How to add jar file into a Maven 2 environment?

2010-04-22 Thread Tim O'Brien
Vernon, A bunch of us monitor the User mailing list referenced here: http://nexus.sonatype.org/project-information.html You can join it by sending an email here: nexus-user-subscr...@sonatype.org And the archive is here: http://nexus.sonatype.org/mailing-list-user-archives.html 2010/4/22 Vernon

Re: How to add jar file into a Maven 2 environment?

2010-04-22 Thread Tim O'Brien
1. Install Nexus like this: http://www.youtube.com/watch?v=bLskAeXivPg 2. Drop this into your ~/.m2/settings.xml http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html 3. Login into Nexus with admin/admin123, click on the 3rd party repository and upload your artifacts, he

Re: How to add jar file into a Maven 2 environment?

2010-04-22 Thread Tim O'Brien
Here's a good book on the topic: http://www.sonatype.com/books/nexus-book/reference/ 2010/4/22 Vernon : > Thanks a lot for your information. > > Where I can find a documentation on the subject (an internal Maven proxy > server)? I have a look at the maven documentation under the user center > and

Re: Some problems with Archetype Plugin

2010-04-22 Thread Tim O'Brien
atalog > from central and print connection fail error to console (we have a proxy). > Is it possible to prevent looking for catalog? I needn't to choose > archetype, I'm already know what I need. > > Best regards, > Aleksey. > > 22.04.2010 19:49, Tim O'Brien пишет:

Re: Some problems with Archetype Plugin

2010-04-22 Thread Tim O'Brien
o generate project from this archetype in this case in > linking with problems, defined below. > > Aleksey. > > > > 22.04.2010 18:46, Tim O'Brien пишет: >> >> There is no archetype in Central with the artifactId >> "magenta-basic-project" >>

Re: Some problems with Archetype Plugin

2010-04-22 Thread Tim O'Brien
There is no archetype in Central with the artifactId "magenta-basic-project" Maybe you are trying to use an internal artifact? You email is from "magenta-technology.ru", and you are attempting to reference a "com.magenta" groupId. I'd suggest contacting others in your development group to find

Re: maven-gae-plugin

2010-04-21 Thread Tim O'Brien
That's wonderful. Do you have a question? On Wed, Apr 21, 2010 at 5:32 AM, Manuel Grau wrote: > We have recently updated the plugin to use google app engine 1.3.2 > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: Compilation failure with Maven

2010-04-18 Thread Tim O'Brien
This is because of the space in your JAVA_HOME. You should use quotes, or use a a JAVA_HOME that truncates the "Program Files", like this: set JAVA_HOME=c:\progra~1\java\jdk1.6.0_20 On Sun, Apr 18, 2010 at 12:09 PM, angisad wrote: > > Hi, > I am a newbie and I am trying to compile a code source

Re: Using custom assembly descriptor from the command line

2010-04-16 Thread Tim O'Brien
You could configure the default command line execution. The following section provides an example with the Assembly plugin. Use the execution id "default-cli" http://www.sonatype.com/books/mvnref-book/reference/configuring.html#d4e3735 Also, apologies for the assembly chapter, it needs some w

Re: release:prepare ignores configuration in child of multi module project

2010-04-15 Thread Tim O'Brien
en-by-example or maven-complete-reference pdf books. > I'll file a JIRA for those two books... there "WTF is an aggregator plugin?" -> https://issues.sonatype.org/browse/MVNREF-144 > [1] http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html > > Raphael > > On

Re: release:prepare ignores configuration in child of multi module project

2010-04-15 Thread Tim O'Brien
The DefaultReleaseManager is a part of the maven-release-manager, if you look at the code in prepare(), you'll notice that it does not take preparationGoals from anything other than the root project into account.If you are looking at DefaultReleaseManager.java from the 2.0 branch the relevant l

Re: multi-module with assembly execution fail

2010-04-13 Thread Tim O'Brien
Frank, In Project C's pom.xml, use the "single" goal instead of the "assembly" goal. This should fix the problem. Tim On Tue, Apr 13, 2010 at 12:01 PM, Frank Maritato wrote: > Hi All, > > I have a multi module project and my "mvn package" command from the top > level is failing when one of my

Re: [Maven 2] Links plugins' executions

2010-04-13 Thread Tim O'Brien
On Tue, Apr 13, 2010 at 10:30 AM, Wayne Fay wrote: >> I use Maven 2 in a project and i would like to link plugin execution to the >> execution of another plugin. > > No, you cannot link plugin executions. > >> With that, I thought that execution of my id process-ant was like a phase >> process-ant

Re: [Maven 2] Links plugins' executions

2010-04-13 Thread Tim O'Brien
You have to reference an existing phase. The "process-ant' phase does not exist in the Default Maven Lifecycle. Look at the Lifecycle Reference on this page: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Build_Lifecycle_Basics On Mon, Apr 12, 2010 at 5:22 PM

Re: release process

2010-04-13 Thread Tim O'Brien
You can do whatever you need to do with versions, but this isn't really the workflow associated with the maven-release-plugin. The release plugin exists to automate the following process: Prepare 1. Take the current working copy - assume you have version 1.2-SNAPSHOT 2. Update the version numb

Re: Problem with build process of multi module web project

2010-04-10 Thread Tim O'Brien
On Apr 10, 2010, at 1:38 AM, Vijay Shanker Dubey wrote: Hi, I have a multi module web project. Four modules of the project are packaged as jar and added as dependency to the fifth module, which is packaged as war. When it is time to deploy the application i just run package on the w

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
es or not. That's the conundrum here, I see not other way than excludes to do this overlay without replacing files that already exist. The alternative would be to set staleMillis on the compiler plugin to a value that would always force a compile, but StaleSourceScanner doesn't support an

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
Fox wrote: > On Tue, Aug 4, 2009 at 3:30 PM, Tim O'Brien wrote: >> Use the excludes config property to exclude the specific files you >> don't want to overwrite. >> >> http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html >> >&g

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
Use the excludes config property to exclude the specific files you don't want to overwrite. http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html The docs on that mojo leave much to be desired. On Tue, Aug 4, 2009 at 2:10 PM, David Hoffer wrote: > Perhaps I'm not clear what yo

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
ure the compile to always overwrite? Move the copy goal that you declared to happen just after compilation. Look at the lifecycle list, I think you want "process-classes" > > -Dave > > On Tue, Aug 4, 2009 at 12:10 PM, Tim O'Brien wrote: > >> On Tue, Aug

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
On Tue, Aug 4, 2009 at 1:27 PM, Anders Hammar wrote: > Tim, > >> 4. Package, publish your new patched artifact to a repository manager >> (under a new groupId, artifactId, version). >> >> The key here is that you create a project that patches the original >> artifact and then publishes it under a d

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
n "mvn compile". Also use the -X flag to get more output. Take a look at the list of phases here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html > > Since the generate-sources phase is before compile shouldn't the compile > have over writte

Re: How to create patched artifact?

2009-08-04 Thread Tim O'Brien
On Tue, Aug 4, 2009 at 9:25 AM, David Hoffer wrote: > What is the maven way of creating a patched jar? > > I have a case where I need to apply some overrides to a binary jar which is > one of my dependencies.  I have the source code for the overrides.  So I > could create a child module with the so

Re: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Tim O'Brien
es authentication. Do whatever you want to do, but if you have to have script that populates your local repo, you need to use a repository manager. I If you use Maven, you should be using a repository manager. If you are not using a repository manager, you have to resort to shenanigans to dis

Re: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Tim O'Brien
On Thu, Jul 30, 2009 at 1:23 PM, jvsrvcs wrote: > > Thanks, the reason we are doing this is because: > > 1.  We have a lot of new programmers coming on board (10) that need to > quickly setup their local repo Use a repository manager. Distribute a settings.xml file. > 2.  Many of these programm

Re: Setting Mirror properties by profile?

2009-07-30 Thread Tim O'Brien
Upgrade your Maven installation. If you haven't upgraded to at least 2.0.9, there is no telling what issues you are going to run up against. My suggestion would be to use two settings.xml files and instead of trying to control this with a profile, just pass in different settings.xml files with th

Re: How to use mvn install but have all options in the pom.xml?

2009-07-30 Thread Tim O'Brien
You can define multiple executions. My advice is the same as Justin's, don't do this. Use a repository manager.The fact that you have to configure multiple calls to install-file means that you don't have a good way to distribute internal or third-party artifacts. On Thu, Jul 30, 2009 at 12

Re: How to install jars into local maven repo (with $mvn ) - want to configure init profile in pom.xml

2009-07-29 Thread Tim O'Brien
On Wed, Jul 29, 2009 at 6:06 PM, jvsrvcs wrote: > > > I want to create a maven profile called "init", such > that a person would type:   $mvn init This won't work, Maven has a lifecycle that consists of phases when you execute "mvn init", Maven is going to complain because there is no "init" phase

Re: exec:java problem

2009-07-15 Thread Tim O'Brien
On Wed, Jul 15, 2009 at 1:42 AM, ykyuen wrote: > > it works in windows now. > the problem is previously, i created the maven project directly in eclipse > by the m2eclipse plugin and the project is located in the workspace. > > then i try to create the project in the maven repository by the mvn > a

Re: when is relativePath used?

2009-07-14 Thread Tim O'Brien
On Tue, Jul 14, 2009 at 6:56 PM, Rusty Wright wrote: > My pom starts with > >   >       waitlist-parent >       edu.berkeley.ist.waitlist >       1.1 >       ../../waitlist-parent/pom.xml >   > > When I run maven and the inside the tags doesn't match > what's in the parent's pom, it uses the po

Re: Passing Variables at JBoss Startup

2009-07-14 Thread Tim O'Brien
On Tue, Jul 14, 2009 at 5:34 PM, daniel.green wrote: > > > Tim O'Brien wrote: >> >> You should take a look at Cargo: http://cargo.codehaus.org/ >> > Thank you for the info! Is > http://cargo.codehaus.org/Passing+system+properties what I'm looking for

Re: Passing Variables at JBoss Startup

2009-07-14 Thread Tim O'Brien
You should take a look at Cargo: http://cargo.codehaus.org/ Cargo has a Maven 2 plugin which will allow you complete control over your JBoss server. Tim On Tue, Jul 14, 2009 at 5:20 PM, daniel.green wrote: > > I would like to configure my build scripts to deploy an ear file to a remote > jboss s

Re: Parallelization and skip compilation

2009-07-14 Thread Tim O'Brien
On Tue, Jul 14, 2009 at 1:40 PM, Subramanian, N.Venkata wrote: > Hi > >          Good morning! > > > > I have couple of question which is quite critical in our current project > scenario > > > > 0) Our product is supporting around 14 platforms and our prodct code is > divided into many components a

Re: Run ANT script first

2009-07-14 Thread Tim O'Brien
When you run Maven, you usually specify a lifecycle phase such as install or package or deploy. Maven will then execute every lifecycle phase sequentially until it reaches the specified phase. If you want a full list of lifecycle phases take a look at the Maven docs here: http://tr.im/shS4 -

Re: maven spring eclipse and properties/spring config

2009-07-11 Thread Tim O'Brien
On Fri, Jul 10, 2009 at 1:54 PM, Vincent Fumo wrote: > I'm converting an old project to maven and I have a question re: spring. > This project has about 20 spring config files and it reads them all in on > startup and uses the  In addition I have 4 properties files > (local/dev/qa/prod) that I'd li

Re: dependency on artifact javax.activation:activation version 1.1.1

2009-07-11 Thread Tim O'Brien
load the remote index for the JBoss repository manager. Tim O'Brien On Sat, Jul 11, 2009 at 5:29 AM, Edelson, Justin wrote: > As to your second question, m2eclipse will only index the repositories you > tell it to. Open up the Index View and you'll se

Re: mvn assembly:assembly won't package jars and ears, but mvn package will

2009-07-10 Thread Tim O'Brien
want) >> >> The second is_one single invocation of Maven_ thus the assembly:assembly >> mojo can find the artifacts that were attached to the reactor during the >> earlier phases/mojo executions. >> >> You should always try to make sure th

Re: mvn assembly:assembly won't package jars and ears, but mvn package will

2009-07-09 Thread Tim O'Brien
David, It looks like com.solbright.adinventory.projects.base:jar:jar:2.1.2-SNAPSHOT can't be found in the local repository. Instead of running assembly:assembly by itself, try: mvn install assembly:assembly Better yet, why not just bind the assembly goal to the package phase of the project tha

RE: Cookbook

2009-07-08 Thread Tim O'Brien
Don't get me started on the Maven site, I'd like to remain on speaking terms with the Maven Developer's list. I don't believe that the Site plugin produces documentation for a few reasons. I'm currently an advocate of removing any and all pages on the Maven site that are half-finished. mgain

Re: Cookbook

2009-07-08 Thread Tim O'Brien
Peter Horlock wrote: > > Hey, Tim, > > where are you??? One year ago, you wrote and wrote and wrote for "The > definitive guide". > Now it's in Version 0.6 and not much if not nothing at all has changed > during the last months. > Also, I can't wait to see the new Maven cookbook! Maybe you got

Re: Cookbook

2009-07-08 Thread Tim O'Brien
I announced the book as an open source project (Creative Commons ND-NC-BY) in April. It took us that long to clear up some lingering questions about licensing. Here's the announcement: http://tr.im/rnDc If you want to see the code for the EN version: http://github.com/sonatype/maven-guide-en/

Re: Definitive Guide - is it real?

2008-04-14 Thread Tim O'Brien
It's in the works. I think it would be better to write a book about writing a book, but only because I wanted to write that. Tim On Apr 14, 2008, at 11:07 AM, Dan Tran wrote: big +1. On Mon, Apr 14, 2008 at 8:23 AM, Brian E. Fox <[EMAIL PROTECTED] > wrote: Maybe we should add a chapter

Re: Definitive Guide - is it real?

2008-04-14 Thread Tim O'Brien
Manfred, sorry it took me so long to respond. (I wasn't subscribed to the user list until yesterday ). On Apr 13, 2008, at 11:14 PM, Manfred Moser wrote: Jason van Zyl-2 wrote: Right, this is where the book-like features are missing from Doxia and though I would like to fix th