Re: JAR inside JAR

2009-07-22 Thread Thomas Scheffler
Am Dienstag 21 Juli 2009 17:10:38 schrieb 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

Re: JAR inside JAR

2009-07-22 Thread Dan Tran
beside assembly, you should be able to copy a jar into the main jar after at package phase using truezip-maven-plugin 2009/7/21 Thomas Scheffler thomas.scheff...@uni-jena.de: Am Dienstag 21 Juli 2009 17:10:38 schrieb Wayne Fay: I have to provide a jar file (java applet) inside the jar file

Re: help with multi-module build

2009-07-22 Thread Nicholas Tung
On Tue, Jul 21, 2009 at 10:47 PM, Nicholas Tung gatoatigr...@gmail.comwrote: On Tue, Jul 21, 2009 at 10:21 PM, David C. Hicks dhi...@i-hicks.orgwrote: 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.

maven scala plugin troubles -- scalac compiler plugin

2009-07-22 Thread Nicholas Tung
Hi David and Josh, I'm having some trouble with the maven scala plugin; it doesn't seem to be setting the -Xplugin line correctly when I try to build a project [1]. The configuration passed to the maven-scala-plugin is [2]. I'm running $(mvn install -Dmaven.scala.displayCmd=true). Feel

help with maven-dependency-plugin

2009-07-22 Thread Thomas Scheffler
Hi, I am using the maven-dependency-plugin to build a big jar file out of direct dependencies (code below). If that big jar file is a dependency of another project all direct dependencies are also copied over. I just want to copy the transitive dependencies of the big jar file. I tried to

Re: help with maven-dependency-plugin

2009-07-22 Thread Nicholas Tung
2009/7/21 Thomas Scheffler thomas.scheff...@uni-jena.de Hi, I am using the maven-dependency-plugin to build a big jar file out of direct dependencies (code below). If that big jar file is a dependency of another project all direct dependencies are also copied over. I just want to copy the

Re: help with maven-dependency-plugin

2009-07-22 Thread Thomas Scheffler
Am Mittwoch 22 Juli 2009 09:13:49 schrieb Nicholas Tung: 2009/7/21 Thomas Scheffler thomas.scheff...@uni-jena.de Hi, I am using the maven-dependency-plugin to build a big jar file out of direct dependencies (code below). If that big jar file is a dependency of another project all

RE: Putting instrumented classes on the classpath

2009-07-22 Thread lvdpal
Because I'm still looking for a solution to this prolem. It's such a shame to use Sonar when having tests and not getting any code coverage. lvdpal wrote: Nobody else has any ideas? -- View this message in context:

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

2009-07-22 Thread Jonathan Woods
Perhaps you need to tell Maven how to get to your proxy: http://maven.apache.org/guides/mini/guide-proxies.html Jon -Original Message- From: ykyuen [mailto:yingkity...@gmail.com] Sent: 22 July 2009 05:53 To: users@maven.apache.org Subject: RE: the nexus repositories only show

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

2009-07-22 Thread ykyuen
Jonathan Woods wrote: Perhaps you need to tell Maven how to get to your proxy: http://maven.apache.org/guides/mini/guide-proxies.html Jon i did set it the proxy in the settings.xml too... both /etc/maven2/settings.xml and the /home/user/.m2/settings.xml Regards, Kit -- View this

Excluding Build Resources Within POM File

2009-07-22 Thread Gadbury
Hi all, I am temporarily trying to exclude various packages and source files from my web-app's build process. I first tried in Eclipse: right click package/file build path exclude. That doesn't work. I then tried adding build resources excludes to my POM. Unfortunately, despite trying a

RE: Excluding Build Resources Within POM File

2009-07-22 Thread Jonathan Woods
This should do the trick: http://www.mailinglistarchive.com/users@maven.apache.org/msg21096.html In other words, you need to supply the Maven compiler plugin with the appropriate configuration. The build/resources node you configured corresponds to resources per se, i.e. not to Java sources.

Re: Excluding Build Resources Within POM File

2009-07-22 Thread Gadbury
Thank you Jon for the clarification. For reference, here's what I did to get it working (excludes three packages and a source file): project build finalNamemyWebApp/finalName plugins plugin

Fwd: Application Period for Travel Assistance to ApacheCon US 2009 Opens Soon

