Re: How can I generate a POM file for dependency?

2008-04-14 Thread youhaodeyi
I want to download these jars from remote reposiroty and then generate POM automatically. The method you mensioned is to installed the jar by hand. I don't want to do that since the jars already exist in remote repository just without POM file. Chris_Graham wrote: > > For instance: > > mvn in

Re: How can I generate a POM file for dependency?

2008-04-14 Thread Chris_Graham
For instance: mvn install:install-file -Dfile=doccheck.jar -DgroupId=com.sun.tools.doclets -DartifactId=doccheck -Dversion=1.2b2 -Dpackaging=jar -DgeneratePom=true -Chris youhaodeyi <[EMAIL PROTECTED]> wrote on 15/04/2008 15:42:28: > > Some dependencies downloaded by Ma

How can I generate a POM file for dependency?

2008-04-14 Thread youhaodeyi
Some dependencies downloaded by Maven would not contain POM file, so every time I run Maven compile, it will try to get the POM file from remote repository. How can I generate a POM file for them? -- View this message in context: http://www.nabble.com/How-can-I-generate-a-POM-file-for-dependency

Re: Multiple CPUs

2008-04-14 Thread James William Dumay
Jorg, The local repository is not accessed in a non-transactional method. This means that two processes (or multiple threads for that matter) can try to write data to the same location on the file system or try to read/write to a file that is not yet complete. There is a proposal to fixing this:

Re: OutputDirectory Paths in the Assembly Plugin

2008-04-14 Thread Andrew Hughes
outputDirectory is actually part of the fileset :) my bad. geoserver-data zip src/main/config true . . On Tue, Apr 15, 2008 at 10:10 AM,

OutputDirectory Paths in the Assembly Plugin

