Re: Release-Plugin remote- Tagging

2009-07-21 Thread Stefan Hübner
Hi Danny, you're probably talking about the maven-release-plugin, right? what do you mean by remote tagging specifically? During prepare the plugin forces the user to have a clean working copy, i.e. no uncommited changes. If the working copy is clean, it modifies POM by increasing version

JAR inside JAR

2009-07-21 Thread Thomas Scheffler
Hi, I am migrating a larger project from ant to maven 2. The resulting JAR file has to be in a specific structure. At the moment I am almost done. One thing is still missing: I have to provide a jar file (java applet) inside the jar file that is compiled against jdk 1.4 while the project

Re: build.plugins.plugin.dependencies nonsense

2009-07-21 Thread Brian Fox
Use a property instead. The plugin dependencies don't pick up a version from the depMgt because depMgt is about building your project and your classpaths, the plugin dependencies are about overriding a plugin's classpath...two very distinct things. 2009/7/20 jieryn jie...@gmail.com: Greetings,

RE: Maven2 ignoring environment variables

2009-07-21 Thread D. Kautz
We have experience the same thing. We are using arguments to categorize our unit tests. This has stopped working when we upgraded to 2.2.0. Anyone have a workaround? Guba, Nicolai wrote: Hmmm, we noticed that passing any args like mvn -Dblah=didah works fine up to 2.0.9, but is

RE: Surefire/Cobertura roll-up reports?

2009-07-21 Thread Mohan KR
That's correct, depending on how you are invoking the cobertura, you will see that. Basically the cobertura goal is going to invoke a parallel lifecycle that will run the test. It is easy to modify the plugin to do what you want, if you don't then someone has done it for you:

Re: JAR inside JAR

2009-07-21 Thread Thomas Scheffler
Am Dienstag 21 Juli 2009 13:44:50 schrieb Thomas Scheffler: Hi, I am migrating a larger project from ant to maven 2. The resulting JAR file has to be in a specific structure. At the moment I am almost done. One thing is still missing: I have to provide a jar file (java applet) inside the

the nexus repositories only show .index and .meta

2009-07-21 Thread ykyuen
hi all, i just installed the nexus 1.3.6 to my ubuntu. everything works fine except when i browse the repositories such as Public Repositories only 2 folders named as .meta and .index are shown... the ubuntu is behind a firewall in the network and i have already set the proxy setting in nexus.

Re: JAR inside JAR

2009-07-21 Thread Wayne Fay
I have to provide a jar file (java applet) inside the jar file that is compiled against jdk 1.4 while the project itself is 1.5. The applet contains a subset of the classes of the whole project. What classloader are you using that allows you to embed a Jar inside another Jar? As far as I am

Re: JAR inside JAR

2009-07-21 Thread Mick Knutson
Oracle BPEL MANDATES this did this via an Ant task and it works fine. Oracle BPEL was on jdk 1.5 --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com

yui-compressor plugin: config-option to preserve comments + license text

2009-07-21 Thread aldana
hi, looking at http://alchim.sourceforge.net/yuicompressor-maven-plugin/compress-mojo.html I cannot find an option to preserve javascript or css comments (for licensing info reasons). has somebody found a way to preserve this info? thanks. - manuel aldana aldana((at))gmx.de

RE: the nexus repositories only show .index and .meta

2009-07-21 Thread Jonathan Woods
Have you tried 'by hand' to make HTTP requests from your Ubuntu box? E.g. wget http://repo1.maven.org/maven2/org/apache/commons/commons-email/1.1/commons-e mail-1.1.pom Jon -Original Message- From: ykyuen [mailto:yingkity...@gmail.com] Sent: 21 July 2009 15:36 To:

Creating multiple artifacts for a single project

2009-07-21 Thread Chetan Sarva
Hi, I've got a single pom.xml from which I want to create multiple artifacts. I want to package the source as a JAR (so other projects can mark it is as a dependency) as well as a WAR for deploying directly. I'm able to create 2 packages currently, but when I try to include the JAR into another

RE: Maven2 ignoring environment variables

2009-07-21 Thread D. Kautz
I found a work around on my own. Actually in retrospect I realize that this is the Maven way to do this. The solution is to set up profiles in your POM that create the required system variables. Then just invoke the profile with the -Pprofile_id argument to Maven. We have experience the

Re: Creating multiple artifacts for a single project

