Re: How does maven resolve plugin dependencies

2007-10-25 Thread alexworden
Wayne Fay wrote: > >> The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist >> or >> no valid version could be found > > There are several reasons why this will happen. In short, Maven is > unable to find the plugin. For new users, this generally means that > you're behind

Re: Debugging failed junit-test

2007-10-25 Thread Wayne Fay
I'm not sure that I understand you entirely, but here goes If you have shared test files, you will need to create a "test-jar" artifact and add it as a dependency to any projects that need to use it. This is documented in a mini-guide: http://maven.apache.org/guides/mini/guide-attached-tests.h

Re: How does maven resolve plugin dependencies

2007-10-25 Thread Wayne Fay
> The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist or > no valid version could be found There are several reasons why this will happen. In short, Maven is unable to find the plugin. For new users, this generally means that you're behind some kind of Internet proxy and simp

How does maven resolve plugin dependencies

2007-10-25 Thread alexworden
Hi - this is a plea to someone with good command of the English language and deep understanding of the guts of Maven 2... if such a person exists. Please can explain what maven does to resolve a dependency. Currently when I try: mvn eclipse:eclipse It fails miserably with the cryptic message.

[newbie] Pass path to jar dependency to Ant

2007-10-25 Thread Kevin Lawrence
The AntRun plugin gives me a way to pass a maven classpath to ant: Is there a way get the path to an arbitrary jar in my local repository? My ant script requires a taskdef and I want to install the required jar into my repository and I'd like some way to turn this: com.junitfactory.runner

Re: scm in pom?

2007-10-25 Thread deckrider
On 10/25/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 10/25/07, deckrider <[EMAIL PROTECTED]> wrote: > > It appears that I have to put scm information into my pom.xml in order > > to use a Maven 2 project in Continuum. Is this true? > > Yes. That's how Continuum knows how to find the source co

Re: Generating Test Sources

2007-10-25 Thread Brandon Enochs
Lee Meador wrote: I would use src/test/generated-source. But as Tomasz mentioned you have to add that folder to compileSourceRoot. (The antrun plugin will let you do that.) You can only add one folder to compileSourceRoot as I remember. On 10/25/07, Brandon Enochs <[EMAIL PROTECTED]> wrote:

Re: Generating Test Sources

2007-10-25 Thread Brandon Enochs
Michael McCallum wrote: why are you generating tests? On Friday 26 October 2007 08:52, Brandon Enochs wrote: Where should plugins place generated test sources? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: scm plugin and perforce

2007-10-25 Thread Dennis Lundberg
EJ Ciramella wrote: Is anyone using the scm plugin and perforce? Additionally, is anyone using the maven-changelog-plugin? I'm struggling to get any worthwhile output from this bugger... Did you read the FAQ? http://maven.apache.org/plugins/maven-changelog-plugin/faq.html -- Dennis Lund

Re: maven-project-info-reports-plugin do not include Javadoc when using

2007-10-25 Thread Dennis Lundberg
You have true in your javadoc-plugin configuration. That means that your site will only have one aggregated set of javadocs, and they will be created for the parent project. Mac-Systems wrote: Ok, there is the parent POM for the Project:, regards, Jens http://maven.apache.org/POM/4.0.

[m2] duplicate tags in generated application.xml

2007-10-25 Thread Mick Knutson
I have the following: yoursos-war-1.0-SNAPSHOT.war yoursos-war-1.0-SNAPSHOT.war in my application.xml and I am wondering why? I am getting errors deploying due to this. -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazi

Re: Generating Test Sources

2007-10-25 Thread Lee Meador
I would use src/test/generated-source. But as Tomasz mentioned you have to add that folder to compileSourceRoot. (The antrun plugin will let you do that.) You can only add one folder to compileSourceRoot as I remember. On 10/25/07, Brandon Enochs <[EMAIL PROTECTED]> wrote: > > Where should plugins

Re: Generating Test Sources

2007-10-25 Thread Michael McCallum
why are you generating tests? On Friday 26 October 2007 08:52, Brandon Enochs wrote: > Where should plugins place generated test sources? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL

Re: Generating Test Sources

