Dependency problem with profile

2007-03-16 Thread mavenstart
I set up a sub-project pom.xml with a profile, trying to make JMeter test an optional step. However, the dependency within the profile has no effect at all. jmeter org.apache.maven.plugins maven-antrun

IncompatibleClassChangeError with Maven Assembly plugin

2007-03-16 Thread Luciano Resende
I recently started to get this on an assembly distribution, does anyone have any ideas here ? https://svn.apache.org/repos/asf/incubator/tuscany/java/das/distribution/binary/ [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] ---

Re: IncompatibleClassChangeError with Maven Assembly plugin

2007-03-16 Thread John Casey
Ok, a fixed version has been deployed. The problem was that plexus-archiver 1.0-alpha-8 pulls in plexus-component-api, which has its own definition of the plexus Logger interface...so the getLogger() call in AbstractLogEnabled was failing. I added an exclusion to that dependency, and off we went.

Re: IncompatibleClassChangeError with Maven Assembly plugin

2007-03-16 Thread John Casey
I've tracked the problem down, and I'm running the full integration-test suite here before I deploy it (again). Sorry for screwing things up. -john On 3/16/07, Daniel Kulp <[EMAIL PROTECTED]> wrote: The snapshot that was deployed today seems to be very broken. I haven't had a chance to look

Mvn clean issue

2007-03-16 Thread Morgovsky, Alexander \(US - Glen Mills\)
When executing an mvn clean, the build fails. When executing an mvn package, it succeeds. The issue is that a dependency in one of the projects depends on a project built before it, and nothing is built during a clean. Apparently, when a clean is run, this preemptive dependency is not recognized

project.properties property not being picked up

2007-03-16 Thread lsacco
I have a "runtime.env" variable in my project.properties that has the specific environment I want to use. Then in my maven.xml I use this variable in 'if' statements (note: I'm using Maven 1.0.2 so this is Jelly). For some reason this works fine in Eclipse, but when I run from CruiseControl this

Re: IncompatibleClassChangeError with Maven Assembly plugin

2007-03-16 Thread Daniel Kulp
The snapshot that was deployed today seems to be very broken. I haven't had a chance to look into it at all. The "quick fix" is to use the last snapshot or last relase. If you require the 2.2 features, set the version to: 2.2-20070112.063452-32 Dan On Friday 16 March 2007 20:39, Lucian

Re: Don't show status when downloading deps

2007-03-16 Thread Frederic Simon
The mvn --batch-mode should do the trick. On 3/17/07, Dees, Ian (GE Healthcare) <[EMAIL PROTECTED]> wrote: Is there a way to disable the running total of how much data is downloaded when walking the dependencies? We're spitting the output into a log file and there are huge sections in the log f

Don't show status when downloading deps

2007-03-16 Thread Dees, Ian \(GE Healthcare\)
Is there a way to disable the running total of how much data is downloaded when walking the dependencies? We're spitting the output into a log file and there are huge sections in the log file with just numbers where the app is updating the amount of data downloaded. Thanks, Ian

Re: Generated Jar Manifest Contains Maven Jars

2007-03-16 Thread Marcel Schutte
On 3/16/07, SingleShot <[EMAIL PROTECTED]> wrote: I've configured the JAR plugin to generate a Manifest with a classpath per the online documentation: fully.qualified.MainClass true What's strange (a

Generated Jar Manifest Contains Maven Jars

2007-03-16 Thread SingleShot
I've configured the JAR plugin to generate a Manifest with a classpath per the online documentation: fully.qualified.MainClass true What's strange (and causing me problems) is that the generated classpa

Re: Implementing Master Build using Maven2

2007-03-16 Thread Tommy Knowlton
On 3/14/07, Thorsten Heit <[EMAIL PROTECTED]> wrote: Hi Pablo, > maybe I forgot to mention that projectA, projectB and projectC aren´t > children of projectD. They are projects located in whatever location in my > svn repository. > > What I'm trying to achieve is that a Maven2 project could ret

Pass params from command line to Junit test

2007-03-16 Thread lanchez
How would I run maven to execute all tests (JUnit) in a specific class and pass params to it on the command line? I just need to pass a string on the command line like: mvn (options to run class) (string) -- View this message in context: http://www.nabble.com/Pass-params-from-command-line-to-J

Trying to "reuse" the maven-assembly-plugin

2007-03-16 Thread Tommy Knowlton
Hello, I'm trying to build "installer" (by which I mean, a tarball inside of which is an install.sh as well as whatever other things I decide to put in) distributions for some of my maven projects. In some cases, I want to make the installer the only "artifact" of the build. Problem is, there's

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread John J. Franey
I came up with a third path. Mutliple projects, but with a slight difference. In the base project, an assembly would create an archive of unfiltered configuration files. So the base project has the war (or jar) and a zip of unfiltered configuration files. This project does not put any app ser

How Does Maven Handle This?

2007-03-16 Thread Dees, Ian \(GE Healthcare\)
If I have a dependency tree similar to this: projectA depends on projectB-1-01-SNAPSHOT projectA depends on projectC-1-00 projectC depends on projectB-1-00 How does maven handle running tests on projectA, for example? In our case, projectB-1-01-SNAPSHOT should be API-compatible with projectB-1-0

Re: Simple Dependencies List

2007-03-16 Thread Andrew Williams
The belp plugin currently under development has a "dependencies" goal, so you could build that from trunk if you want. Andy On 15 Mar 2007, at 15:51, Dees, Ian ((GE Healthcare)) wrote: Hi List, Is there a maven command/plugin/etc. that I could use to generate a simple text file that lists a

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Siegfried Goeschl
Hi folks, we have a workable solution for moving around 40+ configuration files and different database configurations - but it might not fit your needs and might be overly complex ... :-) Some background information = +) the ba