2009-07-22 Thread Vincent Siveton
The Travel Assistance Committee is taking in applications for those wanting to attend ApacheCon US 2009 (Oakland) which takes place between the 2nd and 6th November 2009. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon US 2009 who may need some

Define a special JDK for compilation

2009-07-22 Thread Roman Kournjaev
Hi Guys Do you know where do i adjust the JDK for maven specially ? I know that maven takes the JAVA_HOME as a default, but i have a problem with that , i want it to take a special javac from some other JDK. Thanks Roman

RE: Putting instrumented classes on the classpath

2009-07-22 Thread Mohan KR
You have to give more information? I have looked at the thread..but if you were using the cobertura-maven-plugin and just have the intstrument goal, it *WILL* put the instrumented classes in the classpath. (i.e. classes/* will be redirected to generated-classes/*). Since plugin ordering varies

RE: Putting instrumented classes on the classpath

2009-07-22 Thread lvdpal
Thanks, this at least gives me a hint where to start looking. mkr wrote: You have to give more information? I have looked at the thread..but if you were using the cobertura-maven-plugin and just have the intstrument goal, it *WILL* put the instrumented classes in the classpath. (i.e.

RE: Define a special JDK for compilation

2009-07-22 Thread Jonathan Woods
Assuming you mean you want to specify a particular javac for Maven to use when compiling code... compilation is carried out (by default) by the Maven compiler plugin, so it's this you need to configure. Details on configuring it to use a specific JDK are given here:

Source dependency problem between ejb-jar and gwt-war

2009-07-22 Thread Rutton
Hello, I ran into a difficulty with compiling and/or packaging a gwt/remoting/ejb application for jboss. What I have is the following: A main project (pom) - a subproject jar (java-server code packaged into an ejb-jar) - a subproject war (gwt-generated code, packaged into a

Re: Define a special JDK for compilation

2009-07-22 Thread Roman Kournjaev
Thanks!! I forgot the compilation-plugin !! On Wed, Jul 22, 2009 at 4:42 PM, Jonathan Woods jonathan.wo...@scintillance.com wrote: Assuming you mean you want to specify a particular javac for Maven to use when compiling code... compilation is carried out (by default) by the Maven compiler

Re: Source dependency problem between ejb-jar and gwt-war

2009-07-22 Thread nicolas de loof
A gwt lib MUST include the sources and a a gwt.xml module descriptor Any hack of using some java sources from another project just for convenience is ... just a hack ! 2009/7/22 Rutton rut...@web.de Hello, I ran into a difficulty with compiling and/or packaging a gwt/remoting/ejb

Re: Source dependency problem between ejb-jar and gwt-war

2009-07-22 Thread Rutton
Hi, nicolas de loof wrote: A gwt lib MUST include the sources and a a gwt.xml module descriptor Any hack of using some java sources from another project just for convenience is ... just a hack ! I am of course not just using the java sources. The generated jar-file *contains* the

RE: Putting instrumented classes on the classpath

2009-07-22 Thread Mohan KR
np..I will have to reword that, it will redirect the project.build.outputDirectory from target/classes to target/generated-classes/cobertura. If the plugins are doing the correct thing when constructing the classpath, they should use the property project.build.outputDirectory. Thanks, mohan kr

Re: maven scala plugin troubles -- scalac compiler plugin

2009-07-22 Thread Josh Suereth
Does your scalac plugin depend on any other plugins? If you can point me towards a repository holding your scalac plugin, I can create an integration test for this use case. I'm adding it to the list of known issues. - Josh On Wed, Jul 22, 2009 at 2:43 AM, Nicholas Tung

Re: Source dependency problem between ejb-jar and gwt-war

2009-07-22 Thread nicolas de loof
The plugin has a resource goal that can detect the necessary gwt source code to include (based on gtw.xml module file), and avoid your jar to contain ALL server-side code 2009/7/22 Rutton rut...@web.de Hi, nicolas de loof wrote: A gwt lib MUST include the sources and a a gwt.xml module

Re: is there a way to run junit to display method names on success?

2009-07-22 Thread Roger Pack
I'm kind of at a loss as to how to make junit a little more verbose (sorry to ask a question not specifically maven related, but I hoped someone might have a clue). i'm looking for an output like running test a: success running test b: success that type of thing. Looks like

Issues with maven jar plugin and artifact naming

2009-07-22 Thread Larry Suto
- # Hi I am building a jar and a war in in the same pom and having some naming issues. I have a separate execution for the jar plugin so the jar is generated in addition to the war. When I run mvn install the produced jar gets renamed to IPEsvc-2.4-agent.jar. I would like it to actually

Re: maven scala plugin troubles -- scalac compiler plugin

2009-07-22 Thread Nicholas Tung
The problem is that my scala plugin project has additional dependencies. These are added to pluginClassPath, but then you only add the first element from pluginClassPath (why the first? this seems a bit arbitrary). If you wouldn't mind fixing this (in github master), I'd appreciate it very much.

Re: Release-Plugin remote- Tagging

2009-07-22 Thread Danny Schimke
Hello Stefan! Yeah, I knew, that the release is based on the working copy, which have to be clean. We've had a bugusing the release plugin (look at http://jira.codehaus.org/browse/SCM-406) On http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.htmlthere is a remoteTagging parrameter

RE: Release-Plugin remote- Tagging

2009-07-22 Thread Todd Thiessen
Your initial thoughts regarding what remoteTagging does is correct. ie: the tag is created from the remote scm version, not from your checkout. --- Todd Thiessen 2009/7/16 Danny Schimke schimk...@googlemail.com: Does remote- Tagging meant, that the (SVN-) Trunk- version is used

Re: Release-Plugin remote- Tagging

2009-07-22 Thread Danny Schimke
Ahh, ok! Thanks Todd! Thats what I wanted to know! Thanks to Stefan too! -Danny Schimke 2009/7/22 Todd Thiessen thies...@nortel.com Your initial thoughts regarding what remoteTagging does is correct. ie: the tag is created from the remote scm version, not from your checkout. --- Todd

Re: Release-Plugin remote- Tagging

2009-07-22 Thread Stefan Hübner
OK, I wasn't aware of this new remoteTagging-Feature. sounds helpful, though. Todd Thiessen thies...@nortel.com writes: Your initial thoughts regarding what remoteTagging does is correct. ie: the tag is created from the remote scm version, not from your checkout. --- Todd Thiessen

quick question: remove bin-dir.timestamp on mvn clean

2009-07-22 Thread Nicholas Tung
Hi all, Does anyone know how to remove the build-dir.timestamp on mvn clean? If I don't, it doesn't rebuild Scala files. thanks, Nicholas https://ntung.com

quick question: set version for deploy

2009-07-22 Thread Nicholas Tung
Hi all, Is there a way to set the version for the mvn deploy command? I tried -Dversion=version, and -Dproject.version=version, and that didn't do anything. Alternately (maybe even better), is there a command line to bump [set] the version number in a project and all modules? I see there is

Re: maven scala plugin troubles -- scalac compiler plugin

2009-07-22 Thread Josh Suereth
Hey, I just go this email. I'll make the patch and commit shortly. Thanks for the submission! There's still some mismatch since we re-built the scala-tools.org server, so the maven-scala-plugin nightlies are not getting published. I'm going to try to resolve that shortly. - Josh On Wed, Jul

Re: quick question: set version for deploy

2009-07-22 Thread David C. Hicks
The version is normally bumped by the maven-release-plugin. The typical release process would look like: mvn release:prepare mvn release:perform In general, the whole process does several things: change the version from SNAPSHOT to a release form, build your code to make sure it will build and

Re: quick question: set version for deploy

2009-07-22 Thread David Hoffer
Yeah, I too highly recommend the release plugin. It is ideal for going from snapshots to a final veresion. I can't amagine doing it all manually. Dave Hoffer - sent via G1 On Jul 22, 2009 8:06 PM, David C. Hicks dhi...@i-hicks.org wrote: The version is normally bumped by the

Re: maven scala plugin troubles -- scalac compiler plugin

2009-07-22 Thread Nicholas Tung
On Wed, Jul 22, 2009 at 7:00 PM, Josh Suereth joshua.suer...@gmail.comwrote: Hey, I just go this email. I'll make the patch and commit shortly. Thanks for the submission! There's still some mismatch since we re-built the scala-tools.org server, so the maven-scala-plugin nightlies are not

Re: maven scala plugin troubles -- scalac compiler plugin

2009-07-22 Thread Josh Suereth
It's used in several locations. Anyway, your fix is committed on the master. I'm working on adding support for transitive dependencies now. - Josh On Wed, Jul 22, 2009 at 10:49 PM, Nicholas Tung gatoatigr...@gmail.comwrote: On Wed, Jul 22, 2009 at 7:00 PM, Josh Suereth