Re: Blame mechanism with SVN
If it's english, it's ok. Personnally, I defined the locale to use with LC_MESSAGES env property LC_MESSAGES=en_EN I'm not sure you'll can find something that can help in logs. The only thing that can help us would be that you run manually the svn log command printed in continuum log and send us the output. Emmanuel Binil Thomas a écrit : Emmanuel, I am unsure what language is used by my SVN installation. I looked at the SVN documentation at http://svnbook.red-bean.com/nightly/en/svn-book.html, and there is nothing specific to 'languages'. The SVN book mentions that SVN can work with different locales and print all messages in an appropriate language; if that is the info you are looking for, the SVN client on the CI server is printing out english messages only. Also, although English is not the native tounge of most of us here at our office, all of us converse in English for official purposes. So I would be very surprised if the language is set to anything other than English. :) So can you please let me know how to figure out the language used by my SVN installation? Also, should I be looking for some specific (error) messages in the Contiuum logs? Thanks, Binil On 8/8/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: What is the language used by your svn? I guess it isn't english, right? Emmanuel Binil Thomas a écrit : Hi all, I am using Continuum 1.0.3, Maven 2.0.4 and SVN. Is there anything special I need to do to get the blame mechanism working? I have seen previous posts here, and someone did reply that it is fixed in 1.0.3, but I still am not getting it to work. I am attaching a sample failure email I got. It currently shows the files that are changed, but does not show who changed them. Kindly help me configure the failure email to show the id which changed a file. Thanks, Binil Online report : Build statistics: State: Failed Previous State: Failed Started at: Mon, 7 Aug 2006 15:52:38 +0530 Finished at: Mon, 7 Aug 2006 15:52:59 +0530 Total time: 21s Build Trigger: Forced Exit code: 1 Building machine hostname: MY-BUILD-MACHINE Operating system : Windows 2000(Service Pack 4) Java version : 1.5.0_06(Sun Microsystems Inc.) Changes src\main\java\my\package\MyClass.java Output: [INFO] Scanning for projects... [INFO] [INFO] Building myproject [INFO]task-segment: [clean, install, deploy] [INFO] [INFO] [clean:clean] [INFO] Deleting directory D:\softwares\continuum- 1.0.3\apps\continuum\working-directory\20\target [INFO] Deleting directory D:\softwares\continuum- 1.0.3\apps\continuum\working-directory\20\target\classes [INFO] Deleting directory D:\softwares\continuum- 1.0.3\apps\continuum\working-directory\20\target\test-classes [INFO] [cobertura:clean {execution: clean}] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 68 source files to D:\softwares\continuum- 1.0.3\apps\continuum\working-directory\20\target\classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 19 source files to D:\softwares\continuum- 1.0.3\apps\continuum\working-directory\20\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: D:\softwares\continuum- 1.0.3\apps\continuum\working-directory\20\target\surefire-reports --- T E S T S --- [..snipped..] Results : Tests run: 61, Failures: 0, Errors: 3, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 19 seconds [INFO] Finished at: Mon Aug 07 15:52:59 IST 2006 [INFO] Final Memory: 7M/20M [INFO]
Re: Does continuum supports UCM Clease case?
I'm not sure. I think Clearcase UCM use special commands, but don't know. Emmanuel [EMAIL PROTECTED] a écrit : Thanks, Raghurajan Gurunathan - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Re: Running a script/bat file - Post Build
It isn't possible actually. What do you want to do? after the build. Emmanuel Prashanth Krishnamurthy a écrit : Hi, I would like to execute a script or a bat file after the build. Does continuum has any way to execute this ?What is the best way ? regards --Prashanth __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Building dependant projects as well?
Dependent projects aren't build for the moment. It's planned for 1.1 Emmanuel Stefan Rotman a écrit : Hi, Is it possible with Continuum to make sure that, when I commit a change in a certain project, it also builds all project that have depencies on that project (or perhaps I should say: on the package generated by that project) ? Regards, Stefan Rotman
Re: wish list ? pending action list and manage it
a number of those items are lined up to be addressed in continuum 1.1 http://docs.codehaus.org/display/CONTINUUM/Continuum+Roadmap also things like timing out build that are taking too long or test cases running amok.. jesse On 8/10/06, Joerg Buchberger [EMAIL PROTECTED] wrote: On 07.08.2006 11:58, [EMAIL PROTECTED] wrote: Hello I would like to have a list of pending forced actions and if possible, cancel some. But before to add in the wish list, I want to know if there are any people which also need this feature. regards, Andre Hi. Seems useful to me. I'd also like use this opportunity to note some ideas along these lines... basically just borrowing from Cruisecontrol: suspend/resume actions for scheduled and for running builds (particular builds, all builds of a project and for all builds altogether). Cheers. Jörg -- jesse mcconnell [EMAIL PROTECTED]
Re: Resolving Source code dependency among modules?
Oh I see, you are generating sources and then need to mess around with those sources.. in this case you want to combine these modules since they are functionally working with the same artifact... you can generate the sources in the generate-sources phase, and then process them in process-sources phase, both of which are before compilingsounds like you just need to work out the lifecycle of one artifact, not break them out into multiple.. that make more sense? jesse On 8/10/06, Kapil Gupta(CT) [EMAIL PROTECTED] wrote: One more thing, if I move code generation logic to module B, even then I can't generate source for it as it depends on source code of A. So just moving the ant/perl script to module B does not solve my problem. Since module B uses source code of A and not its compiled classes, I can't take advantage of dependency mechanism and install A before building B? -Original Message- From: Kapil Gupta(CT) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:39 AM To: continuum-users@maven.apache.org Subject: RE: Resolving Source code dependency among modules? Thanks for your reply Christian. But am still unable to understand, how continuum would let me access directory of module A from module B? If I keep the source code generating perl scripts in module A, then I cannot access it from B, as they are not under same root folder. Since continuum gives a numeric number to their parent folder, I can't hard code this path in my pom. As Jesse and you have suggested, I should move the code generation logic with in that module only. Thanks, Kapil -Original Message- From: Christian Gruber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 8:01 PM To: continuum-users@maven.apache.org Subject: RE: Resolving Source code dependency among modules? Riffing off of Jesse's comments... Since the lifecycle of a project is generate-sources ... compile ... compile-tests ... install the whole notion is really to have generation of code for a module done within the lifecycle build of that module. One way you might be able to approach your a-b-c generation approach (knowing nothing about the details of your code, mind you) would be this. Assuming A has code that can be used to generate sources for B, Compile A, and install. Define A as a compile-only dependency of B (right now there's no such thing exactly, but you can use provided scope to wing-it) Bind the generation capabilities of A to the generate-sources phase of project B (possibly using the ant-run plug-in), to generate B's code within the B lifecycle. Then compile the resulting code in B's compile phase, install, etc. Define B as a compile-only dependency of C Bind the generation capabilities of B to the generate-sources phase of project C, to generate C's code within the C lifecycle. Then compile the resulting code in C's compile phase, install, etc. Rinse and repeat. Regards, Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 9:15 AM To: continuum-users@maven.apache.org Subject: Re: Resolving Source code dependency among modules? that kinda defeats the 1 module/1 artifact convention of maven, each project is supposed to be self-contained and the dependency mechanism is the mechanism by which the needed components are referenced. so continuum isn't going to be able to do that if you have the individual components broken out like that, they are not self-contained then. A top lvl build is the best you can hope for in that case. I would consider getting that generated code broken out into its own module and released as its own artifact, then you would be in good shape. jesse On 8/8/06, Kapil Gupta(CT) [EMAIL PROTECTED] wrote: Yes Jesse.. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 8:07 PM To: continuum-users@maven.apache.org Subject: Re: Resolving Source code dependency among modules? so you have a process where you are generating source code from one module for another module? p p/a/ p/b/ so you have A actually generating files into the directories for B? On 8/7/06, Kapil Gupta(CT) [EMAIL PROTECTED] wrote: Hi Jesse, My problem is not w.r.t resolving compile time dependencies (class file dependencies). But it is actually problem of generating source code in a different module. Since Continuum allocates a number for each module in its working directory, I cannot generate the source code of module B from module A. Am using clean package install as my build definition. Regards, Kapil -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 4:34 AM To: continuum-users@maven.apache.org Subject:
Re: Building Continuum from trunk
trunk is currently not working with the plexus application, there was a update to plexus-container-default alpha 10 and we haven't wired in that plexus application yet the trunk is in the hopefully final stages of some ui refactoring where it was switched over to webwork 2.2.2 so there is a lot of under the cover changes.. I would give it another couple of weeks before trunk is considered stable enough for you to play around with, unless of course you want to fix some stuff and submit some patches :) jesse On 8/10/06, Christian Gruber [EMAIL PROTECTED] wrote: Ok, I'm having problems. I can do a mvn clean install, but when I being to use the shell scripts, especially trying to build the plexus application, I cannot figure out how to build the end package to test. Are there build notes somewhere, or am I using the wrong build script? Help?! Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -- jesse mcconnell [EMAIL PROTECTED]
RE: Building Continuum from trunk
I'm cool with helping out (it's why I want to build), but I am not clear on its current state, so it's hard to know if I'm up against the limit of the current state of the build (ie, bugs I need to fix) or that I just can't build because my environment/build process is wrong. Regards, Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:54 PM To: continuum-users@maven.apache.org Subject: Re: Building Continuum from trunk trunk is currently not working with the plexus application, there was a update to plexus-container-default alpha 10 and we haven't wired in that plexus application yet the trunk is in the hopefully final stages of some ui refactoring where it was switched over to webwork 2.2.2 so there is a lot of under the cover changes.. I would give it another couple of weeks before trunk is considered stable enough for you to play around with, unless of course you want to fix some stuff and submit some patches :) jesse On 8/10/06, Christian Gruber [EMAIL PROTECTED] wrote: Ok, I'm having problems. I can do a mvn clean install, but when I being to use the shell scripts, especially trying to build the plexus application, I cannot figure out how to build the end package to test. Are there build notes somewhere, or am I using the wrong build script? Help?! Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -- jesse mcconnell [EMAIL PROTECTED]
RE: Building Continuum from trunk
... so does this mean that I should build and package the webapp and deploy in a J2EE container at this point? I tried to follow the conversation on this list, and the current /trunk state was unclear to me. Regards, Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:54 PM To: continuum-users@maven.apache.org Subject: Re: Building Continuum from trunk trunk is currently not working with the plexus application, there was a update to plexus-container-default alpha 10 and we haven't wired in that plexus application yet the trunk is in the hopefully final stages of some ui refactoring where it was switched over to webwork 2.2.2 so there is a lot of under the cover changes.. I would give it another couple of weeks before trunk is considered stable enough for you to play around with, unless of course you want to fix some stuff and submit some patches :) jesse On 8/10/06, Christian Gruber [EMAIL PROTECTED] wrote: Ok, I'm having problems. I can do a mvn clean install, but when I being to use the shell scripts, especially trying to build the plexus application, I cannot figure out how to build the end package to test. Are there build notes somewhere, or am I using the wrong build script? Help?! Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -- jesse mcconnell [EMAIL PROTECTED]
Re: Building Continuum from trunk
well, jira has the issues that are targeted for 1.1 http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=10540fixfor=12082 and here is a general roadmap of things that are also slated to be rolled into 1.1 http://docs.codehaus.org/display/CONTINUUM/Continuum+Roadmap if there are particular bits and pieces you might be interested in by all means submit some patchs or ask away :) Kenney is working on some of the build execution issues atm, and I am tackling the project grouping support, some others are working on better test result display and form validations, etc...the webwork conversion is largely complete but it probably needs a little bit of TLC :) and yes, you can deploy to jetty or tomcat from the continuum-webapp, or if you want to just play with it you can start it up with mvn jetty:run in that directory and continuum will be running on port 9090.. cheers, and give a hollar if you need anything! jesse On 8/10/06, Christian Gruber [EMAIL PROTECTED] wrote: ... so does this mean that I should build and package the webapp and deploy in a J2EE container at this point? I tried to follow the conversation on this list, and the current /trunk state was unclear to me. Regards, Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:54 PM To: continuum-users@maven.apache.org Subject: Re: Building Continuum from trunk trunk is currently not working with the plexus application, there was a update to plexus-container-default alpha 10 and we haven't wired in that plexus application yet the trunk is in the hopefully final stages of some ui refactoring where it was switched over to webwork 2.2.2 so there is a lot of under the cover changes.. I would give it another couple of weeks before trunk is considered stable enough for you to play around with, unless of course you want to fix some stuff and submit some patches :) jesse On 8/10/06, Christian Gruber [EMAIL PROTECTED] wrote: Ok, I'm having problems. I can do a mvn clean install, but when I being to use the shell scripts, especially trying to build the plexus application, I cannot figure out how to build the end package to test. Are there build notes somewhere, or am I using the wrong build script? Help?! Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796 -- jesse mcconnell [EMAIL PROTECTED] -- jesse mcconnell [EMAIL PROTECTED]
Maven 2.0.4 - multi module reporting
I'm evaluating maven 2.0.4 and am wondering what the current 'state' is for multi module reporting. I've read that there are various issues with it. What I like to know is: * does multi module reporting (aggregation) work for: - surefire - checkstyle - jdepend - javancss - cobertura - pmd - jxr * what are potential issues that I might have when performing reports on multi module projects? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[PATCH] add correct ejb-client to war if configured in dependency
Hello, attached you will find a patch that will allow the maven-war-plugin to add a ejb-client created by the maven-ejb-plugin. With the latest cvs snapshot it is not possible to add the ejb client to the war, always the ejb.jar will be added to the war file what is not really inteded. this dependency will only add the ejb(server).jar to the war file. What i really want is that the created ejb-client.jar is added to the war. adding the ejb(server).jar to the war file does not make sense for the war file. (the maven-ejb-plugin created a server and client version for the de.blubb.project_name.ejb projekt, which is actually another module of my project) dependency groupIdde.blubb.project_name/groupId artifactIdejb/artifactId version1.0/version typeejb-client/type /dependency If the patch is obsolete, i was wondering if there is anybody out there who is using the maven-ejb-plugin in combination with the maven-war-plugin and is actually adding the created ejb-client to the created war file successfully. As far as i can tell the maven-ejb-plugin creates a client (if requested) with the name artifcat-version-client.jar. however the maven-war-plugin does not respect the -client in the client's name. even if i set the type of the dependency to ejb-client it is still getting the ejb.jar, not the ejb-client.jar. My patch fixes this problem. i can provide a testcase that shows the current problem, if requested. feedback is really appreciated. regards, Andy Index: D:/WSAD/DefaultWorkspace/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java === --- D:/WSAD/DefaultWorkspace/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java (revision 430070) +++ D:/WSAD/DefaultWorkspace/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java (working copy) @@ -478,7 +478,7 @@ File expectedWebSourceFile = new File( webAppDirectory, pansit.jsp ); File expectedWebSource2File = new File( webAppDirectory, org/web/app/last-exile.jsp ); // final name form is artifactId-version.type -File expectedEJBArtifact = new File( webAppDirectory, WEB-INF/lib/ejbclientartifact-0.0-Test.jar ); +File expectedEJBArtifact = new File( webAppDirectory, WEB-INF/lib/ejbclientartifact-0.0-Test-client.jar ); assertTrue( source files not found: + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() ); assertTrue( source files not found: + expectedWebSource2File.toString(), expectedWebSource2File.exists() ); @@ -488,7 +488,7 @@ expectedWebSourceFile.delete(); expectedWebSource2File.delete(); expectedEJBArtifact.delete(); -} +} /** * @throws Exception Index: D:/WSAD/DefaultWorkspace/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java === --- D:/WSAD/DefaultWorkspace/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (revision 430070) +++ D:/WSAD/DefaultWorkspace/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (working copy) @@ -1022,8 +1022,15 @@ */ private String getDefaultFinalName( Artifact artifact ) { -return artifact.getArtifactId() + - + artifact.getVersion() + . + -artifact.getArtifactHandler().getExtension(); +String type = artifact.getType(); +if (ejb-client.equals( type )) { + return artifact.getArtifactId() + - + artifact.getVersion() + - + client + + . + + artifact.getArtifactHandler().getExtension(); +} else { + return artifact.getArtifactId() + - + artifact.getVersion() + . + + artifact.getArtifactHandler().getExtension(); +} } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bootstrapping the javac compiler
Hi. I'm working on a project where I bootstrap the compiler. I have it working but the POM configuration for the compiler does not do what I expect. I wonder whether this is a bug or there's something I do not understand. What I have to do is: 1. Use a specified compiler (javac from a given JDK directory). 2. Prepend the bootstrap classpath when compiling tests. So what I did is I specified the configuration, and then I specified a specific execution for the test-compile. And I thought the configuration would carry over into the test-compile execution. But that is not happening. I actually don't know exactly what is the ultimate effective configuration, but the compile fails because the bootstrapping is not happening. So this is what that plugin configuration would have looked like I though. Note that the email may hard-wrap one or two long lines. plugin !-- - Use the mustang compiler. -- groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion6/compilerVersion forktrue/fork source5/source target6/target executable${project.mustangHome}/bin/javac/executable compilerArgument-deprecation/compilerArgument compilerArgument-Xlint/compilerArgument /configuration executions execution phasetest-compile/phase goals goaltestCompile/goal /goals configuration compilerArgument-Xbootclasspath/p: ${project.build.outputDirectory}:${project.junitJar}/compilerArgument /configuration /execution /executions /plugin This doesn't work. The working solution is below. I found a workaround for me by simply including the bootstrapping into the main configuration and eliminating the test-compile execution. This does work but is not the logical solution. And it does seem like a bug here. Anyone have any thoughts? Maybe I should file a bug? The working configuration is as follows: plugin !-- - Use the mustang compiler. -- groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion6/compilerVersion forktrue/fork source5/source target6/target executable${project.mustangHome}/bin/javac/executable compilerArgument-deprecation/compilerArgument compilerArgument-Xlint/compilerArgument compilerArgument-Xbootclasspath/p: ${project.build.outputDirectory}:${project.junitJar}/compilerArgument /configuration /plugin - Steven Coco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Conflicting Dependency Version Dilemna
Mike Perham wrote on Wednesday, August 09, 2006 8:05 PM: Not exactly. We have a single parent POM per ear and don't share war/ejbs between ears, yes. But you can still do what you want with a dependencyManagement section in the parent to centralize the version numbers and just have each ear POM pull in its required ejbs. Or am I missing something? And what about the EJBs? As long as the EJBs do not use the same parent POM and declare the depednencies explicitly, it is not guaranteed to work. And if you add the same POM to different EARs you might be in conflict. And note, this is not simply hypothetical, we run into this often enough to be annoyed. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Selenium?
Hi, I understand that Selenium by design requires a full-fledged browser, but isn't that also one of its greatest features? By running your tests using FF or IE, you can be sure they do work in their target environment, regardless of browser bugs. So yes, the htmlunit approach makes testing easier to integrate with CI, but it doesn't give you the same results. This may be acceptable for many simple testcases though. I just looked over the jWebUnit 2.x website very quickly, so I may be missing something. But how is test case writing with jWebUnit easier than using Selenium's IDE or DSL syntax? Cheers, -Ralph. On 02.08.2006, at 10:02, Christophe DENEUX wrote: Hi Daniel, Some advantages of using jWebUnit to test a web application are: - easier test case writing, - faster test case running, - No graphic server is needed with the engine htmlunit, so the integration into a continuous integration system is easier (no browser is needed), - Soon, you will use an engine for Selenium to run your tests directly in your browser. jWebUnit home: http://jwebunit.sourceforge.net __ __ Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Fax: + 33 4 93 21 02 95 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience __ __ Daniel Serodio a écrit : Christophe DENEUX wrote: Hi , A snapshot repository is available at: http://maven.openqa.org/ Have you try jWebUnit (http://jwebunit.sourceforge.net/index.html) instead of Selenium for your functional tests? With jWebUnit, you can run your tests with different engines as htmlunit or Selenium (the Selenium engine is available trough SVN). You will use the htmlunit engine to execute your tests in a background mode (continuous integration) and the selenium engine in a visual mode. It's been a while since I looked at jWebUnit, and I'm currently using Selenium; what is the advantage of using jWebUnit as you describe instead of using Selenium directly? Do you have an URL with more info on the subject? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Packaging all modules as Jar
Hello The version you're using doesn't easily support what you want to accomplish. You might want to try the 2.1 version or maybe the snapshot version 2.2-SNAPSHOT. Where to find org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7-SNAPSHOT ? It doesn't seem to be deployed either on people.apache.org/maven-snapshot-repository or on snapshots.maven.codehaus.org/maven2 Thanks Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Flat directory structure and Eclipse
HI, there is still one trouble. When you use version control system (CVS, SVN, ..) plugin in Eclipse, you cannot checkout/commit the files in root folder, because the root folder is not part of Eclipse workspace. Jan Stefan Magnus Landrø [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The eclipse plugin is included by default try running mvn eclipse:eclipse. It will generate the project/classpath files for you automatically. You can of course set up the projects manually, but it's a lot of work. I typically use the follwing setup: c:\projects c:\projects\myproject\ c:\projects\myproject\EAR c:\projects\myproject\WAR c:\projects\myproject\EJB c:\projects\myproject_workspace The advantage of this is that you don't mess up your project folder with workspace settings. HTH Stefan news [EMAIL PROTECTED] skrev 09.08.2006 14:24:38: Thanks Stefan, I don't use the eclipse plugin, but it makes no difference. So, if I understand you well, you have the structure recomended by Maven doc outside of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR subfolders? Are there any troubles with this setup? Jan Hi Jan, running the maven eclipse plugin, you won't get any project file for the top level (myProject / pom.xml). Also, I recomment using a workspace location different from where you keep your source code (using eclipse's import existing project feature) HTHAB, Stefan news [EMAIL PROTECTED] skrev 09.08.2006 14:05:26: Hi, The flat directory is recommended for J2EE projects: myProject / pom.xml | |-- EAR / pom.xml | |-- EJB / pom.xml | |-- WEB / pom.xml This structure is not entirely flat because of the root myProject / pom.xml. It is not clear to me how this structure fits into Eclipse workspace. Do you have the myProject / pom.xml in the root folder of Eclipse workspace and each EAR/EJB/WEB as eclipse projects? It seems to me that this shold work better with Eclipse: EclipseWorkspace | |-- myProject.EAR / pom.xml | |-- myProject.EJB / pom.xml | |-- myProject.WEB / pom.xml | |-- myProject.main / pom.xml (this is the parent POM) Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with changelog report
No.. the timestamp doesn't have any sense. The file with this timestamp: 0020-05-27 00:00:00 was changed the 14 december 2005 at 11.48.50. However the report, except for timestamps and urls, which terminate at trunk (http://subversion_url/../prod_name/prod_name/trunk), seems to be correct for the range selected. Thank you for you attention! Lorenzo -- View this message in context: http://www.nabble.com/Problem-with-changelog-report-tf2079095.html#a5740299 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ad: Re: Re: Flat directory structure and Eclipse
Try setting up the parent project as an eclipse project manually. I hardly ever edit my paretn project anyways. Stefan news [EMAIL PROTECTED] skrev 10.08.2006 10:11:48: HI, there is still one trouble. When you use version control system (CVS, SVN, ..) plugin in Eclipse, you cannot checkout/commit the files in root folder, because the root folder is not part of Eclipse workspace. Jan Stefan Magnus Landrø [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] . The eclipse plugin is included by default try running mvn eclipse:eclipse. It will generate the project/classpath files for you automatically. You can of course set up the projects manually, but it's a lot of work. I typically use the follwing setup: c:\projects c:\projects\myproject\ c:\projects\myproject\EAR c:\projects\myproject\WAR c:\projects\myproject\EJB c:\projects\myproject_workspace The advantage of this is that you don't mess up your project folder with workspace settings. HTH Stefan news [EMAIL PROTECTED] skrev 09.08.2006 14:24:38: Thanks Stefan, I don't use the eclipse plugin, but it makes no difference. So, if I understand you well, you have the structure recomended by Maven doc outside of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR subfolders? Are there any troubles with this setup? Jan Hi Jan, running the maven eclipse plugin, you won't get any project file for the top level (myProject / pom.xml). Also, I recomment using a workspace location different from where you keep your source code (using eclipse's import existing project feature) HTHAB, Stefan news [EMAIL PROTECTED] skrev 09.08.2006 14:05:26: Hi, The flat directory is recommended for J2EE projects: myProject / pom.xml | |-- EAR / pom.xml | |-- EJB / pom.xml | |-- WEB / pom.xml This structure is not entirely flat because of the root myProject / pom.xml. It is not clear to me how this structure fits into Eclipse workspace. Do you have the myProject / pom.xml in the root folder of Eclipse workspace and each EAR/EJB/WEB as eclipse projects? It seems to me that this shold work better with Eclipse: EclipseWorkspace | |-- myProject.EAR / pom.xml | |-- myProject.EJB / pom.xml | |-- myProject.WEB / pom.xml | |-- myProject.main / pom.xml (this is the parent POM) Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: Flat directory structure and Eclipse
Try setting up the parent project as an eclipse project manually. Yes, that is possible, but it will create confusing layout, because the same files (in subfolders) will be part of two different Eclipse projects (+ twice as much metadata in Eclipse). I hardly ever edit my paretn project anyways. Yes, but if you use Eclipse as a the only tool to work with SCM, you need a way how to check out the files. Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] unable to run jar:deploy using maven-1.1-beta3
Hi folks, I'm running Windows whereas the repository resides on a Linux box. I'm unable to successfully deploy my JAR using the following settings maven.repo.list=releases maven.repo.releases=scp://10.0.0.20 maven.repo.releases.directory=/home/sgoeschl/temp maven.repo.releases.username=foo maven.repo.releases.password=bar I get the following output START Will deploy to 1 repository(ies): releases Deploying to repository: releases Failed to deploy to: releases Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: 10.0.0.20 org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: 10.0.0.20 at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(AbstractSshWagon.java:232) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(DefaultArtifactDeployer.java:372) END +) I gave it a try using scpexe://10.0.0.20 but it seems to do nothing apart from sucess messages +) I can successfully use putty's pscp to copy the files on my box Any ideas or hints?! Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
eclipse maven 2 plugin
Hi i'm using in eclipse the plugin to let it work with maven 2 and i'm having some problems with it. (Bare in mind that everything works fine when i run it from the command line.) First issue - As it currently doesn't read the settings.xml (or has this bin fixed and am i doing something wrong??), i wonder how i can specify how to logon my tomcat i currently have this inside my POM: plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration warFile /target/dev/${artifactId}-${version}-dev.war /warFile servermyserver/server /configuration /plugin as he doesn't read the settings.xml, this obviously doesnt work :) any suggestions? second issue --- I'm using multiple profiles (actually four called: dev, test, prod and qa). How do I run a different profile in Eclipse than the default one? (dev is the active by default one) I've tried a lot of things: i right-click on my pom and choose the run as Maven build... option. Then you get a screen to specify your goal and arguments. i've tried to fill in the following thing in the argument section argumentName argumentValue P test p test -P test -p test profile.name test (then he just replaced profile.name with test in my pom, but doesn't execute the test profile). In the first four cases, he just executes the dev-profile (the active by default one) anybody that knows how to help?? thx! -- View this message in context: http://www.nabble.com/eclipse-maven-2-plugin-tf2083850.html#a5741589 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse maven 2 plugin
woeps, just noticed that this has it's own forum...anyway to replace this message to the Maven Eclipse - User forum ? sorry for the inconvenience -- View this message in context: http://www.nabble.com/eclipse-maven-2-plugin-tf2083850.html#a5741620 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly module: binary exlusion
Hello, I'm creating an assembly based on a few modules. To include the dependencies of all modules in a module_name/lib directory, I'm using the moduleSets/moduleSet elements in my assembly descriptor. Unfortunately, the jar of the artifact that is being assembled is always included in the lib directory. To prevent this, I wanted to do something like: binaries outputDirectory${artifactId}/lib/outputDirectory includeDependenciestrue/includeDependencies unpackfalse/unpack excludes exclude${groupId}:${artifactId}/exclude excludemodule_name*/exclude /excludes /binaries I've tried these two ways of filling the exclude elements, but none work. Could anybody help me? Thanks! Sébastien -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Guide to using Eclipse with Maven 2.x
Hi, I tried to follow the guide at http://maven.apache.org/guides/mini/guide-ide-eclipse.html for multiple module project, but running: mvn archetype:create -DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse results in: [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Invalid task 'guide.ide.eclipse:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Thu Aug 10 13:53:25 CEST 2006 [INFO] Final Memory: 1M/4M [INFO] - --- Is the guide correct or I miss something? Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ad: Guide to using Eclipse with Maven 2.x
Hi Jan, I just ran your example. It works fine here. Are you sure you didn't forget something in the CL? is it all on one line? C:\tempmvn archetype:create -DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse news [EMAIL PROTECTED] skrev 10.08.2006 13:57:02: Hi, I tried to follow the guide at http://maven.apache.org/guides/mini/guide-ide-eclipse.html for multiple module project, but running: mvn archetype:create -DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse results in: [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Invalid task 'guide.ide.eclipse:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Thu Aug 10 13:53:25 CEST 2006 [INFO] Final Memory: 1M/4M [INFO] - --- Is the guide correct or I miss something? Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Guide to using Eclipse with Maven 2.x
Thanks Stefan, in fact, I got checksum errors when maven downloaded archetype plugin: [INFO] Searching repository for plugin with prefix: 'archetype'. Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype/1.0-alpha-4/maven-archetype-1.0-alpha-4.pom 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'eb9e286b16 844e1c5f8f38a9ddd7ee266985c8f6'; remote = '2f4311799239ce76c6c1386bee04988f579d2 6b7' - RETRYING Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch etype/1.0-alpha-4/maven-archetype-1.0-alpha-4.pom 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'eb9e286b16 844e1c5f8f38a9ddd7ee266985c8f6'; remote = '2f4311799239ce76c6c1386bee04988f579d2 6b7' - IGNORING Jan Stefan Magnus Landrø [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Jan, I just ran your example. It works fine here. Are you sure you didn't forget something in the CL? is it all on one line? C:\tempmvn archetype:create -DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse news [EMAIL PROTECTED] skrev 10.08.2006 13:57:02: Hi, I tried to follow the guide at http://maven.apache.org/guides/mini/guide-ide-eclipse.html for multiple module project, but running: mvn archetype:create -DgroupId=guide.ide.eclipse -DartifactId=guide-ide-eclipse results in: [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Invalid task 'guide.ide.eclipse:': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Thu Aug 10 13:53:25 CEST 2006 [INFO] Final Memory: 1M/4M [INFO] - --- Is the guide correct or I miss something? Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
plugin-test-
-- View this message in context: http://www.nabble.com/plugin-test--tf2084302.html#a5743035 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
plugin-test-
-- View this message in context: http://www.nabble.com/plugin-test--tf2084303.html#a5743036 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-plugin-testing-harness: getting an ArtifactRepository for my test
Anyone got any tips or suggestions for where to look to find an example of using the test harness to wire up a mojo with an ArtifactRepository? Or any other non-trivial parameters? The MavenProject seems to be available through a stub implementation provided with the test harness. Is that the best way to get a repository object (I would have to write a stub)? Also, how do I make ${basedir} in a parameter expression resolve? I find I have to override all the parameters that contain ${basedir} in theor expression separately. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5743139 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my test
Actually, I created a small maven-artifact-test module for that. It needs more detail, but it'll help you get a usable repository instance. - Brett On 10/08/06, Dave Syer [EMAIL PROTECTED] wrote: Anyone got any tips or suggestions for where to look to find an example of using the test harness to wire up a mojo with an ArtifactRepository? Or any other non-trivial parameters? The MavenProject seems to be available through a stub implementation provided with the test harness. Is that the best way to get a repository object (I would have to write a stub)? Also, how do I make ${basedir} in a parameter expression resolve? I find I have to override all the parameters that contain ${basedir} in theor expression separately. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5743139 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building dependant projects as well?
Hi, Is it possible with Continuum to make sure that, when I commit a change in a certain project, it also builds all project that have depencies on that project (or perhaps I should say: on the package generated by that project) ? Regards, Stefan Rotman
RE: [m1] unable to run jar:deploy using maven-1.1-beta3
Hi Siegfried, This JIRA seems to represent the problem you are experiencing: http://jira.codehaus.org/browse/MPARTIFACT-71 If you think so, would you please add your details to it? -Original Message- From: Siegfried Goeschl [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 4:33 AM To: users@maven.apache.org Subject: [m1] unable to run jar:deploy using maven-1.1-beta3 Hi folks, I'm running Windows whereas the repository resides on a Linux box. I'm unable to successfully deploy my JAR using the following settings maven.repo.list=releases maven.repo.releases=scp://10.0.0.20 maven.repo.releases.directory=/home/sgoeschl/temp maven.repo.releases.username=foo maven.repo.releases.password=bar I get the following output START Will deploy to 1 repository(ies): releases Deploying to repository: releases Failed to deploy to: releases Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: 10.0.0.20 org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: reject HostKey: 10.0.0.20 at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(Abstrac tSshWagon.java:232) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(Defau ltArtifactDeployer.java:372) END +) I gave it a try using scpexe://10.0.0.20 but it seems to do nothing apart from sucess messages +) I can successfully use putty's pscp to copy the files on my box Any ideas or hints?! Thanks in advance Siegfried Goeschl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse maven 2 plugin
devillina wrote: woeps, just noticed that this has it's own forum...anyway to replace this message to the Maven Eclipse - User forum ? sorry for the inconvenience The m2eclipse list? It died along with the horrifying disc-crashes at codehaus - never came back. If you try to subscribe the mail bounce, if you try to contact the list maintainer - it will bounce Same with svn repos listed at the site - the most of them does not exist... -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
Actually, I created a small maven-artifact-test module for that. It needs more detail, but it'll help you get a usable repository instance. It gets me a repository, but how do I inject it into a mojo in a test case? Sorry to be so thick about this. Also since your test case extends PlexusTestCase I can't use it and the AbstractMojoTestCase together. Any suggestions? -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744003 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
Ah, you might need to just steal the code then. I see what you mean about getting it into a mojo - you'll need to set it directly into there. The plugin testing harness still needs some work... - Brett On 10/08/06, Dave Syer [EMAIL PROTECTED] wrote: Actually, I created a small maven-artifact-test module for that. It needs more detail, but it'll help you get a usable repository instance. It gets me a repository, but how do I inject it into a mojo in a test case? Sorry to be so thick about this. Also since your test case extends PlexusTestCase I can't use it and the AbstractMojoTestCase together. Any suggestions? -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744003 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conflicting Dependency Version Dilemna
I like it and I think that's a reasonable request. Throw it in JIRA and maybe Santa will deliver it in 2.1. :-) mike [EMAIL PROTECTED] wrote on 08/09/2006 11:37:39 PM: It could define the version conflict resolution rules such that dependencyManagement version declarations in *my* POMs (defined as the one for this project or the explictly declared parent tree) always win over version declarations that come from explicit or transitive dependencies. That way, I can declare in a single parent POM all my version dependency information for *all* my leaf node projects (webapps in my case, but the same principle applies to any environment where you are creating lots of individual artifacts that share a common set of dependencies) without having to tediously edit all of the leaf POMs individually.
RE: Conflicting Dependency Version Dilemna
Mike Perham wrote on Thursday, August 10, 2006 3:28 PM: I like it and I think that's a reasonable request. Throw it in JIRA and maybe Santa will deliver it in 2.1. :-) This *is* what MNG-1577 is about and it has been postponed since 2.0.1. :-/ mike [EMAIL PROTECTED] wrote on 08/09/2006 11:37:39 PM: It could define the version conflict resolution rules such that dependencyManagement version declarations in *my* POMs (defined as the one for this project or the explictly declared parent tree) always win over version declarations that come from explicit or transitive dependencies. That way, I can declare in a single parent POM all my version dependency information for *all* my leaf node projects (webapps in my case, but the same principle applies to any environment where you are creating lots of individual artifacts that share a common set of dependencies) without having to tediously edit all of the leaf POMs individually. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conflicting Dependency Version Dilemna
[EMAIL PROTECTED] wrote on 08/10/2006 12:28:36 AM: If I understand your recommendation correctly, you would like me to declare my dependency on version [1.7.0,) instead (meaning version 1.7.0 or any later version). From a QE perspective, that is an untestable assertion -- there is no way to know that some future version of BeanUtils might introduce some incompatible change that makes *my* library no longer work. That is not acceptable to me as the supplier of a library, because it is *me* who is going to suffer the you *said* it would work bug reports. Craig, please don't ruin my fantasy world with your reality. :-) You are right, in a perfect world you could depend on libraries keeping backwards compatability but even then each project can have a different versioning policy and their dependents would have to understand and codify that policy in the version range, e.g., for commons-logging, should the version range be [1.0,1.1) or [1.0,2.0)? This is not realistic. If an end user of my library wants to override my setting, they can (although making them do it in every leaf node is definitely a violation of the don't repeat yourself mantra that M2 seems to really like :-). But I want *my* POMs to advertise what *I* have tested, and not rely on all of my dependencies not to break me with future versions. I wouldn't even want to trust my own modules enough to use ranges like that :-). I like your idea about dependencyManagement able to override transitive versions. To me that's the best idea because you are listing your own versioned bill of materials for your system to test with. This is critical - we have seen numerous instances where versions suddenly devolve due to the addition of a new dependency. That's unacceptable and having a master list of dependency versions in a single place would solve the problem. mike
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
I see what you mean about getting it into a mojo - you'll need to set it directly into there. How? Can you help me to understand how to inject a property into a mojo? They seem to just have private fields and no setters. Is there a reason for them not having public setters? I could add setters for my mojo parameters. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744691 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Conflicting Dependency Version Dilemna
Well, I added my vote and +1 to the issue. That's about all I can do since I shy away from touching the maven core. mike Jörg Schaible [EMAIL PROTECTED] wrote on 08/10/2006 08:42:40 AM: This *is* what MNG-1577 is about and it has been postponed since 2.0.1. :-/
Re: [PATCH] add correct ejb-client to war if configured in dependency
Andreas, Your best bet for getting your patch committed is to create a JIRA issue for the maven-war-plugin[1] and attach the patch there. [1] http://jira.codehaus.org/browse/MWAR Doug On 8/10/06, AndreasWuest [EMAIL PROTECTED] wrote: Hello, attached you will find a patch that will allow the maven-war-plugin to add a ejb-client created by the maven-ejb-plugin. With the latest cvs snapshot it is not possible to add the ejb client to the war, always the ejb.jar will be added to the war file what is not really inteded. this dependency will only add the ejb(server).jar to the war file. What i really want is that the created ejb-client.jar is added to the war. adding the ejb(server).jar to the war file does not make sense for the war file. (the maven-ejb-plugin created a server and client version for the de.blubb.project_name.ejb projekt, which is actually another module of my project) dependency groupIdde.blubb.project_name/groupId artifactIdejb/artifactId version1.0/version typeejb-client/type /dependency If the patch is obsolete, i was wondering if there is anybody out there who is using the maven-ejb-plugin in combination with the maven-war-plugin and is actually adding the created ejb-client to the created war file successfully. As far as i can tell the maven-ejb-plugin creates a client (if requested) with the name artifcat-version-client.jar. however the maven-war-plugin does not respect the -client in the client's name. even if i set the type of the dependency to ejb-client it is still getting the ejb.jar, not the ejb-client.jar. My patch fixes this problem. i can provide a testcase that shows the current problem, if requested. feedback is really appreciated. regards, Andy Index: D:/WSAD/DefaultWorkspace/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java === --- D:/WSAD/DefaultWorkspace/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java (revision 430070) +++ D:/WSAD/DefaultWorkspace/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java (working copy) @@ -478,7 +478,7 @@ File expectedWebSourceFile = new File( webAppDirectory, pansit.jsp ); File expectedWebSource2File = new File( webAppDirectory, org/web/app/last-exile.jsp ); // final name form is artifactId-version.type -File expectedEJBArtifact = new File( webAppDirectory, WEB-INF/lib/ejbclientartifact-0.0-Test.jar ); +File expectedEJBArtifact = new File( webAppDirectory, WEB-INF/lib/ejbclientartifact-0.0-Test-client.jar ); assertTrue( source files not found: + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() ); assertTrue( source files not found: + expectedWebSource2File.toString(), expectedWebSource2File.exists() ); @@ -488,7 +488,7 @@ expectedWebSourceFile.delete(); expectedWebSource2File.delete(); expectedEJBArtifact.delete(); -} +} /** * @throws Exception Index: D:/WSAD/DefaultWorkspace/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java === --- D:/WSAD/DefaultWorkspace/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (revision 430070) +++ D:/WSAD/DefaultWorkspace/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (working copy) @@ -1022,8 +1022,15 @@ */ private String getDefaultFinalName( Artifact artifact ) { -return artifact.getArtifactId() + - + artifact.getVersion() + . + -artifact.getArtifactHandler().getExtension(); +String type = artifact.getType(); +if (ejb-client.equals( type )) { + return artifact.getArtifactId() + - + artifact.getVersion() + - + client + + . + + artifact.getArtifactHandler().getExtension(); +} else { + return artifact.getArtifactId() + - + artifact.getVersion() + . + + artifact.getArtifactHandler().getExtension(); +} } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven, Eclipse, SVN, J2EE and directory layout
Hi, I have spent quite a time looking for good J2EE directory layout that will work with maven, Eclipse and SVN (CVS). It's not clear to me how you solve this problem. So far here are two options and their troubles: 1. Flat layout (parent POM folder is located next to EJB, WAR, ... folders). This plays nice with Eclipse/SVN, but has troubles: maven1 cannot handle this structure, maven2 plugins has issues with this structure (release plugin), this is not standard layout 2. Almost flat layout (parent POM is one folder up from the EJB, WAR, ... folders). This is maven2 recommended layout, but it doesn't fit into Eclipse/SVN. Developers are required to use SVN/CVS clients to check out the whole layout to some folder and then each EJB, WAR are linked into workspace. You cannot use Eclipse CVS/SVN plugin to checkout the parent POM without fiddling with files - moving checkouted files out of workspace (possible space for errors). 3. ? I don't like any of the two solutions, solution 2 will require to use another CVS/SVN client (all developers must learn it) or to follow some guidelines. Thanks for any idea, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven, Eclipse, SVN, J2EE and directory layout
1. Flat layout (parent POM folder is located next to EJB, WAR, ... folders). This plays nice with Eclipse/SVN, but has troubles: maven1 cannot handle this structure, maven2 plugins has issues with this structure (release plugin), this is not standard layout This is also not supported by Continuum (http://jira.codehaus.org/browse/CONTINUUM-462) Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 1.1-beta3 maven-artifact-plugin 1.8
Well, I was about to... But when I reproduced it, I thought I'd dig a bit to see what might be wrong. I started by changing the NullKnownHostProvider by a FileKnownHostProvider which would validate my provider, then replaced the cached class files with the newly compiled ones. It worked fine... Then I reverted to NullKnownHostProvider, but it still worked fine!!! So, to recap, installing maven-artifact-plugin 1.8 as-is fails with host rejected error. Replacing its class files with the locally compiled trunk version fixes my problem. What changed between 1.8 and trunk? Seems to be the right thing, at least for me... ;-) And is there a 1.9-SNAPSHOT available somewhere? Steve On Thu, 2006-10-08 at 08:01 -0500, Jeff Jensen wrote: Hi Steve, Would you mind adding your details on the deploy error with m1.1b3 to this JIRA, please? http://jira.codehaus.org/browse/MPARTIFACT-71 On 8/9/06, Steve Molloy [EMAIL PROTECTED] wrote: Thanks, I guess I'll stick with 1.0.2 until the next release, hoping this issue will be fixed. Is there any ETA set for the next 1.1 release yet? Steve On Wed, 2006-09-08 at 08:23 -0500, Jeff Jensen wrote: Hi Steve, Yes, this is an issue I encountered as well. I have found that the 6/30 1.1-beta3-SNAPSHOT does not have this problem, but every release since then does. See 20060630/ here: http://people.apache.org/~aheritier/maven/1.X/snapshots/ We are researching the problem to find a fix. In the meantime, I suggest the 6/30 snapshot if you would like to use 1.1. It is very solid and the current one we use for our production work (we've used nearly every one of those snapshots all along as they were published). -Original Message- From: Steve Molloy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 7:24 AM To: users@maven.apache.org Subject: Maven 1.1-beta3 maven-artifact-plugin 1.8 Hi, I just upgraded from maven 1.0.2 to 1.1-beta3, and got the maven-artifact-plugin 1.8 along with it. But Now I can't deploy any artifacts because scp refuses my host key, while scpexe just doesn't do anything at all, but doesn't complain... So, I've reverted back to 1.0.2 for now, but are there any plans for fixing these problems? (I'm running maven on JDK 1.5.0_07, on Fedora core 5). Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.4 - multi module reporting
I know that you can aggregate the jxr reports across all the children projects of one parent. Last time I tried the JavaDocs aggregation almost worked but ultimately failed due to failure to set up the classpath correctly. I'm pretty sure cobertura doesn't aggregate yet. I could be wrong. Someone else will have to comment on your other plugins. -- Lee On 8/10/06, Jan Vissers [EMAIL PROTECTED] wrote: I'm evaluating maven 2.0.4 and am wondering what the current 'state' is for multi module reporting. I've read that there are various issues with it. What I like to know is: * does multi module reporting (aggregation) work for: - surefire - checkstyle - jdepend - javancss - cobertura - pmd - jxr * what are potential issues that I might have when performing reports on multi module projects? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: Packaging all modules as Jar
Thanks for the reply, that sounds like it will help. How can i grab the snapshot and set it up? I noticed there seem to be 3 or 4 differnet servers that have source and jars and I have no idea which one has 2.2 snapshot. I poked around http://snapshots.maven.codehaus.org/maven, http://cvs.apache.org/maven-snapshot-repository and one or two others, it seems every google search I do turns up a differnet server with different stuff on it. Do I need to use subversion to grab the latest build or is this related to continuous integration? Tim From: Edwin Punzalan [EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 9:16 PM To: Maven Users List users@maven.apache.org Subject: Re: Packaging all modules as Jar The version you're using doesn't easily support what you want to accomplish. You might want to try the 2.1 version or maybe the snapshot version 2.2-SNAPSHOT. I have a staging site deployed for 2.2-SNAPSHOT which has an example of you're trying to do at http://people.apache.org/~epunzalan/maven-assembly-plugin/examples/multimodule/index.html. If you're going to use the SNAPSHOT version, you also might want to take a look into http://maven.apache.org/guides/development/guide-testing-development-plugins.html Hope that helps ^_^ Tim Patton wrote: I'm trying to package all of the compiled code of several modules into 1 jar but I can't seem to figure out the assembly plugin. I tried including this in my parent pom: .. maven-assembly-plugin 2.0-beta-1 And executing this command line that I found on the maven site somewhere: mvn assembly:assembly -DprojectModulesOnly=true -DdescriptorId=bin However it tells me I need a descriptorId, which I specified. Plus bin isn't really what I want, I just want a jar file of my code only, not any config files or dependent jars. As a side note, is there any task to run to update all maven plugins? When working with this and my failed attempt at aggregating javadocs for my project (looks like I am sticking with ant for that part) I had to specify a version so maven could download the latest plugin. I guess somehow it was using a 1.0 plugin even though I thought the latest plugins would be in the distribution I downloaded. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: eclipse maven 2 plugin
The m2eclipse list is alive. You're correct that the svn repo listed on the site is incorrect. Correct one is http://svn.codehaus.org/m2eclipse/trunk. -Original Message- From: David J. M. Karlsen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:05 AM To: Maven Users List Subject: Re: eclipse maven 2 plugin devillina wrote: woeps, just noticed that this has it's own forum...anyway to replace this message to the Maven Eclipse - User forum ? sorry for the inconvenience The m2eclipse list? It died along with the horrifying disc-crashes at codehaus - never came back. If you try to subscribe the mail bounce, if you try to contact the list maintainer - it will bounce Same with svn repos listed at the site - the most of them does not exist... -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple Problem with exec plugin
I'm trying to get the exec plugin to work, since maven seems like it would make a great application launcher and save me time editing my 1000 char classpath. I have this in my pom.xml for a project consisting of several modules: build .. plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId version1.0.1/version configuration mainClassdealcatcher.kolinka.profiler.SingleForumProfile/mainClass /configuration /plugin .. /build When I run it with mvn exec:java I get Could not load main class. Terminating.. I try running mvn package or mvn install beforehand but I'm not sure what I am missing to make this work. Tim
fetching dependencies from Ant
I am trying to troubleshoot a problem with the maven2 ant tasks, where I am unable to fetch anything from a remote repository: [artifact:dependencies] Resolving dependencies... [artifact:dependencies] [INFO] snapshot vt.edu:drtsj-ri:1.0-SNAPSHOT: checking f or updates from drtsj.repository [artifact:dependencies] [WARNING] repository metadata for: 'snapshot vt.edu:drts j-ri:1.0-SNAPSHOT' could not be retrieved from repository: drtsj.repository due to an error: Error transferring file [artifact:dependencies] [INFO] Repository 'drtsj.repository' will be blacklisted [artifact:dependencies] An error has occurred while processing the Maven artifac t tasks. [artifact:dependencies] Diagnosis: [artifact:dependencies] [artifact:dependencies] Unable to resolve artifact: required artifacts missing: snipped [artifact:dependencies] [artifact:dependencies] for the artifact: [artifact:dependencies] unspecified:unspecified:jar:0.0 [artifact:dependencies] [artifact:dependencies] from the specified remote repositories: [artifact:dependencies] central (http://repo1.maven.org/maven2), [artifact:dependencies] drtsj.repository (http://x.ece.vt.edu/maven2 I have verified in the webserver logs that the file is delivered, and even gone so far as ethereal to ensure that the contents of the metadata XML file were delivered to the local process. The file does not appear in the local repository, however. Is there some kind of additional troubleshooting capability I can use to figure out *what* error in transferring the file? [cc me on responses, if you would be so kind.] JA -- Jonathan S. Anderson -- [EMAIL PROTECTED] tel: 540.961.0229 (H) 540.818.2896 (C) www: http://andersoj.org/oddments pgp key: http://andersoj.org/personal/0xF0BE7EF8-pub.asc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Optional Goals Dependencies
I was just reading those pages. Hopefully I can get it to do what I want. The problem I see right now is that you can only do certain things within the pom file. For instance, I specifically need the developer to be able to designate the version for dependencies. Currently each client (there are hundreds) gets a custom build of the entire application. In an attempt to make a step to something more sane, I want to break this out into 2 steps, 1) platform build, 2) client build. The client build would need to depend on the appropriate platform build. My initial thought was that the client specific code configs would all be 1 module, broken down by client. Each client would have properties indicating the version of the platform to be dependent on, etc. The only way I can think of doing is this is using system properties, since dependencies must be defined the POM file and profiles can't define properties that the POM file can read. BTW: What are those properties used for? If I did use system properties, is it possible to load properties into the POM from a file? If not, it seems like my only answer it to provide a wrapper script for mvn that passes parameters. -Original Message- From: Chris Hilton [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 5:29 PM To: Maven Users List Subject: RE: Optional Goals Dependencies Then you probably want to become familiar with the wonderful world of profiles. http://maven.apache.org/guides/introduction/introduction-to-profiles.htm l Chris -Original Message- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Wednesday, 09 August, 2006 17:25 To: 'Maven Users List' Subject: Optional Goals Dependencies I am trying to figure out a way to define optional goals and/or dependencies. Is there a way to do this? I am looking for something similar to the ability in ant to only do a certain task if a certain property is set. __ Douglas W. Ferguson EPSIIA - Another Fiserv Connection Development Office Phone: 512-329-0081 ext. 3309 Dial Toll Free: 800-415-5946 Mobile Phone: 512-293-7279 Fax: 512-329-0086 [EMAIL PROTECTED] www.epsiia.com http://www.epsiia.com/ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
junit 4.1
I have a dependency on junit 4.1 that fails. It looks like version 4.1 is in http://www.ibiblio.org/maven2/junit/junit/ but not in the maven-metadata.xml... metadata groupIdjunit/groupId artifactIdjunit/artifactId versioning release3.8.1/release versions version3.7/version version3.8/version version3.8.1/version version3.8.2/version version4.0/version /versions /versioning /metadata Can I update this or does someone else have to? (still a newbee!) ,chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 1.1-beta3 maven-artifact-plugin 1.8
This too is exactly the info we need in the defect entry! Your perspective in the issue, including what doesn't work and what does work, is important to eventual resolution. Would you mind adding your notes to the issue - what works and does not work? Quoting Steve Molloy [EMAIL PROTECTED]: Well, I was about to... But when I reproduced it, I thought I'd dig a bit to see what might be wrong. I started by changing the NullKnownHostProvider by a FileKnownHostProvider which would validate my provider, then replaced the cached class files with the newly compiled ones. It worked fine... Then I reverted to NullKnownHostProvider, but it still worked fine!!! So, to recap, installing maven-artifact-plugin 1.8 as-is fails with host rejected error. Replacing its class files with the locally compiled trunk version fixes my problem. What changed between 1.8 and trunk? Seems to be the right thing, at least for me... ;-) And is there a 1.9-SNAPSHOT available somewhere? Steve On Thu, 2006-10-08 at 08:01 -0500, Jeff Jensen wrote: Hi Steve, Would you mind adding your details on the deploy error with m1.1b3 to this JIRA, please? http://jira.codehaus.org/browse/MPARTIFACT-71 On 8/9/06, Steve Molloy [EMAIL PROTECTED] wrote: Thanks, I guess I'll stick with 1.0.2 until the next release, hoping this issue will be fixed. Is there any ETA set for the next 1.1 release yet? Steve On Wed, 2006-09-08 at 08:23 -0500, Jeff Jensen wrote: Hi Steve, Yes, this is an issue I encountered as well. I have found that the 6/30 1.1-beta3-SNAPSHOT does not have this problem, but every release since then does. See 20060630/ here: http://people.apache.org/~aheritier/maven/1.X/snapshots/ We are researching the problem to find a fix. In the meantime, I suggest the 6/30 snapshot if you would like to use 1.1. It is very solid and the current one we use for our production work (we've used nearly every one of those snapshots all along as they were published). -Original Message- From: Steve Molloy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 7:24 AM To: users@maven.apache.org Subject: Maven 1.1-beta3 maven-artifact-plugin 1.8 Hi, I just upgraded from maven 1.0.2 to 1.1-beta3, and got the maven-artifact-plugin 1.8 along with it. But Now I can't deploy any artifacts because scp refuses my host key, while scpexe just doesn't do anything at all, but doesn't complain... So, I've reverted back to 1.0.2 for now, but are there any plans for fixing these problems? (I'm running maven on JDK 1.5.0_07, on Fedora core 5). Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: junit 4.1
Check out this guide.. http://maven.apache.org/guides/mini/guide-maven-evangelism.html Basically you'll log a point and ask for it to be uploaded. Check for any existing points. -Nathan -Original Message- From: Christofer Jennings [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 12:23 PM To: Maven Users List Subject: junit 4.1 I have a dependency on junit 4.1 that fails. It looks like version 4.1 is in http://www.ibiblio.org/maven2/junit/junit/ but not in the maven-metadata.xml... metadata groupIdjunit/groupId artifactIdjunit/artifactId versioning release3.8.1/release versions version3.7/version version3.8/version version3.8.1/version version3.8.2/version version4.0/version /versions /versioning /metadata Can I update this or does someone else have to? (still a newbee!) ,chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven, Eclipse, SVN, J2EE and directory layout
I'm currently investigating the same thing, with http://maven.apache.org/guides/mini/guide-ide-eclipse.html as my point of reference. I just today created the desired structure - which indeed requires one 'complete' checkout in a client tool like TortoiseSVN, as suggested in the guide. From eclipse I use the flat layout. I've just started with the journey and am especially interested in how the reporting (aggregation) is going to behave. Jan. jan_bar wrote: Hi, I have spent quite a time looking for good J2EE directory layout that will work with maven, Eclipse and SVN (CVS). It's not clear to me how you solve this problem. So far here are two options and their troubles: 1. Flat layout (parent POM folder is located next to EJB, WAR, ... folders). This plays nice with Eclipse/SVN, but has troubles: maven1 cannot handle this structure, maven2 plugins has issues with this structure (release plugin), this is not standard layout 2. Almost flat layout (parent POM is one folder up from the EJB, WAR, ... folders). This is maven2 recommended layout, but it doesn't fit into Eclipse/SVN. Developers are required to use SVN/CVS clients to check out the whole layout to some folder and then each EJB, WAR are linked into workspace. You cannot use Eclipse CVS/SVN plugin to checkout the parent POM without fiddling with files - moving checkouted files out of workspace (possible space for errors). 3. ? I don't like any of the two solutions, solution 2 will require to use another CVS/SVN client (all developers must learn it) or to follow some guidelines. Thanks for any idea, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Bug: Creating Internal repository
were you able to create the internal reposiotry successfully? I am still lookign for tips to get this working. Carlos Cadete wrote: Hi, I have my local maven repository in $HOME/.m2/repository and I want to change my local repository to c:\repository so I change in settings localRepositoryc:\repository/localRepostory and that runs ok. But I want to use $HOME/.m2/repository as my central repository so I create in global settings mirror idMyMirror/id mirrorOfcentral/mirrorOf nameMy New Repositorio/name urlfile://$HOME\.m2\repository/url /mirror but it give me the error [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exi st or no valid version could be found I notice that it creates file c:\repository\org\apache\plugins\maven-resources-pluin\maven-metadata-central.xml but it differs from the one I have in $HOME/.m2/repository so I replace it, run again and it runs for this plugins, but the same problem arises for the other plugins the file it creates is something like this that don't work ?xml version=1.0 encoding=UTF-8? metadata groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId versionLATEST/version /metadata witch differs from the one in repository metadata groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId versioning latest2.1/latest release2.1/release versions version2.0-beta-1/version version2.0-beta-2/version version2.0/version version2.1/version /versions lastUpdated20051025005815/lastUpdated /versioning /metadata so is this a bug? If it is not what is wrong to give th error? I am using maven 2.0.4 the lastest version. -- View this message in context: http://www.nabble.com/-M2--Bug%3A-Creating-Internal-repository-tf1441274.html#a5750130 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Selective Deployment In Multi-Project
Is it possible to configure individual projects to not deploy? I have one parent project with several child projects. Some of the child projects build jars then end up in a war built by another child project. I would like to run mvn deploy at the parent project level and have just the artifact from the war project deployed to my internal repository. The reason I want to run it from the parent is due to Continuum's current incomplete support of multi-projects. If I put the distribution management configuration in the parent project, everything deploys. If I put the distribution management confguration in just the war project, and run deploy from the parent project, I get: Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.2.1 Is there someway to configure the deploy plugin to not deploy or to ignore a project? If not, this would be useful. -- Mark R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IDEA plugin up-to-date?
The IntelliJ IDEA MavenPlugin (http://www.intellij.org/twiki/bin/view/Main/MavenPlugin) looks like it hasn't been updated in a while. Is it up-to-date? Does it work well? Thanks, chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDEA plugin up-to-date?
On closer look, the plugin page says it only looks for project.xml files now, so I guess that means it's not ready for maven 2 yet. Is there a new version or other plugin around for IDEA 5.x and Maven 2? ,chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDEA plugin up-to-date?
mvn idea:idea works pretty well for me. http://maven.apache.org/plugins/maven-idea-plugin Matt On 8/10/06, Christofer Jennings [EMAIL PROTECTED] wrote: On closer look, the plugin page says it only looks for project.xml files now, so I guess that means it's not ready for maven 2 yet. Is there a new version or other plugin around for IDEA 5.x and Maven 2? ,chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Maven 1.0.2 with JDK 1.5
Hello, I'm having trouble running Maven 1.0.2 with the latest version of Java (1.5.0_08) on Windows XP Maven resides in C:\maven-1.0.2 and Java is in C:\java\jdk1.5.0_08 I have set MAVEN_HOME to maven-1.0.2 and JAVA_HOME to JDK 1.5.0_08 And I have set maven-1.0.2\bin in my PATH However when I run maven -version it just prints out the usage instructions for Java (???!!!) Is maven 1.x supposed to work with the latest version of Java? I can't find any documentation on this on the Maven website I have no problems with Maven 2. However I need to used Maven 1 for an old project. Thanks for any help anyone can give Andy Birchall See below for what is displayed when I run maven -version C:\maven -version Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the client VM -server to select the server VM -hotspot is a synonym for the client VM [deprecated] The default VM is client. -cp class search path of directories and zip/jar files -classpath class search path of directories and zip/jar files A ; separated list of directories, JAR archives, and ZIP archives to search for class files. -Dname=value set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:value require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -Xprint help on non-standard options -ea[:packagename...|:classname] -enableassertions[:packagename...|:classname] enable assertions -da[:packagename...|:classname] -disableassertions[:packagename...|:classname] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:libname[=options] load native agent library libname, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:pathname[=options] load native agent library by full pathname -javaagent:jarpath[=options] load Java programming language agent, see java.lang.instrument C:\ ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IDEA plugin up-to-date?
I'm trying that mvn idea:idea out too. It's nice to get a project up quickly, but it seems to clobber any previous settings (like adding library src and javadoc) if I run it again. Also, I'd like to run the maven build from IDEA. I'm new to maven, so maybe I'm just using it wrong. But a nice IDEA plugin would sure be ... nice. :) ,chris
RE: IDEA plugin up-to-date?
We have had quite a bit of trouble with the 2.0 IDEA plugin generating IDEA 5.1.x projects. It will fail quite often to make multiple module IDEA projects, and using set notation for dependency versions is totally not working. We made a snapshot build of 2.1-SNAPSHOT a while back that fixes these problems. It would be great if 2.1 could be released. -dh -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 4:35 PM To: Maven Users List Subject: Re: IDEA plugin up-to-date? mvn idea:idea works pretty well for me. http://maven.apache.org/plugins/maven-idea-plugin Matt On 8/10/06, Christofer Jennings [EMAIL PROTECTED] wrote: On closer look, the plugin page says it only looks for project.xml files now, so I guess that means it's not ready for maven 2 yet. Is there a new version or other plugin around for IDEA 5.x and Maven 2? ,chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED, sort of] -javaagent in integration tests
Ok, looks like I found the problem - when using -javaagent option, all agent dependencies have to be passed as -bootclasspath in argLine/. I'll see if I can decouple the agent from the rest of the framework. In the meantime, is there a Maven environment variable that I can reference in the POM that gives me a full dependency classpath? Thanks Andrus On Aug 9, 2006, at 10:00 PM, Andrus Adamchik wrote: I am having trouble using instrumentation API with Surefire. The project pom can be found here - [1]. Essentially, no matter whether I start mvn with -javaagent in MAVEN_OPTS, or use fork with argLine, I am getting an exception (see below). When I start unit tests with a main method of a regular Java class, it works. Any insights? See error details below. Thanks Andrus [1] https://svn.apache.org/repos/asf/incubator/cayenne/sandbox/ itest-unit1/pom.xml ERROR 1. With childDelegation=false (the agent is loaded but ClassLoader blows during the test: [INFO] Surefire report directory: /Users/andrus/work/jpa-itests/ itest-unit1/target/surefire-reports *** CayenneAgent starting... --- T E S T S --- Running org.apache.cayenne.jpa.itest.entity.EntityClassTest Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.061 sec FAILURE! testFieldBasedPersistence (org.apache.cayenne.jpa.itest.entity.EntityClassTest) Time elapsed: 0.016 sec ERROR! java.lang.NoClassDefFoundError: javax/persistence/spi/ PersistenceProvider at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java: 260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java: 260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: 268) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass (IsolatedClassLoader.java:100) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.apache.cayenne.jpa.itest.Unit1TestHelper.init (Unit1TestHelper.java:44) at org.apache.cayenne.jpa.itest.Unit1TestHelper.clinit (Unit1TestHelper.java:32) at org.apache.cayenne.jpa.itest.entity.EntityClassTest.testFieldBasedPers istence(EntityClassTest.java:33) ERROR 2: Without child delegation (agent loaded, but no instrumentation is available to the tests): *** CayenneAgent starting... --- T E S T S --- Running org.apache.cayenne.jpa.itest.entity.EntityClassTest cayenne WARN [main 08-09 21:59:12] InstrumentingUnit: *** No instrumentation instance present. Check the -javaagent: option Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.554 sec FAILURE! testFieldBasedPersistence (org.apache.cayenne.jpa.itest.entity.EntityClassTest) Time elapsed: 0.512 sec ERROR! java.lang.IllegalArgumentException: entity must be Persistent at org.apache.cayenne.jpa.cspi.CjpaEntityManager.checkEntityType (CjpaEntityManager.java:116) at org.apache.cayenne.jpa.cspi.CjpaEntityManager.persistInternal (CjpaEntityManager.java:48) at org.apache.cayenne.jpa.JpaEntityManager.persist (JpaEntityManager.java:95) at org.apache.cayenne.jpa.itest.entity.EntityClassTest.testFieldBasedPers istence(EntityClassTest.java:36)
Change profiles when defining a default profile - issue - Maven2.0.
Hi, Situation: I want to have an active by default profile (dev) and still be able to switch to other profiles like qa and prod. I didnt find any way of doing it. Please someone help me if you found a solution for this one. What happens? Ive set up the activeByDefault property for the dev environment in the conf/settings.xml: activeByDefaulttrue/activeByDefault When I run: mvn help:active-profiles I get the following response: The following profiles are active: - maestro (source: settings.xml) - dev-servers (source: settings.xml) - dev-servers (source: settings.xml) Now when Im trying to switch to another profile: mvn help:active-profiles P qa2-servers The following profiles are active: - maestro (source: settings.xml) - dev-servers (source: settings.xml) = dev profile is going to be used - qa2-servers (source: settings.xml) - dev-servers (source: settings.xml) Ive tried even with both P and setting the activation value for the qa profile and still: mvn help:active-profiles -P qa2-servers -Denv=qa2 The following profiles are active: - maestro (source: settings.xml) - dev-servers (source: settings.xml) = dev profile is going to be used - qa2-servers (source: settings.xml) - dev-servers (source: settings.xml) This means that any property used from profiles in the FILTERED files are still taken from dev profile and not from the desired qa2-servers profile (which is not the desired behaviour!!!) Thank you, Bogdan Matiu - Senior Software Engineer Ph.: 416-848-8391 x 2237 Email: [EMAIL PROTECTED] Route1 Inc. Securing the Digital World This electronic mail transmission contains information from Route1, Inc. that is for the sole use of the intended recipient and may contain confidential, privileged or proprietary information. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this message, its contents, or any attachment is prohibited. Any wrongful interception of this message is punishable as a federal crime. If you have received this message in error, please return a copy to the sender by electronic mail indicating the error. Then, please destroy the original message and any copies from your computer. Thank you.
RE: Using Maven 1.0.2 with JDK 1.5
Maven 1.0.2 definitely works with jdk1.5.0_07 on Windows XP. I can't imagine that 1.5.0_8 would cause the problem you describe. I would turn on tracing in the maven.bat script. -Christopher Helck -Original Message- From: Andrew Birchall [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 4:35 PM To: users@maven.apache.org Subject: Using Maven 1.0.2 with JDK 1.5 Hello, I'm having trouble running Maven 1.0.2 with the latest version of Java (1.5.0_08) on Windows XP Maven resides in C:\maven-1.0.2 and Java is in C:\java\jdk1.5.0_08 I have set MAVEN_HOME to maven-1.0.2 and JAVA_HOME to JDK 1.5.0_08 And I have set maven-1.0.2\bin in my PATH However when I run maven -version it just prints out the usage instructions for Java (???!!!) Is maven 1.x supposed to work with the latest version of Java? I can't find any documentation on this on the Maven website I have no problems with Maven 2. However I need to used Maven 1 for an old project. Thanks for any help anyone can give Andy Birchall See below for what is displayed when I run maven -version C:\maven -version Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the client VM -server to select the server VM -hotspot is a synonym for the client VM [deprecated] The default VM is client. -cp class search path of directories and zip/jar files -classpath class search path of directories and zip/jar files A ; separated list of directories, JAR archives, and ZIP archives to search for class files. -Dname=value set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:value require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -Xprint help on non-standard options -ea[:packagename...|:classname] -enableassertions[:packagename...|:classname] enable assertions -da[:packagename...|:classname] -disableassertions[:packagename...|:classname] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:libname[=options] load native agent library libname, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:pathname[=options] load native agent library by full pathname -javaagent:jarpath[=options] load Java programming language agent, see java.lang.instrument C:\ ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thank you for being part of it. The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t
You can add setters if you like - they'll be used. However, if you prefer the private field injection you can also use the helpers in the abstract test case (setFieldForObject, I think). - Brett On 10/08/06, Dave Syer [EMAIL PROTECTED] wrote: I see what you mean about getting it into a mojo - you'll need to set it directly into there. How? Can you help me to understand how to inject a property into a mojo? They seem to just have private fields and no setters. Is there a reason for them not having public setters? I could add setters for my mojo parameters. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744691 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse plugin woes ignoring warnings
I am in the process of porting a Maven 1.x project over to Maven 2. There are several third party dependencies that are internal to our company. So we have a regional repository (speaking Maven-1 lingo here) to house these JARs. I have now created a Maven2-compliant regional repository. I have a couple of questions: 1. The Eclipse plug-in does not seem to recognize an active profile specified in my settings.xml. The implication is that it reports unresolved dependencies; since I have activated my regional repository via a profile. The only way around this that I have found is to specify this additional repository in the pom.xml. This is less than ideal. Do you know a way around this problem? Am I doing something wrong? 2. With the regional repository specified, all the dependencies are now being resolved correctly. However, there are reams of warnings stating dependency's pom could not be retrieved. This is indeed true since most of these JARs are from non-Maven projects and so they don't include a pom. Is there a way to suppress these warnings. I don't want to raise the log level since I do want the usual INFO level messages. Thanks Sri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BaseDir Equivalent
Is there a maven equivalent to Ant's basedir? With this project that I've talking about that has 100s of custom builds, I'd like to use 1 POM file that uses a dynamic basedir that is set via a property or profile. Any thoughts? __ Douglas W. Ferguson EPSIIA - Another Fiserv Connection Development Office Phone: 512-329-0081 ext. 3309 Dial Toll Free: 800-415-5946 Mobile Phone: 512-293-7279 Fax: 512-329-0086 [EMAIL PROTECTED] www.epsiia.com http://www.epsiia.com/ __
Re: Running a script/bat file - Post Build
After the build, I would like to copy the application war file to a ftp location ( on the same machine ) for others to pick it up. thanks --Prashanth --- Emmanuel Venisse [EMAIL PROTECTED] wrote: It isn't possible actually. What do you want to do? after the build. Emmanuel Prashanth Krishnamurthy a écrit : Hi, I would like to execute a script or a bat file after the build. Does continuum has any way to execute this ?What is the best way ? regards --Prashanth __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
mvn:deploy to remote repository
getting following error in exectuing the deploy plugin, any clues... Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.a pache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse the created DOM for plugin configuration -- View this message in context: http://www.nabble.com/mvn%3Adeploy-to-remote-repository-tf2087804.html#a5754267 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running a script/bat file - Post Build
On 8/11/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote: After the build, I would like to copy the application war file to a ftp location ( on the same machine ) for others to pick it up. use deploy, and deploy your build file to your internal maven repository. Then people can use http and collect it themselves.
Re: IDEA plugin up-to-date?
+1 I assume you mean the 2.1-SNAPSHOT of the plugin? ... Can I get the source and build it? What takes so long for releases? ,chris On 8/10/06, Dave Hoffer [EMAIL PROTECTED] wrote: ... We made a snapshot build of 2.1-SNAPSHOT a while back that fixes these problems. It would be great if 2.1 could be released. -dh
Re: Building dependant projects as well?
On 8/11/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: Dependent projects aren't build for the moment. It's planned for 1.1 Are you saying they are never built? I thought that when the schedule kicked off it would check if there are cvs updates and rebuild, or if an artifact that the project depended upon changes would cause a rebuild.
Building Continuum from trunk
Ok, I'm having problems. I can do a mvn clean install, but when I being to use the shell scripts, especially trying to build the plexus application, I cannot figure out how to build the end package to test. Are there build notes somewhere, or am I using the wrong build script? Help?! Christian. christian gruber + agile coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus +1 (905) 640-1119 cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796
ignoring a file
Is there a way to get Continuum to ignore a file during builds? I'm trying to switch from cruisecontrol to continuum and need the ability to ignore a file. In cruisecontrol I do this using the ignoreFiles attribute on the modificationset tag. Sincerely, jesus rodriguez
exclusion of transitive dependencies
I'm trying to add Weblets to a project which can use the current MyFaces release or the RI and, due to errors in the Weblets POM, I'm ending up with unwanted transitive dependencies. I'm trying to correct for this using the dependenciesManagement section of my POM, but it's not working. I'm not sure what I'm doing wrong... My webapp module POM has the following dependency: dependency groupIdnet.java.dev.weblets/groupId artifactIdweblets-impl/artifactId scoperuntime/scope /dependency and I've tried using the following in both the webapp module POM and in the parent POM: dependencyManagement dependency groupIdnet.java.dev.weblets/groupId artifactIdweblets-impl/artifactId version0.4/version exclusions exclusion artifactIdmyfaces/artifactId groupIdmyfaces-api/groupId /exclusion /exclusions /dependency /dependencyManagement I've attached the m2 output below; you can see that it's picking up the myfaces and associated deps from weblets, despite the exclusion. Is there something more I need to do to get the result I want? Thanks, L. $ rm -rf target ; mvn -o -Dmaven.test.skip=true package -X + Error stacktraces are turned on. Maven version: 2.0.4-maestro-1.0.1 [DEBUG] Building Maven user-level plugin registry from: '/Users/laurie/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/Users/laurie/Developer/Maestro/maestro-1.0.1.1/maven/conf/plugin-registry.xml' [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: org.zotechsoftware.djfaces:djfaces::0.1.0-SNAPSHOT of project: org.zotechsoftware.djfaces:tmp-webapp:war:1.0-SNAPSHOT in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: org.zotechsoftware.djfaces:tmp-webapp:war:1.0-SNAPSHOT [INFO] [INFO] Building Maven Webapp Archetype [INFO]task-segment: [package] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-surefire-plugin: resolved to version 2.2 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-surefire-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-war-plugin: resolved to version 2.0.1 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-war-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository. [DEBUG]
Re: Maven 1.1-beta3 maven-artifact-plugin 1.8
I just deployed the SNAPSHOT of the version 1.8.1. You can test it with maven 1.1 beta 3 maven plugin:download -DgroupId=maven -DartifactId=*maven-artifact-plugin* -Dversion=*1.8.1*-SNAPSHOT -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://people.apache.org/repo/m1-snapshot-repository/ It should fix the problem. When I upgraded wagon dependencies I changed a little bit the plugin's code to not have this error of RejectedKey. The problem Is that in the beta 3 we upgraded these dependencies (through the core) but we don't bundle the new artifact plugin :-( It's my fault. Cheers. Arnaud On 8/10/06, Jeff Jensen [EMAIL PROTECTED] wrote: This too is exactly the info we need in the defect entry! Your perspective in the issue, including what doesn't work and what does work, is important to eventual resolution. Would you mind adding your notes to the issue - what works and does not work? Quoting Steve Molloy [EMAIL PROTECTED]: Well, I was about to... But when I reproduced it, I thought I'd dig a bit to see what might be wrong. I started by changing the NullKnownHostProvider by a FileKnownHostProvider which would validate my provider, then replaced the cached class files with the newly compiled ones. It worked fine... Then I reverted to NullKnownHostProvider, but it still worked fine!!! So, to recap, installing maven-artifact-plugin 1.8 as-is fails with host rejected error. Replacing its class files with the locally compiled trunk version fixes my problem. What changed between 1.8 and trunk? Seems to be the right thing, at least for me... ;-) And is there a 1.9-SNAPSHOT available somewhere? Steve On Thu, 2006-10-08 at 08:01 -0500, Jeff Jensen wrote: Hi Steve, Would you mind adding your details on the deploy error with m1.1b3 to this JIRA, please? http://jira.codehaus.org/browse/MPARTIFACT-71 On 8/9/06, Steve Molloy [EMAIL PROTECTED] wrote: Thanks, I guess I'll stick with 1.0.2 until the next release, hoping this issue will be fixed. Is there any ETA set for the next 1.1 release yet? Steve On Wed, 2006-09-08 at 08:23 -0500, Jeff Jensen wrote: Hi Steve, Yes, this is an issue I encountered as well. I have found that the 6/30 1.1-beta3-SNAPSHOT does not have this problem, but every release since then does. See 20060630/ here: http://people.apache.org/~aheritier/maven/1.X/snapshots/ We are researching the problem to find a fix. In the meantime, I suggest the 6/30 snapshot if you would like to use 1.1. It is very solid and the current one we use for our production work (we've used nearly every one of those snapshots all along as they were published). -Original Message- From: Steve Molloy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 7:24 AM To: users@maven.apache.org Subject: Maven 1.1-beta3 maven-artifact-plugin 1.8 Hi, I just upgraded from maven 1.0.2 to 1.1-beta3, and got the maven-artifact-plugin 1.8 along with it. But Now I can't deploy any artifacts because scp refuses my host key, while scpexe just doesn't do anything at all, but doesn't complain... So, I've reverted back to 1.0.2 for now, but are there any plans for fixing these problems? (I'm running maven on JDK 1.5.0_07, on Fedora core 5). Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn:deploy to remote repository
Could there be some invalid values set in the plugin configuration in your pom? :) Satish wrote: getting following error in exectuing the deploy plugin, any clues... Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.a pache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse the created DOM for plugin configuration - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Selenium?
Personally, I hit the wall wilth HTMLUnit and had to move to Selenium RC. The problem was that HTMLUnit had problems as soon as I upgraded from Tapestry 4 to Tapestry 4.1 due to the inclusion of Dojo libraries. I assume these will be fixed eventually, but I am much happier having my tests run in the actual browser (even on a headless linux box!) and it really helps to see what is going when stepping through in the debugger. I get the selenium server from openqa's repository, copy it into my maven build area with the dependency plugin, then start and stop it on the pre-integration-test and post-integration-test phases using antrun. On 8/10/06, Ralph Pöllath [EMAIL PROTECTED] wrote: Hi, I understand that Selenium by design requires a full-fledged browser, but isn't that also one of its greatest features? By running your tests using FF or IE, you can be sure they do work in their target environment, regardless of browser bugs. So yes, the htmlunit approach makes testing easier to integrate with CI, but it doesn't give you the same results. This may be acceptable for many simple testcases though. I just looked over the jWebUnit 2.x website very quickly, so I may be missing something. But how is test case writing with jWebUnit easier than using Selenium's IDE or DSL syntax? Cheers, -Ralph. On 02.08.2006, at 10:02, Christophe DENEUX wrote: Hi Daniel, Some advantages of using jWebUnit to test a web application are: - easier test case writing, - faster test case running, - No graphic server is needed with the engine htmlunit, so the integration into a continuous integration system is easier (no browser is needed), - Soon, you will use an engine for Selenium to run your tests directly in your browser. jWebUnit home: http://jwebunit.sourceforge.net __ __ Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Fax: + 33 4 93 21 02 95 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience __ __ Daniel Serodio a écrit : Christophe DENEUX wrote: Hi , A snapshot repository is available at: http://maven.openqa.org/ Have you try jWebUnit (http://jwebunit.sourceforge.net/index.html) instead of Selenium for your functional tests? With jWebUnit, you can run your tests with different engines as htmlunit or Selenium (the Selenium engine is available trough SVN). You will use the htmlunit engine to execute your tests in a background mode (continuous integration) and the selenium engine in a visual mode. It's been a while since I looked at jWebUnit, and I'm currently using Selenium; what is the advantage of using jWebUnit as you describe instead of using Selenium directly? Do you have an URL with more info on the subject? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: exclusion of transitive dependencies
Doh! Never mind, I had the groupId and artifactId back to front :-[ Laurie Harper wrote: I'm trying to add Weblets to a project which can use the current MyFaces release or the RI and, due to errors in the Weblets POM, I'm ending up with unwanted transitive dependencies. I'm trying to correct for this using the dependenciesManagement section of my POM, but it's not working. I'm not sure what I'm doing wrong... My webapp module POM has the following dependency: dependency groupIdnet.java.dev.weblets/groupId artifactIdweblets-impl/artifactId scoperuntime/scope /dependency and I've tried using the following in both the webapp module POM and in the parent POM: dependencyManagement dependency groupIdnet.java.dev.weblets/groupId artifactIdweblets-impl/artifactId version0.4/version exclusions exclusion artifactIdmyfaces/artifactId groupIdmyfaces-api/groupId /exclusion /exclusions /dependency /dependencyManagement I've attached the m2 output below; you can see that it's picking up the myfaces and associated deps from weblets, despite the exclusion. Is there something more I need to do to get the result I want? Thanks, L. $ rm -rf target ; mvn -o -Dmaven.test.skip=true package -X + Error stacktraces are turned on. Maven version: 2.0.4-maestro-1.0.1 [DEBUG] Building Maven user-level plugin registry from: '/Users/laurie/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/Users/laurie/Developer/Maestro/maestro-1.0.1.1/maven/conf/plugin-registry.xml' [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: org.zotechsoftware.djfaces:djfaces::0.1.0-SNAPSHOT of project: org.zotechsoftware.djfaces:tmp-webapp:war:1.0-SNAPSHOT in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: org.zotechsoftware.djfaces:tmp-webapp:war:1.0-SNAPSHOT [INFO] [INFO] Building Maven Webapp Archetype [INFO]task-segment: [package] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-surefire-plugin: resolved to version 2.2 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-surefire-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-war-plugin: resolved to version 2.0.1 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-war-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from local repository [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM:
Want to create a second jar for obfuscated classes
This is a noob question... In my project I need to obfuscate my classes, and produce two jars: one with the unobfuscated code, one with the obfuscated code. The obfuscation is Ant task attached to the process-classes phase, which outputs the obfuscated classes in a folder called ${basedir}/target/obfuscated-classes/ My hope is that I can just use Maven's jar plugin to create the second jar with the same resources/content/format as the first jar, except it's outputDirectory (where it finds the classes to put in the jar) is ${basedir}/target/obfuscated-classes/ So I tried adding this to my pom: !-- Jar plugin, build a jar from the obfuscated classes -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution idobfuscated-jar/id phasepackage/phase goals goaljar/goal /goals configuration jarNameobfuscated-jar/jarName outputDirectory${basedir}/target/obfuscation/classes/outputDirectory /configuration /execution /executions /plugin But I get an error that outputDirectory is read only. If I remove the outputDirectory, I do get two jars, but their identical. Is it possible to do what I want to do? Thank you , Dave
Trouble with EAR file build
I would like to add a virtualHost directive to my application.xml, but there doesn't seem to be any method for it in the ear-plugin. I downloaded the ear plugin source and tried to build it, but I get missing resource errors. I downloaded maven-site, but I get missing resources trying to compile that, it can't find maven-parent. Please help Yours, Alex Turner Mint Pixels
maven-assembly-plugin dependencies
I'm working on a project that has a parent project and two modules (currently), with the following assembly.xml file: http://developer.ja-sig.org/source/browse/jasig/cas-clients/java-client/assembly.xml?r=1.2 For the most part, the script works, but I have a couple issues that I can't figure out: 1. I haven't been able to filter dependencies. I've specified a few as provided but they still show up when I do includeDependencies 2. If I do set includeBaseDirectory to true I get the following directory structure (which is not what I want): parent.project.name\* parent.project.name\project.project.name\module1\* parent.project.name\project.project.name\module2\* while I want it to be: parent.project.name\* parent.project.name\module1\* parent.project.name\module2\* Any ideas, based on my assembly.xml, on what I am doing wrong? Thanks -Scott -- Scott Battaglia Application Developer, Architecture Engineering Team Enterprise Systems and Services, Rutgers University v: 732.445.0097 | f: 732.445.5493 | [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]