Re: Continuum user name in maven

2007-03-16 Thread Eric Pugh
I have to say, I am anxiously awaiting an alpha 1.1... Seems to be a massive set of improvements between 1.0.3 and 1.1... Eric On Mar 16, 2007, at 10:46 AM, Emmanuel Venisse wrote: Not yet, we already have an issue for this property and I think we'll add in a future alpha 1.1 Emmanuel

Re: GWT howto

2007-03-16 Thread Wayne Fay
If you don't get the desired response here, you may want to try the mojo-user list. Wayne On 3/16/07, nicolas de loof <[EMAIL PROTECTED]> wrote: Hello, I'd like to use GWT on my web-application. I've found a maven2 plugins for gwt on code.google.com and in mojo sandbox. Does anyone use maven2

Re: Maven2 Jar

2007-03-16 Thread Wayne Fay
You could probably write a plugin (with Ant) to delete the Jar file after packaging if it has nothing inside. But other than that, I don't know of any way to do this currently. Wayne On 3/16/07, Brian E. Fox <[EMAIL PROTECTED]> wrote: I don't think that is currently possible. -Original Mes

Re: Continuum user name in maven

2007-03-16 Thread Emmanuel Venisse
Not yet, we already have an issue for this property and I think we'll add in a future alpha 1.1 Emmanuel Eric Pugh a écrit : On a related note, is there a way to get the build number as well? If I just successfully did build 168, on the next build is there a system property/value that will g

Re: Continuum user name in maven

2007-03-16 Thread Emmanuel Venisse
[EMAIL PROTECTED] a écrit : Hi All Is there a way to pass username of continuum to a maven?? No. File an issue and we'll see if we can provide it in next versions. Like when some user logs into continuum and kick of the maven build, at the maven end is there any way to get the name of tha

Re: Continuum user name in maven

2007-03-16 Thread Eric Pugh
On a related note, is there a way to get the build number as well? If I just successfully did build 168, on the next build is there a system property/value that will give me build 169? I need to stamp the build revision on some source files in a .NET application. Eric On Mar 15, 2007,

GWT howto

2007-03-16 Thread nicolas de loof
Hello, I'd like to use GWT on my web-application. I've found a maven2 plugins for gwt on code.google.com and in mojo sandbox. Does anyone use maven2 to compile/run gwt application ? Are the gwt libs available at some repository (not found in repo1) ? Any best-practice ? Nico.

Re: [M2] maven-release-plugin and javadoc @version tags

2007-03-16 Thread Rémy Sanlaville
You have right, it should be better to give more information. I was thinking about something like this [1] (cf section Filtering Source Code) But it's better to have a filter parameter directly in the maven-javadoc-plugin. It seems it's not the case for the moment. Open a jira for this enhancemen

[ANN] Maven Dependency Plugin 2.0-alpha-2 Released

2007-03-16 Thread Brian E. Fox
The Maven team is pleased to announce the release of the Maven Dependency Plugin, version 2.0-alpha-2 http://maven.apache.org/plugins/maven-dependency-plugin/ The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositor

RE: Maven2 Jar

