Running maven-sql-plugin standalone

2009-05-15 Thread SkeebZ
I have been messing around with the codehaus maven-sql-plugin and cannot get the plugin to run without binding it to a phase. (This does not work) create-schema

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-15 Thread Wayne Fay
> How on earth do you explain javax/servlet/**/*.class files appearing > in your output directory that are not in your source tree? dependency:unpack would do that. Check the pom for "odd" configuration. Also check profiles.xml in the same dir. Then check the pom's parent for odd configuration, a

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-15 Thread Ryan Connolly
Posting your pom may aid folks in assisting you better... On 5/15/09, Michael Guyver wrote: > 2009/5/15 Baptiste MATHUS : >> Well, at first sight, it seems totally normal. > > Are you sure about that? > >> So I guess this would help [to know] what command you're running, > > mvn -o compile > >> i

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-15 Thread Michael Guyver
2009/5/15 Baptiste MATHUS : > Well, at first sight, it seems totally normal. Are you sure about that? > So I guess this would help [to know] what command you're running, mvn -o compile > in which context not sure what you mean by context > and what you thought you would get my own source fil

RE: [maven 2] assembly: repository from multiple modules

2009-05-15 Thread Martin Gainty
you'll need to configure your new localRepository in $MAVEN_HOME/conf/settings.xml also config $MAVEN_HOME/conf/plugin-registry.xml to include the localRepostoryPath as defined F:\maven-plugin then your pom.xml plugins should have localRepositoryPath defined in

Re: [maven 2] assembly: repository from multiple modules

2009-05-15 Thread Brian Fox
The dependency:copy-dependencies can also produce a repository layout. Surely some combination of that plus assembly to zip it up should work. On Fri, May 15, 2009 at 3:39 PM, David Smiley @MITRE.org wrote: > > Any update to this? I've tried a bunch of combinations. I think at this > point I'm

RE: [maven 2] assembly: repository from multiple modules

2009-05-15 Thread Marilyn Sander (marilysa)
I do this by starting the build using a local repository that is completely empty to start with. At the end of the build, the local repository is completely populated with all artifacts that were downloaded from central repositories, plus artifacts that were built and installed using the "install"

Re: [maven 2] assembly: repository from multiple modules

2009-05-15 Thread David Smiley @MITRE.org
Hi; thanks for your interest. The goal is to get a zip file that internally has the structure of a maven repository containing every artifact referenced by the project. I need to do this because I need to install/develop software in an environment that does not have network access. I have a mul

Re: [maven 2] assembly: repository from multiple modules

2009-05-15 Thread Baptiste MATHUS
Reading all this didn't let me with a sense of understanding, if you see what I mean. Could you try and rephrase your need? Cheers 2009/5/15 David Smiley @MITRE.org > > Any update to this? I've tried a bunch of combinations. I think at this > point I'm going to try and hack the latest source

Re: [maven 2] assembly: repository from multiple modules

2009-05-15 Thread David Smiley @MITRE.org
Any update to this? I've tried a bunch of combinations. I think at this point I'm going to try and hack the latest source to meet my needs. ~ David Hal Hildebrand-3 wrote: > > I have a large, multiple module project that I need to create a repository > assembly for. I have no problems creat

Re: assembly plugin can find the assemblies

2009-05-15 Thread Brian Fox
try just assemble/dsitribution.xml or even better ${basedir}/assemble/distribution.xml On Fri, May 15, 2009 at 2:37 PM, emerson cargnin wrote: > I have two projects that are children of a pom type project. > When I build them alone it works fine, but if I try to build them from > the parent pom

assembly plugin can find the assemblies

2009-05-15 Thread emerson cargnin
I have two projects that are children of a pom type project. When I build them alone it works fine, but if I try to build them from the parent pom level, it tells it can't find the assemblies. This is what I have on the child pom:

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-15 Thread Baptiste MATHUS
Well, at first sight, it seems totally normal. So I guess this would help what command you're running, in which context and what you thought you would get, and if you're beginning to use maven or already have been using it for some time (to know where the resulting explanations should start). Chee

Re: Multimodule release with same version for everything and dependency version update

2009-05-15 Thread Baptiste MATHUS
True, Zac. For those who might wonder, this bug is the one that forces you to add the -DpreparationGoals="clean install" (see my previous messages) when releasing so that it finds the right version on the hd since it's currently unable to retrieve them through the reactor. Cheers. 2009/5/15 Zac

Re: system dependencies in a dependant pom

2009-05-15 Thread Fabien KRUBA
Thanks Wayne, I was my original idea but i tried to "emulate" the Eclipse/Rad Libraries concept.. even if it's not the best way On Fri, May 15, 2009 at 1:44 PM, Wayne Fay wrote: > > I wanted to create a pom (joined) project to reference Websphere > Application > > Server jars as system dependen

Re: system dependencies in a dependant pom

2009-05-15 Thread Wayne Fay
> I wanted to create a pom (joined) project to reference Websphere Application > Server jars as system dependencies as I'm not completly sure that IBM > license authorize jar share on an artifact manager. (if I was sure about > license, I put all the jars on the Artifact Manager and that's all ) A

system dependencies in a dependant pom

2009-05-15 Thread Fabien KRUBA
Hi, just noticed a strange behaviour ( maven 2.1.0) I wanted to create a pom (joined) project to reference Websphere Application Server jars as system dependencies as I'm not completly sure that IBM license authorize jar share on an artifact manager. (if I was sure about license, I put all the ja

Re: Multimodule release with same version for everything and dependency version update

2009-05-15 Thread Zac Thompson
Baptiste, it seems like you and I are trying to do very similar things. I have just got back to my efforts in this area, and I am blocked by an issue that sounds very similar to yours. I just found it in the following: http://jira.codehaus.org/browse/MNG-3023 It seems that the multi-module upda

