RE: dependencies plugin maven 2

2006-12-27 Thread Gustav
I checked that, the parameter outputDirectory is not setted correctly ... [DEBUG] Configuring mojo 'org.codehaus.mojo:dependency-maven-plugin:1.0:copy-dependencies' --> [DEBUG] (f) outputDirectory = /home/gustavo/proyectos/eclipsews3.2/imagegallery-template/target/dependency [DEBUG] (f) reac

seperation of goals

2006-12-27 Thread Roald Bankras
Hi Can anyone tell me if it is possible to split the goals on a maven project. I have a multi module project and I want to first clean all modules, then package all modules, and finally create the site of all modules. But if I specify "clean package site" as the goal, these goals are called for

solved!

2006-12-27 Thread Gustav
Hi ... reading and using "proof and error" methodology I finally could make work the plugin ... Two things to take in account: 1 - maven 2 dont look for project.properties. Instead, the properties must be defined in pom.xml as the following example: /usr/local/tomcat-jahia-pru

SNAPSHOT versions

2006-12-27 Thread Rahamim, Zvi \(Zvi\)
Hi, I could see that in the project directory in the repository there is a file maven-metadata.xml that has the information which versions are exist. I could also see that in case of snapshot there is no information which snapshot versions there are, only the last one. Is there a way to know the li

Calling multiple phases

2006-12-27 Thread Roald Bankras
Hey all Does anyone know a way to combine to separate calls to maven into one command? I like to tag a succesful build after all modules are done. A normal call like "mvn install scm:tag" would tag the modules after completion while the next module can still fail. Any help is appreciated. Ro

Re: [m2 plugin] Obtaining dependencies tree

2006-12-27 Thread Andrés Viedma
2006/12/20, Mark Hobson <[EMAIL PROTECTED]>: On 20/12/06, Andrés Viedma <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm developing a plugin and I need to know if one of the target project > dependencies depends on another one. > > I've seen that a MavenProject object contains a list of Artifact obj

Re: [m2] maven-exec-plugin:java command line launch

2006-12-27 Thread Jerome Lacoste
On 12/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Wayne Fay [mailto:[EMAIL PROTECTED] ==== > > Your problem is that exec.arguments is a List of String > objects, and you can only pass a single String object in from > the command line. FYI, the

Re: User-defined phase

2006-12-27 Thread Jerome Lacoste
On 12/11/06, Deluigi Marcus <[EMAIL PROTECTED]> wrote: That's a great idea! However, how do I tell the exec-plugin where to find maven itself? When I try: --- mvn exec:exec -Dexec.executable="maven" -Dexec.args="clean" --- I get the following error message: [INFO]

Using Archiva

2006-12-27 Thread Eric Redmond
If you've been interested in trying it out, I wrote a post about building, installing and setting-up Archiva (part 1). http://coderoshi.blogspot.com/2006/12/apache-archiva-part-one.html -- Eric Redmond http://codehaus.org/~eredmond

Annotation @Entity

2006-12-27 Thread juergen.schumacher
Hi, I tried to use the annotations inside my classes for hibernate like @Entity, @Id, but the compiler during the maven build complains. Now I found a maven hibernate plugin but here I still have to use the XML file instead of annotations. Am I right that annotations not supported? Have a ni

Re: Annotation @Entity

2006-12-27 Thread Eric Redmond
Annotations are supported, but you have to set the correct version. The JBoss packaging plugin supports hibernate, but defaults to 2.1. If you set the version to 3.0 it will work. I don't know what plugin you are using, however, so I'd check the plugin's docs. Eric On 12/27/06, juergen.schumache

Re: Using Archiva

2006-12-27 Thread Brett Porter
Ah, saw that - didn't realise it was you :) There are a lot of similarities with the getting started guide already on the site, it'd be great if you could help improve that one :) Cheers, Brett On 28/12/06, Eric Redmond <[EMAIL PROTECTED]> wrote: If you've been interested in trying it out, I w

question about lifecycle

2006-12-27 Thread Gustav
Hi ... I done the following with maven 2 1 - create a jar with sources, resources and configuration files 2 - copy dependencies to tomcat webapp lib directory 3 - copy the jar (1) into a tomcat directory inside an already instaled webapp I done this using dependency (2), antrun (3) and clean plu

[m2] Version ranges and qualifiers

2006-12-27 Thread Beyer,Nathan
Given a set of versions for a JAR in a repo (1.0, 1.2, 2.0-alpha-1) and a version range of [1, 2), should version 2.0-alpha-1 be picked? This seems to be the state of affairs for Maven 2.0.4. I can understand why the algorithm is picking this, since 2.0-alpha-1 is strictly less than 2, but this se

maven 2 goal decoration

2006-12-27 Thread Prabu Krishnakumar
Hi, We came across goal decoration in http://docs.codehaus.org/display/MAVEN/Maven2+Goal+Decoration, but the latest maven 2 version does not seem to support this. We have a requirement where we have to persist the version info in a file on cvs checkout.Planned to do this on the postgoal of scm:che

