How to make sure the local repository contains the latest version of a specific artifact?
Hi, I'm looking for a simple way to make sure my local repository contains the latest version of a specific artifact (make Maven check the corporate repository and download a newer version if available). I guess I could create a POM containing a dependency on the artifact and build that, but since I'd like to script that task, I wonder whether there's a simpler solution, maybe through some plugin that I haven't seen so far. In case you're wondering why I want to do this, I'm considering to abuse Maven as some sort of a package manager. Cheers, -Ralph. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Springmodules in Maven Repository
On 16.11.2006, at 14:30, Nicolas DE LOOF wrote: Spring modules has support for proprietary libs. Gigaspaces is one of them, so this artifact will never be available on maven public repository. You may fill an issue to spring JIRA for this dependency to be made optional (as lot's of others may be in this POM). A temporary solution is to install a fake jar in your repo for this lib. Instead of installing lots of fake jars, you could probably just exclude the optional dependencies: 8 dependency groupIdorg.springmodules/groupId artifactIdspring-modules-cache/artifactId version0.6/version exclusions exclusion artifactIdgigaspaces/artifactId groupIdgigaspaces-c/groupId /exclusion more exclusions /exclusions /dependency 8 Even better, tweak your local springmodules POM until it works, create a JIRA issue at http://jira.codehaus.org/browse/MEV and attach your improved POM. Cheers, -Ralph. Deluigi Marcus a écrit : They are here : http://repo1.maven.org/maven2/org/springmodules/ Thanks for the new link. But including: 8 dependency groupIdorg.springmodules/groupId artifactIdspring-modules-cache/artifactId version0.6/version /dependency 8 Produces the following error messages. Are the dependencies broken? - --- Missing: -- 1) gigaspaces:gigaspaces-ce:jar:5.1-1603-000 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=gigaspaces - DartifactId=gigaspaces-c -Dversion=5.1-1603-000 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) gigaspaces:gigaspaces-ce:jar:5.1-1603-000 2) jini:jsk-lib:jar:2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=jsk-lib \ -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) jini:jsk-lib:jar:2.1 3) jini:jsk-platform:jar:2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=jsk- platform \ -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) jini:jsk-platform:jar:2.1 4) jini:mahalo:jar:2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=mahalo \ -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) jini:mahalo:jar:2.1 5) jini:reggie:jar:2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=reggie \ -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) jini:reggie:jar:2.1 6) jini:start:jar:2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=start \ -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) jini:start:jar:2.1 7) jini:boot:jar:20060125 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=boot \ -Dversion=20060125 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.elca.caching-test:caching-test:jar:0.1-SNAPSHOT 2) org.springmodules:spring-modules-cache:jar:0.6 3) jini:boot:jar:20060125 8) jini:webster:jar:20060125 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jini -DartifactId=webster \ -Dversion=20060125 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1)
Notify only developers who committed changes?
Hi, When a build breaks, is it possible to notify only those developers who committed changes? Cheers, -Ralph.
Re: Excluding sub-modules when doing site in parent module
On 31.10.2006, at 17:00, Dan Adams wrote: I have a parent module that I want a site generated for but I don't need the site generated for each of the submodules. Is there an option so that when I run 'mvn site' it only does the current parent module and not the submodules? Thanks. Have you tried the --non-recursive command line switch? $ mvn -h Options: -N,--non-recursiveDo not recurse into sub-projects Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Easy way to print a dependency tree?
On 06.10.2006, at 14:01, Stefan Arentz wrote: I see a whole bunch of dependencies in my project and I have no idea where they come from. Is there an easy way to print a dependency tree so that I can see what artifacts depend on what? After dependency resolution. Have a look at the Dependencies report. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compiling files with UTF-8 encoding
On 23.09.2006, at 17:57, David Leangen wrote: In M2, how do I set the compiler to compile files that are written in UTF-8? Try this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration encodingUTF-8/encoding /configuration /plugin Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ibiblio and Spring commons validator
On 18.09.2006, at 13:35, [EMAIL PROTECTED] wrote: I may be barking up the wrong tree here, but anbody know why the sping-commons-validator jar is not published there? Are you looking for this? http://www.ibiblio.org/maven2/org/springmodules/spring-modules- validation/0.5/ Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is www.maven.org associated with maven?
On 13.09.2006, at 13:33, Henning Sprang wrote: Hi, Does anyboy know http://www.maven.org/ ? I just came across this site, it has nothing but a donation link on it, no description what it should be and who is responsible for it. Are they in any way connected to maven, or are they trying to get donations which are orginally meant to go to the apache maven project? $ whois maven.org Registrant Name: van Zyl, Jason BTW: the maven site has no contact info at all to get in contact with anybody responsble for the project(which I just tried). http://maven.apache.org/team-list.html Cheers, -Ralph. A users lists is not the same in my opinion, normally I had directed this request to the webmaster of maven.apache.org. And I think every site should have something like contact info on it. Even the address of this list is very hidden under general information - I think most people looking for a mailing list of an open source project are searching in help, documentation, or are expecting a lists link in the menu, but all these dont help finding this list's address. Just a hint for making the web usability of the maven site a bit better, hopefully somebody in charge is reading this... Henning - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Have Maven Eclipse Plugin specify Eclipse file encoding
On 08.09.2006, at 09:39, Stéphane Bouchet wrote: Ralph Pöllath a écrit : My work environment requires that all source files are encoded as UFT-8. Since we're using Eclipse, this means we have to change the file encoding to UTF-8 whenever we create a new workspace, which is inconvenient and error-prone. Since all of our Eclipse config is generated by the Maven Eclipse Plugin already, having it set the file encoding on a per-project basis would be a great solution (looks like you just have to add encoding/project=UTF-8 to .settings/ org.eclipse.core.resources.prefs). Should I post a feature request to JIRA? yes, fill a new issue here : http://jira.codehaus.org/browse/MECLIPSE Done: http://jira.codehaus.org/browse/MECLIPSE-156 Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Have Maven Eclipse Plugin specify Eclipse file encoding
Hi, My work environment requires that all source files are encoded as UFT-8. Since we're using Eclipse, this means we have to change the file encoding to UTF-8 whenever we create a new workspace, which is inconvenient and error-prone. Since all of our Eclipse config is generated by the Maven Eclipse Plugin already, having it set the file encoding on a per-project basis would be a great solution (looks like you just have to add encoding/project=UTF-8 to .settings/ org.eclipse.core.resources.prefs). Should I post a feature request to JIRA? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Defaults for compiler plugin
On 03.09.2006, at 17:27, Douglas Ferguson wrote: What are the default values for source target version for the compiler? The compiler plugin's default values are probably the default values of the compiler you're using. Anybody know if this would work? source1.5/source. target1.2/target Would this allow me to use generics but run in websphere which isn't compatible with 1.5 code? Assuming you're using javac, -source 1.5 -target 1.2 won't work. To transform 1.5 byte code into 1.4 byte code, you might want to have a look at http://retroweaver.sf.net (anyone know of a maven plugin for retroweaver?). Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [POLL] Why switch to Maven?
On 31.08.2006, at 23:27, ArneD wrote: After all, if can't trust your team to stick to approved versions of artifacts how can you trust them to write your precious business code? I think it's not a question of mistrusting people, but a question of how can you help people to avoid mistakes. Even if they use a Maven-based build for the first time and don't have a M.Sc. in Computer Science or x years of experience. If the team *wants* to used unapproved versions of artifacts, of course, they will be able to do it. But you should help them to not do it by mistake. FWIW, wouldn't it be simple to write a plugin that compares all dependencies to a list of approved artifacts? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [POLL] Why switch to Maven?
On 30.08.2006, at 11:43, Emmanuel Venisse wrote: Jan Vissers a écrit : Maven's key strength is to say don't worry about trying to build a jar / war / ear / sync with eclipse / autorun tests / publish javadocs / etc / etc, because I already know how to do that, you go and do what you do best, work on the primary code. I would like this approach very much, but... have you tried to publish javadocs/jxr/surefire/pmd... etc for a multimodule project in an aggregated fashion? It's implemented in snapshot version of javadocs/jxr plugins Sorry, but that doesn't help me now. Maven2 has officially been stable for months now, so I expect its advertised features to work out of the box. Same with Continuum BTW - I've looked at it several times since it went final 10 months ago, but it's just not there yet. Is there a roadmap indicating when said functionality will be available in a stable release? On 30.08.2006, at 07:37, Jan Vissers wrote: More and more I'm getting the feeling that ANT still isn't such a bad idea for building software. You can do a lot of the convention over configuration stuff for your own projects with ant and things like macrodef, subant and antlib. For dependency management we're currently using Ivy - which is pretty descent. What's more the reporting just works, even aggregated (pmd,jdepend,junit,checkstyle,cobertura,javadoc,changelog,javacnss). The difference is that in contrast to Maven2, Ant has been adopted by IDEs and tools. Ant is a de-facto standard, and Maven2 a self- declared standard. I'm not saying adoption isn't going to happen, but it will take time. IDE integration is actually a key point for me personally. m2eclipse looks very promising, but it won't work right until some bugs in Maven2's embedder get fixed (or so I hear). Lots of people a desperately waiting for this, and nothing seems to happen. This is very frustrating. On 30.08.2006, at 02:52, Tamás Cservenák wrote: The core (maven itself, not remote repo contents) was always sound. Just run M2 in isolated environment with clean and properly filled POM's, without central and M2 will blow all your needs! Yeah right, all the problems are with plugins. Unfortunately, all the functionality I need is implemented in plugins! A rock stable core just won't help me if it doesn't do anything except orchestrate the unstable plugins. The everything is a plugin architecture might be very nice on a technical level, but it can lead to the equivalent of DLL hell - just look at Eclipse! Eclipse is actually trying to improve this with Callisto, maybe a similar initiative would be appropriate for Maven2? That said, I think that Maven2 really is a step forward and I'm not going back. Thanks to everyone working on Maven2 and sorry for sounding so negative! Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cargo Tomcat
On 24.08.2006, at 00:03, Vincent Massol wrote: Hi Doug, -Original Message- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: mercredi 23 août 2006 22:44 To: users Subject: Cargo Tomcat Anybody using cargo with tomcat? I’m curious about how you deal with quick dev cycle changes where you might want to push 1 file but don’t want to do an entire build to do so. Yes this can be done with Cargo and Tomcat. It's not documented yet but you can see a test project that does it here: http://fisheye.codehaus.org/browse/cargo/cargo/trunk/samples/ extensions/mave n2/src/test/projects/testStartInplaceDevelopment In this scenario, will Tomcat pick up the class files from target/ classes/ and jars from my local m2 repository? Or do I have to use war:inplace (which I'd rather not)? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Same output dir for maven and eclipse?
On 24.08.2006, at 10:45, Amshoff Christoph, Köln wrote: I'm setting up a project where team members could use either Maven2 or Eclipse to build the project. Normally, Maven will be used during CI/nightly builds and Eclipse by developers. Same here. The question is: where is the particular output of these builds going? Do you recommend to use the same output folder for compiled classes of both tools, or what are the best practices in this case? Is there any reason to separate the output folders? We use the maven eclipse plugin [1] to generate our eclipse project files, which re- uses maven's output directories for eclipse (at least by default). Cheers, -Ralph. [1] http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html If not using the same folder, I wish to put both output folder under target. So I would have to configure maven to use target/maven/classes and target/maven/test-classes, for example. How do I set the main output folder used for all build results (classes, test-classes, site, source generation, ...)? Setting just directory attribute in my POM (Maven docu says: The directory where all files generated by the build are placed) is not working, so do I have to set all paths separately? Thanks for your hints, Christoph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a projectsupport.
On 17.08.2006, at 10:24, Nicolas De Loof wrote: I use hierarchical projects in eclipse myself. Import wizard doesn't search sub-directories if the top-directory has a .project file. I had to delete the .project generated during checkout before importing all sub-projects in one click. Then I can restore the .project and import the top level project. Please notice this creates a freeze when using SVN and subclipse. This bug has been reported to subclipse devs but doesn't seem to get more interest. Are you talking about subclipse issue 511( http:// subclipse.tigris.org/issues/show_bug.cgi?id=511 ) ? If so, people interested in having this fixed should probably create an account on tigris.org and vote for this issue. In the meantime, it might be worth giving Subversive a try ( http:// www.polarion.org/index.php?page=overviewproject=subversive ). It's an open source subversion plugin for eclipse, just like subclipse. Cheers, -Ralph. Max Cooper a écrit : I, too, have been anxiously awaiting hierarchical project support in Eclipse. And I thought that it was going to be available in Eclipse 3.2. But this feature was omitted from the Eclipse 3.2 release. The feature is not available yet. -Max Barrie Treloar wrote: With Eclipse 3.2 I was lead to believe you could create projects within projects, so that I could checkout a maven project that contains modules and wire that up in Eclipse correctly. Instead of manually checking out the modules as I did under Eclipse 3.1. I am able to manually add the project in Eclipse via File - Import - General - Existing Projects into Workspace and use the module directoy as the value for Select root directory. The project then appears in the Projects list for importing. If I select the project root then there are no projects to choose from. I thought that the snapshot version of the eclipse:eclipse plugin had the functionality to do this for me, but it is not working how I expect. I assume I am doing something wrong. Should mvn eclipse:eclipse at the project root do what I expect? Any help appreciated. Bae - 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]
Known incompatibilities between wagon/jsch and openssh 3.8.1?
Hi, After upgrading the server hosting my internal sftp repository from openssh 3.4 to 3.8.1, m2 hangs when trying to access the repository: [DEBUG] Trying repository internal ... hangs forever ... Are there any known incompatibilities between wagon/jsch and current versions of openssh? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POMs missing for spring-webmvc 2.0-m4 and spring-webmvc 2.0-m4?
Hi, I'm currently upgrading my project to Spring 2.0-m4 and it seems the POMs for spring-webmvc and spring-web are missing: http://www.ibiblio.org/maven2/org/springframework/spring-webmvc/2.0-m4/ http://www.ibiblio.org/maven2/org/springframework/spring-web/2.0-m4/ I cannot currently create a dependency on these packages. Should I file a bug in JIRA? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : POMs missing for spring-webmvc 2.0-m4 and spring-webmvc 2.0-m4?
Well, um.. thanks. http://maven.apache.org/guides/mini/guide-maven-evangelism.html Checkout with subversion the poms you need from svn:// svn.codehaus.org/maven/scm/repository (note that this subversion repo has a lot of files and folders) I do not want to check out the *whole* repository, but I need more info to get just what I need: $ svn co svn://svn.codehaus.org/maven/scm/repository/org/ springframework/spring-web/2.0-m4/ svn: File not found: revision 341, path '/scm/repository/org/ springframework/spring-web/2.0-m4' Cheers, -Ralph. On 31.05.2006, at 18:22, Olivier Lamy wrote: http://maven.apache.org/guides/mini/guide-maven-evangelism.html http://jira.codehaus.org/browse/MEV -- Olivier -Message d'origine- De : Ralph Pöllath [mailto:[EMAIL PROTECTED] Envoyé : mercredi 31 mai 2006 18:16 À : Maven Users List Objet : POMs missing for spring-webmvc 2.0-m4 and spring-webmvc 2.0- m4? Hi, I'm currently upgrading my project to Spring 2.0-m4 and it seems the POMs for spring-webmvc and spring-web are missing: http://www.ibiblio.org/maven2/org/springframework/spring-webmvc/2.0- m4/ http://www.ibiblio.org/maven2/org/springframework/spring-web/2.0-m4/ I cannot currently create a dependency on these packages. Should I file a bug in JIRA? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-book] maven dependencies graph plugin?
On 01.05.2006, at 10:43, Wim Deblauwe wrote: in the book there is talk of a maven dependencies graph plugin. Is the work on that already started? I know there is a page[1] on the wiki about it but I don't have a clue if someone started to work on that? It shouldn't be too hard to produce a dependency graph using Graphviz's Dot notation. LinguineMaps already uses Graphviz for visualizing Hibernate mappings, WSDL, Ant files, etc. The drawback is that the official Dot renderer isn't Java, which makes integration a bit more clumsy than it should be. Last time I looked, there was no pure Java implementation, but maybe that has changed in the meantime. Personally, I render dot files using OmniGraffle Pro (Mac OS X only), which produces the best looking output for simple stuff. Cheers, -Ralph. -- Graphviz http://www.graphviz.org Graphviz Dot http://www.graphviz.org/doc/info/lang.html LinguineMaps http://www.softwaresecretweapons.com/jspwiki/Wiki.jsp?page=LinguineMaps OmniGraffle Pro http://www.omnigroup.com/applications/omnigraffle/pro/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Yet another Eclipse issue...
On 26.01.2006, at 13:40, Michael Böckling wrote: it recently occurred to me that using Maven dependencies in Eclipse (which in itself is a good idea) screws up one thing: refactoring. When I have project workspace-dependencies, these dependencies are taken into account when I do a refactor (method calls et.c are changed accordingly in dependent projects). It seems that this doesn't work anymore when using the Eclipse plugin. Is there a solution to this issue? If you run the eclipse plugin from the root of a multi-module project, it will create workspace dependencies between the modules instead of binary dependencies. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Jalopy Plugin?
On 25.01.2006, at 14:41, Brian E. Fox wrote: And it should me jalopy-maven-plugin. Plugins on apache are maven- -plugin, plugins on mojo are xxx-maven-plugin. Aaahhh.. that makes perfect sense. Not. Cheers, -Ralph. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 25, 2006 5:55 AM To: Maven Users List Subject: Re: [m2] Jalopy Plugin? The plugin version isn't 1.0b11 but 1.0-SNAPSHOT Emmanuel Stefan Fritz a écrit : Sorry I'm a newbie: I compiled it and it installed in my local repository. My pom: ... plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-jalopy-plugin/artifactId version1.0b11/version /plugin ... mvn site [INFO] Scanning for projects... [INFO] - - -- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [site] [INFO] - - -- Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-jalopy- plugin/1. 0b 11/maven-jalopy -plugin-1.0b11.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-jalopy- plugin/1. 0b 11/maven-jalopy -plugin-1.0b11.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] - - -- [ERROR] BUILD ERROR [INFO] - - -- [INFO] Failed to resolve artifact. GroupId: org.codehaus.mojo ArtifactId: maven-jalopy-plugin Version: 1.0b11 Reason: Unable to download the artifact from any repository org.codehaus.mojo:maven-jalopy-plugin:pom:1.0b11 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] - - -- [INFO] For more information, run Maven with the -e switch [INFO] - - -- [INFO] Total time: 3 seconds [INFO] Finished at: Wed Jan 25 11:45:13 CET 2006 [INFO] Final Memory: 3M/5M [INFO] - - -- Another tip ? :-) Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency on hibernate
Hi, I find it much more convenient to simply replace the dependencies on sun's jars with their equivalents from geronimo, as mentioned at http://mavenbook.xwiki.com/xwiki/bin/view/Main/J2eeDependencies Here's how my hibernate dependency looks like: dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.0.5/version exclusions exclusion artifactIdjta/artifactId groupIdjavax.transaction/groupId /exclusion exclusion groupIdjavax.security/groupId artifactIdjacc/artifactId /exclusion /exclusions /dependency !-- open source replacements for jta, jacc -- dependency artifactIdgeronimo-spec-jta/artifactId groupIdgeronimo-spec/groupId version1.0.1B-rc4/version /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee-jacc/artifactId version1.0-rc3/version /dependency Cheers, -Ralph. On 20.01.2006, at 09:26, Bengt-Erik Fröberg wrote: Hi You're facing the SUN jarmaggeddon. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html 1) go to http://java.sun.com/products/jta/ and download class files 2) check out http://maven.apache.org/guides/mini/guide-installing-3rd-party- jars.html 3) Replace path-to-file with the path to your download 4) group-id with javax.transaction 5) artifact-id with jta 6) version with 1.0.1B 7) packaging with jar 8) watch your desired transaction package get installed hopefully... Yes, I know, there should be a tool for this, feels like the 80's entering shitloads of command line arguments.. HTH /B-E -Ursprungligt meddelande- Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] Skickat: den 19 januari 2006 21:30 Till: Maven Users List Ämne: Dependency on hibernate Hello! I added a dependency on hibernate in my pom.xml: dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version3.1rc2/version scopecompile/scope /dependency If I try to compile I get an error: [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. required artifacts missing: javax.transaction:jta:jar:1.0.1B Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and search for the jar-file. There is no JAR on this server. How can I resolve this dependency? Thanks in advance! - Guenther - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency on hibernate
On 20.01.2006, at 11:05, Christian Andersson wrote: not sure if this has been suggested before.. Since this problem might exist not only for sun dependencies but for other dependencies also, could one sollution be to in the maven repository (on ibiblio,etc) create a pom for these dependencies but NOT include the dependency itself, but in the pom for the dependency have some sort of installation instruction so that when maven tries to download the dependency it will fail presenting the installation instructions, or if it even is possible, download the licens text for the dependency, display it to the user and if the user accepts license download the dependency from the real url (sjava.sun.com in this case) the first part should not be that hard to implement I should think (I have not looked in the source of maven, but I suppose that it would require some changs in the code and perheps the pom also which might not be wanted.. POMs with download URLs are already up there, e.g. http://ibiblio.org/maven2/javax/jms/jms/1.1/jms-1.1.pom I don't expect the automatic license agreement to happen. But if sun's jars contained info about their possible replacements from geronimo.. Cheers, -Ralph. Bengt-Erik Fröberg wrote: Hi You're facing the SUN jarmaggeddon. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html 1) go to http://java.sun.com/products/jta/ and download class files 2) check out http://maven.apache.org/guides/mini/guide-installing-3rd-party- jars.html 3) Replace path-to-file with the path to your download 4) group-id with javax.transaction 5) artifact-id with jta 6) version with 1.0.1B 7) packaging with jar 8) watch your desired transaction package get installed hopefully... Yes, I know, there should be a tool for this, feels like the 80's entering shitloads of command line arguments.. HTH /B-E -Ursprungligt meddelande- Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] Skickat: den 19 januari 2006 21:30 Till: Maven Users List Ämne: Dependency on hibernate Hello! I added a dependency on hibernate in my pom.xml: dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version3.1rc2/version scopecompile/scope /dependency If I try to compile I get an error: [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. required artifacts missing: javax.transaction:jta:jar:1.0.1B Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and search for the jar-file. There is no JAR on this server. How can I resolve this dependency? Thanks in advance! - Guenther - 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: Download Javadoc into Eclipse with Maven2
On 16.01.2006, at 11:05, Bjarte Stien Karlsen wrote: That was very useful Ralph, however it was not what i asked for. Sorry, I didn't pick up the javadoc in your original post at all. What i think would be nice would be a way to make Maven download the Javadoc and making it available to Eclipse. With downloaded sources you can view these in Eclipse with a F3, what i want is the ability to press Shift+F2 to open the external Javadoc for the chosen class (that is inside a imported JAR). I hope i made myself a little bit clearer now. You did, but unfortunately I can't offer much advice. Of course, if you have maven download the sources into Eclipse, you can display the javadoc for a class in the javadoc view - but I guess that's still not what you asked for. In order to provide it to Eclipse, the maven eclipse plugin would have to figure out the javadoc location url for each dependency, but AFAIK there is no way of specifying it in a POM. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download Javadoc into Eclipse with Maven2
On 13.01.2006, at 13:48, Bjarte Stien Karlsen wrote: Is it possible to download the javadoc into Eclipse in the same way as one can do with -Declipse.downloadSources=true? Try this: project ... pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.0/version configuration downloadSourcestrue/downloadSources /configuration /plugin /plugins /pluginManagement /build ... /project Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] eclipse project dependecy - how to define?
Sanjay, I'm not sure I understand your question (I'm not familiar with maven 1), but if you want the maven eclipse plugin to produce an eclipse project depending on another eclipse project (instead of depending on a jar in the local repo), then have a look at this: http://maven.apache.org/guides/mini/guide-ide-eclipse.html In the example, module1 depends on core. Running mvn eclipse:eclipse from the parent's directory results in a dependency on another eclipse project: // in module1/.classpath classpathentry kind=src path=/core/ instead of a dependency on a jar: // in module1/.classpath classpathentry kind=var path=M2_REPO/com/example/core/1.1.2/ core-1.1.2.jar/ Cheers, -Ralph. On 13.01.2006, at 03:25, Napoleon Esmundo Ramirez wrote: Hello, In Maven 2, it is not possible to define properties for a given dependency--according to the project descriptor ( http://maven.apache.org/maven-model/maven.html#class_dependency). I think you need a plugin that can be configured to handle such dependencies. Cheers! Nap On 1/13/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: posting again!! Eclipse plugin team, please advice. -- Forwarded message -- From: Sanjay Choudhary [EMAIL PROTECTED] Date: Jan 12, 2006 8:30 AM Subject: [M2] eclipse project dependecy - how to define? To: Maven Users List users@maven.apache.org In maven 1.0.2 we were able to define eclipse project dependency. For example dependency groupId artifactId version properties eclipse.dependencytrue/eclipse.dependency /properties /dependency How can I define project depency for Eclipse in M2? Pls. advice. Thanks -Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] jetty6 doesn't get downloaded
On 10.01.2006, at 16:56, Srepfler Srgjan wrote: I'm having problems in using jetty, I've declared it in the pom: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId version1.0/version configuration scanIntervalSeconds10/scanIntervalSeconds contextPath/jspArt/contextPath /configuration /plugin and have added the montbay repo to settings.xml however the plugin that it searches is org.apache.maven.plugins:maven-jetty6-plugin, what might be the problem? I use maven 2.0.1 Did you add the mortbay repo as a pluginRepository? I used to have the followinng in my POM, and it worked: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/snapshot/url /pluginRepository /pluginRepositories I'm not currently using it anymore, so I can't make any guarantees. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: accessing environment variable in settings.xml or pom.xml
On 05.01.2006, at 22:31, Adam Altemus wrote: Greetings, my name is Adam Altemus. I am a computer science student @ Indiana University of PA. and am doing an internship. I read in a thread that you said that you can acess environment variables in the pom.xml from the settings.xml. Could you explain to me how this can be done? AFAIK, you can use java system properties like ${user.home} etc. (see http://java.sun.com/docs/books/tutorial/essential/system/ properties.html ), but not your operating system's environment variables (like $CATALINA_HOME, etc). There has been quite some discussion about this, so search the archives if you want to know why this is so (build portability, IIRC). Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] auto completion using BASH does not work on MacOSX
On 03.01.2006, at 16:44, Man-Chi Leung wrote: I followed the following instruction, but it does not work on my MacOSX 's bash shell. anyone has a better luck? Guide to Maven 2.x auto completion using BASH http://maven.apache.org/guides/mini/guide-bash-m2-completion.html Do you have bash's programmable auto completion up and running already? If not, you could install it using fink (see http:// pdb.finkproject.org/pdb/package.php/bash-completion) or darwinports (see http://bash-completion.darwinports.com/) or do it by hand (see http://www.caliban.org/bash/index.shtml#completion). Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Standard Directory Layout for AspectJ in m2?
Hi Manchi, please don't start new list threads by replying to a previous message and changing the subject. Many email clients will rightfully assume your message belongs to the previous thread and display it threre, which is quite annoying for people using this feature. Thanks, -Ralph. On 02.01.2006, at 06:17, Man-Chi Leung wrote: hi, just a very coffee-like question! as maven community encourages standard directory layout, I am very curious on the convention for aspectj files 1) /src/aspect 2) /src/main/aspect 3) /src/main/resources/aspect I opted for number 2 anyone can share with me your convention? Regards, manchi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-antrun-plugin and ant-optional
Begin forwarded message: From: Yann Le Du [EMAIL PROTECTED] Date: 28. Dezember 2005 19:17:45 MEZ To: Maven Users List users@maven.apache.org Subject: Re: [m2] Using optional ant tasks with antrun plugin Reply-To: Maven Users List users@maven.apache.org Hi Ralph, Try ant-nodeps instead of ant-optional, there is a 1.6.5 and I believe this is the new name for ant-optional. -- Yann 2005/12/28, Ralph Pöllath [EMAIL PROTECTED]: Hi, I'd like to use the antrun plugin to execute optional ant tasks. Extending the example from http://maven.apache.org/guides/mini/guide- using-ant.html , I added a dependency to ant:ant-optional: 1.5.3-1:jar, which results in an error: An invalid artifact was detected, ArtifactID: MISSING . I noticed that the used version of ant itself is 1.6.5, but I found no matching ant-optional.jar in the repository. Any help apreciated, see below for full details. Thanks, -Ralph. On 02.01.2006, at 16:26, exquisitus wrote: I tryed to run some ant tasks from within ant. Unfortunatly the execution fails if I have to use a optional ant-task. My POM looks like this: plugin artifactIdmaven-antrun-plugin/artifactId executions !-- generate the XSD documentation -- execution phasevalidate/phase configuration tasks ant antfile=build.xml target=gen-xsddoc property name=doctitle value=${pom.name} - ${pom.version} / /ant /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-optional/ artifactId version1.5.3-1/version /dependency /dependencies /plugin has anyone an idea how to enable the optional tasks for ant? Regards domi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using optional ant tasks with antrun plugin
Thanks Yann, works as expected. Cheers, -Ralph. On 28.12.2005, at 19:17, Yann Le Du wrote: Hi Ralph, Try ant-nodeps instead of ant-optional, there is a 1.6.5 and I believe this is the new name for ant-optional. -- Yann 2005/12/28, Ralph Pöllath [EMAIL PROTECTED]: Hi, I'd like to use the antrun plugin to execute optional ant tasks. Extending the example from http://maven.apache.org/guides/mini/guide- using-ant.html , I added a dependency to ant:ant-optional: 1.5.3-1:jar, which results in an error: An invalid artifact was detected, ArtifactID: MISSING . I noticed that the used version of ant itself is 1.6.5, but I found no matching ant-optional.jar in the repository. Any help apreciated, see below for full details. Thanks, -Ralph. --- project modelVersion4.0.0/modelVersion artifactIdmy-test-app/artifactId groupIdmy-test-group/groupId version1.0-SNAPSHOT/version build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks echo*** happy holidays!/echo /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-optional/artifactId version1.5.3-1/version /dependency /dependencies /plugin /plugins /build /project $ mvn -X package + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: '~/.m2/ plugin- registry.xml' [DEBUG] Building Maven global-level plugin registry from: '$M2_HOME/ conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] - --- [INFO] Building Unnamed - my-test-group:my-test-app:jar:1.0-SNAPSHOT [INFO]task-segment: [package] [INFO] - --- [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resources-plugin:maven-plugin:2.1 [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-compiler-plugin:maven-plugin:2.0 [DEBUG] maven-surefire-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-surefire-plugin:maven-plugin:2.0 [DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-jar-plugin:maven-plugin:2.0 [DEBUG] maven-antrun-plugin: resolved to version 1.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-antrun-plugin:maven-plugin:1.0 [DEBUG] my-test-group:my-test-app:jar:1.0-SNAPSHOT (selected for null) [DEBUG] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.0 (selected for runtime) [DEBUG] ant:ant:jar:1.6.5 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0 [DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0- alpha-8 (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0 [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0 [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0 [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0 [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0- alpha-5 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0 [DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] An invalid artifact
[m2] run plugin after webapp is assembled and before it's zipped
Hi, I'd like to post-process my JSPs using the antrun plugin (which uses ant's replaceregexp task). The plugin execution itself works fine, but now I need it to run after the webapp is assembled and before it's zipped up as a warfile. My JSPs live in src/main/webapp/WEB-INF/jsp/ and I do not want to modifiy them there. I thought about dropping them into src/main/ resources/ but then they would end up in target/myApp/WEB-INF/ classes/ instead of WEB-INF. Any ideas? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Using optional ant tasks with antrun plugin
Hi, I'd like to use the antrun plugin to execute optional ant tasks. Extending the example from http://maven.apache.org/guides/mini/guide- using-ant.html , I added a dependency to ant:ant-optional: 1.5.3-1:jar, which results in an error: An invalid artifact was detected, ArtifactID: MISSING . I noticed that the used version of ant itself is 1.6.5, but I found no matching ant-optional.jar in the repository. Any help apreciated, see below for full details. Thanks, -Ralph. --- project modelVersion4.0.0/modelVersion artifactIdmy-test-app/artifactId groupIdmy-test-group/groupId version1.0-SNAPSHOT/version build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks echo*** happy holidays!/echo /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-optional/artifactId version1.5.3-1/version /dependency /dependencies /plugin /plugins /build /project $ mvn -X package + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: '~/.m2/plugin- registry.xml' [DEBUG] Building Maven global-level plugin registry from: '$M2_HOME/ conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] [INFO] Building Unnamed - my-test-group:my-test-app:jar:1.0-SNAPSHOT [INFO]task-segment: [package] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-resources-plugin:maven-plugin:2.1 [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-compiler-plugin:maven-plugin:2.0 [DEBUG] maven-surefire-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-surefire-plugin:maven-plugin:2.0 [DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-jar-plugin:maven-plugin:2.0 [DEBUG] maven-antrun-plugin: resolved to version 1.0 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-antrun-plugin:maven-plugin:1.0 [DEBUG] my-test-group:my-test-app:jar:1.0-SNAPSHOT (selected for null) [DEBUG] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.0 (selected for runtime) [DEBUG] ant:ant:jar:1.6.5 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-project:jar:2.0 [DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0- alpha-8 (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact:jar:2.0 [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-model:jar:2.0 [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-artifact-manager:jar:2.0 [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-repository-metadata:jar:2.0 [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0- alpha-5 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0 [DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included transitively during the resolution process. Here is the information we do have for this artifact: o GroupID: ant o ArtifactID: MISSING
Re: [m2] where to download jta-1.0.1b.jar as mave.org timesout?
On 22.12.2005, at 17:32, Mick Knutson wrote: where to download jta-1.0.1b.jar as mave.org timesout? http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] New libraries coming out
On 14.12.2005, at 10:14, cameron101 wrote: It would be great if the likes of Spring / Hibernate and other mainstream OSS vendors released new versions to Maven with all the POM's and direct dependencies. They themselves would benefit as the community would probably have a faster take up of new technologies and therefore progress the discovery and fixing of bugs and new functionality. Unfortunately, this sounds highly unlikely for Spring. They just demoed their build system common-build at the Spring Experience conference which is based on Ivy: http://www.jroller.com/page/raible? entry=spring_agile_development_challenges_by So yes, I agree we need more lobbying. I love Spring, but I don't need yet another build system. Cheers, -Ralph. On 13/12/05, Srepfler Srgjan [EMAIL PROTECTED] wrote: I personally think that we should lobby for grater use of maven2. I mean with all respect to maven you team just can't and shouldn't handle this enormous repository. I mean the hibernate guys should build their libs with m2 pom and also house the libs themselves. I mean we can't really bother your people for every little thing like hibernate annotation 3.1beta*7* or something else I mean come on, you have lives too :) Same thing goes for spring libraries, or any other project. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the jetty6 plugin was: Using the tomcat plugin
Hi, The one thing that keeps me from using the jetty6 plugin instead of tomcat for development is the log4j configuration for my spring application. As usual, the application expects log4j config in classpath:log4j.properties. For use with jetty, I need a different config file to be available at that location (log to console instead of files), so I dropped this into my POM: profiles profile idjetty/id pluginRepositories ... / build resources resource !-- include config for use with jetty -- directorysrc/jetty/resources/directory includes includelog4j.properties/include /includes /resource resource !-- exclude regulat config for use with tomcat -- directorysrc/main/resources/directory excludes excludelog4j.properties/exclude /excludes /resource /resources pluginManagement ... / /build dependencies ... oracle ... / /profile /profiles The exclude stuff seems to work, but src/jetty/resources/ log4j.properties doesn't seem to be placed on the classpath: Embedded error: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist Jetty says [INFO] Setting up classpath ... :INFO: Checking Resource aliases [INFO] Finished setting up classpath Is it possible to somehow display the classpath for inspection? I thought of filtering web.xml to manipulate the expected filename, but I guess that won't work since the webapp directory is src/main/ webapp. Thanks, -Ralph. On 03.11.2005, at 12:37, Jan Bartel wrote: Hi Ralph, I've linked the doco for the plugin onto the Jetty site. You can go directly to it here: http://jetty.mortbay.org/jetty6/maven-plugin/index.html You can change where the plugin expects to find your webapp by configuring the webAppSourceDirectory property. Regarding the oracle jars, I'm not sure about this, but perhaps you could use the dependencies associated with the plugin tag to get them onto the runtime classpath? cheers Jan Ralph Pöllath wrote: Hi, I'm impressed! By following your instructions, I got jetty to run my webapp (using http://www.mortbay.org/maven2/snapshot as mentioned by Greg - the old url did not work anymore). Unfortunately, I didn't get very far because jetty doesn't know about my oracle drivers. With tomcat, I keep those in $ {catalina.base}/ common/lib. I guess I could add them as dependencies tom my project so they end up in WEB-INF/lib, but then I could not deploy the war to tomcat anymore. Sounds like I should have different maven profiles fot these scenarios? Or does jetty look for additional jars in some location? That would make it a lot easier.. I also noticed that jetty expects my webapp at ${dasedir}/src/ main/ webapp. Running mvn war:inplace works, but feels rather clumsy. I adds files to src that aren't sources, and I have to make sure I don't accidentally add them to svn. Cheers, -Ralph. On 02.11.2005, at 19:31, Jan Bartel wrote: Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website in the next day. In the meanwhile, all you should need to do is to add these plugin config lines to your pom.xml: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId configuration scanIntervalSeconds20/scanIntervalSeconds /configuration /plugin That will cause the plugin to keep running and scan for class/ lib changes every 20secs. You can change it to whatever you prefer. There are also a couple of other config options, but that should get you going. You can run it: mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run You can shorten that to: mvn jetty6:run but I'm not sure exactly how to do that other than as the plugin developer (I followed the instructions at http://maven.apache.org/maven2/guides/plugin/ guide- java-plugin-development.html). Jason, is there any update on how we get the Jetty repository mirrored to the central Maven2 repository? cheers Jan Ralph Pöllath wrote
Re: [m2] Using the jetty6 plugin
Hi, I removed the log4jConfigLocation context-param from web.xml, so it defaults to standard log4j config (same thing anyway). Setting the log4j config via command line works fine now: mvn -Dlog4j.configuration=log4j-console.properties -Pjetty org.mortbay.jetty:maven-jetty6-plugin:1.0:run Now I tried adding an equivalent system property to the jetty6 plugin config (see http://jetty.mortbay.org/jetty6/maven-plugin/howto.html ): profiles/profile/build/pluginManagement/plugins/plugin/ configuration ... systemProperties systemProperty namelog4j.configuration/name valuelog4j-console.properties/value /systemProperty /systemProperties /configuration But this results in the standard config file log4j.properties being picked up. One explanation would be that log4j.configuration was set before the plugin gets a shot at it (you can't override system properties), but I'm quite sure it isn't me who set it. Any ideas? BTW, the docs mention mvn jetty6:run, which won't work for me either, but mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run does. Thanks, -Ralph. On 22.11.2005, at 11:03, Ralph Pöllath wrote: Hi, The one thing that keeps me from using the jetty6 plugin instead of tomcat for development is the log4j configuration for my spring application. As usual, the application expects log4j config in classpath:log4j.properties. For use with jetty, I need a different config file to be available at that location (log to console instead of files), so I dropped this into my POM: profiles profile idjetty/id pluginRepositories ... / build resources resource !-- include config for use with jetty -- directorysrc/jetty/resources/directory includes includelog4j.properties/include /includes /resource resource !-- exclude regulat config for use with tomcat -- directorysrc/main/resources/directory excludes excludelog4j.properties/exclude /excludes /resource /resources pluginManagement ... / /build dependencies ... oracle ... / /profile /profiles The exclude stuff seems to work, but src/jetty/resources/ log4j.properties doesn't seem to be placed on the classpath: Embedded error: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist Jetty says [INFO] Setting up classpath ... :INFO: Checking Resource aliases [INFO] Finished setting up classpath Is it possible to somehow display the classpath for inspection? I thought of filtering web.xml to manipulate the expected filename, but I guess that won't work since the webapp directory is src/main/ webapp. Thanks, -Ralph. On 03.11.2005, at 12:37, Jan Bartel wrote: Hi Ralph, I've linked the doco for the plugin onto the Jetty site. You can go directly to it here: http://jetty.mortbay.org/jetty6/maven-plugin/index.html You can change where the plugin expects to find your webapp by configuring the webAppSourceDirectory property. Regarding the oracle jars, I'm not sure about this, but perhaps you could use the dependencies associated with the plugin tag to get them onto the runtime classpath? cheers Jan Ralph Pöllath wrote: Hi, I'm impressed! By following your instructions, I got jetty to run my webapp (using http://www.mortbay.org/maven2/snapshot as mentioned by Greg - the old url did not work anymore). Unfortunately, I didn't get very far because jetty doesn't know about my oracle drivers. With tomcat, I keep those in $ {catalina.base}/ common/lib. I guess I could add them as dependencies tom my project so they end up in WEB-INF/lib, but then I could not deploy the war to tomcat anymore. Sounds like I should have different maven profiles fot these scenarios? Or does jetty look for additional jars in some location? That would make it a lot easier.. I also noticed that jetty expects my webapp at ${dasedir}/src/ main/ webapp. Running mvn war:inplace works, but feels rather clumsy. I adds files to src that aren't sources, and I have to make sure I don't accidentally add them to svn. Cheers, -Ralph. On 02.11.2005, at 19:31, Jan Bartel wrote: Ralph, Try putting the following in your pom.xml
Re: [m2] Using the jetty6 plugin was: Using the tomcat plugin
Hi Jan, I tried the systemProperties approach (see my previous post), but no luck. Adding the implementation attribute (which isn't mentioned in the howto BTW) didn't help either. My plugin repository points to http://www.mortbay.org/maven2/ snapshot, so I assume I'm using the latest snaphot. Thanks, -Ralph. On 22.11.2005, at 11:47, Jan Bartel wrote: Hi Ralph, If you run the plugin with -X or -e then I think maven spits out the classpaths so you can see what is happening with the system classpath. An alternative is to use a feature I've just added to the plugin, which is the ability to define name/value pairs that the plugin will set as system properties. You could define the log4j.configuration property to point to where your config file is. Add these lines to the plugin's configuration: systemProperties systemProperty implementation=org.mortbay.jetty.plugin.SystemProperty namelog4j.configuration/name value${basedir}/src/jetty/resources/ log4j.properties/value /systemProperty /systemProperties You will need to use the latest snapshot version of the plugin to be able to use this feature. More instructions are at http://jetty.mortbay.org/jetty6/maven-plugin/howto.html regards Jan Ralph Pöllath wrote: Hi, The one thing that keeps me from using the jetty6 plugin instead of tomcat for development is the log4j configuration for my spring application. As usual, the application expects log4j config in classpath:log4j.properties. For use with jetty, I need a different config file to be available at that location (log to console instead of files), so I dropped this into my POM: profiles profile idjetty/id pluginRepositories ... / build resources resource !-- include config for use with jetty -- directorysrc/jetty/resources/directory includes includelog4j.properties/include /includes /resource resource !-- exclude regulat config for use with tomcat -- directorysrc/main/resources/directory excludes excludelog4j.properties/exclude /excludes /resource /resources pluginManagement ... / /build dependencies ... oracle ... / /profile /profiles The exclude stuff seems to work, but src/jetty/resources/ log4j.properties doesn't seem to be placed on the classpath: Embedded error: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist Jetty says [INFO] Setting up classpath ... :INFO: Checking Resource aliases [INFO] Finished setting up classpath Is it possible to somehow display the classpath for inspection? I thought of filtering web.xml to manipulate the expected filename, but I guess that won't work since the webapp directory is src/main/ webapp. Thanks, -Ralph. On 03.11.2005, at 12:37, Jan Bartel wrote: Hi Ralph, I've linked the doco for the plugin onto the Jetty site. You can go directly to it here: http://jetty.mortbay.org/jetty6/maven-plugin/index.html You can change where the plugin expects to find your webapp by configuring the webAppSourceDirectory property. Regarding the oracle jars, I'm not sure about this, but perhaps you could use the dependencies associated with the plugin tag to get them onto the runtime classpath? cheers Jan Ralph Pöllath wrote: Hi, I'm impressed! By following your instructions, I got jetty to run my webapp (using http://www.mortbay.org/maven2/snapshot as mentioned by Greg - the old url did not work anymore). Unfortunately, I didn't get very far because jetty doesn't know about my oracle drivers. With tomcat, I keep those in $ {catalina.base}/ common/lib. I guess I could add them as dependencies tom my project so they end up in WEB-INF/lib, but then I could not deploy the war to tomcat anymore. Sounds like I should have different maven profiles fot these scenarios? Or does jetty look for additional jars in some location? That would make it a lot easier.. I also noticed that jetty expects my webapp at ${dasedir}/src/ main/ webapp. Running mvn war:inplace works, but feels rather clumsy. I adds files to src that aren't sources, and I have to make sure I don't accidentally add them to svn. Cheers, -Ralph. On 02.11.2005, at 19:31, Jan Bartel wrote: Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website
Re: [m2] Any support for Cruise Control yet?
Hi, I'm currently evaluating continuum and like it a lot, but I just read on continuum-users that test reports are currently not displayed (it's a planned feature for 1.1, and 1.0 just came out). I'm wondering whether it might be a little early to recommend continuum over CruiseControl? Cheers, -Ralph. On 19.11.2005, at 03:07, Carlos Sanchez wrote: We are not the ones that develope CruiseControl, so we don't know. In fact we suggest Continuum instead which is seamlessly integrated with maven2 http://maven.apache.org/continuum/. On 11/18/05, KC Baltz [EMAIL PROTECTED] wrote: We use Cruise Control here and I'm trying to introduce Maven2. Is this possible? K.C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Any support for Cruise Control yet?
On 20.11.2005, at 19:18, Brett Porter wrote: It depends on your required feature set. Continuum has a number of features CC doesn't have, and vice-versa. Agreed. You can view test reports by browsing the working copy in Continuum, but we aim to have general report integration in the next releases. General report integration (not just test reports, but PMD, etc.) makes a lot of sense - that wasn't clear in the thread on continuum- users. Cheers, -Ralph. On 11/21/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Hi, I'm currently evaluating continuum and like it a lot, but I just read on continuum-users that test reports are currently not displayed (it's a planned feature for 1.1, and 1.0 just came out). I'm wondering whether it might be a little early to recommend continuum over CruiseControl? Cheers, -Ralph. On 19.11.2005, at 03:07, Carlos Sanchez wrote: We are not the ones that develope CruiseControl, so we don't know. In fact we suggest Continuum instead which is seamlessly integrated with maven2 http://maven.apache.org/continuum/. On 11/18/05, KC Baltz [EMAIL PROTECTED] wrote: We use Cruise Control here and I'm trying to introduce Maven2. Is this possible? K.C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Fill src/main/webapp/WEB-INF/lib with dependencies from pom.xml
Hi, I think that war:inplace should do the trick: http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html Cheers, -Ralph. On 18.11.2005, at 09:20, [EMAIL PROTECTED] wrote: Hi, To be able to use a web project in WSAD I need a WEB-INF/lib directory filled with the dependency jars. All my dependencies are put in the war correctly but I need the jars in the src directory. How can I force Maven to copy all dependencies to the src/main/webapp/WEB-INF/lib directory? Thanks. Martijn de Bruijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Requirements for mail notifiers
Hi, What's required to use mail notifiers? I assume I'll have to install JavaMail - but where do I have to drop the jars for continuum to pick them up? Cheers, -Ralph.
Re: Documentation -- making better use of the wiki
+1 Cheers, -Ralph. On 11.11.2005, at 11:01, David Sag wrote: +1 Kind regards, Dave Sag Alexander Hars [EMAIL PROTECTED] wrote on 11-11-2005 10:42:58: Hi, I have been using Maven2 for two weeks and am very impressed by all the great features. However, the learning curve is steep and it is often very difficult to find certain answers (I often need to to look at the source code to find them). Whenever I find an answer to a question, I alone have learned. Others don't profit. I would be quite willing to submit an answer to Maven2 for inclusion into the guides. But that takes quite a bit of time (...going into CVS, downloading the apt file, modifying it, testing it, submitting it to someone for posting to the CVS etc.). I did that once, but we can't expect big progress in the documentation to occur this way. The only solution that does not overload the developers (who put in so much time already anyhow), is to make better use of the wiki because everybody can contribute and increase our cumulated knowledge. But just providing the wiki as it is now (http://wiki.apache.org/maven/Maven2Info) does not work. There is almost nothing there, almost nobody goes to it, therefore few people add anything either. There are two practical ways in which we could make better use of the wiki: a) provide a prominent link from the Maven2 documentation (guides, miniguides, references, etc.) to a related wiki page. Anyone who has some insight to add to the documentation can place it there; anyone who has not found the answer in the standard documentation can easily check whether there is more information in the wiki. From time to time someone can integrate the bulk of good insights from the wiki back into the documentation. b) put most of the documentation into the wiki. In my opinion this is the ideal case, because it would reduce the load on the developers for providing the documentation and there would be a single documentation mechanism. But it is probably not practical because the Maven Wiki is not based on the .apt format and integration with the maven site generation mechanism may be difficult. Option a) is very easy to do. We would only need to create associated wiki pages and insert a link to the wiki page from the original documentation. I am sure that we could greatly expand the Maven-related knowledge this way. I certainly would be willing to work on the necessary changes to get this rolling if you think this is a good idea. - Alexander Hars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to exclude dependency from WAR's WEB-INF/lib
How do I prevent including JARs in WEB-INF/lib? I need a compile only scope! http://maven.apache.org/general.html#scope-provided Cheers, -Ralph. On 11.11.2005, at 15:55, Simeon Koptelov wrote: I'm porting my project build system from Ant to Maven 2.0 and can not find the right way to do it. I googled and found that I should use propertieswar.bundlefalse/war.bundle/properties But it gives me parsing error (stack trace in the end of this mail). I also read that scopecompile/scope doesn't do what I want (and my opinion is that it's really against common sense - I want library in compile and don't want in package). So can anyone please explain how to exclude dependency jar from WEB- INF/lib ? pom.xml: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.fis/groupId artifactIdfis-web/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameFIS web application/name urlhttp://www.fis.ru/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId version1.3/version /dependency !-- ... Many deps skipped -- !-- This I don't want to include in WAR -- dependency groupIdcom.fis/groupId artifactIdfis-jmx/artifactId version1.0-SNAPSHOT/version properties war.bundlefalse/war.bundle /properties /dependency /dependencies build finalNamefis-web/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId /plugin /plugins /build /project Parser error stack trace: org.apache.maven.reactor.MavenExecutionException: Parse error reading POM at org.apache.maven.DefaultMaven.getProjects (DefaultMaven.java:359) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:276) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error reading POM at org.apache.maven.project.DefaultMavenProjectBuilder.readModel (DefaultMavenProjectBuilder.java:1097) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel (DefaultMavenProjectBuilder.java:1057) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFil e(DefaultMavenProjectBuilder.java:291) at org.apache.maven.project.DefaultMavenProjectBuilder.build (DefaultMavenProjectBuilder.java:276) at org.apache.maven.DefaultMaven.getProject (DefaultMaven.java:509) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:441) at org.apache.maven.DefaultMaven.getProjects (DefaultMaven.java:345) ... 11 more Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'properties' (position: START_TAG seen .../ version\r\n properties... @210:23) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency (MavenXpp3Reader.java:1202) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel (MavenXpp3Reader.java:2230) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read (MavenXpp3Reader.java:4255) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel (DefaultMavenProjectBuilder.java:1093) ... 17 more -- Simeon Koptelov, RIC FIS Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the jetty6 plugin was: Using the tomcat plugin
Hi, I'm impressed! By following your instructions, I got jetty to run my webapp (using http://www.mortbay.org/maven2/snapshot as mentioned by Greg - the old url did not work anymore). Unfortunately, I didn't get very far because jetty doesn't know about my oracle drivers. With tomcat, I keep those in ${catalina.base}/ common/lib. I guess I could add them as dependencies tom my project so they end up in WEB-INF/lib, but then I could not deploy the war to tomcat anymore. Sounds like I should have different maven profiles fot these scenarios? Or does jetty look for additional jars in some location? That would make it a lot easier.. I also noticed that jetty expects my webapp at ${dasedir}/src/main/ webapp. Running mvn war:inplace works, but feels rather clumsy. I adds files to src that aren't sources, and I have to make sure I don't accidentally add them to svn. Cheers, -Ralph. On 02.11.2005, at 19:31, Jan Bartel wrote: Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website in the next day. In the meanwhile, all you should need to do is to add these plugin config lines to your pom.xml: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId configuration scanIntervalSeconds20/scanIntervalSeconds /configuration /plugin That will cause the plugin to keep running and scan for class/lib changes every 20secs. You can change it to whatever you prefer. There are also a couple of other config options, but that should get you going. You can run it: mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run You can shorten that to: mvn jetty6:run but I'm not sure exactly how to do that other than as the plugin developer (I followed the instructions at http://maven.apache.org/maven2/guides/plugin/guide- java-plugin-development.html). Jason, is there any update on how we get the Jetty repository mirrored to the central Maven2 repository? cheers Jan Ralph Pöllath wrote: On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat- plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where this dependency come from?
On 03.11.2005, at 17:14, Joao Batistella wrote: When I try to build my project, Maven tries to download commons- logging-1.1-dev.jar. But I have no declared dependency for this library. Where can I see this dependency? If you're running maven2, it's probably a transitive dependency. Try adding the -X option to see those listed. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Using the tomcat plugin
Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost:8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the tomcat plugin
On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the tomcat plugin
Thanks Jan, I'll give this a shot later on. Cheers, -Ralph. On 02.11.2005, at 19:31, Jan Bartel wrote: Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website in the next day. In the meanwhile, all you should need to do is to add these plugin config lines to your pom.xml: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId configuration scanIntervalSeconds20/scanIntervalSeconds /configuration /plugin That will cause the plugin to keep running and scan for class/lib changes every 20secs. You can change it to whatever you prefer. There are also a couple of other config options, but that should get you going. You can run it: mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run You can shorten that to: mvn jetty6:run but I'm not sure exactly how to do that other than as the plugin developer (I followed the instructions at http://maven.apache.org/maven2/guides/plugin/guide- java-plugin-development.html). Jason, is there any update on how we get the Jetty repository mirrored to the central Maven2 repository? cheers Jan Ralph Pöllath wrote: On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat- plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 eclipse plugin wtpmodules dependencies to artifacts
Hi, I'm also interested in using m2 with Eclipse WTP, but I'm currently lacking the time to fiddle around with it. Do you guys think you could document your progress somewhere, maybe on the maven wiki (http://docs.codehaus.org/display/MAVEN/Home )? Since the current documentation on the issue (http://maven.apache.org/ guides/mini/guide-ide-eclipse.html ) is clearly lacking, I figure this would be highly appreciated. Thanks, -Ralph. On 25.10.2005, at 23:00, Franck de Bruijn wrote: Hi, I digged a little bit deeper and I noticed the following: * EclipseClassPathWriter and EclipseWtpmodulesWriter are both invoked from EclipsePlugin * EclipseClassPathWriter gets invoked with a reference to 'project', while EcpliseWtpmodulesWriter gets invoked with a reference to 'executedProject'. * Some debug statements revealed that the latter does not have any artifacts defined, and thus no dependency modules are written. I changed 'executedProject' to 'project' and the plugin worked for me. I am not sure if this is THE solution, since I actually have no clue about the difference between so-called reactor projects and 'normal' projects. Cheers, Franck -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: dinsdag 25 oktober 2005 18:41 To: Maven Users List Subject: Re: m2 eclipse plugin wtpmodules dependencies to artifacts I should have added: of EclipseWtpmodulesWriter. On 10/25/05, Brian Bonner [EMAIL PROTECTED] wrote: Looking for the same thing :) II looked at the maven-eclipse-plugin source and it looks like it should pull these artifacts (check out the addDependency() method). Anyone have a suggestion on this? On 10/24/05, Franck de Bruijn [EMAIL PROTECTED] wrote: Hi, I'm trying out maven 2 and the eclipse plugin in combination with Eclipse WTP. Everything works fine, although I do not manage to generate the 'dependent modules' section in the .wtpmodules file, like below: dependent-module deploy-path=/WEB-INF/lib handle=module:/classpath/var/M2_REPO/struts/struts/1.2.4/ struts-1.2.4.jar dependency-typeuses/dependency-type /dependent-module The 'wb-resource' sections are generated successfully like below: wb-resource deploy-path=/WEB-INF/classes source-path=src/main/java / The struts jar-file is appended to the .classpath file, so I presume that I have configured my dependencies correctly. I checked the source code of the eclipse plugin, but I can't figure out what I'm doing wrong. Can anyone offer some help? Thanks, Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I identify transitive dependencies
On 26.10.2005, at 09:10, Christian Goos wrote: Good Morning, yesterday I tried to build a web application with struts. I included a struts 1.1 dependency and a lot of other libraries. But the build failed saying that oro 2.07 can not be found but not who needs that dependency. I was wondering who uses this dependency and finally found that struts 1.1 in ibiblio defined the dependency (it took quite a while to find out..) Is there a smarter way (say a command line switch) to identify which pom defines which dependency? -X maybe? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Continuum 1.0 Final released
Hi, I can't get continuum to fly on Mac OS X 10.4.2. Can anyone help? $ bin/macosx/run.sh start Starting continuum... $ bin/macosx/run.sh status Removed stale pid file: ./continuum.pid continuum is not running. run.sh executes exec ./wrapper wrapper.conf wrapper.pidfile=./continuum.pid wrapper.daemonize=TRUE $ java -version java version 1.4.2_09 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232) Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode) $ uname -a Darwin lala.local 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc Thanks, -Ralph. On 26.10.2005, at 16:20, Emmanuel Venisse wrote: The Maven team is pleased to announce the 1.0 of Continuum. Continuum is a continous integration server. We have progressively improved Continuum over five previous releases and now provides the following features: * Support for Maven 2.x * Support for Maven 1.x * Support for Ant * Support for shell scripts * Tight integration with Maven SCM * Subversion * CVS * Starteam * Easy to use web-based setup and interface * XML-RPC and SOAP interfaces for integration, automation and remoting * Mail Notification * IM notification * IRC * Jabber * MSN * Blame Mechanism For a complete list of changes please refer to the complete changelog: http://maven.apache.org/continuum/change-log.html To get started with Continuum take a look at the download and install instructions: http://maven.apache.org/continuum/download.html And then take a look at our getting started guide: http://maven.apache.org/continuum/guides/getting-started/index.html - 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: javadoc problem
On 25.10.2005, at 09:05, Marcus Eberts wrote: Hi, when executing /mvn javadoc:javadoc / I get a /Not executing Javadoc as the project is not a Java classpath- capable package / message and no javadoc html files are created. I also checked the source code but there is no comment what a Java classpath-capable package might look like. Does anybody know how to to solve the problem or at least what the reason for this message is? Javadoc is currently not produced for WARs, due to a bug: http://jira.codehaus.org/browse/MNG-1257 Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pulling API and SRC Jars from Repos
On 23.10.2005, at 14:08, Milos Kleint wrote: well, javadocs culd be published easily in maven 1.x but AFAIK it was almost completely unused (try searching the ibiblio.org http:// ibiblio.orgrepository) So to get the feature useful, there should be a more aggressive policy IMHO. Like when uploading to remote repository always upload javadocs and sources as well by default.. otherwise it will be again unused. This has been discussed here previously, but I totally agree that javadocs and sources should be uploaded by default. Cheers, -Ralph. On 10/21/05, Brett Porter [EMAIL PROTECTED] wrote: In Maven2, yes, it is standardised (-src and -javadoc) and they can be published to the repository by default. - Brett On 10/21/05, Sal Campana [EMAIL PROTECTED] wrote: Are there any plans to add support of optionally specifying API and SRC jars for a given dependency? We've built a plugin to do this, and then update our IDE, but its not standard...but if it were standard in Maven (extra xml tags?) then all the IDE plugins would support it Based on this page: *http://docs.codehaus.org/pages/viewpage.action?pageId=22230* It seems the classifier attribute can be used to associate src and api jars with a regular jar dependency. It shows *javasrc and *javadoc... Will the extensions be standardized? It seems that if Maven would standardize how these things are defined, then generic plugins could be made for the IDEs which can take advantage of this. Thx! - 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]
[m2] where to report broken links and typos in docs?
Hi, I've noticed several broken links and typos while browsing the m2 website. Is there a JIRA issue for stuff like that already, or should I create one? I'd rather avoid creating an issue for every single typo. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to add html parser dependency?
On 21.10.2005, at 19:09, Siegfried Heintze wrote: OK, I've submitted my first bundle upload to JIRA for m1. I had the good fortune to meet the great Scott Ryan in person last night when I learned that I need to upload a second time with a different format to accommodate m2. Can someone point me to the m2 counterpart of http://maven.apache.org/reference/repository-upload.html ? I did a google search on http://maven.apache.org/maven2/ for upload and could not find such a counterpart. Does this help? http://maven.apache.org/maven2/guides/mini/guide-ibiblio-upload.html Cheers, -Ralph. Thanks, Siegfried -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Wednesday, October 19, 2005 3:45 PM To: Maven Users List Subject: Re: How to add html parser dependency? Hi, maven create-upload-bundle is to create a upload bundle from an existing maven project. If you want to upload a jar from a third party, you have to make a jar with three contents: - the jar file you want to upload - the license the jar is under (LICENSE.TXT) - project.xml, with that minimal information to make a more documented repo regards On 10/18/05, Siegfried Heintze [EMAIL PROTECTED] wrote: I don't understand http://maven.apache.org/reference/repository-upload.html. http://htmlparser.sourceforge.net/ does not have a LICENSE.TXT. Where does the project.xml come from? Do I create a new empty project with maven genapp? Or does maven create it? OR do I create it with emacs? It does not make sense to use my current project. OK, so I tried maven create-upload-bundle in an empty temp directory. Maven only created a target directory contain a bunch of empty directories and no jar file. http://maven.apache.org/reference/repository-upload.html explained that it would create a jar file -- it did not. I'm confused. Thanks, Siegfried -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 10:41 PM To: 'Maven Users List' Subject: RE: How to add html parser dependency? Yes this is the faster solution. You can also follow the instructions given in [1] to upload it to ibiblio. [1] http://maven.apache.org/reference/repository-upload.html Arnaud -Message d'origine- De : Siegfried Heintze [mailto:[EMAIL PROTECTED] Envoyé : mercredi 19 octobre 2005 06:13 À : 'Maven Users List' Objet : How to add html parser dependency? I'm looking for an HTML parser. I heard that http://java-source.net/open-source/html-parsers/html-parser is good. How do I add that to my maven 1 project? I don't see this in the mevenide repository browser. Do I have to manually download it and stick it in my local maven repository? Sieg - 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] --- -- 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] -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
Re: scope provided not functioning in maven 2?
Looks like MNG-1048 [1], which Brett fixed yesterday. Cheers, -Ralph. [1] http://jira.codehaus.org/browse/MNG-1048 On 04.10.2005, at 16:27, phillip rhodes wrote: My j2ee-1.3.1.jar is being included in my war file although I set the scope to provided I am using Maven version: 2.0-beta-2 Is this a bug or am I making a mistake? Thank you! In my dependencies: dependency groupIdj2ee/groupId artifactIdj2ee/artifactId version1.3.1/version scopeprovided/scope /dependency Phillip Rhodes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-b2] install:install-file fails without pom
On 29.09.2005, at 02:15, Brett Porter wrote: Ok, to elaborate: - the install plugin has this fixed, but it has not been released - it worked with the beta-1 core because it wasn't validating the @requiresProject element - when the updated install plugin is available, it will work again - you should be prompted to download it after it is released OK. - you can create any pom in the local directory and run from there to get it to work in the mean time (eg, use archetype:create) I tried that before but must have missed something. Using archetype:create did the trick. For the record; /tmp % m2 archetype:create \ -DgroupId=org.eXtremeComponents \ -DartifactId=eXtremeComponents \ -Dversion=1.0.2-M1 /tmp % mv eXtremeComponents-1.0.2-M1.jar eXtremeComponents/ /tmp % cd eXtremeComponents/ /tmp/eXtremeComponents % m2 install:install-file \ -Dfile=/tmp/eXtremeComponents/eXtremeComponents-1.0.2-M1.jar \ -DgroupId=org.eXtremeComponents \ -DartifactId=eXtremeComponents \ -Dversion=1.0.2-M1 \ -Dpackaging=jar Thanks, -Ralph. On 9/29/05, Allison, Bob [EMAIL PROTECTED] wrote: I can't get this to work except in one of my projects, either. Using -npr or --no-plugin-registry did not help. I also have maven-install-plugin v2.0-beta-1 installed. The maven-metadata- central.xml in the repository shows 2.0-beta-1 as the only version. Is there a form of this that can be used to place an item in the global repository? I have a number of jars which I end up needing to have available for people to build our projects and it would be nice to have a means like this to install new jars for automatic download rather than requiring each developer to issue a bunch of m2 install:install-file commands any time they need to clean out their repository. -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 14:45 To: Maven Users List Subject: Re: [m2-b2] install:install-file fails without pom -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm unable to replicate this behavior on my local working copy. Can you try running with the '--no-plugin-registry' to see if this helps? You may have an older version of the plugin which may have been created with a faulty plugin-plugin version... Good luck, john Ralph Pöllath wrote: | Hi, | | installing a jar into my local repository as explained at [1]: | | /tmp % m2 install:install-file \ | -Dfile=/tmp/eXtremeComponents-1.0.2-M1.jar \ | -DgroupId=org.eXtremeComponents \ | -DartifactId=eXtremeComponents \ | -Dversion=1.0.2-M1 \ | -Dpackaging=jar | | fails with Cannot execute mojo: install-file. It requires a project, | but the build is not using one (full trace below). | | This looks like MNG-432 [2], which is supposed to be fixed. Can anyone | help? | | I noticed the install-plugin used is 2.0-beta-1, while m2 itself is at | 2.0-beta-2. Is that correct? | | Thanks, | -Ralph. | | [1] http://maven.apache.org/maven2/general.html#importing-jars | [2] http://jira.codehaus.org/browse/MNG-432 | | /tmp % m2 -v | Maven version: 2.0-beta-2 | | [DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from | repository central | [INFO] | - --- | | [INFO] Building Maven Default Project | [INFO]task-segment: [install:install-file] | [INFO] | - --- | | [INFO] | - --- | | [INFO] BUILD FAILURE | [INFO] | - --- | | [INFO] Reason: Cannot execute mojo: install-file. It requires a | project, but the build is not using one. | [INFO] | - --- | | [DEBUG] Trace | org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: | install-file. It requires a project, but the build is not using one. | at org.apache.maven.plugin.DefaultPluginManager.executeMojo | (DefaultPluginManager.java:318) | at | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals | (DefaultLifecycleExecutor.java:515) | at | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goa | l(DefaultLifecycleExecutor.java:478) | at | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal | (DefaultLifecycleExecutor.java:460) | at | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts( | DefaultLifecycleExecutor.java:278) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute | (DefaultLifecycleExecutor.java:136) | at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:216) | at org.apache.maven.cli.MavenCli.main(MavenCli.java:246) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method
How to use dependencyManagement?
Hi, I get the following warning when packaging my webapp project: [WARNING] Artifact javax.servlet:jsp-api:jar:2.0 has scope 'provided' replaced with 'compile' as a dependency has given a broader scope. If this is not intended, use -X to locate the dependency, or force the desired scope using dependencyManagement. Using -X tells me the dependency on javax.servlet:jsp-api-2.0 is introduced by springframework:spring-web-1.2.5, so I tried to exclude it like this: dependency groupIdspringframework/groupId artifactIdspring-web/artifactId version1.2.4/version exclusions exclusion groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId /exclusion /exclusions /dependency But unfortunately, jsp-api-2.0.jar still ends up in my war file, breaking my app. Now I'd like to force the desired scope using dependencyManagement as mentioned in the warning, but cannot find any info on how to use the dependencyManagement section in the pom. I'd like to use it to tell m2 to always set the scope of javax.servlet:jsp-api and javax.servlet:servlet-api to provided, and to completely ignore some transitive dependencies like ojb and toplink, which are introduced by springframework:spring-orm, for example. Is that possible? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use dependencyManagement?
On 29.09.2005, at 16:19, John Casey wrote: If you specify these two dependencies directly in your own dependency set, and set their scope to provided, it should work. That's what I thought. Doesn't work for me though (I think it did with previous versions): // pom.xml project modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId packagingwar/packaging version0.1/version dependencies dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency dependency groupIdspringframework/groupId artifactIdspring-web/artifactId version1.2.4/version exclusions !-- faces api not available on repo1 -- exclusion groupIdjavax.faces/groupId artifactIdjsf-api/artifactId /exclusion /exclusions /dependency /dependencies /project // create web.xml to make maven happy $ mkdir -p src/main/webapp/WEB-INF $ touch src/main/webapp/WEB-INF/web.xml $ m2 package [INFO] [INFO] Building test:test:war:0.1 [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [WARNING] Artifact javax.servlet:servlet-api:jar:2.4 has scope 'provided' replaced with 'compile' as a dependency has given a broader scope. If this is not intended, use -X to locate the dependency, or force the desired scope using dependencyManagement. ... [INFO] [war:war] [INFO] Copy webapp resources to test-0.1 [INFO] Assembling webapp test in test-0.1 [INFO] Generating war test-0.1.war [INFO] Building war: test-0.1.war [INFO] BUILD SUCCESSFUL // oops $ ls target/test-0.1/WEB-INF/lib | grep servlet servlet-api-2.4.jar FYI, DependencyManagement information is only triggered on demand. That is, the info in the DependencyManagement section will be triggered if you specify a dependency directly within your POM that matches the groupId/artifactId of the info given in DependencyManagement. When this happens, any specification in the original dependency will dominate over the corresponding info in the DependencyManagement section. This means I can use a parent pom to specify default dependency info which can be overridden by child poms. Nice. Thanks, -Ralph. Ralph Pöllath wrote: | Hi, | | I get the following warning when packaging my webapp project: | | [WARNING] | Artifact javax.servlet:jsp-api:jar:2.0 has scope 'provided' | replaced with 'compile' | as a dependency has given a broader scope. If this is not | intended, use -X to locate the dependency, | or force the desired scope using dependencyManagement. | | Using -X tells me the dependency on javax.servlet:jsp-api-2.0 is | introduced by springframework:spring-web-1.2.5, so I tried to exclude | it like this: | | dependency | groupIdspringframework/groupId | artifactIdspring-web/artifactId | version1.2.4/version | exclusions | exclusion | groupIdjavax.servlet/groupId | artifactIdjsp-api/artifactId | /exclusion | /exclusions | /dependency | | But unfortunately, jsp-api-2.0.jar still ends up in my war file, | breaking my app. | | Now I'd like to force the desired scope using dependencyManagement as | mentioned in the warning, but cannot find any info on how to use the | dependencyManagement section in the pom. | | I'd like to use it to tell m2 to always set the scope of | javax.servlet:jsp-api and javax.servlet:servlet-api to provided, and to | completely ignore some transitive dependencies like ojb and toplink, | which are introduced by springframework:spring-orm, for example. | | Is that possible? | | Cheers, | -Ralph. | | | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDO/f4K3h2CZwO/4URAhdxAJ9B0aNQT47F1Xz6sWXpqq5ix6c5SwCfTnwf wtBsedkBkFQDCfc0OeBL6R0= =HVC6 -END PGP SIGNATURE- - 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: SCM Tagging / Releasing
On 29.09.2005, at 18:37, Craig S. Cottingham wrote: On Sep 29, 2005, at 11:05, David Jackman wrote: I was of the presumption that (at least with CVS) when you do a tag it tags the version of each file that are present on your machine, regardless of what the latest version is on the SCM server. I don't know for sure if the SCM plugin command is doing it this way (since it is possible to have it tag the latest version without regard for what's present locally), but I can't imagine why it wouldn't. -Original Message- From: Michael Böckling [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 9:46 AM To: users@maven.apache.org Subject: SCM Tagging / Releasing I'd like to know whether tagging with SCM is problematic with concurrent access. Say, I want to make a release, and while SCM is running and does its job, some developer commits a patch to the repository. What happens? Do I get an inconsistent state, or is that impossible (be it with CVS or SVN)? This information is quite important for me, and I thank everyone in advance who knows something. With SVN, at least, commits are atomic, so it's not possible [1] for the repository to end up in an inconsistent state. The worst that should happen is that the commit fails and you have to try again. This is one of the reasons I've switched from CVS to SVN. [1] Never say never. However, if your SVN repository ends up in an inconsistent state, you have problems bigger than someone else committing while you're tagging a release. svn help copy copy (cp): Duplicate something in working copy or repository, remembering history. usage: copy SRC DST SRC and DST can each be either a working copy (WC) path or URL: WC - WC: copy and schedule for addition (with history) WC - URL: immediately commit a copy of WC to URL URL - WC: check out URL into WC, schedule for addition URL - URL: complete server-side copy; used to branch tag With SVN, you use copy to tag stuff (just make a copy to the tags directory). If you chose the WC - URL variant, you tag the contents of you working copy, which I assume is what you want. With URL - URL, you'd have to make sure noone commits right before you tag, cause then you'd tag his version. Inconsistencies should not be possible at all using SVN. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.extremecomponents-1.0.1-M1.jar in repo1 contains no class files
Hi, seems like the jar for org.extremecomponents-1.0.1-M1 contains no class files (see below). Should I report this in the Maven Evangelism JIRA? Cheers, -Ralph. --- /tmp % curl -O http://www.ibiblio.org/maven2/org/extremecomponents/ extremecomponents/1.0.1-M1/extremecomponents-1.0.1-M1.jar /tmp % jar tf extremecomponents-1.0.1-M1.jar META-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.extremecomponents-1.0.1-M1.jar in repo1 contains no class files
On 28.09.2005, at 18:17, Trygve Laugstøl wrote: On Wed, 2005-09-28 at 17:29 +0200, Ralph Pöllath wrote: Hi, seems like the jar for org.extremecomponents-1.0.1-M1 contains no class files (see below). Should I report this in the Maven Evangelism JIRA? Yes please. Thanks. Done: http://jira.codehaus.org/browse/MEV-97 Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2-b2] install:install-file fails without pom
Hi, installing a jar into my local repository as explained at [1]: /tmp % m2 install:install-file \ -Dfile=/tmp/eXtremeComponents-1.0.2-M1.jar \ -DgroupId=org.eXtremeComponents \ -DartifactId=eXtremeComponents \ -Dversion=1.0.2-M1 \ -Dpackaging=jar fails with Cannot execute mojo: install-file. It requires a project, but the build is not using one (full trace below). This looks like MNG-432 [2], which is supposed to be fixed. Can anyone help? I noticed the install-plugin used is 2.0-beta-1, while m2 itself is at 2.0-beta-2. Is that correct? Thanks, -Ralph. [1] http://maven.apache.org/maven2/general.html#importing-jars [2] http://jira.codehaus.org/browse/MNG-432 /tmp % m2 -v Maven version: 2.0-beta-2 [DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from repository central [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [install:install-file] [INFO] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Reason: Cannot execute mojo: install-file. It requires a project, but the build is not using one. [INFO] [DEBUG] Trace org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: install-file. It requires a project, but the build is not using one. at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:318) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:515) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:460) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:136) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trouble accessing internal repository with beta1
On 24.09.2005, at 02:31, Brett Porter wrote: Yep, sftp will work. ftp will work if wagon-ftp is added as an extension. So I switched my access method from scp to sftp with beta-1. Now I'm trying to deploy a project that does not yet exist in either the local or internal (company-wide) repository, and m2 fails like this: --- [INFO] [install:install] [INFO] [deploy:deploy] Uploading: sftp://internal.example.com/home/maven/maven2/blah/blah/ 0.1/blah-0.1.jar [INFO] Retrieving previous metadata from internal [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Diagnosis: Error deploying artifact [INFO] [ERROR] Cause: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact ... Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: ... Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: U nable to retrieve metadata Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading from the remote repository:[internal] - sftp://internal.example.com/home/maven/maven2 ... Caused by: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown Source) at com.jcraft.jsch.ChannelSftp.stat(Unknown Source) at com.jcraft.jsch.ChannelSftp.get(Unknown Source) at com.jcraft.jsch.ChannelSftp.get(Unknown Source) at org.apache.maven.wagon.providers.ssh.SftpWagon.get (SftpWagon.java:216) --- In the internal repository, the jar, jar.md5 and jar.sha1 files have been created, but no pom. I'm wondering what file m2 is trying to retrieve? The No such file error message could be improved by adding the expected file name. The doco on this area is a little lean, but we're working on it now. Thanks Brett, your work on m2 and help on this list is highly appreciated! Cheers, -Ralph. On 9/23/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Hi, since deployment via scp is broken for me in beta-1, is there a possible alternative, like sftp or ftp? Maybe I'm lacking sleep or caffeine, but I just cannot find any documentation on this. Cheers, -Ralph. On 22.09.2005, at 12:45, Ralph Pöllath wrote: On 22.09.2005, at 11:53, Brett Porter wrote: Not what I wanted to see :( Can you post this to JIRA for tracking, and I'll take a look at what has changed since alpha-3 to try and narrow it down. Done: http://jira.codehaus.org/browse/MNG-959 Do other jdks or servers succeed? I have no way of trying right now, but will comment on MNG-959 once I find out. Cheers, -Ralph. On 9/22/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Connect thread maven.example.com session prio=5 tid=0x005651b0 nid=0x1e2 runnable [f0c89000..f0c89ac0] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read (SocketInputStream.java:129) at com.jcraft.jsch.IO.getByte(Unknown Source) at com.jcraft.jsch.Session.read(Unknown Source) at com.jcraft.jsch.Session.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) main prio=5 tid=0x00500e30 nid=0x1804600 in Object.wait() [f07fe000..f08002c8] at java.lang.Object.wait(Native Method) - waiting on 0x650a5f08 (a com.jcraft.jsch.Channel $MyPipedInputStream) at java.io.PipedInputStream.read(PipedInputStream.java: 229) - locked 0x650a5f08 (a com.jcraft.jsch.Channel $MyPipedInputStream) at org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck (ScpWagon.java:614) at org.apache.maven.wagon.providers.ssh.ScpWagon.get (ScpWagon.java:407) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: open source replacement for jdbc:jdbc?
D'oh! Cheers, -Ralph. On 23.09.2005, at 01:00, Brett Porter wrote: JDK 1.4? :) - Brett On 9/23/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Hi, I'm happily using geronimo-spec:geronimo-spec-jta instead of javax.transaction:jta and I'm wondering if there's a replacement for jdbc:jdbc anywhere? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trouble accessing internal repository with beta1
Hi, since deployment via scp is broken for me in beta-1, is there a possible alternative, like sftp or ftp? Maybe I'm lacking sleep or caffeine, but I just cannot find any documentation on this. Cheers, -Ralph. On 22.09.2005, at 12:45, Ralph Pöllath wrote: On 22.09.2005, at 11:53, Brett Porter wrote: Not what I wanted to see :( Can you post this to JIRA for tracking, and I'll take a look at what has changed since alpha-3 to try and narrow it down. Done: http://jira.codehaus.org/browse/MNG-959 Do other jdks or servers succeed? I have no way of trying right now, but will comment on MNG-959 once I find out. Cheers, -Ralph. On 9/22/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Connect thread maven.example.com session prio=5 tid=0x005651b0 nid=0x1e2 runnable [f0c89000..f0c89ac0] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read (SocketInputStream.java:129) at com.jcraft.jsch.IO.getByte(Unknown Source) at com.jcraft.jsch.Session.read(Unknown Source) at com.jcraft.jsch.Session.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) main prio=5 tid=0x00500e30 nid=0x1804600 in Object.wait() [f07fe000..f08002c8] at java.lang.Object.wait(Native Method) - waiting on 0x650a5f08 (a com.jcraft.jsch.Channel $MyPipedInputStream) at java.io.PipedInputStream.read(PipedInputStream.java:229) - locked 0x650a5f08 (a com.jcraft.jsch.Channel $MyPipedInputStream) at org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck (ScpWagon.java:614) at org.apache.maven.wagon.providers.ssh.ScpWagon.get (ScpWagon.java:407) - 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] trouble accessing internal repository with beta1
On 22.09.2005, at 01:17, Brett Porter wrote: On 9/22/05, Ralph Pöllath [EMAIL PROTECTED] wrote: I would like to isolate the problem, but don't know where to start. Can you share the distributionManagement section of your POM, and any relevant settings you have set? Here's distributionManagement and settings.xml: // in pom.xml ... distributionManagement repository idinternal/id nameinternal repository/name urlscp://maven.example.com/home/maven/maven2/url /repository /distributionManagement ... // in ~/.m2/settings.xml settings servers server idinternal/id usernamemaven/username passwordsecret/password /server /servers /settings Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trouble accessing internal repository with beta1
) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) VM Thread prio=5 tid=0x005061f0 nid=0x1804e00 runnable VM Periodic Task Thread prio=10 tid=0x00508150 nid=0x1823600 waiting on condition Exception Catcher Thread prio=10 tid=0x00500f90 nid=0x1804a00 runnable Thanks, -Ralph. On 9/22/05, Ralph Pöllath [EMAIL PROTECTED] wrote: On 22.09.2005, at 01:17, Brett Porter wrote: On 9/22/05, Ralph Pöllath [EMAIL PROTECTED] wrote: I would like to isolate the problem, but don't know where to start. Can you share the distributionManagement section of your POM, and any relevant settings you have set? Here's distributionManagement and settings.xml: // in pom.xml ... distributionManagement repository idinternal/id nameinternal repository/name urlscp://maven.example.com/home/maven/maven2/url /repository /distributionManagement ... // in ~/.m2/settings.xml settings servers server idinternal/id usernamemaven/username passwordsecret/password /server /servers /settings Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trouble accessing internal repository with beta1
On 22.09.2005, at 11:53, Brett Porter wrote: Not what I wanted to see :( Can you post this to JIRA for tracking, and I'll take a look at what has changed since alpha-3 to try and narrow it down. Done: http://jira.codehaus.org/browse/MNG-959 Do other jdks or servers succeed? I have no way of trying right now, but will comment on MNG-959 once I find out. Cheers, -Ralph. On 9/22/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Connect thread maven.example.com session prio=5 tid=0x005651b0 nid=0x1e2 runnable [f0c89000..f0c89ac0] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java: 129) at com.jcraft.jsch.IO.getByte(Unknown Source) at com.jcraft.jsch.Session.read(Unknown Source) at com.jcraft.jsch.Session.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) main prio=5 tid=0x00500e30 nid=0x1804600 in Object.wait() [f07fe000..f08002c8] at java.lang.Object.wait(Native Method) - waiting on 0x650a5f08 (a com.jcraft.jsch.Channel $MyPipedInputStream) at java.io.PipedInputStream.read(PipedInputStream.java:229) - locked 0x650a5f08 (a com.jcraft.jsch.Channel $MyPipedInputStream) at org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck (ScpWagon.java:614) at org.apache.maven.wagon.providers.ssh.ScpWagon.get (ScpWagon.java:407) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
open source replacement for jdbc:jdbc?
Hi, I'm happily using geronimo-spec:geronimo-spec-jta instead of javax.transaction:jta and I'm wondering if there's a replacement for jdbc:jdbc anywhere? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trouble accessing internal repository with beta1
On 20.09.2005, at 14:39, Yann Le Du wrote: I'm also having troubles accessing artifacts from my corp repository. More exactly, I can access plain versions (e.g. 1.0.3), but not snapshots (e.g., 1.0.4-SNAPSHOT). I noticed that after changing the version from 0.1-SNAPSHOT to 0.1, m2 -X deploy prints [INFO] [deploy:deploy] Uploading: scp://maven.example.com/home/maven/maven2/blah/blah/0.1/ blah-0.1.jar and then hangs forever. I tried deleting ~/.m2/repository, but that didn't make any difference at all. Any ideas on how to diagnose the problem? I'd really appreciate it if someone could help, since this is a real show stopper for me. Everything worked with m2 alpha-3, and I'd hate having to downgrade. Thanks, -Ralph. --- Ralph Pöllath [EMAIL PROTECTED] a écrit : since I upgraded to m2 beta 1, I'm having trouble accessing artifacts in my internal company-wide repository. m2 -X deploy prints ... [INFO] [deploy:deploy] [INFO] Retrieving previous build number from internal-repo and then hangs forever. I assume it's not an authentication problem, because changing the password in settings.xml fails immediately with an AuthenticationException. Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trouble accessing internal repository with beta1
I just downgraded to m2 alpha-3 and everything works just like before. I would like to isolate the problem, but don't know where to start. Is it possible to force m2 beta-1 to use maven-deploy-plugin alpha-3? Cheers, -Ralph. On 21.09.2005, at 16:15, Yann Le Du wrote: I worked around by using repositories in my POM. Now : * my settings.xml is empty of mirrors and *repositories * my POM contains : ~ project ~ ... ~ repositories ~ repository ~ idcentral/id ~ urlhttp://ricfiled.as.asd.asf/maven/repository/url ~ snapshotPolicyalways/snapshotPolicy ~ /repository ~ /repositories ~ ... ~ /project I manage to access all artifacts, releases (plains) and snapshots. Ralph, I don't know if it can help you, because your problem seems to be happening at a later phase than mine (could be a network/proxy problem, but you said it was working in alpha-3...) but give it a shot :) Anyway, the fact that I can't access snapshots by mirroring central in settings.xml sounds like a regression to me. Shall I file in JIRA ? Yann --- Ralph Pöllath [EMAIL PROTECTED] a écrit : On 20.09.2005, at 14:39, Yann Le Du wrote: I'm also having troubles accessing artifacts from my corp repository. More exactly, I can access plain versions (e.g. 1.0.3), but not snapshots (e.g., 1.0.4-SNAPSHOT). I noticed that after changing the version from 0.1-SNAPSHOT to 0.1, m2 -X deploy prints [INFO] [deploy:deploy] Uploading: scp://maven.example.com/home/maven/maven2/blah/blah/0.1/ blah-0.1.jar and then hangs forever. I tried deleting ~/.m2/repository, but that didn't make any difference at all. Any ideas on how to diagnose the problem? I'd really appreciate it if someone could help, since this is a real show stopper for me. Everything worked with m2 alpha-3, and I'd hate having to downgrade. Thanks, -Ralph. --- Ralph Pöllath [EMAIL PROTECTED] a écrit : since I upgraded to m2 beta 1, I'm having trouble accessing artifacts in my internal company-wide repository. m2 -X deploy prints ... [INFO] [deploy:deploy] [INFO] Retrieving previous build number from internal-repo and then hangs forever. I assume it's not an authentication problem, because changing the password in settings.xml fails immediately with an AuthenticationException. Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 - cannot find jta in global repository
On 20.09.2005, at 10:54, Allan Ramirez wrote: Hi there, I think jta is a sun jar. you must manually download it and install it to your local repo. You can see the url inside the pom. Or you could use geronimo-spec.geronimo-spec-jta as a replacement. If jta is a transitive dependency, the following should work: dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.0.5/version exclusions exclusion groupIdjavax.transaction/groupId artifactIdjta/artifactId /exclusion /exclusions /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jta/artifactId version1.0.1B-rc3/version /dependency Cheers, -Ralph. [EMAIL PROTECTED] wrote: I get the following error in my build. Any suggestions? I see that the pom is there, but the jar is not. Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/ 1.0.1B/jta-1.0.1B.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Oddmar Sandvik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 - cannot find jta in global repository
On 20.09.2005, at 11:15, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Ralph, I think that is the key here, since it was Hibernate that generated this dependency as you rightly guessed. Glad I could help. With Hibernate, the same works for javax.transaction.jta and geronimo-spec.geronimo-spec-j2ee-jacc. Cheers, -Ralph. -Opprinnelig melding- Fra: Ralph Pöllath [mailto:[EMAIL PROTECTED] Sendt: 20. september 2005 11:06 Til: Maven Users List Emne: Re: m2 - cannot find jta in global repository On 20.09.2005, at 10:54, Allan Ramirez wrote: Hi there, I think jta is a sun jar. you must manually download it and install it to your local repo. You can see the url inside the pom. Or you could use geronimo-spec.geronimo-spec-jta as a replacement. If jta is a transitive dependency, the following should work: dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.0.5/version exclusions exclusion groupIdjavax.transaction/groupId artifactIdjta/artifactId /exclusion /exclusions /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jta/artifactId version1.0.1B-rc3/version /dependency Cheers, -Ralph. [EMAIL PROTECTED] wrote: I get the following error in my build. Any suggestions? I see that the pom is there, but the jar is not. Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/ 1.0.1B/jta-1.0.1B.jar [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Oddmar Sandvik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] trouble accessing internal repository with beta1
Hi, since I upgraded to m2 beta 1, I'm having trouble accessing artifacts in my internal company-wide repository. m2 -X deploy prints ... [INFO] [deploy:deploy] [INFO] Retrieving previous build number from internal-repo and then hangs forever. I assume it's not an authentication problem, because changing the password in settings.xml fails immediately with an AuthenticationException. Any ideas? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Import Maven 2 source into eclipse
On 16.09.2005, at 10:28, Nitko2 wrote: Jesse thank you for your answer. I tried to do as you suggested but got this error when called m2 eclipse:eclipse: [INFO] Reason: Failed to parse model from file 'E:\unzip\m2src \maven-components\pom.xml'. Error: 'TEXT must be immediately followed by END_TAG and not START_TAG (position : START_TAG seen ...releases\r\nenabled... @157:18) ' Any hints? Looks like the parser is telling you that your POM isn't valid XML. Maybe releases in line 157 should be /releases? Cheers, -Ralph. Jesse McConnell wrote: ah, I should add that each sub project will become an eclipse project and they will largely be linked correctly, including to the resources in your .m2/repository and each project will compile classes to the right location with normal eclipse compilation think that is everything.. On 9/15/05, Jesse McConnell [EMAIL PROTECTED] wrote: there is an eclipse plugin for m2 go to the root of your project and type m2 eclipse:eclipse that will generate .project and .classpath files so you can then import the projects into eclipse. the newer version of eclipse and recursively add all of the projects, if you are on an older version you will probably have to add each seperately On 9/15/05, Nitko2 [EMAIL PROTECTED] wrote: Hi! I' would like to examine how Maven 2 works from inside. Can someone tell me how can I run Maven 2 inside Eclipse. I already connected to subversion repository using subclipse and I have source inside Eclipse. The problem is that I have to tell Eclipse what are the source folders inside modules and set classpath for all modules. Is there some automated way for doing that. What tool maven developers use for Maven2 development? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how to deal with missing dependencies
On 11.09.2005, at 19:03, Jorg Heymans wrote: In this case, who is right : the pom declaring dependency groupIdd-haven-managed-pool/groupId artifactIdd-haven-managed-pool/artifactId version1.0/version /dependency or the maven repository having groupId and artifactId d-haven-mpool ? As I didn't feel to change the poms, i adjusted my local repository to match the pom declarations - but this quickly became a pain as I find more and more dependencies are mismatched :( Another option would be to exclude the incorrect transitive dependency and add the correct one to your project. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] error building continuum with maven
Hi, FWIW, JTA is available on repo1 as part of Geronimo, so you should be able use geronimo-spec.geronimo-spec-jta instead, as proposed on mavenbook.org: Depending on J2EE http://mavenbook.xwiki.com/xwiki/bin/view/Main/J2eeDependencies BTW, I think the Geronimo POMs for version 1.0.1B-rc4 are hosed, just use 1.0.1B-rc3 instead. Cheers, -Ralph. On 09.09.2005, at 18:09, Yann Le Du wrote: The SUN -and some other, like Oracle - JARs are not automatically downloaded : http://maven.apache.org/reference/standard-sun-jar-names.html For these JARs it is normal that the central repository contains only the POMs. The situation is improving, though : http://blogs.codehaus.org/people/brett/archives/ 001138_glassfish_sun_jars_may_soon_be_in_the_maven_repository.html For now, just follow the log advice :) Try downloading the file manually from http://java.sun.com/products/jta and install it using the command: m2 install:install-file -DgroupId=jta -DartifactId=jta - Dversion=1.0.1b -Dpackaging=jar -Dfile=/path/to/file Regards, Yann --- Ashley Williams [EMAIL PROTECTED] a écrit : Just checked the directory in the error message and can see the pom, but no corresponding jar file. Has somebody deleted it by mistake? Is this normal? On 9 Sep 2005, at 16:56, Ashley Williams wrote: Thought I'd give continuum a look but I'm having trouble building it - getting the following error: [INFO] Main Error: Unable to download the artifact from any repository jta:jta:1.0.1b:jar from the specified remote repositories: central (http://repo1.maven.org/maven2) Path to dependency: 1) org.apache.maven.continuum:continuum-model:jar:1.0- beta-1-SNAPSHOT 2) jpox:jpox-enhancer:jar:1.1.0-beta-4 3) jpox:jpox:jar:1.1.0-beta-4 4) jta:jta:jar:1.0.1b Try downloading the file manually from http://java.sun.com/products/jta and install it using the command: m2 install:install-file -DgroupId=jta -DartifactId=jta - Dversion=1.0.1b -Dpackaging=jar -Dfile=/path/to/file *** Before I start looking into the last paragraph, does anyone know if there is a simple fix for this?? Assuming the continuum project is automating its own build, presumably they don't have to perform this manual intervention. -AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using tomcat plugin with maven 2.0-alpha-3?
Hi, Is it currently possible to use the tomcat plugin [1] with maven 2.0- alpha-3? I understand it's work in progress, but I'd like to start playing with it if possible. I grabbed the source from svn, changed the version numbers of its parent and dependencies to those available on repo1, built and installed it in my local repository. Now when I try to run it, maven starts looking for the latest version in repo1 and of course won't find any (since the tomcat plugin hasn't been released yet). Thanks, -Ralph. [1] http://jira.codehaus.org/browse/MNG-785 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Getting Spring 1.2.3, Hibernate 3.0.5 and asm
On 25.08.2005, at 19:12, Carlos Sanchez wrote: Please, create a new issue. Done: http://jira.codehaus.org/browse/MEV-66 Cheers, -Ralph. AFAIK hibernate and spring poms are ok, i spend a bunch of my time on them, cglib may be wrong. On 8/25/05, Ralph Pöllath [EMAIL PROTECTED] wrote: On 25.08.2005, at 17:24, Jörg Schaible wrote: Ralph Pöllath wrote on Thursday, August 25, 2005 4:53 PM: I'm using Spring 1.2.3 and Hibernate 3.0.5, and got trapped in dependency hell for several hours. According to [1], Spring requires cglib 2.1_2 with asm 1.5.3, but the cglib POM on repo1 [2] depends on asm 2.0 This one is wrong. Cglib 2.1 is incompatible with asm 2.x also! Thanks for the clarification. I'll tweak my cglib POM instaed of the hibernate one. , which seems to incompatible with Hibernate 3 [3]. And Hibernate 3.0.5 itself has a dependency on asm 1.4.3 [4]. I found out I can get my project to work by changing Hibernate's dependency on asm from version 1.4.3 to 1.5.3 in my local repository, but I'm not positive what's the reason for this mess. Anyone? The reason is the incompatibility from ASM 1.x to ASM 2.x. Same package names, but different/changed classes. There's a fixed issue in Jira saying that cglib should depend on asm 1.5.3: http://jira.codehaus.org/browse/MEV-10 I guess that whoever added the dependency chose the latest version, unaware of the incompatibility. Should I open another issue? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Dependency mediation
Hi, my project has transitive dependencies on both asm 1.5.3 (from cglib 2.1_2, which I fixed locally, see [1]) and 1.4.3 (from hibernate 3.0.5). The one that ends up in my war is 1.4.3, which unfortunately seems to be incompatible with something else I'm using [2]. From reading [3], I thought I could force m2 to use asm 1.5.3 by listing it as a direct dependency of my project, but that doesn't work. m2 -X reveals that both jars get selected, but then 1.5.3 gets removed (removed - nearer found: 1.4.3). What does the nearer found actually mean? Nearer to what? For now, I can tweak the hibernate POM in my local repository, but I'm wondering what a better solution to the general problem could look like. Cheers, -Ralph. [1] http://jira.codehaus.org/browse/MEV-66 [2] java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit (IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/ String;)V [3] http://maven.apache.org/maven2/dependency-mechanism.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Dependency mediation
On 26.08.2005, at 15:39, Brett Porter wrote: Nearer is nearer in the transitivity tree (if they have the same depth, it is undefined). Got it. So declaring it in your own POM should fix this. It does. My mistake, sorry. In beta-1, you will hopefully be able to select from nearer and latest (with latest now being the default, with the exception of a version specified in the pom being built). Note that at any point using a range of [1.5.3] will make 1.4.3 an invalid choice and force that version. Versions without set notation are treated as suggestions for which to select within the intersection of all the valid sets. I just read the design document on dependency mediation [1], and now I'm wondering where to specify the version range. A version tag like version[1.5.3]/version doesn't seem to be interpreted as a range using maven 2.0-alpha-3 (maven goes looking for asm-[1.5.3].jar on the repository). Thanks Brett, -Ralph. [1] http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and +Conflict+Resolution On 8/26/05, Ralph Pöllath [EMAIL PROTECTED] wrote: Hi, my project has transitive dependencies on both asm 1.5.3 (from cglib 2.1_2, which I fixed locally, see [1]) and 1.4.3 (from hibernate 3.0.5). The one that ends up in my war is 1.4.3, which unfortunately seems to be incompatible with something else I'm using [2]. From reading [3], I thought I could force m2 to use asm 1.5.3 by listing it as a direct dependency of my project, but that doesn't work. m2 -X reveals that both jars get selected, but then 1.5.3 gets removed (removed - nearer found: 1.4.3). What does the nearer found actually mean? Nearer to what? For now, I can tweak the hibernate POM in my local repository, but I'm wondering what a better solution to the general problem could look like. Cheers, -Ralph. [1] http://jira.codehaus.org/browse/MEV-66 [2] java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit (IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/ String;)V [3] http://maven.apache.org/maven2/dependency-mechanism.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Getting Spring 1.2.3, Hibernate 3.0.5 and asm
On 25.08.2005, at 18:08, Ralph Pöllath wrote: On 25.08.2005, at 17:24, Jörg Schaible wrote: Ralph Pöllath wrote on Thursday, August 25, 2005 4:53 PM: According to [1], Spring requires cglib 2.1_2 with asm 1.5.3, but the cglib POM on repo1 [2] depends on asm 2.0 This one is wrong. Cglib 2.1 is incompatible with asm 2.x also! Thanks for the clarification. I'll tweak my cglib POM instaed of the hibernate one. Just for the record, there's no need to tweak the POMs in the local repository until the POMs in repo1 are fixed. I worked around the issue by listing asm-1.5.3 as a direct dependency in my project's POM. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Getting Spring 1.2.3, Hibernate 3.0.5 and asm
Hi, I'm using Spring 1.2.3 and Hibernate 3.0.5, and got trapped in dependency hell for several hours. According to [1], Spring requires cglib 2.1_2 with asm 1.5.3, but the cglib POM on repo1 [2] depends on asm 2.0, which seems to incompatible with Hibernate 3 [3]. And Hibernate 3.0.5 itself has a dependency on asm 1.4.3 [4]. I found out I can get my project to work by changing Hibernate's dependency on asm from version 1.4.3 to 1.5.3 in my local repository, but I'm not positive what's the reason for this mess. Anyone? Cheers, -Ralph. [1] http://cvs.sourceforge.net/viewcvs.py/springframework/spring/lib/ readme.txt?rev=1.73view=auto [2] http://www.ibiblio.org/maven2/cglib/cglib/2.1_2/cglib-2.1_2.pom [3] http://jroller.com/page/RickHigh?entry=migrating_from_hibernate_2_x [4] http://www.ibiblio.org/maven2/org/hibernate/hibernate/3.0.5/ hibernate-3.0.5.pom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Getting Spring 1.2.3, Hibernate 3.0.5 and asm
On 25.08.2005, at 17:24, Jörg Schaible wrote: Ralph Pöllath wrote on Thursday, August 25, 2005 4:53 PM: I'm using Spring 1.2.3 and Hibernate 3.0.5, and got trapped in dependency hell for several hours. According to [1], Spring requires cglib 2.1_2 with asm 1.5.3, but the cglib POM on repo1 [2] depends on asm 2.0 This one is wrong. Cglib 2.1 is incompatible with asm 2.x also! Thanks for the clarification. I'll tweak my cglib POM instaed of the hibernate one. , which seems to incompatible with Hibernate 3 [3]. And Hibernate 3.0.5 itself has a dependency on asm 1.4.3 [4]. I found out I can get my project to work by changing Hibernate's dependency on asm from version 1.4.3 to 1.5.3 in my local repository, but I'm not positive what's the reason for this mess. Anyone? The reason is the incompatibility from ASM 1.x to ASM 2.x. Same package names, but different/changed classes. There's a fixed issue in Jira saying that cglib should depend on asm 1.5.3: http://jira.codehaus.org/browse/MEV-10 I guess that whoever added the dependency chose the latest version, unaware of the incompatibility. Should I open another issue? Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I use environment variables in project.properties?
On 24.08.2005, at 11:55, Ruud Wijnands wrote: I would like to know how I can use environment variables in project.properties. I know about system properties like ${user.home}, but I was wondering if I can also use other enviroment variables. AFAIK: You can't. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How does filtering resources work?
On 23.08.2005, at 07:53, Carsten Ziegeler wrote: If I'm not the only one who thinks that filters directly defined at the resources is a good idea, I could try to develop a patch. Interested? +1 Cheers, -Ralph. Carsten Carsten Ziegeler wrote: Hi Brett, Brett Porter wrote: There was some hesitation to adding filtering in the first place - we added it as a parameter on the resources plugin because it was uncertain it would be retained in the POM. It now looks like it will, but we're wary of how it is used. It is important for Maven to work that the values filtered in are always the same if the artifact being built is the same. If you want to build 2 different artifacts, you use 2 profiles (or two projects), and provide different filters to each. Ok, agree. I'm curious why you need different filters for different sets of files - do they have changing values or is it just an optimisation? Kind of optimization and I don't want to filter binary files. So I thought of creating one resource set with ascii files and one for the binary files and apply filtering only to the first set to be sure that the binary files don't get corrupted. Also, it should be noted that Maven builds in a pom.properties file into META-INF as well as a copy of pom.xml so that you can retrieve such values at runtime if needed. Anyway, I'm happy to discuss what the filtering needs are and adjust accordingly. I'm still reluctant to promote filters to the resource element itself, but it can be considered again. I think it makes more sense to have it at the resources element because you define your resource sets and then you want to apply directly to this set some filtering (or not). If you separate this (resource set and plugin configuration) it's not that obvious what's really going on and it makes it imho harder to apply filtering than it should be. You loose the connection between the resource sets (or test resource sets) and the settings of the plugin. WDYT? Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How does m2 recognize junit tests to be executed?
On 11.08.2005, at 02:42, Chris Wall wrote: It appears that Maven executes *Test.class classes. Is this documented? I think that's JUnit's default behaviour. Cheers, -Ralph. -Original Message- From: Chris Wall Sent: August 10, 2005 7:30 PM To: users@maven.apache.org Subject: [m2] How does m2 recognize junit tests to be executed? Hey. My compiled junit tests are not being executed. How does Maven 2 determine which tests to execute? I'm using the default testSourceDirectory and testOutputDirectory settings ClassA contains a method called testGetByLastName() has the following class hierarchy: ClassA - CustomBaseTest - AbstractDependencyInjectionSpringContextTests - AbstractSpringContextTests - TestCase Thanks. -Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] NPE when executing surefire:test
On 08.08.2005, at 19:25, Kenney Westerhof wrote: You should call 'm2 test', not each individual plugin. Thanks, 'm2 test' works as expected. However, seems you discovered a bug! We'll look into it. Glad I could help :) Cheers, -Ralph. On Mon, 8 Aug 2005, [ISO-8859-1] Ralph Pöllath wrote: I always get a NPE when executing surefire:test. Here's what I'm doing (see below for details): $ m2 -DgroupId=myCompany -DartifactId=myApp -Dversion=0.1 archetype:create $ cd myApp $ m2 compiler:compile $ m2 compiler:testCompile $ m2 surefire:test [INFO] Diagnosis: Error configuring plugin for execution of 'surefire:test'. Caused by: java.lang.NullPointerException at org.apache.maven.project.MavenProject.getTestClasspathElements (MavenProject.java:360) Any help would be appreciated. Thanks, -Ralph. --- /tmp % m2 -DgroupId=myCompany -DartifactId=myApp -Dversion=0.1 archetype:create [INFO] - --- [INFO] Building Maven Default Project [INFO] - --- [INFO] maven-archetype-plugin: resolved to version 1.0-alpha-1 from local repository [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/ velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] maven-archetype-quickstart: resolved to version 1.0-alpha-2 from local repository [INFO] - --- [INFO] Using following parameters for creating Archetype: maven- archetype-quickstart:RELEASE [INFO] - --- [INFO] Parameter: groupId, Value: myCompany [INFO] Parameter: outputDirectory, Value: /private/tmp/myApp [INFO] Parameter: packageName, Value: com.mycompany.app [INFO] Parameter: package, Value: com.mycompany.app [INFO] Parameter: version, Value: 0.1 [INFO] Parameter: artifactId, Value: myApp [INFO] ResourceManager : found archetype-resources/pom.xml with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/main/java/ App.java with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/test/java/ AppTest.java with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] Archetype created in dir: /private/tmp/myApp [INFO] - --- [INFO] BUILD SUCCESSFUL [INFO] - --- [INFO] Total time: 3 seconds [INFO] Finished at: Mon Aug 08 19:13:09 CEST 2005 [INFO
Re: [m2] maven surefire plugin
On 04.07.2005, at 04:29, Nadeem Bitar wrote: Where can I find documentation for the maven-surefire-plugin. I am looking on using testng instead of junit to run my tests. TestNG 2.5 has been released and comes with a maven plugin: http://testng.org/doc/maven.html Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] NPE when executing surefire:test
Hi, I always get a NPE when executing surefire:test. Here's what I'm doing (see below for details): $ m2 -DgroupId=myCompany -DartifactId=myApp -Dversion=0.1 archetype:create $ cd myApp $ m2 compiler:compile $ m2 compiler:testCompile $ m2 surefire:test [INFO] Diagnosis: Error configuring plugin for execution of 'surefire:test'. Caused by: java.lang.NullPointerException at org.apache.maven.project.MavenProject.getTestClasspathElements (MavenProject.java:360) Any help would be appreciated. Thanks, -Ralph. --- /tmp % m2 -DgroupId=myCompany -DartifactId=myApp -Dversion=0.1 archetype:create [INFO] [INFO] Building Maven Default Project [INFO] [INFO] maven-archetype-plugin: resolved to version 1.0-alpha-1 from local repository [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/ velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] maven-archetype-quickstart: resolved to version 1.0-alpha-2 from local repository [INFO] [INFO] Using following parameters for creating Archetype: maven- archetype-quickstart:RELEASE [INFO] [INFO] Parameter: groupId, Value: myCompany [INFO] Parameter: outputDirectory, Value: /private/tmp/myApp [INFO] Parameter: packageName, Value: com.mycompany.app [INFO] Parameter: package, Value: com.mycompany.app [INFO] Parameter: version, Value: 0.1 [INFO] Parameter: artifactId, Value: myApp [INFO] ResourceManager : found archetype-resources/pom.xml with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/main/java/ App.java with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/test/java/ AppTest.java with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] Archetype created in dir: /private/tmp/myApp [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Mon Aug 08 19:13:09 CEST 2005 [INFO] Final Memory: 3M/6M [INFO] /tmp % cd myApp /tmp/myApp % m2 compiler:compile [INFO]
Re: [M2] where to get javax.persistence.ejb-3.0-edr2-20050513.jar?
Thanks, since it actually was hibernate-annotations-3.0beta2 that created the dependency in the first place, I guess I should have looked there first. Wouldn't it be nice if these placeholder poms (for which the central repository contains no jar) included instructions on how to produce these jars? Cheers, -Ralph. On 07.08.2005, at 01:59, Carlos Sanchez wrote: It comes with hibernate annotations. On 8/6/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: I believe you can download this from the JBOss/Hibernate web site. On 8/6/05, Ralph Pöllath [EMAIL PROTECTED] wrote: my project has a transitive dependency on javax.persistence.ejb-3.0- edr2-20050513, for which the central repository contains a pom, but no jar. I understand that this is probably due to licensing restrictions, and would gladly drop the jar into my private repository, but unlike the other stuff in javax.*, I just cannot find the jar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] where to get javax.persistence.ejb-3.0-edr2-20050513.jar?
Hi, my project has a transitive dependency on javax.persistence.ejb-3.0- edr2-20050513, for which the central repository contains a pom, but no jar. I understand that this is probably due to licensing restrictions, and would gladly drop the jar into my private repository, but unlike the other stuff in javax.*, I just cannot find the jar. Can anyone help? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M1] eclipse plugin: how to download sources?
Hi, I just noticed that the eclipse plugin will add sourcepath-entries to the generated .classpath file for zip files found in the local repo (e.g. ~/.maven/repository/springframework/src//spring-1.1.5.zip). Now how do I get them in place? I wouldn't mind dropping them into my own remote repository, but I can't get them to be downloaded. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] eclipse plugin: how to download sources?
On 06.05.2005, at 15:36, David Jackman wrote: I didn't know that. Do you know if there's also a way for it to figure out a JavaDoc reference (either downloading a zip or some other way)? I've never seen this documented, but found it in the source: http://cvs.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/eclipse/ plugin.jelly?root=Apache-SVNrev=126755view=markup JavaDoc references seem not to be supported, but could be added using the very same mechanism, I guess. I just noticed that the eclipse plugin will add sourcepath-entries to the generated .classpath file for zip files found in the local repo (e.g. ~/.maven/repository/springframework/src// spring-1.1.5.zip). Now how do I get them in place? I wouldn't mind dropping them into my own remote repository, but I can't get them to be downloaded. Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Maven2 artifact type question
Please make source and javadoc uploads the default. Cheers, -Ralph. On 15.04.2005, at 01:13, Brett Porter wrote: Yes, Maven2 intends to provide source and javadoc uploads. I haven't decided if this should be on by default or not, but it will be trivial to enable if not. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]