2008-04-14 Thread Andrew Hughes
Hi All - Any help I can get with zip assembly would be much appreciated :) I'm trying to zip up everything in the ./src/main/config directory for a distro. I'm happy that when the zip is unpacked it unpacks the contents under.. ./artifactId-version/* However, it maintains the relative ./src/ma

Re: Definitive Guide - is it real?

2008-04-14 Thread Jason van Zyl
Ok, maybe not. http://blogs.sonatype.com/book/2008/04/14/120817710.html I am an optimist. I still think you could do a simplified book with a wiki markup. On 14-Apr-08, at 12:38 PM, Jason van Zyl wrote: How hard it would be to have things work would be as simple as Tim giving us a page

RE: POM variables not expanded in resulting poms

2008-04-14 Thread Brian E. Fox
The properties are not expanded when sent to the repository because if they were then it would break inheritance when projects used that pom from the repo. There would no longer be any properties for people to inherit and override. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Yeah, I follow you. I ended up using the reference info on the jar-with-deps plugin to build the assembly file. The paths are netbeans' default, not mine. Their otherwise-decent tools create them in those places automatically. No point in fighting the system that hard. On Mon, Apr 14, 2008 at

Re: changing location of site.xml

2008-04-14 Thread Wayne Fay
You should specify a version of the site plugin to make sure you're using the version you think you are. But I agree with Jason and think this is generally a bad idea. Wayne On 4/14/08, Dmitry Beransky <[EMAIL PROTECTED]> wrote: > we don't follow maven's suggested project layout. > > On Mon, Apr

Re: changing location of site.xml

2008-04-14 Thread Dennis Lundberg
Dmitry Beransky wrote: Hi, Does anyone know what the deal is with this bug: ? It's marked as resolved, but in version 2.0.7 I still cannot change the location of site.xml from the default of "src/site". This is handled by the site plugin. Plugins have

Re: maven-buildnumber-plugin question

2008-04-14 Thread Wayne Fay
Realistically you would need to put this in a profile and activate it when you need to (which just so happens to coincide with calling "mvn package"). So you would call "mvn compile" or "mvn test" and then when you want to increment the number, you'd call "mvn package -Pincrement" or whatever. Wa

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Wayne Fay
You should be able to do all of this generally with the jar-with-dependencies configuration in the assembly plugin. Looking at your assembly descriptor, your .groovy, .properties, and .png files should not be in src/main/java but rather src/main/resources. Then they would have been packaged automa

POM variables not expanded in resulting poms

2008-04-14 Thread Alessandro.Evangelista
I am trying to set the version of my projects using a property defined on the maven command line. Please see below for examples. The resulting .pom installed in the repository still contains the reference to my variable 'productVersion'. Should not the variable reference be expanded to its

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Thank you too for the quick response. Trust me, I've RTFMd for the last 4 days on this. The documentation is great if you already know what you want to do. If you don't then you spend 4 days digging, pulled along with the feeling that it's as simple as the documentation and experts imply. I got

Re: Definitive Guide - is it real?

2008-04-14 Thread Jason van Zyl
How hard it would be to have things work would be as simple as Tim giving us a page that expresses all features in docbook that we need for making the book. Once we have that we can figure out what might need to be added to Doxia. Additions would be fine, changes that bust things not fine.

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Manos Batsis
Lally Singh wrote: Thanks for the quick response. I tried it, but I couldn't figure out how to: 1. Get my .class files in there either. 2. Set up the manifest. Here a sample conf we use that tell the plugin to: 1: Put all class files in one jar (including classes from dependencies) 2: Set the

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Thanks for the quick response. I tried it, but I couldn't figure out how to: 1. Get my .class files in there either. 2. Set up the manifest. Here's what I've got so far: dist false jar target/classes *.

Re: Making a Jar for a launchable Swing app

2008-04-14 Thread Wayne Fay
You should just use the assembly plugin directly. It can produce jars and was really created for this kind of use case. You might want to think about shading the dependency classes, too. Wayne On 4/14/08, Lally Singh <[EMAIL PROTECTED]> wrote: > Hey all, a few questions. > > I'm trying to build

Making a Jar for a launchable Swing app

2008-04-14 Thread Lally Singh
Hey all, a few questions. I'm trying to build a swing application that I can launch from java -jar. Setting Main-Class is pretty well documented from my googling. However, including .properties and a few other important file types (some groovy scripts) is troublesome. If I add any sort

Re: maven2 assembly plug-in

2008-04-14 Thread tadamski
within the configuration tags where you setup the assembly plugin, use the name Urooj Khan wrote: > > Sorry if this is a repost... Not sure if the first one got out... > > > > -- Forwarded message -- > From: Urooj Khan <[EMAIL PROTECTED]> > Date: Thu, 27 Mar 2008 20:04:24 -0

[Fwd: Regex in ]

2008-04-14 Thread mavenmailinglists
Oops. Sorry. Wrong list. I was using antrun and wasn't thinking. Original Message I would like to fail if certain files make it into my build (failing on "outlawed" dependencies). I've experimented with path regex expressions with , such as the following:

Re: AspectJ and M2Eclipse

2008-04-14 Thread Felipe Kamakura
Sorry for the delay. I issue is http://jira.codehaus.org/browse/MNGECLIPSE-550 []s On Tue, Mar 25, 2008 at 12:51 AM, Eugene Kuleshov <[EMAIL PROTECTED]> wrote: > > > Felipe Kamakura wrote: > > > > I have a problem concerning AJDT and the M2Eclipse plugin I hope someone > > can > > help me with t

Regex in

2008-04-14 Thread mavenmailinglists
I would like to fail if certain files make it into my build (failing on "outlawed" dependencies). I've experimented with path regex expressions with , such as the following: filepath="${basedir}/target"/> The file abc.jar is in the buil

maven-buildnumber-plugin question

2008-04-14 Thread Mark-E
Hello, I am using version 0.9.6 of this plugin and I have a question. As I currently have the plugin setup, using the phase of , when I run a mvn compile, it incrememnts the number. I only want the build number to increment if I run a mvn package. Now I looked at setting the phase to but it bu

Re: maven-javadoc-plugin failure

2008-04-14 Thread Trenton D. Adams
Thanks Brett. On Sun, Apr 13, 2008 at 1:46 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > You need to tell the javadoc plugin that you are using source level 1.4: > http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html#source > > Cheers, > Brett > > On 12/04/2008, Trenton D. Adams <[E

Re: Definitive Guide - is it real?

2008-04-14 Thread Manfred Moser
Tim O'Brien wrote: > > Now, there's an idea > brewing out there about creating some good roundtrip tools from doxia > markup to docbook and then back again. If we ever see that, then I > think that's going to be the thing that people migrate to, but I can't > wait for that to materia

RE: Definitive Guide - is it real?

2008-04-14 Thread Manfred Moser
Brian E Fox wrote: > > Maybe we should add a chapter to the book to show how to make the book? > That would be awesome -- View this message in context: http://www.nabble.com/Definitive-Guide---is-it-real--tp16656704s177p16682177.html Sent from the Maven - Users mailing list archive at Nabb

RE: Packaging of test-jar

2008-04-14 Thread Jason Chaffee
You can you "-Dmaven.test.skip.exec=true" or "-DskipTests" instead of "-Dmaven.test.skip=true" and it will still be created. -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 4:14 AM To: Maven Users List Subject: Re: Packaging of test-jar

Re: changing location of site.xml

2008-04-14 Thread Dmitry Beransky
we don't follow maven's suggested project layout. On Mon, Apr 14, 2008 at 9:38 AM, Jason van Zyl <[EMAIL PROTECTED]> wrote: > Why would you want to? > > You just make it harder for anyone new to a project to understand where all > the resources for a project are. You can override it, but what rea

Re: changing location of site.xml

2008-04-14 Thread Jason van Zyl
Why would you want to? You just make it harder for anyone new to a project to understand where all the resources for a project are. You can override it, but what real value is there in it? On 14-Apr-08, at 9:14 AM, Dmitry Beransky wrote: Hi, Does anyone know what the deal is with this bug

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 Dan Tran
big +1. On Mon, Apr 14, 2008 at 8:23 AM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > Maybe we should add a chapter to the book to show how to make the book? > > > -Original Message- > From: Manfred Moser [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2008 12:14 AM > To: users@maven.apac

changing location of site.xml

2008-04-14 Thread Dmitry Beransky
Hi, Does anyone know what the deal is with this bug: ? It's marked as resolved, but in version 2.0.7 I still cannot change the location of site.xml from the default of "src/site". Here's my configuration: org.apache.maven.plugins

RE: Definitive Guide - is it real?

2008-04-14 Thread Brian E. Fox
Maybe we should add a chapter to the book to show how to make the book? -Original Message- From: Manfred Moser [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 12:14 AM To: users@maven.apache.org Subject: Re: Definitive Guide - is it real? Jason van Zyl-2 wrote: > > > Right, t

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

Re: build times doubled moving from 2.0.8 to 2.0.9

2008-04-14 Thread deckrider
As it turns out this was an unfortunate convergence of our mount point becoming 95% full at the same time we upgraded to 2.0.9 on a host that we could not isolate for performance testing. Maven is great! On Fri, Apr 11, 2008 at 9:30 AM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > Doubled in what co

Re: Packaging of test-jar

2008-04-14 Thread Dirk Olmes
VUB Stefan Seidel wrote: The test-jar is not built when tests are skipped. That's only true for maven-surefire-plugin versions < 2.4. If you use -DskipTests now, test-jar will be built. For older versions you could still compile using -Dmaven.test.skip.exec=true to have the test-jar built b

Re: Svn relocate after release?

2008-04-14 Thread Clifton
On the contrary, what about when we need to cut a release of an earlier build for QA? In other words, they spot an error in our current build and want to see if the same issue occurs in an earlier build. In this case we wouldn't make any changes, we'd only want the build as-is. It could be argued

Re: Multiple CPUs

2008-04-14 Thread Jorg Heymans
On Mon, Apr 14, 2008 at 12:46 PM, Stephen Connolly < [EMAIL PROTECTED]> wrote: > many problems (as the local repo is not designed to be accessed by > multiple > threads concurrently) to leave it on by default. The option is still > there > in the Advanced tab for the m2 project type. > Does anyo

Re: Maven and Ant

2008-04-14 Thread Graham Leggett
amidrunk wrote: I need to use maven's ant tasks from an ant file called by maven. I use the maven-antrun-plugin to call the ant file, and then I use the ant file to copy maven dependencies into a folder. The ant file works on its own, but when called from maven, I get a class loader problem or s

Maven and Ant

2008-04-14 Thread amidrunk
Hi, I need to use maven's ant tasks from an ant file called by maven. I use the maven-antrun-plugin to call the ant file, and then I use the ant file to copy maven dependencies into a folder. The ant file works on its own, but when called from maven, I get a class loader problem or something; org

Re: Packaging of test-jar

2008-04-14 Thread VUB Stefan Seidel
The test-jar is not built when tests are skipped. Stefan James Clinton wrote: A module (B) isn't compiling because maven is skipping the packaging of test-jar in a dependant module (A). test-jar The goal above if declared as part of the profile in the module (A) but Skipping packaging

Re: Multiple CPUs

2008-04-14 Thread Stephen Connolly
Hudson originally had this parallelisation for module builds but hit too many problems (as the local repo is not designed to be accessed by multiple threads concurrently) to leave it on by default. The option is still there in the Advanced tab for the m2 project type. It can give significantly fa

Packaging of test-jar

2008-04-14 Thread James Clinton
A module (B) isn't compiling because maven is skipping the packaging of test-jar in a dependant module (A). test-jar The goal above if declared as part of the profile in the module (A) but Skipping packaging of the test-jar is always outputted. Advice appreciated. J

Re: Multiple CPUs

2008-04-14 Thread dimitris kapanidis
hi, I totally agree about parallizing the build process of unrelated artifacts. my 5cents on this one: I imagine a not so distant future were I can tell my continuous integration system that I want to build a maven project on a cluster. Maven (or the CI) should be able to separate unrelated arti

Re: Generate two wars from a single module

2008-04-14 Thread Michael
Don Brown wrote: I'd like to be able to generate two wars from a single Maven 2 module. Each war contains the same files, only I'd like to apply a different set of properties to the resource filtering. I hoped it would be as easy as defining two war plugins, each with a different classifier and

Generate two wars from a single module

2008-04-14 Thread Don Brown
I'd like to be able to generate two wars from a single Maven 2 module. Each war contains the same files, only I'd like to apply a different set of properties to the resource filtering. I hoped it would be as easy as defining two war plugins, each with a different classifier and filtering properti