Re: Filtering different test cases according to the profile

2009-05-15 Thread Sagara Gunathunga
any pointer for this ? On Thu, May 14, 2009 at 10:52 PM, Sagara Gunathunga wrote: > Hi all, > In my project I want to run some Test cases only with Java 1.4 , in > Java 5 I don't want to run these specific set of test cases , AFAIK I > can create two Maven profile for java 1.4 and Java 5 alo

Re: Slow maven compile after upgrading JDK from 1.5 to 1.6

2009-05-15 Thread Brian Fox
On Fri, May 15, 2009 at 8:41 AM, j_ri wrote: > > > I did some mor tests. > > First of all I tried with deactivated antivirus software. As expected this > didn't solve the problem > > What I wrote last time. That Maven builds a different classpath for JDK 1.5 > and 1.6 is only true for Maven 2

maven-compiler-plugin unpacking dependencies into target/classes

2009-05-15 Thread Michael Guyver
Hi there, I'm experiencing some very very strange behaviour in my project. The mvn compile goal is somehow generating/unpacking the following files into my target/classes directory: javax/servlet/ServletRequest.class javax/servlet/RequestDispatcher.class javax/servlet/ServletContext.class javax/s

Re: Slow maven compile after upgrading JDK from 1.5 to 1.6

2009-05-15 Thread j_ri
I finally found the source of the problem. I extracted the classpath from the maven-compiler-plugin by writing the output (-X Otion) to a log-file and generated argument files for calling javac from the commandline: javac @options.txt @classes.txt And the times are equal to maven: Very slow

scpexe verbose output (how to suppress)

2009-05-15 Thread Haroon Rafique
Hi, I'm using maven 2.0.9 on sun jdk 1.6.0_11 on a linux machine. I'm also using the maven-upload-plugin (1.1) to copy an .ear file to an external machine using the upload goal. The section of that plugin has a scpexe://server.ip/directory/path. I also have password-less ssh key-based login

Re: Slow maven compile after upgrading JDK from 1.5 to 1.6

2009-05-15 Thread j_ri
I did some mor tests. First of all I tried with deactivated antivirus software. As expected this didn't solve the problem What I wrote last time. That Maven builds a different classpath for JDK 1.5 and 1.6 is only true for Maven 2.07. Maven 2.1.0 built the same classpath with both versions

Re: SNAPSHOT for parent pom versioning

2009-05-15 Thread Anders Hammar
I think SNAPSHOTs are only updated once a day or so, not for every build. You can force it through "mvn -U" or by settings updatePolicy in your settings.xml: http://maven.apache.org/ref/2.0.8/maven-settings/settings.html#class_releases Here's a blog about this: http://jlorenzen.blogspot.com/2008/0

mvn release:prepare with CVS extssh

2009-05-15 Thread Salomo Petrus
For some reason when using: mvn release:prepare -Dmaven.scm.provider.cvs.implementation=cvs_native Maven cannot commit the changed POM file I get this: Provider message: The cvs command failed. Command output: Cannot access /web/cvs /CVSROOT No such file or directory at org.apache.maven

SNAPSHOT for parent pom versioning

2009-05-15 Thread Bocalinda
Hi List, According to the documentation, when specifying a version as -SNAPSHOT, Maven downloads the artifact on each build. I specify: config seta-general-configuration 1.0-SNAPSHOT and expected Maven to download the parent pom again from the repository, however, this doesn't s

Re: [PLEASE TEST] Maven 2.2.0-RC2

2009-05-15 Thread Arnaud HERITIER
With the lightweight http wagon I have the issue NEXUS-1967 (rejected cookies) also for downloads. Arnaud On Fri, May 15, 2009 at 8:47 AM, Markku Saarela wrote: > Hi, > > Our release failed. There are two problems. > > Command line: mvn -Psome -Denv=some-dev release:perform -X > > 1. Command lin

Re: How can one handle release candidates in Maven?

2009-05-15 Thread sebb
On 14/05/2009, Brian Fox wrote: > On Thu, May 14, 2009 at 3:19 PM, Sahoo wrote: > > > Brian, > > > > Thanks for the excellent write up. In approach #2, when a build is done by > > just replacing RC versions by actual versions, since new binaries are going > > to be produced, don't they have

Re: properties vs pluginManagement

2009-05-15 Thread Jörg Schaible
Hi Jim, Jim Sellers wrote at Donnerstag, 14. Mai 2009 22:37: > Hi all. > > I've got a question for how to best configure plugins in a corporate > parent > pom. One way is to configure the plug in the pluginManagement section, > the other is to use the properties that the plugin uses. > > eg. >

maven plugin for JaveHelp

2009-05-15 Thread Jane Young
Hi, Does anyone know of a maven plugin that generates JavaHelp indexer? Found mavan-javahelp-plugin on http://code.google.com/p/maven-javahelp-plugin/ but that only contains source. Thanks, Jane - To unsubscribe, e-mail: use

Re: Run unit tests with multimple dependecies?

2009-05-15 Thread Stephen Connolly
2009/5/14 Chris Helck > I have multiple versions of a jar file called child: child_1.0.jar, > child_1.1, and child_1.2. In theory each version of child implements the > same API and should be backwardly compatible. > > I have another jar file called parent_2.0.jar. I would like to run > parent's

Re: Run unit tests with multimple dependecies?

2009-05-15 Thread Baptiste MATHUS
Never done your use case myself, but I guess I'd have a look at profile activation and multiple executions of the same build. Cheers 2009/5/14 Chris Helck > I have multiple versions of a jar file called child: child_1.0.jar, > child_1.1, and child_1.2. In theory each version of child implements