2009-07-21 Thread David Weintraub
Take a look at assemblies. That will allow you to package your source in a jar or tarball. To create an assembly, you need the assembly plugin in your pom.xml, and you need to define an assembly file which describes what will be in your assembly (usually stored in /src/main/assembly. Optionally,

Simple GWT compile problem

2009-07-21 Thread Yaakov Chaikin
Hi, I am trying to get a very simple GWT project to gwt-compile using the codehaus' maven-gwt plugin but I don't seem to be having much success... The project is nothing more than a regular starter GWT 1.7 (same as 1.6 plus bug fixes) Eclipse GWT plugin project. All I did after creating a new

How to create self extracting archive?

2009-07-21 Thread Chris Helck
Assembly plugin is very nice, but I need to add one more step. Once I have the package.tar.gz file, I need to create a new file, which in Linux I would do as: cat extract.txt package.tar.gz package.sh chmod a+x package.sh The file 'extract.txt' is my code to support self extracting archives

Re: How to create self extracting archive?

2009-07-21 Thread Jeff MAURY
Have a look at the appassembler maven plugin from codehaus Jeff maury 2009/7/21, Chris Helck chris.he...@us.icap.com: Assembly plugin is very nice, but I need to add one more step. Once I have the package.tar.gz file, I need to create a new file, which in Linux I would do as: cat

Re: Simple GWT compile problem

2009-07-21 Thread Yaakov Chaikin
Well, if anyone cares, I figured out the problem.. The problem was that by specifying warSourceDirectorywar/..., I forced maven to copy all the files from the 'war' directory into the target directory. That's great and what I want, but it also copied files in the uncompiled 'szblankweb' module.

Re: Problem with web service and WTP in Maven multimodule project

2009-07-21 Thread stug23
Thanks for the tip! I just back to working on this project and have now come up with a solution, at least partially inspired by your suggestion. I did try the approach you recommended initially after reading your reply. However after working through the problem, I ended up with a different

Adding groupid to the maven release plugin's scm tag

2009-07-21 Thread Nau, Mike
Hi All, I'm looking into adding the artifact groupid to the scm tag created by the maven release plugin during the release:prepare goal. I've gotten pretty close with the following configuration: groupIdcom.foo/groupId artifactIdbar /artifactId version1.0.0-SNAPSHOT/version configuration

Re: build.plugins.plugin.dependencies nonsense

2009-07-21 Thread jieryn
Thank you for responding, Using a property mitigates the issue, but only slightly. It seems rather silly that I have declared a specific version within dependencyManagement just to have it ignored when listing a specific dependency of a specific plugin. I realize that project building is

help with multi-module build

2009-07-21 Thread Nicholas Tung
Hi all, I'm having trouble getting a multi-module project to build. What I want to do is simple: build a Scala compiler plugin (jar), and then compile the rest of the project using that. Right now, I have two proxy modules (building things in ../src), myproj-plugin and myproj-base. The

help with multi-module build

2009-07-21 Thread Nicholas Tung
Hi all, I'm having trouble getting a multi-module project to build. What I want to do is simple: build a Scala compiler plugin (jar), and then compile the rest of the project using that. Right now, I have two proxy modules (building things in ../src), myproj-plugin and myproj-base. The

Re: help with multi-module build

2009-07-21 Thread David C. Hicks
It's hard to say from your description, but it sounds like you need to do some serious restructuring of your project. Here's what I think you need to have: base-of-project/ pom.xml myproj-plugin/ pom.xml src/main/scala code goes here myproj-base/ pom.xml

RE: the nexus repositories only show .index and .meta

2009-07-21 Thread ykyuen
Jonathan Woods wrote: Have you tried 'by hand' to make HTTP requests from your Ubuntu box? E.g. wget http://repo1.maven.org/maven2/org/apache/commons/commons-email/1.1/commons-e mail-1.1.pom Jon i try wget

Re: help with multi-module build

2009-07-21 Thread Nicholas Tung
On Tue, Jul 21, 2009 at 9:47 PM, David C. Hicks dhi...@i-hicks.org wrote: It's hard to say from your description, but it sounds like you need to do some serious restructuring of your project. Here's what I think you need to have: base-of-project/ pom.xml myproj-plugin/

Re: Creating multiple artifacts for a single project

2009-07-21 Thread Chetan Sarva
I looked at assemblies as an option and while I think that may be possible I decided to go with a 1:1 pom-artifact ratio. I split my WAR artifact into a separate project/module which depends on the JAR created by the main module. While it feels like unnecessary overhead, having the second project

Re: help with multi-module build

2009-07-21 Thread David C. Hicks
One of the tenets of Maven is to create one artifact for each module. Combining your source in the same directory tree violates that tenet. I'm sure you can probably force Maven to do it, but it won't like it. When you specify the modules you are essentially telling Maven to look for pom.xml

Re: Creating multiple artifacts for a single project

2009-07-21 Thread David C. Hicks
Chetan Sarva wrote: While it feels like unnecessary overhead, having the second project makes things a bit more flexible in the end. You'll find that having your code split apart will also lead you down the path to better interfaces. So, that extra overhead will pay big dividends in the

Re: help with multi-module build

2009-07-21 Thread Nicholas Tung
On Tue, Jul 21, 2009 at 10:21 PM, David C. Hicks dhi...@i-hicks.org wrote: One of the tenets of Maven is to create one artifact for each module. Combining your source in the same directory tree violates that tenet. I'm sure you can probably force Maven to do it, but it won't like it. When you