2007-10-25 Thread Tomasz Pik
On 10/25/07, Brandon Enochs <[EMAIL PROTECTED]> wrote: > Where should plugins place generated test sources? Choose an arbitrary named directory under ${project.build.directory, (${project.build.directory/generated/myplugin for example), put tests there and then add this directory to compileSourc

scm in pom?

2007-10-25 Thread deckrider
It appears that I have to put scm information into my pom.xml in order to use a Maven 2 project in Continuum. Is this true? The reason I'm concerned about this, is suppose I'm in CVS, and create a lot of branches and tags in each of my projects. Now I want to convert to Subversion. My job of co

Generating Test Sources

2007-10-25 Thread Brandon Enochs
Where should plugins place generated test sources? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to override an activeByDefault profile?

2007-10-25 Thread Morris Jones
Hi Ian, thanks. Yes, I've tried that. It has the same effect as specifying a different profile on the command line. In this case, the one set in activeProfiles is _always_ active, and can't be overridden at all. :( Mojo Ian Springer wrote: I recall reading somewhere in the Maven docs or w

Re: [m2] help getting jboss to start...

2007-10-25 Thread Mick Knutson
Well, this seems harder than I thought. I have a dev machine with JBoss 4.2.1.GA installed and configured already at c:/jboss-4.2.1.GA/ and I use this plugin: org.codehaus.cargo cargo-maven2-plugin 0.3-SNAPSHOT

Re: version and artifact management

2007-10-25 Thread deckrider
Doh! I see it now, thanks. On 10/25/07, Nick Stolwijk <[EMAIL PROTECTED]> wrote: > You can change the tasks continuum executes in a Maven 2 project. For > example, every 5 minutes, check for a change in your SCM and if changed, > run mvn test phase, and every day, run mvn release. > > Hth, > > Nic

scm plugin and perforce

2007-10-25 Thread EJ Ciramella
Is anyone using the scm plugin and perforce? Additionally, is anyone using the maven-changelog-plugin? I'm struggling to get any worthwhile output from this bugger...

Re: How to override an activeByDefault profile?

2007-10-25 Thread Ian Springer
I recall reading somewhere in the Maven docs or wiki that activeByDefault has higher precedence than even properties specified on the command line. Have you tried using: ... dev ... ? Nick Stolwijk wrote: I thought I had a solution, but it didn't work. I think it should work, but

Re: How to override an activeByDefault profile?

2007-10-25 Thread Nick Stolwijk
I thought I had a solution, but it didn't work. I think it should work, but I'm not certain. This could be a bug. This is what I had: true dev dev-active true

How to override an activeByDefault profile?

2007-10-25 Thread Morris Jones
Say I have a settings.xml file with three profiles, "dev" "qa" and "production". The active profile will set variables that determine which database to use and things like that. I have activations so that I can use -Denv=qa or -Denv=dev to get the right profile. But I'd like to have one of t

Re: Issues with connecting to Oracle database when running schema generator via AndroMDA

2007-10-25 Thread Wayne Fay
Also, I looked at the AndroMDA plugin documentation and it seems to be a Maven1 plugin. Are you sure this plugin works in M2 at all? You should probably talk to the AndroMDA people about your issues and make sure you haven't made any incorrect assumptions... For the future benefit of others, pleas

Re: [m2] help getting jboss to start...

2007-10-25 Thread Daniele De Francesco
Hi, I'm sorry for replying so shortly, but you could see i.e. http://www.nabble.com/JBoss-Remote-Deployment-workaround-for-HTTP-500-error-t3607694.html just for the pom Besides of course, you could refer to http://cargo.codehaus.org/JBoss+4.x Just google a little... ;-) Regards Daniel

Re: maven-assembly-plugin

2007-10-25 Thread Nick Stolwijk
Let's split it in two sections: My ultimate goal is to have a batch.jar file created with all of the dependencies in the project placed into this jar as .class files NOT jar files. This is a easy one, if you have the right plugin. Although the assembly plugin has an unpack goal, you'd want t

[m2] can anyone help me get Intellij 7 to hot deploy my Maven 2 multi-module project to JBoss 4.2?

2007-10-25 Thread Mick Knutson
I want to hot deploy my maven 2.0.7 multi-module project to JBoss 4.2 from Intellij 7. I have 1 jar, 1 ejb3 jar, 1 war inside an ear. -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djm

Re: Issues with connecting to Oracle database when running schema generator via AndroMDA

2007-10-25 Thread Wayne Fay
The stacktrace makes it very clear that the AndroMDA plugin can't get a connection to your database. Make sure you have configured things properly per the plugin docs. It doesn't seem to be picking up your jdbc.url etc properties. Wayne On 10/25/07, Jerrold E. Eads <[EMAIL PROTECTED]> wrote: > T

maven-assembly-plugin

2007-10-25 Thread pdelaney
Hello; I am trying to build a jar file from our maven2 build. The project is a web project and we have a process that runs on the server as a Java application. I have been fooling around with the maven-assembly-plugin to try to get it to build a batch.jar file that I can use to execute a Java p

RE: Junit 4 or TestNG 5 suite support

2007-10-25 Thread Joel Wiegman
Found a relatively reasonable work-around for this problem (by not using surefire at all). I can now use the @BeforeSuite and @AfterSuite functionality of TestNG (and probably the suite functionality of Junit if I ever need to switch). Instead of using surefire, I'm using the maven antrun plug-in

Issues with connecting to Oracle database when running schema generator via AndroMDA

2007-10-25 Thread Jerrold E. Eads
Team, I am new to both AndroMDA and Maven. I have setup an Oracle database to be used for the Timetracker AndroMDA example. After setting up the database I started the Oracle service and listener and I can invoke SQLPlus from the command line with: sqlplus timetracker/[

Re: Debugging failed junit-test

2007-10-25 Thread Jan Torben Heuer
Jan Torben Heuer wrote: > I have a problem with a junit test that failes when I run "mvn test" - but > it does not fail when I run the test by the eclipse-junit-plugin. Ok, I have another guess: Could it be, that dependencies to other modules are only to sources in /src/main/java/ but not to the

Strange third party source deploy exception

2007-10-25 Thread Brandon Goodin
When trying to deploy src to my own repo I received the following output. It looks like the source is properly uploaded. But, the exception has left me wondering if everything is complete and what the exception is claiming failed. Anyone have any insight? NOTE: identifying information has been chan

Debugging failes junit test

2007-10-25 Thread Jan Torben Heuer
Hi, I have a problem with a junit test that failes when I run "mvn test" - but it does not fail when I run the test by the eclipse-junit-plugin. My problem ist, that there are no information: [...] Running ogcoperations.SubscriptionTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elap

RE: Maven profile properties

2007-10-25 Thread Roshan A. Punnoose
Hi, I want to create document templates and use Maven to fill in the properties in the template during a task. For example: Template.txt: Dir=${basedir} systemPath = ${systemPath} Then run a maven command to output the the text document to a directory and fill in these tokens. Sort of like fil

Re: Error running Javadoc plugin under CruiseControl

2007-10-25 Thread Wayne Fay
For the benefit of other people who might search the archives for this same bug, can you tell us what JDK version you were running before that was giving you the problem? Then we can tell people to avoid that JDK, perhaps in the m-javadoc-p documentation or something. Wayne On 10/25/07, Simon Kin

Re: [m2] help getting jboss to start...

2007-10-25 Thread Catalin Croitoru
Hi, do you have a pom example for starting an existing jboss 4.2.0 with cargo? Thanks, Catalin On 10/25/07, Daniele De Francesco <[EMAIL PROTECTED]> wrote: > > Hi, > try using maven cargo plugin instead of the maven-jboss-plugin > > *http://cargo*.codehaus.org/*Maven*2+*plugin* > > and for

Re: maven phase to be executed in and continuous integration

2007-10-25 Thread aldana
forgot some more reservation. when working with SNAPSHOTS and doing lots of has somebody experienced problems with just too many SNAPSHOT-libraries? aldana wrote: > > hi, > > we are working with maven and cruise control. until now i always executed > 'mvn clean verify'. we are working with sn

RE: Error running Javadoc plugin under CruiseControl

2007-10-25 Thread Simon Kingaby
I upgraded to Java SDK 6 update 3 yesterday and my issues with JavaDoc were solved. There seems to have been a bug in the JavaDoc utility that caused it to fail when running from CruiseControl. Thanks for your suggestions. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sen

maven phase to be executed in and continuous integration

2007-10-25 Thread aldana
hi, we are working with maven and cruise control. until now i always executed 'mvn clean verify'. we are working with snapshots and we experienced problems that the artifacts on the internal repository weren't up to date (they would succeed verify but developers sometimes forgot to execute a dep

Canoo WebTest Plugin 0.2 for M2 is available for field testing ...

2007-10-25 Thread Siegfried Goeschl
Hi folks, I created a rough cut of a M2 plugin to be downloaded from http://people.apache.org/~sgoeschl/download/maven-plugins/ Krystian Novak did some field testing - thanks a lot :-) A few points to keep in mind +) it is my very first M2 plugin so it could be quite shaky ... +) Canoo W

[m2] how to make my custom packaging recognized by the eclipse plugin?

2007-10-25 Thread Adrian Herscu
Hi all, I am using Maven 2 to build projects based on my own framework. Because the framework requires different tools and dependency resolving mechanism, I had to create a dedicated lifecycle. Now I am thinking about some way to integrate the build of my framework with the build of a Java-b

Re: [m2] help getting jboss to start...

2007-10-25 Thread Daniele De Francesco
Hi, try using maven cargo plugin instead of the maven-jboss-plugin *http://cargo*.codehaus.org/*Maven*2+*plugin* and for a necessary download and overview about what cargo is... surprise surprise :) *http://cargo*.codehaus.org let me know... Daniele On 10/23/07, Mick Knutson <[EMAIL PROTE

Re: Problem svn when I build Maven 2.0 project

2007-10-25 Thread Saruqui
Finally, I reinstall all... continuum, svn, maven in my pc and reset server and my computer and it's working :) Thanks all people for your help =^D -- View this message in context: http://www.nabble.com/Problem-svn-when-I-build-Maven-2.0-project-tf4689729.html#a13407110 Sent from the Co

dependency:purge-local-repository

2007-10-25 Thread zalym
how does this work? if I give -DreResolve as false, then all the dependencies of the project shud be deleted from the local repo right? That is not happening. Has anyone got any experience in this? -- View this message in context: http://www.nabble.com/dependency%3Apurge-local-repository-tf46

LATEST, SNAPSHOT and RELEASE

2007-10-25 Thread Nigel Magnay
I could have sworn I'd read somewhere that it was possible to use dependency versions of LATEST, RELEASE and SNAPSHOT in a pom dependency to not have to specify which particular version I needed. Did I just dream that? Or does it not apply to dependencies?

Re: configure build trigger ('after each commit') web-console

2007-10-25 Thread Vanja Petreski
> > Isn't that same as the developer who are doing svn update for every > project > > every one minute? > > I'm not sure the developer run a svn update every minute ;) :)) > > > Personally, I don't understand why some users need to run a build for > each > >> commit??? > > > > > > Isn't that o

Re: configure build trigger ('after each commit') web-console

2007-10-25 Thread Emmanuel Venisse
Vanja Petreski a écrit : On 10/25/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: OneMin scheduler isn't a good thing if you have lot of projets or big projects in Continuum and you consume lot of resources on your continuum server and svn server. Isn't that same as the developer who are do

RE: Maven profile properties

2007-10-25 Thread Roshan A. Punnoose
>From reading the documentation it looks like the profile/activation/property only looks at system properties. Is it possible to use a project property? Roshan -Original Message- From: Roshan A. Punnoose [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 12:27 PM To: Maven Users

Re: Problem svn when I build Maven 2.0 project

2007-10-25 Thread olivier lamy
try echo %PATH%. In my case it contains : ...;C:\Subversion\bin;... 2007/10/25, Saruqui <[EMAIL PROTECTED]>: > > I think that svn isn't in the path but.. where I configure it? > I included it in environment Windows path variable and it don't work :( > > > olamy wrote: > > > > Hi, > > Not really

Re: Problem svn when I build Maven 2.0 project

2007-10-25 Thread Saruqui
I think that svn isn't in the path but.. where I configure it? I included it in environment Windows path variable and it don't work :( olamy wrote: > > Hi, > Not really familiar with the language :-) > But looks svn is not in the path. > > > > 2007/10/25, [EMAIL PROTECTED] <[EMAIL PROTECTED

Re: Transitivity on/off

2007-10-25 Thread Graham Leggett
On Thu, October 25, 2007 11:50 am, Antonio Parolini wrote: > I totally agree with this. Transitivity is great, but sometime it is just > a > pain... especially with ejb-clients.. > > Is there a plan to adress this issue on the futur release of maven ? > Like > to add a flag to turn on/off transit

Re: Problem svn when I build Maven 2.0 project

2007-10-25 Thread Vanja Petreski
Probably ;) You have to set up integration (Continuum) platform as any other development platform. In your case, you have to install and setup: JDK, SVN, Maven2. Vanja On 10/25/07, olivier lamy <[EMAIL PROTECTED]> wrote: > > Hi, > Not really familiar with the language :-) > But looks svn is not

Re: Problem svn when I build Maven 2.0 project

2007-10-25 Thread olivier lamy
Hi, Not really familiar with the language :-) But looks svn is not in the path. 2007/10/25, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I'm newby with Continuum and I have the following error when I build my > Maven 2.0 project: > > Provider message: The svn command failed. > Command output: >

Re: maven-project-info-reports-plugin do not include Javadoc when using

2007-10-25 Thread Mac-Systems
Ok, there is the parent POM for the Project:, regards, Jens http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 wpp master pom

Problem svn when I build Maven 2.0 project

2007-10-25 Thread saruqui
I'm newby with Continuum and I have the following error when I build my Maven 2.0 project: Provider message: The svn command failed. Command output: --- "svn" no se reconoce como un comando interno o externo, programa o ar

Transitivity on/off

2007-10-25 Thread Antonio Parolini
Hello, I found this note on the maven wiki: Attachments and Transitive Resolution We also need a way to distinguish the dependencies that apply when resolved transitively via an attached artifact, rather than the main one. For example, while the server-side component of an EJB may need several d

Re: The OpenJPA Enhancer tool exited with a non-null exit code.

2007-10-25 Thread Milos Kleint
hello, do you get it only when running from within netbeans? or from the command line as well? if netbeans only, try to configure the project to use the command-line version of maven for compilation. The maven version embedded in netbeans is close to 2.0.4, so maybe the plugin works correctly with

RE: maven-project-info-reports-plugin do not include Javadoc when using

2007-10-25 Thread nick_stolwijk
Could you post your pom file and the output of mvn -X site? With regards, Nick Stolwijk -Original Message- From: Mac-Systems [mailto:[EMAIL PROTECTED] Sent: Thu 10/25/2007 11:30 AM To: Maven Users List Subject: Re: maven-project-info-reports-plugin do not include Javadoc when using We

Re: maven-project-info-reports-plugin do not include Javadoc when using

2007-10-25 Thread Mac-Systems
Well, i have the javadoc included in reporting section of the parent pom. Looks like this: org.apache.maven.plugins maven-javadoc-plugin http://java.sun.com/j2se/1.5.0/docs/api/

Re: using ${pom.version} in assembly.xml

2007-10-25 Thread baumar
We found a solution - and maybe a bug? We are using windows XP Professional 2002, ServicePack 2 When we write - (as documented in http://maven.apache.org/guides/introduction/introduction-to-the-pom.html ${pom.artifactId}-${pom.version}) target/tavx-${pom.version}.jar ${pom.artifa

RE: maven-project-info-reports-plugin do not include Javadoc when using

2007-10-25 Thread nick_stolwijk
If at first the javadocs were generated, I guess you had configured the javadoc reporting plugin [1]. Maybe you removed the configuration of it? Hth, Nick Stolwijk [1] http://maven.apache.org/plugins/maven-javadoc-plugin/usage.html -Original Message- From: Mac-Systems [mailto:[EMAIL P

maven-project-info-reports-plugin do not include Javadoc when using

2007-10-25 Thread Mac-Systems
Hello, im using maven 2.0.7 on a large multiproject. Since last week i generate javadoc for all project with success, later i added the changelog report. Since i added the Changelog i miss the generated Javadoc for the Project, the Javadoc is generated but it is not linked from the (sub) Projects

using ${pom.version} in assembly.xml

2007-10-25 Thread baumar
I found a strange effect when using the property ${pom.version} in an assembly.xml. Within the element, it is inserted corrected within the element, but not in . What we try to achieve is to add a directory name containing the version number in front of the path in the zipfile, because for some

Re: release:prepare failure during scm-tag : Server certificate verification failed: issuer is not trusted

2007-10-25 Thread Rémy Sanlaville
Hi Jason, Not sure, but if you can access to your svn repo with different URLs ( https://www..com and http://www..com for instance) it's possible that you made a checkout via one URL (http://www..com for instance) and maven-release-plugin try with another URL specify in the scm section of your pom

Re: new to maven

2007-10-25 Thread Giancarlo Degani
hi, you can try with the eclipse plugin: http://maven.apache.org/plugins/maven-eclipse-plugin/ Giancarlo 2007/10/25, Ian Godman <[EMAIL PROTECTED]>: > Hi > > I am new to Maven 2. I have been converting an application consisting of 4 > eclipse projects, 3 producing library jars the the final one

RE: new to maven

2007-10-25 Thread nick_stolwijk
To run from eclipse you would have to look at the Eclipse plugin. [1] Basically, you would run mvn eclipse:eclipse (optional: -DdownloadSources=true and/or -DdownloadJavadoc=true) and create a M2_REPO variable inside Eclipse. This would set up your classpath for eclipse. To create a runnable ve