2007-03-16 Thread Brian E. Fox
I don't think that is currently possible. -Original Message- From: Christian Clauss [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 4:00 AM To: 'users@maven.apache.org' Subject: Maven2 Jar Hi everbody, Is it possible, that if no files are marked for inclusions into a .jar fil

Re: [M2] maven-release-plugin and javadoc @version tags

2007-03-16 Thread CodingPlayer
I'm sorry but i don't know anything about filtering? What do you mean exactly? i thought maven-properties are only accessible within the pom.xml file? What i need is a plugin, that looks at the ${pom.version} and the walks through all my packages (in my source folder) and change the @version jav

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Jeff Jensen
Ah! Your use case is not internal app use/release, but public distribution to uncontrolled environments. :-) You can tell how I answered the question... In your context, I agree that option 4 isn't very good (unless you want to dump on the customer to get the environment specific dependencies o

Re: [M2] maven-release-plugin and javadoc @version tags

2007-03-16 Thread Rémy Sanlaville
Hi, Isn't possible to use filtering with ${pom.version} ? Rémy 2007/3/16, CodingPlayer <[EMAIL PROTECTED]>: Hi All, i just was wondering if there is any possibility to tell the maven-release-plugin, to change ALL the source files as well? i mean, it would be nice, if the @version javadoc t

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Vincent Massol
On Mar 16, 2007, at 1:20 PM, Kenney Westerhof wrote: Hi, Vincent Massol wrote: Hi, I've never found a good answer to this use case so far so I'm curious about how others have implemented it. Imagine a project that generates a WAR. This WAR contains a config file (say in WEB-INF/classes)

Re: Null registry

2007-03-16 Thread Emmanuel Venisse
Marziou, Gael a écrit : - create ~/.m2/archiva.xml with a element I already tried this, it did not work. Do you have the latest code? - use the plexus appserver - use jetty:run I don't have time to learn another app server and also I want it to be started as a windows service. It i

[M2] maven-release-plugin and javadoc @version tags

2007-03-16 Thread CodingPlayer
Hi All, i just was wondering if there is any possibility to tell the maven-release-plugin, to change ALL the source files as well? i mean, it would be nice, if the @version javadoc tag would be automatically changed for each class. For e.g. when releasing version 1.7 and changing to 1.8-SNAPSHO

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Vincent Massol
Hi Jeff, On Mar 16, 2007, at 1:00 PM, Jeff Jensen wrote: I do my best to avoid needing a separate build per environment. A release is a release, and while reproducibility is not the issue, I find it silly to do so. In my customer work, I found two key strategies that have worked well, b

Re: [M2] profile repositories not defined when running maven in an empty directory