Re: accessing sources of third party jars

2006-12-27 Thread Christian Goetze
Edwin Punzalan wrote: If the artifacts have sources and javadocs deployed with them, then using -DdownloadSources=true and -DdownloadJavadocs=true is what you need. The plugin will download them and attach them to the project to help you in your development. Hope that helps ^_^ Ok, an

Nested modules

2006-12-27 Thread Jon Card
I am a consultant specializing in a server system that requires we develop our code in separate jars, one for interfaces and one for implementation classes. I'm trying to migrate our developer staff to Maven and so populating an in-house Maven repository with the .jar files we need and archetypes w

idea plugin question

2006-12-27 Thread Christian Goetze
How can I merge custom idea settings (e.g. the arguments to the idea "run" targets, perforce settings etc) into the idea project files generated via maven? On the one hand, I would like to get the benefit of the source and javadoc download and the dependency knowledge maven provides, but on th

Re: accessing sources of third party jars

2006-12-27 Thread Christian Goetze
Christian Goetze wrote: Edwin Punzalan wrote: If the artifacts have sources and javadocs deployed with them, then using -DdownloadSources=true and -DdownloadJavadocs=true is what you need. The plugin will download them and attach them to the project to help you in your development. Hope

Re: Re: Merging projects

2006-12-27 Thread Henri Tremblay
false seems to work fine. However, the plugin is called too soon. The children projects are compiled after the plugin being executed... The idea of doing another project depending on the others seems feasible. Just need to make sure I can then upload this final project to the maven repository as

Re: Error trying to use the maven-antrun plugin

2006-12-27 Thread Lee Meador
This part: Embedded error: The following error occurred while executing this line: E:\work\LTY-P39\frontoffice\ltyApp\source\build.xml:685: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK [INFO] suggests that your

Re: Error trying to use the maven-antrun plugin

2006-12-27 Thread Stephen Coy
If my experience with the weblogic plugin is anything to go by, you need to add this as an ant plugin dependency: sun.jdk tools 1.4.2 system ${java.home}/../lib/tools.jar Use an appropriate version of course. For

Java 1.5 compilation setting in settings.xml?

2006-12-27 Thread Oliver Newell
Hello - I'm wondering if there is a way to set the maven compiler plugin defaults from the settings.xml file instead of the POM file? Basically, I'm trying to make Java 1.5 the default instead of 1.4, without having to add plug-in configuration info to each one of my POM files. I know there

Re: Java 1.5 compilation setting in settings.xml?

2006-12-27 Thread Oliver Newell
Thanks Randall - all I could find was settings dealing with activation of profiles depending on the JDK version, not the actual setting of the JDK version. I did try the following in settings.xml to set the plug-in variable directly, but it didn't work (and it was just a guess): j

Re: JBoss EJB3 and Maven

2006-12-27 Thread Stephane Nicoll
Hi, On 12/26/06, Vitor Pellegrino <[EMAIL PROTECTED]> wrote: Hello, 1 - How can i deploy my project using maven to my Jboss AS instance? Have a look to cargo. When i try to do a "mvn ejb:ejb" it is lacking for a ejb-jar.xml file and at the plugin's usage page it's says that it's not manda

Re: Checksum on the pom for maven-ear-plugin is wrong

2006-12-27 Thread Stephane Nicoll
which pom? which repo? On 12/21/06, Michael Schlotfeldt <[EMAIL PROTECTED]> wrote: I think the checksum on the pom for maven-ear-plugin is wrong. Might be more but something is wrong because we are getting checksum errors. Can somebody please fix or test it? Thanks, Michael -

Re: Manifest file problem

2006-12-27 Thread Stephane Nicoll
Yes, set the manifestFile parameter in the plugin directly. org.apache.maven.plugins maven-ear-plugin true APP-INF/lib ${basedir}/MANIFEST.MF Cheers, Stéphane On 12/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi All How do i disable maven auto generated information in manifest

Re: JBoss EJB3 and Maven

2006-12-27 Thread Alexander Sack
I'm not sure why you are using the EJB plugin since EJB3 and JBoss are just JARs. We use EJB3 and JBoss exclusively and I prefer the JAR plugin. -aps On 12/27/06, Stephane Nicoll <[EMAIL PROTECTED]> wrote: Hi, On 12/26/06, Vitor Pellegrino <[EMAIL PROTECTED]> wrote: > Hello, > > > 1 - How ca

Injecting properties into the pom from an external properties file

2006-12-27 Thread Balasubramanian, Ravi Shankar
Hi, I am a relatively new user of maven and I want to be injecting properties into the pom from an external properties file. For eg, I will have a property "outDir=C:/Output" defined in an external properties file and I want to be using this in my pom.xml file. Something like ${outDir}. Can anyo