2007-03-16 Thread Thorsten Heit
Hi, > When i run maven with some repositories defined in a profile in settings. > And call maven in an empty directory, the only repo i grab is central. Sound like the question I posted a couple of days ago ("Maven ignoring Artifactory proxy settings?"; see http://www.nabble.com/Maven-ignoring-

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Kenney Westerhof
Hi, Vincent Massol wrote: Hi, I've never found a good answer to this use case so far so I'm curious about how others have implemented it. Imagine a project that generates a WAR. This WAR contains a config file (say in WEB-INF/classes) that configures connection parameters for the database

RE: Multiproject Subversion Layout

2007-03-16 Thread Jörg Schaible
tnine wrote on Thursday, March 15, 2007 5:53 PM: > Hi Jörg, > Thanks for your reply. I have a couple of questions about > your layout. > > 1. You have two "parent" poms. One in a sub directory for > performing a > release, and another at the top level to link all modules together for > depend

Re: RE: [m2.0.5] maven-release-plugin changes HTML entities

2007-03-16 Thread Thorsten Heit
> > Is this normal behaviour or did I just encounter a bug in the > > release plugin? Is it even possible to prevent the plugin > > from changing my pom according to 1-3? I haven't seen much about that > > in the docs at > > http://maven.apache.org/plugins/maven-release-plugin/... > > Known issue

RE: Null registry

2007-03-16 Thread Marziou, Gael
> - create ~/.m2/archiva.xml with a element I already tried this, it did not work. > - use the plexus appserver > - use jetty:run I don't have time to learn another app server and also I want it to be started as a windows service. Anyway, I think that I'm not ready for Archiva or the reverse.

RE: [m2.0.5] maven-release-plugin changes HTML entities

2007-03-16 Thread Jörg Schaible
Thorsten Heit wrote on Thursday, March 15, 2007 5:28 PM: > Hi, > > I'm actually evaluating Artifactory as repository proxy/cache > and today played a bit with the maven-release-plugin > (2.0-beta-5-SNAPSHOT; more precisely > maven-release-plugin-2.0-beta-5-20070301.114416-5.jar > according to my

Re: Source Repository and Changelog generated links question

2007-03-16 Thread George Stragand
Yes, explicitly 2.0. < org.apache.maven.plugins maven-changelog-plugin 2.0 On 3/15/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote: Are you using the released 2.0 version of the maven-changelog-plugin? IIRC this issue has been fixed. George Stragand wrote: > The the url element inside the

RE: Cruiscontrol and Maven dependency management

2007-03-16 Thread Jeff Jensen
CC 2.6 has a new feature - . It enables preventing a build from happening if a dependency has a build to do. Prior to 2.6, the best answer I had was to make the sleep times of the dependant projects "small" (e.g. 30 seconds) relative to the depending projects (e.g. 2 minutes) in hopes the others

RE: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Jeff Jensen
I do my best to avoid needing a separate build per environment. A release is a release, and while reproducibility is not the issue, I find it silly to do so. In my customer work, I found two key strategies that have worked well, both from "new system" and streamlining an existing system: Option

Re: What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Jo Vandermeeren
Hi Vincent, I use filtering with profiles (option 1) and rebuild the entire project when I need another configuration. This is far from ideal.. Perhaps you could keep your runtime configuration in a separate module and include the one you need as a dependency by activating a profile? I like your

What is the Best practice for generating variations of an artifacts?

2007-03-16 Thread Vincent Massol
Hi, I've never found a good answer to this use case so far so I'm curious about how others have implemented it. Imagine a project that generates a WAR. This WAR contains a config file (say in WEB-INF/classes) that configures connection parameters for the database. Now imagine that your

Wrong phase?

2007-03-16 Thread Erik Drolshammer
Hi! I have this plugin; http://rafb.net/p/vO1yv751.html, which creates two files needed by my tests and by jetty. The problem is that the two files are not available when the tests are run. (If i run the same goals a second time, it works, so the files _are_ generated.) What am I doing wrong

Re: ear-plugin : modifying manifest.mf in ejb projects

2007-03-16 Thread Manos Batsis
Jan Kroken wrote: Unfortunately, the ear plugin doesn't update the META-INF/MANIFEST.MF of the included ejb projects. The EJB project will only have access to libraries properly refered to from the manifest file, leaving the EJB projects with missing dependencies runtime. You have to config

[maven-eclipse-plugin] and [eclipse-plugin] development

2007-03-16 Thread Guillaume WALLET
Hello, I tried to develop an eclipse plugin using maven 2 and maven-eclipse-plugin. I notice that it does work very fine since the maven-eclipse-plugin 2.3, congratulation for the work done. There's still a problem from the eclipse pde plugin : it can't export deployable plugin with the pom's de

enforcing plugin writting guidelines at build time

2007-03-16 Thread Jerome Lacoste
On 3/15/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote: Hi, further care must be taken when writing plugins considering that maven can be embedded. Maven sort of acts as a container for code. And maven itself can be embedded. This isn't limited to embedding. As I said Kaare yesterday, maven p

Re: Problem with site generation

2007-03-16 Thread Nick Stolwijk
Are you generating the site (mvn site) or deploying the site (mvn site-deploy)? If the first, everything is alright, it is supposed to happen. For the second, take a look at the root pom, this should contain something like this: website file:///var/www/project

Problem with site generation

2007-03-16 Thread Serge Dubakov
Hi, We have encountered a problem while trying to generate the site for our project. The project is multimodule and the modules are located in flat list of directories relative to the root pom.xml (the directory are named differently than artifactIds if this matters - for example module whose ar

Re: Cruiscontrol and Maven dependency management

2007-03-16 Thread Xavier Hanin
On 3/15/07, Aidan O'Donnell <[EMAIL PROTECTED]> wrote: I am using cruisecontrol to build a multimodule project. The problem I am observing is that if projects A and B are checking in at the same time and B depends on A the order that they are built in is not set. This means that if B builds bef

Maven2 Jar

2007-03-16 Thread Christian Clauss
Hi everbody, Is it possible, that if no files are marked for inclusions into a .jar file, that no jar is created? It's important for me because I'm getting an empty jar file. Thanks for your help Christian