Creating an Eclipse plugin
Hi, I've got an Eclipse plugin, which I'd like to build using Maven. Is there any plugin, archetype or something else, which could help me to start? Thanks, Jochen -- Base64 decoding, 300% faster than sun.misc.BASE64Decoder: http://archive.netbsd.se/?ml=commons-deva=2008-05t=7522166 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven repo reverse dependency search
Is there a Maven repo search site that can look up consumers of plugins/dependencies? I would find that useful when I'm trying to use a plugin that isn't documented that well, I could look at the existing consumers' usage patterns. http://www.mvnrepository.com/artifact/org.apache.ant/ant-nodeps/1.7.1 Scroll down a little, you'll see it... This artifact is used by Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[archetype] Creating a new archetype Maven
Hello, I want to write a new archetype Maven. But I have a problem. Here is my top pom: 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 !--parent groupIdcosmos.cosmos-mavenarchetype/groupId artifactIdparent/artifactId version0.1.7-SNAPSHOT/version /parent-- groupIdcosmos.cosmos-mavenarchetype/groupId artifactIdjulia/artifactId version0.1.7-SNAPSHOT/version packagingjar/packaging nameCOSMOS Maven Archetype - julia/name /project In fact, with this pom, it works well. But you can see that I commented on the parent. In my archetype, I want to use parent. When I use parent, I received one error as the following: [ERROR] BUILD ERROR [INFO] [INFO] Error assembling JAR Embedded error: Problem creating jar: /home/kinh/workspace/cosmos/trunk/cosmos/mavenarchetype/julia/target/classes (Is a directory) Could anyone give me suggestions to solve my problem? Thanks in advance! Kinh - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: Surefire plugin misses class NestedCheckedException
Anyone? :-) Still having the error... -Ursprüngliche Nachricht- Von: Lewis, Eric [mailto:eric.le...@ipi.ch] Gesendet: Donnerstag, 6. August 2009 14:34 An: Maven Users List Betreff: AW: Surefire plugin misses class NestedCheckedException As you can see, this was my local build. On our CI build system (Linux), I get [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error to resolving surefire provider dependency: Unable to get dependency information: Unable to parse the Maven built-in model: Resolving expression: '${project.version}': Detected the following recursive expression cycle: [] for project org.apache.maven:super-pom org.apache.maven.surefire:surefire-booter:jar:2.4.3 from the specified remote repositories: central (http://repo1.maven.org/maven2) Path to dependency: 1) dummy:dummy:jar:1.0 Dummy??? Best regards, Eric -Ursprüngliche Nachricht- Von: Lewis, Eric [mailto:eric.le...@ipi.ch] Gesendet: Donnerstag, 6. August 2009 14:23 An: Maven Users List Betreff: Surefire plugin misses class NestedCheckedException Hi I'm having a strange phenomenon with the Surefire plugin. It's failing in one specific project of mine, but runs without problem in others. It also failed only in Maven 2.2.0 - I tried the same version (2.4.3) in Maven 2.0.9, and it worked without problem. I found a couple of previous mails concerning this error on the mailing list, but they're all old. What I'm getting is listed below. Can someone tell me how to proceed? Thanks best regards, Eric ... [WARNING] POM for 'org.apache.maven.surefire:surefire-booter:pom:2.4.3:runtime' is invalid. Its dependencies (if any) will NOT be available to the current build. [WARNING] POM for 'org.codehaus.plexus:plexus-utils:pom:1.5.1:runtime' is invalid. Its dependencies (if any) will NOT be available to the current build. [WARNING] POM for 'org.apache.maven:maven-toolchain:pom:1.0:runtime' is invalid. Its dependencies (if any) will NOT be available to the current build. - this realm = app0.child-container[org.apache.maven.plugins:maven-surefire-p lugin:2.4.3] urls[0] = file:/C:/Documents and Settings/lewis_lee/.m2/repository/org/apache/maven/plugins/mav en-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.jar urls[1] = file:/C:/Documents and Settings/lewis_lee/.m2/repository/org/apache/maven/surefire/su refire-booter/2.4.3/surefire-booter-2.4.3.jar urls[2] = file:/C:/Documents and Settings/lewis_lee/.m2/repository/org/codehaus/plexus/plexus-u tils/1.5.1/plexus-utils-1.5.1.jar Number of imports: 10 import: org.codehaus.classworlds.en...@a6c57a42 import: org.codehaus.classworlds.en...@12f43f3b import: org.codehaus.classworlds.en...@20025374 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@92758522 import: org.codehaus.classworlds.en...@ebf2705b import: org.codehaus.classworlds.en...@bb25e54 import: org.codehaus.classworlds.en...@bece5185 import: org.codehaus.classworlds.en...@3fee8e37 import: org.codehaus.classworlds.en...@3fee19d8 this realm = plexus.core urls[0] = file:/c:/Programme/Maven/lib/maven-2.2.0-uber.jar Number of imports: 10 import: org.codehaus.classworlds.en...@a6c57a42 import: org.codehaus.classworlds.en...@12f43f3b import: org.codehaus.classworlds.en...@20025374 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@92758522 import: org.codehaus.classworlds.en...@ebf2705b import: org.codehaus.classworlds.en...@bb25e54 import: org.codehaus.classworlds.en...@bece5185 import: org.codehaus.classworlds.en...@3fee8e37 import: org.codehaus.classworlds.en...@3fee19d8 - [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test': Unable to load the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'. A required class is missing: org/apache/maven/surefire/util/NestedCheckedException org.apache.maven.surefire.util.NestedCheckedException [INFO] -- -- [INFO] For more information, run Maven with the -e switch [INFO] -- -- [INFO] Total time: 7 seconds [INFO] Finished
Problem with updating non-unique snapshot versions of a plugin
Hello, I'm currently using maven 2.0.9. I've got a project X which uses a Plugin my-plugin with version 1.0-SNAPSHOT. How do I force maven to update this plugin from the repository, no matter what? I tried the following: make some changes to the plugin, build it with mvn package and upload the newly created .jar to the repository. I do that, because I want to simulate the situation on the build server, on which I cant just compile the latest version of my plugin. Now when I try to build project X with mvn package -U, I get something like [INFO] snapshot group:my-plugin:1.0-SNAPSHOT: checking for updates from m2repo-plugins but nothing is downloaded, I checked the .jar in my local repository, but it's unchanged. I found that it's possible to recreate (or something like that) the local repository with mvn dependency:purge-local-repository However, this only seems to work if I create a dependency/-entry for my plugin and even if I do that, it's not really a good solution, since I cannot run a command like that on our build server. Then I found this issue: http://jira.codehaus.org/browse/MNG-2839 It's a bit different than my problem, so I'm not sure if I'm actually facing the same problem. So my question is: Is there any quick solution to this problem, did I miss something or do I just have to wait for the Fix Version 2.2.x as described in the issue? Thanks, Sven
Maven 2.2.1 and NTLM Proxy
Hi I am back on the Maven 2.2.1 list after several years. I would like to know how to configure Maven with my corporate firewall. I tried several things already in the 24hrs CNTLM, Artifactory, JDK http.httpProxy etc. How come Apache Ivy can do this and M2.2.1 cannot? -- Peter Pilgrim | E-Channel Services Technical Lead, Products Markets Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V 7AE, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydstsb.co.uk * www.lloydstsbcorporatemarkets.com http://www.lloydstsbcorporatemarkets.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Lloyds Banking Group plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds Banking Group plc is a signatory to the Banking Codes. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Creating an Eclipse plugin
On 11-Aug-09, at 11:43 PM, Jochen Wiedmann wrote: Hi, I've got an Eclipse plugin, which I'd like to build using Maven. Is there any plugin, archetype or something else, which could help me to start? Tycho: https://docs.sonatype.org/display/M2ECLIPSE/Tycho+project+overview Tycho is what we use to build M2Eclipse. Thanks, Jochen -- Base64 decoding, 300% faster than sun.misc.BASE64Decoder: http://archive.netbsd.se/?ml=commons-deva=2008-05t=7522166 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl http://twitter.com/SonatypeNexus http://twitter.com/SonatypeM2E -- To do two things at once is to do neither. -—Publilius Syrus, Roman slave, first century B.C. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: AW: RE: AW: Re: AW: Re: Maven for Non-Java Projects
We also try to use maven with C/C++ language (cf. [1]). It seems that it exists three plugins : 1. native-*maven*-plugin (the first one ?) 2. jade native maven plugin, it is an spin off of native plugin and covers cppunit 3. nar plugin At the time, it seemed (I don't remember why) that jade native maven plugin was the better. To be honest, we weren't convinced of the ability to use such plugins in an industrial context : - I agree with David, there were a couple of road-blocking bugs/missing-features that prevented us from using maven for these types of projects. It works quite nice for compilation (even if it can be better), but we had a lot difficulties for unit tests ; - I agree with Jörg : plugins are nearly not supported - you cannot ask questions, you have to find out anything yourself. There's no mailing list and the forum is full of questions without a lot answers, There's few documentations and often not up-to-date... We are still waiting for a real/better solution to use maven with C/C++ language. Otherwise, we have others projects using maven with flex, php or .NET. Rémy [1]. http://www.nabble.com/Maven-2-and-C-C%2B%2B-Testing-Framework-td22311500.html#a22311500
Question regarding inheritance vs pluginManagement
Hi, I was refactoring my projects to make better use of dependency management and pluginManagement. Almost got it all to work the way I want but I hit a wall in how the pluginManagement is used. When looking at the definition in the documentation find the following *pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions.* * *This is all good and actually is exactly the behaviour that I am after... so after hours of fiddling and looking I was quite pleased to find this little bit. However when actually applying I find that the plugin definition in plugin management are actually made active in the CURRENT project as well as the children. This is quite bothersome unfortunately. I created a toned downed version of my build situation to illustrate the issue : Project A is a generic parent POM that basically just defines the common parts for all projects. Project B is a library that is used in many different projects Project C is an aggregation project as well as parent POM that defines a framework. There is no code here, just POMs, Assembly descriptors etc. but the project aggregate many projects to form a single package. I do this to make it easier to develop against the framework, this way we only inherit from Project C and all the needed stuff is there that standardizes the dependencies and packaging of projects built on the framework. Project D is a project that is built on the framework, a bit of code ans some stuff to add to the assembly. OK... Now, everything is working well and Project C is creating a zip file as it should that contains all the stuff from modules and dependencies. Now anyone can download the zip file and start working on the framework. Now I want to define in the pluginManagement of project C some stuff to help child projects to use the framework package directly instead of rebuilding it from scratch everytime. Below is the POM snippet that defines this behaviour : in Project C I have ... build pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version executions ... /execution /executions /plugin /plugins /pluginManagement /build if I do mvn help:effective-pom on project C I get that the build section is empty, which is exactly what I ordered.. If in project D (which has project C as parent) I have the following build section : build plugins plugin artifactIdmaven-dependency-plugin/artifactId /plugin /plugins /build and do a mvn help:effective-pom I get a build section that contains the maven-dependency-plugin with all the bells and whistle I placed in project`s C pluginManagement... again all is good... But let`s say that project C wants to create something that uses dependencies and needs to do work with the maven-dependency-plugin. I therefore add the following to Project C POM : build pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version executions Some stuff for the children /execution /executions /plugin /plugins /pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version inheritedfalse/inherited !-- this perticular config is NOT for kids... for parent only -- executions some stuff for adults only /execution /executions /plugin /plugins /build now if I do mvn help:effective-pom on project C I get all the stuff for parent AND all the stuff for kids... Thing is... I don't want the stuff for kids, I am actually preparing stuff for kids I feel this is a bug since the documentation specifically states that the pluginDependencies are for decendents. Unless they are reffering to the XML structure's children... in which case there is a terminology problem here and the documentation should probably changed to specifically state that children refers to the XML structure... NOT child POMs... There is a simple solution to this but it involves creating yet another projects, my project structure is complex enough as it stands adding extra projects just to ensure maven behaves the way I want will add a lot of needless cruft in the project tree. Is there a way to get it to do what I want without resorting to yet-another-project-that-contains-nothing-usefull (codewise that is) Thanks Éric
mvn jetty:run and dbunit conflict?
Hi, I have a sample web app where I am using the dbunit-maven-plugin to load data into a database and the maven-jetty-plugin to run it in jetty. I am issuing the following command to build and deploy the web app. mvn clean install jetty:run. My issue is with some dependencies that I have set as scoperuntime/scope. If I comment out the dbunit plugin all works fine - jetty starts up and I can test. When I add the dbunit plugin to the mix, my app has errors when jetty starts up. I looked at the classpath differences between the two runs and I found that all my dependencies marked with scope runtime were not being loaded when the dbunit plugin was used. I removed the runtime scope, with dbunit active and it fixed the problem. My question is why would dbunit stop these dependencies from being loaded at runtime? Thanks, Todd -- View this message in context: http://www.nabble.com/mvn-jetty%3Arun-and-dbunit-conflict--tp24935948p24935948.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn jetty:run and dbunit conflict?
Have you tried setting them to scopetest/scope? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Wed, Aug 12, 2009 at 8:58 AM, toddp2 tpa...@loftware.com wrote: Hi, I have a sample web app where I am using the dbunit-maven-plugin to load data into a database and the maven-jetty-plugin to run it in jetty. I am issuing the following command to build and deploy the web app. mvn clean install jetty:run. My issue is with some dependencies that I have set as scoperuntime/scope. If I comment out the dbunit plugin all works fine - jetty starts up and I can test. When I add the dbunit plugin to the mix, my app has errors when jetty starts up. I looked at the classpath differences between the two runs and I found that all my dependencies marked with scope runtime were not being loaded when the dbunit plugin was used. I removed the runtime scope, with dbunit active and it fixed the problem. My question is why would dbunit stop these dependencies from being loaded at runtime? Thanks, Todd -- View this message in context: http://www.nabble.com/mvn-jetty%3Arun-and-dbunit-conflict--tp24935948p24935948.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn jetty:run and dbunit conflict?
Yes, I just tried it. This has the same outcome, the dependency is not loaded and the app fails when launched in jetty. -Original Message- From: mknut...@baselogic.com [mailto:mknut...@baselogic.com] On Behalf Of Mick Knutson Sent: Wednesday, August 12, 2009 9:13 AM To: Maven Users List Subject: Re: mvn jetty:run and dbunit conflict? Have you tried setting them to scopetest/scope? --- Thank You... Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Wed, Aug 12, 2009 at 8:58 AM, toddp2 tpa...@loftware.com wrote: Hi, I have a sample web app where I am using the dbunit-maven-plugin to load data into a database and the maven-jetty-plugin to run it in jetty. I am issuing the following command to build and deploy the web app. mvn clean install jetty:run. My issue is with some dependencies that I have set as scoperuntime/scope. If I comment out the dbunit plugin all works fine - jetty starts up and I can test. When I add the dbunit plugin to the mix, my app has errors when jetty starts up. I looked at the classpath differences between the two runs and I found that all my dependencies marked with scope runtime were not being loaded when the dbunit plugin was used. I removed the runtime scope, with dbunit active and it fixed the problem. My question is why would dbunit stop these dependencies from being loaded at runtime? Thanks, Todd -- View this message in context: http://www.nabble.com/mvn-jetty%3Arun-and-dbunit-conflict--tp24935948p24935948.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven2 Repository with the javax jars
I looked into these repositories (http://download.java.net/maven/2/javax/) but did not find the jar for javax.ejb. Does anyone know a public Maven 2 repo where I can find it? Would be even better If it also has the sources. thanks in advance, Fabrício Lemos On Wed, Mar 14, 2007 at 6:23 AM, David Wilkinson d...@iquo.co.uk wrote: Hi all Thanks for the help that gives me some things to look into Regards David Wilkinson -Original Message- From: Ryan Cuprak [mailto:rcup...@mac.com] Sent: 13 March 2007 17:40 To: Maven Users List Subject: Re: Maven2 Repository with the javax jars Checkout: https://maven-repository.dev.java.net/ Regards, -Ryan On Tuesday, March 13, 2007, at 10:14AM, David Wilkinson d...@iquo.co.uk wrote: Hi I'm new to using maven and I'm trying to set up a build for a j2ee project, where can I find a repository that holds the javax jars such as the ones for javax.ejb. I have seen in the main repo (http://repo1.maven.org/maven2/) that there is meta data for these jars but the jars themselves are not there can anyone help. Thanks in advance David Wilkinson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: FATAL ERROR: Unable to read settings.xml
Thanks for your help, was indeed an issue with java. Seems to be working fine now. R RFatton wrote: Hi all, New to maven, having trouble getting it working. I'm using ubuntu and ran sudo apt-get install maven2 for install. Also added M2_HOME=/usr/share/maven2, export M2=$M2_HOME/bin, export PATH=$M2:$PATH to enviroment. When I run mvn -version I get: Maven version: 2.0.9 Java version: 1.5.0 OS name: linux version: 2.6.24-23-xen arch: x86_64 Family: unix But when I try to do anything with mvn I get an error (full error below) saying Unable to read settings.xml. I've found the setting.xml at /etc/maven2/settings.xml (/usr/share/maven2/conf is linked to this file location) so tried mvn -s /etc/maven2/settings.xml and mvn -s /usr/share/maven2/conf/settings.xml resulting in the sam error. Tried copying settings.xml to ~/.m2, same error. Same error when i tried very smiple settings.xml file with: settings 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/xsd/settings-1.0.0.xsd; proxies proxy activetrue/active protocolhttp/protocol hostMYPROXY/host port8080/port /proxy /proxies /settings and settings proxies proxy activetrue/active protocolhttp/protocol hostMYPROXY/host port8080/port /proxy /proxies /settings Does this error mean that maven can't find the settings.xml file? (if so how do I fix it) How do I know which settings.xml file is being used, system or user? Do I need to edit settings.xml from it's default at the beginning? If so wouldn't one of the simple versions I hev work? Thanks for help, ERROR: When I try mvn -e package: + Error stacktraces are turned on. - this realm = plexus.core urls[0] = file:/usr/share/maven2/lib/jsch.jar urls[1] = file:/usr/share/maven2/lib/wagon-provider-api.jar urls[2] = file:/usr/share/maven2/lib/wagon-file.jar urls[3] = file:/usr/share/maven2/lib/doxia-sink-api.jar urls[4] = file:/usr/share/maven2/lib/maven2.jar urls[5] = file:/usr/share/maven2/lib/plexus-interactivity-api.jar urls[6] = file:/usr/share/maven2/lib/wagon-ssh.jar urls[7] = file:/usr/share/maven2/lib/wagon-ssh-external.jar urls[8] = file:/usr/share/maven2/lib/xml-apis.jar urls[9] = file:/usr/share/maven2/lib/plexus-interpolation.jar urls[10] = file:/usr/share/maven2/lib/plexus-container-default.jar urls[11] = file:/usr/share/maven2/lib/wagon-ssh-common.jar urls[12] = file:/usr/share/maven2/lib/wagon-http-shared.jar urls[13] = file:/usr/share/maven2/lib/wagon-http-lightweight.jar urls[14] = file:/usr/share/maven2/lib/commons-cli.jar urls[15] = file:/usr/share/maven2/lib/plexus-utils.jar urls[16] = file:/usr/share/maven2/lib/jtidy.jar Number of imports: 0 - FATAL ERROR: Unable to read settings.xml Error stacktrace: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.settings.MavenSettingsBuilder', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335) at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78) at org.apache.maven.cli.MavenCli.buildSettings(MavenCli.java:309) at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) at java.lang.reflect.Method.invoke(libgcj.so.90) 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.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'org.apache.maven.settings.MavenSettingsBuilder', implementation: 'org.apache.maven.settings.DefaultMavenSettingsBuilder' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ...8 more Caused by: java.lang.NoClassDefFoundError: org.apache.maven.settings.DefaultMavenSettingsBuilder at
How to add SYSTEM scope dependency to manifest?
Greetings all, I'm looking for how to configure the artifactIdmaven-jar-plugin/artifactId so that dependencies with scopesystem/scope are included in the class-path of the manifest. I already am using the addClasspath tag of manifest and that works but if a dependency is defined as scopesystem/scope then addClasspath does not include it in the manifest. I need to include it in the manifest. Any ideas? Mike - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven2 Repository with the javax jars
I looked into these repositories (http://download.java.net/maven/2/javax/) but did not find the jar for javax.ejb. Does anyone know a public Maven 2 repo where I can find it? Would be even better If it also has the sources. Try the Geronimo spec jars: dependency groupIdorg.apache.geronimo.specs/groupId artifactIdgeronimo-ejb_3.0_spec/artifactId version1.0/version /dependency Or look for something out of Project Glassfish. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to add SYSTEM scope dependency to manifest?
if a dependency is defined as scopesystem/scope then addClasspath does not include it in the manifest. I need to include it in the manifest. Any ideas? Is there a reason the obvious answer -- change it to a different scope eg compile -- is not acceptable? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Question regarding inheritance vs pluginManagement
The docs are wrong. Although it is often used for inheritence, it most definitely applies to the current project as well. The pluginManagement provides defaults to the plugins if they are used, either from the cli, default lifecycle bindings, or explicit bindings in the pom. See here for more information: http://www.sonatype.com/people/2008/05/optimal-maven-plugin-configuration/ http://www.sonatype.com/books/maven-book/reference/optimizing-sect-plugins.html On Wed, Aug 12, 2009 at 7:59 AM, Éric Daigneaultdai...@gmail.com wrote: Hi, I was refactoring my projects to make better use of dependency management and pluginManagement. Almost got it all to work the way I want but I hit a wall in how the pluginManagement is used. When looking at the definition in the documentation find the following *pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions.* * *This is all good and actually is exactly the behaviour that I am after... so after hours of fiddling and looking I was quite pleased to find this little bit. However when actually applying I find that the plugin definition in plugin management are actually made active in the CURRENT project as well as the children. This is quite bothersome unfortunately. I created a toned downed version of my build situation to illustrate the issue : Project A is a generic parent POM that basically just defines the common parts for all projects. Project B is a library that is used in many different projects Project C is an aggregation project as well as parent POM that defines a framework. There is no code here, just POMs, Assembly descriptors etc. but the project aggregate many projects to form a single package. I do this to make it easier to develop against the framework, this way we only inherit from Project C and all the needed stuff is there that standardizes the dependencies and packaging of projects built on the framework. Project D is a project that is built on the framework, a bit of code ans some stuff to add to the assembly. OK... Now, everything is working well and Project C is creating a zip file as it should that contains all the stuff from modules and dependencies. Now anyone can download the zip file and start working on the framework. Now I want to define in the pluginManagement of project C some stuff to help child projects to use the framework package directly instead of rebuilding it from scratch everytime. Below is the POM snippet that defines this behaviour : in Project C I have ... build pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version executions ... /execution /executions /plugin /plugins /pluginManagement /build if I do mvn help:effective-pom on project C I get that the build section is empty, which is exactly what I ordered.. If in project D (which has project C as parent) I have the following build section : build plugins plugin artifactIdmaven-dependency-plugin/artifactId /plugin /plugins /build and do a mvn help:effective-pom I get a build section that contains the maven-dependency-plugin with all the bells and whistle I placed in project`s C pluginManagement... again all is good... But let`s say that project C wants to create something that uses dependencies and needs to do work with the maven-dependency-plugin. I therefore add the following to Project C POM : build pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version executions Some stuff for the children /execution /executions /plugin /plugins /pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version inheritedfalse/inherited !-- this perticular config is NOT for kids... for parent only -- executions some stuff for adults only /execution /executions /plugin /plugins /build now if I do mvn help:effective-pom on project C I get all the stuff for parent AND all the stuff for kids... Thing is... I don't want the stuff for kids, I am actually preparing stuff for kids I feel this is a bug since the documentation specifically states that the pluginDependencies are for decendents. Unless they are reffering to the XML structure's children... in
Filtering webapp resources
Hi all, I'm trying to filter webapp resources (*.jspx). I guess, the intended way of doing this is using maven-war-plugin, but due to bug MWAR-164[1], my UTF-8 files get messed up. So, I'm trying to figure out how to do it manually. I try to use maven-antrun-plugin to run replaceregexp on folder target/ROOT/. But, if I specify prepare-package phase, I get an error since webapp resources are not copied yet. OTOH, if I use package phase, filtering is done after the packaging is complete leaving target/ROOT/ filtered but ROOT.war:target/ROOT/ unfiltered. Is there a way to call ant task at the right moment - after copying webapp resources but before packaging WAR file? Regards, Ognjen [1] http://jira.codehaus.org/browse/MWAR-164 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [archetype] Creating a new archetype Maven
Hello, In fact, I see that if I replace this parent by : parent artifactIdmaven-archetype-bundles/artifactId groupIdorg.apache.maven.archetypes/groupId version3/version /parent it works. Could anyone explain it? NGUYEN Cong Kinh a écrit : Hello, I want to write a new archetype Maven. But I have a problem. Here is my top pom: 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 !--parent groupIdcosmos.cosmos-mavenarchetype/groupId artifactIdparent/artifactId version0.1.7-SNAPSHOT/version /parent-- groupIdcosmos.cosmos-mavenarchetype/groupId artifactIdjulia/artifactId version0.1.7-SNAPSHOT/version packagingjar/packaging nameCOSMOS Maven Archetype - julia/name /project In fact, with this pom, it works well. But you can see that I commented on the parent. In my archetype, I want to use parent. When I use parent, I received one error as the following: [ERROR] BUILD ERROR [INFO] [INFO] Error assembling JAR Embedded error: Problem creating jar: /home/kinh/workspace/cosmos/trunk/cosmos/mavenarchetype/julia/target/classes (Is a directory) Could anyone give me suggestions to solve my problem? Thanks in advance! Kinh - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
speedier builds possible?
Hi. I was wondering if there are any industry standard ways of speeding up a maven build, like in a project with a single parent and multiple children modules only building dependencies that have changed since the last svn commit or building things in parallel where possible Or anything else. Anybody know of much on that topic? Thanks! -r - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven 2.2.1 and NTLM Proxy
http://maven.apache.org/guides/mini/guide-proxies.html -Original Message- From: Pilgrim, Peter [mailto:peter.pilg...@lloydsbanking.com] Sent: Wednesday, August 12, 2009 7:17 AM To: users@maven.apache.org Subject: Maven 2.2.1 and NTLM Proxy Hi I am back on the Maven 2.2.1 list after several years. I would like to know how to configure Maven with my corporate firewall. I tried several things already in the 24hrs CNTLM, Artifactory, JDK http.httpProxy etc. How come Apache Ivy can do this and M2.2.1 cannot? -- Peter Pilgrim | E-Channel Services Technical Lead, Products Markets Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V 7AE, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydstsb.co.uk * www.lloydstsbcorporatemarkets.com http://www.lloydstsbcorporatemarkets.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Lloyds Banking Group plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds Banking Group plc is a signatory to the Banking Codes. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
1.0-alpha-2 Nativelib Jar
Hi, I am using the last 1.0-alpha-2 from the webstart-maven-plugin How can I handle native jar containing DLLs(in my case jdic) in order to insert in the jnlp something like : nativelib href=./nativelib/jdic_native-0.9.3.jar/ nativelib href=./nativelib/bbapinative.jar version=${project.version}/ Thanks - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: How to add SYSTEM scope dependency to manifest?
The jar is not in any repository so I read it off of the file system by setting the dependency to scopesystem/scope This is the only scope which can read jars off the file system. If the scope is changed to compile, Maven will want to pull it from a repository. The m2 plugin for eclipse gives an error if systemPath is set and the scope is not system. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, August 12, 2009 9:46 AM To: Maven Users List Subject: Re: How to add SYSTEM scope dependency to manifest? if a dependency is defined as scopesystem/scope then addClasspath does not include it in the manifest. I need to include it in the manifest. Any ideas? Is there a reason the obvious answer -- change it to a different scope eg compile -- is not acceptable? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
findbugs-maven-plugin error - mvn findbugs:findbugs - on linux box
Hi Everyone, I am using findbugs-maven-plugin for generating findbugs reports. When i run it on windows, it works fine but on linux i get following error. [cibu...@sbkj2kcomd01 trunk]$ mvn findbugs:findbugs [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] ProvisioningCommons [INFO] ProvisioningCommons-conf [INFO] ProvisioningCommons-components [INFO] Searching repository for plugin with prefix: 'findbugs'. [INFO] [INFO] Building ProvisioningCommons [INFO]task-segment: [findbugs:findbugs] [INFO] [INFO] Preparing findbugs:findbugs [INFO] No goals needed for project - skipping - this realm = app0.child-container[org.codehaus.mojo:findbugs-maven-plugin] urls[0] = file:/export/home/cibuild/.m2/repository/org/codehaus/mojo/findbugs-maven-plugin/2.0.1/findbugs-maven-plugin-2.0.1.jar urls[1] = file:/export/home/cibuild/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.jar urls[2] = file:/export/home/cibuild/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar urls[3] = file:/export/home/cibuild/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar urls[4] = file:/export/home/cibuild/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[5] = file:/export/home/cibuild/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar urls[6] = file:/export/home/cibuild/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[7] = file:/export/home/cibuild/.m2/repository/commons-collections/commons-collections/2.1/commons-collections-2.1.jar urls[8] = file:/export/home/cibuild/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[9] = file:/export/home/cibuild/.m2/repository/oro/oro/2.0.7/oro-2.0.7.jar urls[10] = file:/export/home/cibuild/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-8/doxia-core-1.0-alpha-8.jar urls[11] = file:/export/home/cibuild/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-7/doxia-site-renderer-1.0-alpha-7.jar urls[12] = file:/export/home/cibuild/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar urls[13] = file:/export/home/cibuild/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar urls[14] = file:/export/home/cibuild/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar urls[15] = file:/export/home/cibuild/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar urls[16] = file:/export/home/cibuild/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar urls[17] = file:/export/home/cibuild/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar urls[18] = file:/export/home/cibuild/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-7/doxia-decoration-model-1.0-alpha-7.jar urls[19] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/findbugs/1.3.8/findbugs-1.3.8.jar urls[20] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/bcel/1.3.8/bcel-1.3.8.jar urls[21] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/jsr305/1.3.8/jsr305-1.3.8.jar urls[22] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/jFormatString/1.3.8/jFormatString-1.3.8.jar urls[23] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/annotations/1.3.8/annotations-1.3.8.jar urls[24] = file:/export/home/cibuild/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[25] = file:/export/home/cibuild/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[26] = file:/export/home/cibuild/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar urls[27] = file:/export/home/cibuild/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar urls[28] = file:/export/home/cibuild/.m2/repository/xom/xom/1.0/xom-1.0.jar urls[29] = file:/export/home/cibuild/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar urls[30] = file:/export/home/cibuild/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar urls[31] = file:/export/home/cibuild/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar urls[32] = file:/export/home/cibuild/.m2/repository/asm/asm/3.1/asm-3.1.jar urls[33] = file:/export/home/cibuild/.m2/repository/asm/asm-analysis/3.1/asm-analysis-3.1.jar urls[34] = file:/export/home/cibuild/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar urls[35] = file:/export/home/cibuild/.m2/repository/asm/asm-commons/3.1/asm-commons-3.1.jar urls[36] = file:/export/home/cibuild/.m2/repository/asm/asm-util/3.1/asm-util-3.1.jar urls[37] = file:/export/home/cibuild/.m2/repository/asm/asm-xml/3.1/asm-xml-3.1.jar urls[38] = file:/export/home/cibuild/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
RE: maven-war-plugin - single jar in /WEB-INB/lib?
It should work for you as we also faced the same issue and it worked fine with me if I am getting your question properly: dependencies dependency groupIdcom.wellmanage.trading.gts/groupId artifactIdjnlp-servlet/artifactId versionVersion/version scoperuntime/scope exclusions exclusion groupIdweblogic/groupId artifactIdweblogic/artifactId /exclusion /exclusions /dependency /dependencies Thanks Sandeep -Original Message- From: Comerford, Sean [mailto:sean.comerf...@espn3.com] Sent: Monday, August 10, 2009 12:23 PM To: Maven Users List Subject: Re: maven-war-plugin - single jar in /WEB-INB/lib? Sorry. I¹m didn¹t ask the question properly. Let me re-phrase: Artifact foo has a shade plugin based build that generates a single ³with-dependencies² jar containing all classes and dependent classes. I want that single jar (foo-2.0-with-dependencies.jar) to be placed in my WAR artifact¹s WEB-INF/lib folder. Is that possible (other than doing something manual like unpack)? Thanks, Sean On 8/10/09 12:18 PM, Heinrich Nirschl heinrich.nirs...@gmail.com wrote: On Mon, Aug 10, 2009 at 5:01 PM, Comerford, Seansean.comerf...@espn3.com wrote: I have a Maven 2.0.9 webapp build that uses the WAR plugin. Is there a way to have JUST foo-2.0.jar show in WEB-INF/lib instead of all the other jars? Yes, have a look at the packagingExclude and packagingInclude parameters in http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html But I do not understand why you would like to have this. - Henry - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Sean Comerford, Software Engineer ESPN.com Site Architecture Group Office: 860.766.6454Cell: 860.951.6973 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
findbugs-maven-plugin error - mvn findbugs:findbugs - linux box
Hi Everyone, I am using findbugs-maven-plugin for generating findbugs reports. When i run it on windows, it works fine but on linux i get following error. [cibu...@sbkj2kcomd01 trunk]$ mvn findbugs:findbugs [INFO] Scanning for projects... [cibu...@sbkj2kcomd01 trunk]$ mvn findbugs:findbugs [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] ProvisioningCommons [INFO] ProvisioningCommons-conf [INFO] ProvisioningCommons-components [INFO] Searching repository for plugin with prefix: 'findbugs'. [INFO] [INFO] Building ProvisioningCommons [INFO]task-segment: [findbugs:findbugs] [INFO] [INFO] Preparing findbugs:findbugs [INFO] No goals needed for project - skipping - this realm = app0.child-container[org.codehaus.mojo:findbugs-maven-plugin] urls[0] = file:/export/home/cibuild/.m2/repository/org/codehaus/mojo/findbugs-maven-plugin/2.0.1/findbugs-maven-plugin-2.0.1.jar urls[1] = file:/export/home/cibuild/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.jar urls[2] = file:/export/home/cibuild/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar urls[3] = file:/export/home/cibuild/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar urls[4] = file:/export/home/cibuild/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[5] = file:/export/home/cibuild/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar urls[6] = file:/export/home/cibuild/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[7] = file:/export/home/cibuild/.m2/repository/commons-collections/commons-collections/2.1/commons-collections-2.1.jar urls[8] = file:/export/home/cibuild/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[9] = file:/export/home/cibuild/.m2/repository/oro/oro/2.0.7/oro-2.0.7.jar urls[10] = file:/export/home/cibuild/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-8/doxia-core-1.0-alpha-8.jar urls[11] = file:/export/home/cibuild/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-7/doxia-site-renderer-1.0-alpha-7.jar urls[12] = file:/export/home/cibuild/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar urls[13] = file:/export/home/cibuild/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar urls[14] = file:/export/home/cibuild/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar urls[15] = file:/export/home/cibuild/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar urls[16] = file:/export/home/cibuild/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar urls[17] = file:/export/home/cibuild/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar urls[18] = file:/export/home/cibuild/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-7/doxia-decoration-model-1.0-alpha-7.jar urls[19] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/findbugs/1.3.8/findbugs-1.3.8.jar urls[20] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/bcel/1.3.8/bcel-1.3.8.jar urls[21] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/jsr305/1.3.8/jsr305-1.3.8.jar urls[22] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/jFormatString/1.3.8/jFormatString-1.3.8.jar urls[23] = file:/export/home/cibuild/.m2/repository/com/google/code/findbugs/annotations/1.3.8/annotations-1.3.8.jar urls[24] = file:/export/home/cibuild/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[25] = file:/export/home/cibuild/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[26] = file:/export/home/cibuild/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar urls[27] = file:/export/home/cibuild/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar urls[28] = file:/export/home/cibuild/.m2/repository/xom/xom/1.0/xom-1.0.jar urls[29] = file:/export/home/cibuild/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar urls[30] = file:/export/home/cibuild/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar urls[31] = file:/export/home/cibuild/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar urls[32] = file:/export/home/cibuild/.m2/repository/asm/asm/3.1/asm-3.1.jar urls[33] = file:/export/home/cibuild/.m2/repository/asm/asm-analysis/3.1/asm-analysis-3.1.jar urls[34] = file:/export/home/cibuild/.m2/repository/asm/asm-tree/3.1/asm-tree-3.1.jar urls[35] = file:/export/home/cibuild/.m2/repository/asm/asm-commons/3.1/asm-commons-3.1.jar urls[36] = file:/export/home/cibuild/.m2/repository/asm/asm-util/3.1/asm-util-3.1.jar urls[37] = file:/export/home/cibuild/.m2/repository/asm/asm-xml/3.1/asm-xml-3.1.jar urls[38] =
RE: speedier builds possible?
Couple of simple ideas: not 'clean'ing unless you need to; and skipping tests when it's safe to do so: mvn Dmaven.test.skip=true (or -DskipTests=true) -Original Message- From: Roger Pack [mailto:rogerdpa...@gmail.com] Sent: 12 August 2009 18:17 To: users@maven.apache.org Subject: speedier builds possible? Hi. I was wondering if there are any industry standard ways of speeding up a maven build, like in a project with a single parent and multiple children modules only building dependencies that have changed since the last svn commit or building things in parallel where possible Or anything else. Anybody know of much on that topic? Thanks! -r - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[SOLVED] RE: Maven 2.2.1 and NTLM Proxy
Hi I just managed to figure out at Close of Business I went back to Artifactory 2.0.6 and realised that firewall proxy works with NT session that is already authenticated. I could see this worked already in Ant and Apache Ivy downloads. Therefore it does not need to http.proxyUser or http.proxyPassword at all and only needs http.proxyHost and http.proxyPort. This was the first realisation. Second, I was running Apache Tomcat on my workstation as a Windows System service. Durh! There is no NT credential normally on a Win Service, hence Catalina cannot be authenticated. Third, uninstall Catalina and reinstall it using the ZIP package. Fourth, set up Catalina to use item #1 and put the proxy configuration in conf/catalina.properties or create an environmental var CATALINA_OPTS. Restart Catalina. Fifth Get a tab on a browser and have a play, look at catalina's and artifactory log files http://localhost:9595/artifactory/repo1/commons-io/commons-io/1.3.2/comm ons-io-1.3.2.jar So in Nutshell, run the Java Proxy already in a NT authenticated user command shell to get around NTLM 2.0 restrictions -- Peter Pilgrim | E-Channel Services Technical Lead, Products Markets Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V 7AE, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 + peter.pilg...@lloydstsb.co.uk : www.lloydstsbcorporatemarkets.com -Original Message- From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] Sent: 12 August 2009 18:37 To: Maven Users List Subject: RE: Maven 2.2.1 and NTLM Proxy http://maven.apache.org/guides/mini/guide-proxies.html -Original Message- From: Pilgrim, Peter [mailto:peter.pilg...@lloydsbanking.com] Sent: Wednesday, August 12, 2009 7:17 AM To: users@maven.apache.org Subject: Maven 2.2.1 and NTLM Proxy Hi I am back on the Maven 2.2.1 list after several years. I would like to know how to configure Maven with my corporate firewall. I tried several things already in the 24hrs CNTLM, Artifactory, JDK http.httpProxy etc. How come Apache Ivy can do this and M2.2.1 cannot? -- Peter Pilgrim | E-Channel Services Technical Lead, Products Markets Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V 7AE, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydstsb.co.uk * www.lloydstsbcorporatemarkets.com http://www.lloydstsbcorporatemarkets.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Lloyds Banking Group plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds Banking Group plc is a signatory to the Banking Codes. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Suck, cannot build, repository down??
Ok I reached something that I feared with maven: unable to get dependency. When I try to build my project, i get this: Project ID: org.apache.maven.plugins:maven-site-plugin Reason: Error getting POM for 'org.apache.maven.plugins:maven-site-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml': end tag name /body must match start tag name hr from line 7 (position: TEXT seen .../address\n/body... @9:8) org.apache.maven.plugins:maven-site-plugin:pom:LATEST for project org.apache.maven.plugins:maven-site-plugin I checked /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml file and it gives me: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title301 Moved Permanently/title /headbody h1Moved Permanently/h1 pThe document has moved http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml here ./p hr addressApache Server at maven2-repository.dev.java.net Port 443/address /body/html If I go to the specified link it says Page cannot be found. Am I permanently stuck? I searched my project for maven-site-plugin and did not find anything. Why is it trying to get that anyway? Is the repository down and I can NOT compile until it reopens? Please advise me how to fix it. I am a maven newbie. However, I do know for a fact that this same build worked a month ago! Please advise me on what to do. -- View this message in context: http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: 1.0-alpha-2 Nativelib Jar
please display the manifest.mf to display basic structure of the jar thanks Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: 1.0-alpha-2 Nativelib Jar Date: Wed, 12 Aug 2009 13:36:59 -0400 From: sagra...@consultantemail.com To: users@maven.apache.org Hi, I am using the last 1.0-alpha-2 from the webstart-maven-plugin How can I handle native jar containing DLLs(in my case jdic) in order to insert in the jnlp something like : nativelib href=./nativelib/jdic_native-0.9.3.jar/ nativelib href=./nativelib/bbapinative.jar version=${project.version}/ Thanks - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
Re: Maven repo reverse dependency search
On Wed, Aug 12, 2009 at 3:50 AM, Wayne Faywayne...@gmail.com wrote: Is there a Maven repo search site that can look up consumers of plugins/dependencies? I would find that useful when I'm trying to use a plugin that isn't documented that well, I could look at the existing consumers' usage patterns. http://www.mvnrepository.com/artifact/org.apache.ant/ant-nodeps/1.7.1 Scroll down a little, you'll see it... This artifact is used by Thanks, it seems that only recognizes used by as items in dependencies though. I was hoping it would discover plugin dependencies as well. Here's a example plugin, I chose antrun because I know that a lot of people use it: http://www.mvnrepository.com/artifact/org.apache.maven.plugins/maven-antrun-plugin/1.3 It doesn't show any used by section. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven repo reverse dependency search
Try this: http://www.ellipsissolutions.com/xray.php I'm not sure if this is exactly what you are looking for, but it might be worth giving a try. I faced a similar issue and so wrote this utility and made it available for FREE! Since it's just launched and repository references are still being built I haven't yet communicated about it to the maven community yet. I will do so as soon as I am done mapping all the dependencies. Thanks, Gautam Tandon ellipsis solutions pvt. ltd. ellipsis xray - Search And Download Java Dependencies http://www.ellipsissolutions.com/xray.php Quoting Luke Patterson lukewpatter...@gmail.com: On Wed, Aug 12, 2009 at 3:50 AM, Wayne Faywayne...@gmail.com wrote: Is there a Maven repo search site that can look up consumers of plugins/dependencies? I would find that useful when I'm trying to use a plugin that isn't documented that well, I could look at the existing consumers' usage patterns. http://www.mvnrepository.com/artifact/org.apache.ant/ant-nodeps/1.7.1 Scroll down a little, you'll see it... This artifact is used by Thanks, it seems that only recognizes used by as items in dependencies though. I was hoping it would discover plugin dependencies as well. Here's a example plugin, I chose antrun because I know that a lot of people use it: http://www.mvnrepository.com/artifact/org.apache.maven.plugins/maven-antrun-plugin/1.3 It doesn't show any used by section. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
java.lang.NoClassDefFoundError: TestCase
I ran into this tricky condition wile building a new branch of a project in subversion. mvn test produced org.apache.maven.surefire.booter.SurefireExecutionException: TestCase; nested exception is java.lang.NoClassDefFoundError: TestCase java.lang.NoClassDefFoundError: TestCase I was confused since I had a junit-4.4.jar correctly configured. After scratching my head for a while, the problem was solved. I run maven from the command line, but do my editing in eclipse europa. I *didn't* have junit-4.4.jar configured in eclipse. Once I configured it in eclipse all was well. Reason: I have both eclipse and maven using the same target area (.../target/all that stuff) Just a heads up to the list for a tricky challenge. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to add SYSTEM scope dependency to manifest?
System scope is meant for system objects that would be present on the target os, something like MFC.dll etc. Using it to work around having the jar in a repository is a definite anti-pattern. Instead have it uploaded to your Corporate Nexus repository. On Wed, Aug 12, 2009 at 1:10 PM, REMIJAN, MICHAEL J [AG/1000]michael.j.remi...@monsanto.com wrote: The jar is not in any repository so I read it off of the file system by setting the dependency to scopesystem/scope This is the only scope which can read jars off the file system. If the scope is changed to compile, Maven will want to pull it from a repository. The m2 plugin for eclipse gives an error if systemPath is set and the scope is not system. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, August 12, 2009 9:46 AM To: Maven Users List Subject: Re: How to add SYSTEM scope dependency to manifest? if a dependency is defined as scopesystem/scope then addClasspath does not include it in the manifest. I need to include it in the manifest. Any ideas? Is there a reason the obvious answer -- change it to a different scope eg compile -- is not acceptable? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Suck, cannot build, repository down??
This is a major problem it looks like with the dev.java.net repository, it's returning garbage in the form of html instead of simply nacking the existence of that file. On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7aluminum3...@yahoo.com wrote: Ok I reached something that I feared with maven: unable to get dependency. When I try to build my project, i get this: Project ID: org.apache.maven.plugins:maven-site-plugin Reason: Error getting POM for 'org.apache.maven.plugins:maven-site-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml': end tag name /body must match start tag name hr from line 7 (position: TEXT seen .../address\n/body... @9:8) org.apache.maven.plugins:maven-site-plugin:pom:LATEST for project org.apache.maven.plugins:maven-site-plugin I checked /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml file and it gives me: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title301 Moved Permanently/title /headbody h1Moved Permanently/h1 pThe document has moved http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml here ./p hr addressApache Server at maven2-repository.dev.java.net Port 443/address /body/html If I go to the specified link it says Page cannot be found. Am I permanently stuck? I searched my project for maven-site-plugin and did not find anything. Why is it trying to get that anyway? Is the repository down and I can NOT compile until it reopens? Please advise me how to fix it. I am a maven newbie. However, I do know for a fact that this same build worked a month ago! Please advise me on what to do. -- View this message in context: http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to add SYSTEM scope dependency to manifest?
The jar is not in any repository so I read it off of the file system by setting the dependency to scopesystem /scope This is the only scope which can read jars off the file system. You really must install this jar into a corporate repo (nexus etc) and then depend on it with proper scopes. System scope is a bad idea in general except for very specific uses -- and this is not one of them. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Suck, cannot build, repository down??
Actually it looks like you're using a bad url to the repository. You should instead use: http://download.java.net/maven/2 On Wed, Aug 12, 2009 at 1:51 PM, Arrowx7aluminum3...@yahoo.com wrote: Ok I reached something that I feared with maven: unable to get dependency. When I try to build my project, i get this: Project ID: org.apache.maven.plugins:maven-site-plugin Reason: Error getting POM for 'org.apache.maven.plugins:maven-site-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml': end tag name /body must match start tag name hr from line 7 (position: TEXT seen .../address\n/body... @9:8) org.apache.maven.plugins:maven-site-plugin:pom:LATEST for project org.apache.maven.plugins:maven-site-plugin I checked /home/usr/.m2/repository/org/apache/maven/plugins/maven-site-plugin/maven-metadata-maven2-repository.dev.java.net.xml file and it gives me: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title301 Moved Permanently/title /headbody h1Moved Permanently/h1 pThe document has moved http://download.java.net/maven/2/org/apache/maven/plugins/maven-site-plugin/maven-metadata.xml here ./p hr addressApache Server at maven2-repository.dev.java.net Port 443/address /body/html If I go to the specified link it says Page cannot be found. Am I permanently stuck? I searched my project for maven-site-plugin and did not find anything. Why is it trying to get that anyway? Is the repository down and I can NOT compile until it reopens? Please advise me how to fix it. I am a maven newbie. However, I do know for a fact that this same build worked a month ago! Please advise me on what to do. -- View this message in context: http://www.nabble.com/Suck%2C-cannot-build%2C-repository-down---tp24941611p24941611.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
persistence unit can not be found during test
I encouter a problem when running maven test + jpa + mysql. The report result always shows that `No Persistence provider for EntityManager named jpa' (where jpa is the persistent-unit name specified in the persistence.xml under src/main/resources/META-INF). It looks like the test (e.g. mvn test) can not find the persistence.xml file; however, a tutorial I found out on the internet - http://www.stripesbook.com/blog/index.php?/archives/34-Java-Persistence-Maven-2,-JPA,-and-Hibernate-Quickstart.html, its source code structure is similar to mine and its test can be executed without a problem. Where should I specify the persistence.xml path so that the mvn test will pick up the persistence unit (I try specify persistence.xml in test/resources/META-INF folder it doesn't work as well)? Or where should I check that might cause such problem? I appreciate any help. env: debian kernel 2.6.30-1/ java 1.6.0_10/ maven 2.0.9 exception: Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named jpa at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60) at exmample.domain.PersistenceProvider.clinit(PersistenceProvider.java:35) ... 63 more PersistenceProvider.java public class PersistenceProvider{ public static final String PERSISTENCE_UNIT_NAME = jpa; private static EntityManagerFactory factory; static { try { factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); }catch(Throwable t) { throw new ExceptionInInitializerError(t); } } public static EntityManagerFactory createPersistenceFactory() { return factory; } public static void close() { if(null == factory) throw new NullPointerException(No EntityManagerFactory available!); factory.close(); } } persistence.xml persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.23.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/ns/persistence http://java.sun.com/ns/persistence/persistence_1_0.xsd; version=1.0 persistence-unit name=jpa providerorg.hibernate.ejb.HibernatePersistence/provider properties property name=hibernate.archive.autodetection value=class, hbm/ property name=hibernate.show_sql value=true/ property name=hibernate.format_sql value=true/ property name=hibernate.dialect value=org.hibernate.dialect.MySQLDialect/ property name=hibernate.connection.driver_class value=com.mysql.jdbc.Driver/ property name=hibernate.connection.url value=jdbc:mysql://localhost/demo/ property name=hibernate.connection.username value=root/ property name=hibernate.connection.password value=*/ !--property name=hibernate.hbm2ddl.auto value=create/-- /properties /persistence-unit /persistence pom.xml dependencies !-- bsh -- dependency groupIdorg.beanshell/groupId artifactIdbsh/artifactId version2.0b4/version /dependency !-- aspectj -- dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.5.4/version /dependency !-- tapestry -- dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-ioc/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry5-annotations/artifactId version${tapestry-release-version}/version /dependency !-- hibernate -- dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.2.2.ga/version exclusions exclusion artifactIdjta/artifactId groupIdjavax.transaction/groupId /exclusion /exclusions /dependency dependency groupIdc3p0/groupId artifactIdc3p0/artifactId version0.9.0/version /dependency dependency
Re: persistence unit can not be found during test
your resources will be copied to /target/test-classes/ so use that, or better, load it from the classpath, then you aren't path dependent. On Wed, Aug 12, 2009 at 3:19 PM, Neo Andersonjavadeveloper...@yahoo.co.uk wrote: I encouter a problem when running maven test + jpa + mysql. The report result always shows that `No Persistence provider for EntityManager named jpa' (where jpa is the persistent-unit name specified in the persistence.xml under src/main/resources/META-INF). It looks like the test (e.g. mvn test) can not find the persistence.xml file; however, a tutorial I found out on the internet - http://www.stripesbook.com/blog/index.php?/archives/34-Java-Persistence-Maven-2,-JPA,-and-Hibernate-Quickstart.html, its source code structure is similar to mine and its test can be executed without a problem. Where should I specify the persistence.xml path so that the mvn test will pick up the persistence unit (I try specify persistence.xml in test/resources/META-INF folder it doesn't work as well)? Or where should I check that might cause such problem? I appreciate any help. env: debian kernel 2.6.30-1/ java 1.6.0_10/ maven 2.0.9 exception: Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named jpa at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60) at exmample.domain.PersistenceProvider.clinit(PersistenceProvider.java:35) ... 63 more PersistenceProvider.java public class PersistenceProvider{ public static final String PERSISTENCE_UNIT_NAME = jpa; private static EntityManagerFactory factory; static { try { factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); }catch(Throwable t) { throw new ExceptionInInitializerError(t); } } public static EntityManagerFactory createPersistenceFactory() { return factory; } public static void close() { if(null == factory) throw new NullPointerException(No EntityManagerFactory available!); factory.close(); } } persistence.xml persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.23.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/ns/persistence http://java.sun.com/ns/persistence/persistence_1_0.xsd; version=1.0 persistence-unit name=jpa providerorg.hibernate.ejb.HibernatePersistence/provider properties property name=hibernate.archive.autodetection value=class, hbm/ property name=hibernate.show_sql value=true/ property name=hibernate.format_sql value=true/ property name=hibernate.dialect value=org.hibernate.dialect.MySQLDialect/ property name=hibernate.connection.driver_class value=com.mysql.jdbc.Driver/ property name=hibernate.connection.url value=jdbc:mysql://localhost/demo/ property name=hibernate.connection.username value=root/ property name=hibernate.connection.password value=*/ !--property name=hibernate.hbm2ddl.auto value=create/-- /properties /persistence-unit /persistence pom.xml dependencies !-- bsh -- dependency groupIdorg.beanshell/groupId artifactIdbsh/artifactId version2.0b4/version /dependency !-- aspectj -- dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.5.4/version /dependency !-- tapestry -- dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-ioc/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry5-annotations/artifactId version${tapestry-release-version}/version /dependency !-- hibernate -- dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.2.2.ga/version exclusions exclusion artifactIdjta/artifactId groupIdjavax.transaction/groupId /exclusion /exclusions
Re: speedier builds possible?
If you aren't using a repository manager, then using one can save a good chunk of time. On Wed, Aug 12, 2009 at 1:45 PM, Jonathan Woodsjonathan.wo...@scintillance.com wrote: Couple of simple ideas: not 'clean'ing unless you need to; and skipping tests when it's safe to do so: mvn Dmaven.test.skip=true (or -DskipTests=true) -Original Message- From: Roger Pack [mailto:rogerdpa...@gmail.com] Sent: 12 August 2009 18:17 To: users@maven.apache.org Subject: speedier builds possible? Hi. I was wondering if there are any industry standard ways of speeding up a maven build, like in a project with a single parent and multiple children modules only building dependencies that have changed since the last svn commit or building things in parallel where possible Or anything else. Anybody know of much on that topic? Thanks! -r - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: How to add SYSTEM scope dependency to manifest?
There are many reasons why a project would use a JAR file which isn't in a repository. So I'm assuming Maven cannot be configured to handle this? It seems to me if I can configure the dependencySet to include scopesystem/scope dependencies then I should also be able to make a similar configuration with the manifestaddClasspath. Or is there another way of accomplishing the same thing? -Original Message- From: Brian Fox [mailto:bri...@infinity.nu] Sent: Wednesday, August 12, 2009 1:58 PM To: Maven Users List Subject: Re: How to add SYSTEM scope dependency to manifest? System scope is meant for system objects that would be present on the target os, something like MFC.dll etc. Using it to work around having the jar in a repository is a definite anti-pattern. Instead have it uploaded to your Corporate Nexus repository. On Wed, Aug 12, 2009 at 1:10 PM, REMIJAN, MICHAEL J [AG/1000]michael.j.remi...@monsanto.com wrote: The jar is not in any repository so I read it off of the file system by setting the dependency to scopesystem/scope This is the only scope which can read jars off the file system. If the scope is changed to compile, Maven will want to pull it from a repository. The m2 plugin for eclipse gives an error if systemPath is set and the scope is not system. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, August 12, 2009 9:46 AM To: Maven Users List Subject: Re: How to add SYSTEM scope dependency to manifest? if a dependency is defined as scopesystem/scope then addClasspath does not include it in the manifest. I need to include it in the manifest. Any ideas? Is there a reason the obvious answer -- change it to a different scope eg compile -- is not acceptable? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: persistence unit can not be found during test
Sorry I don't understand very well. Shouldn't maven pick up persistence.xml either specified in the src/main/resources/META-INF or src/test/resources/META-INF? Or what command I need spcify so that when executing `mvn test', maven will pick up persistence.xml that is copied to target/test-classes? Thanks for your help. I appreciate it. --- On Wed, 12/8/09, Brian Fox bri...@infinity.nu wrote: From: Brian Fox bri...@infinity.nu Subject: Re: persistence unit can not be found during test To: Maven Users List users@maven.apache.org Date: Wednesday, 12 August, 2009, 7:44 PM your resources will be copied to /target/test-classes/ so use that, or better, load it from the classpath, then you aren't path dependent. On Wed, Aug 12, 2009 at 3:19 PM, Neo Andersonjavadeveloper...@yahoo.co.uk wrote: I encouter a problem when running maven test + jpa + mysql. The report result always shows that `No Persistence provider for EntityManager named jpa' (where jpa is the persistent-unit name specified in the persistence.xml under src/main/resources/META-INF). It looks like the test (e.g. mvn test) can not find the persistence.xml file; however, a tutorial I found out on the internet - http://www.stripesbook.com/blog/index.php?/archives/34-Java-Persistence-Maven-2,-JPA,-and-Hibernate-Quickstart.html, its source code structure is similar to mine and its test can be executed without a problem. Where should I specify the persistence.xml path so that the mvn test will pick up the persistence unit (I try specify persistence.xml in test/resources/META-INF folder it doesn't work as well)? Or where should I check that might cause such problem? I appreciate any help. env: debian kernel 2.6.30-1/ java 1.6.0_10/ maven 2.0.9 exception: Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named jpa at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60) at exmample.domain.PersistenceProvider.clinit(PersistenceProvider.java:35) ... 63 more PersistenceProvider.java public class PersistenceProvider{ public static final String PERSISTENCE_UNIT_NAME = jpa; private static EntityManagerFactory factory; static { try { factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); }catch(Throwable t) { throw new ExceptionInInitializerError(t); } } public static EntityManagerFactory createPersistenceFactory() { return factory; } public static void close() { if(null == factory) throw new NullPointerException(No EntityManagerFactory available!); factory.close(); } } persistence.xml persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.23.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/ns/persistence http://java.sun.com/ns/persistence/persistence_1_0.xsd; version=1.0 persistence-unit name=jpa providerorg.hibernate.ejb.HibernatePersistence/provider properties property name=hibernate.archive.autodetection value=class, hbm/ property name=hibernate.show_sql value=true/ property name=hibernate.format_sql value=true/ property name=hibernate.dialect value=org.hibernate.dialect.MySQLDialect/ property name=hibernate.connection.driver_class value=com.mysql.jdbc.Driver/ property name=hibernate.connection.url value=jdbc:mysql://localhost/demo/ property name=hibernate.connection.username value=root/ property name=hibernate.connection.password value=*/ !--property name=hibernate.hbm2ddl.auto value=create/-- /properties /persistence-unit /persistence pom.xml dependencies !-- bsh -- dependency groupIdorg.beanshell/groupId artifactIdbsh/artifactId version2.0b4/version /dependency !-- aspectj -- dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.5.4/version /dependency !-- tapestry -- dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version${tapestry-release-version}/version /dependency dependency groupIdorg.apache.tapestry/groupId
RE: persistence unit can not be found during test
why not use oracle-toplink such as this example from /src/conf/persistence.xml persistence persistence-unit name=someDefinableName transaction-type=JTA provideroracle.toplink.essentials.PersistenceProvider/provider /persistence-unit /persistence jta-data-sourcejdbc/someDefinableName/jta-data-source mapping-filesomeORMap.xml/mapping-file jar-fileentities/Jar.jar/jar-file classejbinaction.persistence.Category/class classejbinaction.persistence.Bid/class properties property name=toplink.ddl-generation value=drop-and-create-tables/ /properties /persistence-unit /persistence http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html complete hibernate provider example is located at http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html/configuration.html anyone hear of a persistence provider named jpa? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 12 Aug 2009 19:19:27 + From: javadeveloper...@yahoo.co.uk Subject: persistence unit can not be found during test To: users@maven.apache.org I encouter a problem when running maven test + jpa + mysql. The report result always shows that `No Persistence provider for EntityManager named jpa' (where jpa is the persistent-unit name specified in the persistence.xml under src/main/resources/META-INF). It looks like the test (e.g. mvn test) can not find the persistence.xml file; however, a tutorial I found out on the internet - http://www.stripesbook.com/blog/index.php?/archives/34-Java-Persistence-Maven-2,-JPA,-and-Hibernate-Quickstart.html, its source code structure is similar to mine and its test can be executed without a problem. Where should I specify the persistence.xml path so that the mvn test will pick up the persistence unit (I try specify persistence.xml in test/resources/META-INF folder it doesn't work as well)? Or where should I check that might cause such problem? I appreciate any help. env: debian kernel 2.6.30-1/ java 1.6.0_10/ maven 2.0.9 exception: Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named jpa at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60) at exmample.domain.PersistenceProvider.clinit(PersistenceProvider.java:35) ... 63 more PersistenceProvider.java public class PersistenceProvider{ public static final String PERSISTENCE_UNIT_NAME = jpa; private static EntityManagerFactory factory; static { try { factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); }catch(Throwable t) { throw new ExceptionInInitializerError(t); } } public static EntityManagerFactory createPersistenceFactory() { return factory; } public static void close() { if(null == factory) throw new NullPointerException(No EntityManagerFactory available!); factory.close(); } } persistence.xml persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.23.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/ns/persistence http://java.sun.com/ns/persistence/persistence_1_0.xsd; version=1.0 persistence-unit name=jpa providerorg.hibernate.ejb.HibernatePersistence/provider properties property name=hibernate.archive.autodetection value=class, hbm/ property name=hibernate.show_sql value=true/ property name=hibernate.format_sql value=true/ property name=hibernate.dialect value=org.hibernate.dialect.MySQLDialect/
What on earth is this error?
This project compiled fine before, but now since I changed the repository to http://download.java.net/maven/2 it started giving me this at the end of mvn install: [INFO] [INFO] Building Indivo Server - Servlet [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/ava/src/indivo_latest/trunk/server/servlet/src/main/resources [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/ava/src/indivo_latest/trunk/server/servlet/src/test/resources [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/ava/src/indivo_latest/trunk/server/servlet/target/indivo-server-servlet-3.2-SNAPSHOT.jar [INFO] Preparing source:jar [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [source:jar {execution: default}] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating source archive: You must set at least one file. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 20 seconds [INFO] Finished at: Wed Aug 12 16:36:25 EDT 2009 [INFO] Final Memory: 30M/61M [INFO] -- View this message in context: http://www.nabble.com/What-on-earth-is-this-error--tp24943414p24943414.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: findbugs-maven-plugin error - mvn findbugs:findbugs - linux box
Same version of Maven? Same version of JDK? etc Wayne On Wed, Aug 12, 2009 at 1:42 PM, pawan gandhipawan.gan...@dowjones.com wrote: Hi Everyone, I am using findbugs-maven-plugin for generating findbugs reports. When i run it on windows, it works fine but on linux i get following error. [cibu...@sbkj2kcomd01 trunk]$ mvn findbugs:findbugs [INFO] - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven deploy plugin
Here is what I added in the maven goal. -e deploy:deploy-file -Dfile=pom.xml -Durl=http://abc001.na.abcglobal.com:8081/nexus/content/repositories/releases -DrepositoryId=releases -DgroupId=com.abc.t3 -DartifactId=t3 -Dversion=1.1 -Dpackaging=pom But this creates incorrect 1.1 version of my project POM. I want to see the actual contents of pom.xml from my version control repository to get deployed to Nexus. Instead the resulting POM is ?xml version=1.0 encoding=UTF-8?project modelVersion4.0.0/modelVersion groupIdcom.abc.t3/groupId artifactIdt3/artifactId packagingpom/packaging version1.1/version /project ~ I was expecting that deploy-file will deploy the actual file i.e pom.xml in this case. What could be wrong here ? Thanks, huser wrote: Hi, I want to deploy a project POM file only. I added maven-deploy plugin as follows. When I run mvn dpeloy:deploy-file It still complains about missing modules directories. I dont want to build the modules. I want to generate the pom file only. How can I do this ? parent groupIdcom.abc/groupId artifactIdabc-parent/artifactId version2.4/version /parent groupIdcom.abc.t3/groupId artifactIdt3/artifactId version1.1/version packagingpom/packaging nameABC T3 /name build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId version2.4/version /plugin /plugins /build -- View this message in context: http://www.nabble.com/maven-deploy-plugin-tp24902976p24943430.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: persistence unit can not be found during test
Thanks for the reply. I think now I figure out what goes wrong. The exception reported by the surefire is a red herring. It is indeed related to the dependency matrix issue. Orginally my hibernate entity-manager is 3.4.0 and hibernate-annotations is 3.2.1 (I can not remember exactly its version). That would not work due to compatibility issue. Hibernate page has a compatibility matrix at https://www.hibernate.org/6.html#A3. So I change to use the following configuration that solves part of problems. dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.3.1.GA/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-entitymanager/artifactId version3.3.2.GA/version /dependency Also, it requires to add classpkg.pathto.ClassName/class in persistence.xml. persistence-unit name=persistenceUnitName providerorg.hibernate.ejb.HibernatePersistence/provider classpkg.pathto.ClassName/class!-- here -- properties ... /properties /persistence-unit So that it will scan the class which would prevent error like Caused by: java.lang.IllegalArgumentException: Unknown entity: pkg.pathto.ClassName Thanks all your help. I really appreciate it. --- On Wed, 12/8/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: persistence unit can not be found during test To: users@maven.apache.org Date: Wednesday, 12 August, 2009, 8:33 PM why not use oracle-toplink such as this example from /src/conf/persistence.xml persistence persistence-unit name=someDefinableName transaction-type=JTA provideroracle.toplink.essentials.PersistenceProvider/provider /persistence-unit /persistence jta-data-sourcejdbc/someDefinableName/jta-data-source mapping-filesomeORMap.xml/mapping-file jar-fileentities/Jar.jar/jar-file classejbinaction.persistence.Category/class classejbinaction.persistence.Bid/class properties property name=toplink.ddl-generation value=drop-and-create-tables/ /properties /persistence-unit /persistence http://www.oracle.com/technology/products/ias/toplink/JPA/essentials/toplink-jpa-extensions.html complete hibernate provider example is located at http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html/configuration.html anyone hear of a persistence provider named jpa? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 12 Aug 2009 19:19:27 + From: javadeveloper...@yahoo.co.uk Subject: persistence unit can not be found during test To: users@maven.apache.org I encouter a problem when running maven test + jpa + mysql. The report result always shows that `No Persistence provider for EntityManager named jpa' (where jpa is the persistent-unit name specified in the persistence.xml under src/main/resources/META-INF). It looks like the test (e.g. mvn test) can not find the persistence.xml file; however, a tutorial I found out on the internet - http://www.stripesbook.com/blog/index.php?/archives/34-Java-Persistence-Maven-2,-JPA,-and-Hibernate-Quickstart.html, its source code structure is similar to mine and its test can be executed without a problem. Where should I specify the persistence.xml path so that the mvn test will pick up the persistence unit (I try specify persistence.xml in test/resources/META-INF folder it doesn't work as well)? Or where should I check that might cause such problem? I appreciate any help. env: debian kernel 2.6.30-1/ java 1.6.0_10/ maven 2.0.9 exception: Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named jpa at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89) at
Re: maven deploy plugin
On Wed, Aug 12, 2009 at 2:30 PM, husermpinj...@atxg.com wrote: Here is what I added in the maven goal. -e deploy:deploy-file -Dfile=pom.xml -Durl=http://abc001.na.abcglobal.com:8081/nexus/content/repositories/releases -DrepositoryId=releases -DgroupId=com.abc.t3 -DartifactId=t3 -Dversion=1.1 -Dpackaging=pom But this creates incorrect 1.1 version of my project POM. I want to see the actual contents of pom.xml from my version control repository to get deployed to Nexus. Instead the resulting POM is Try using -DpomFile=... on the command line. You may need both -Dfile=... and -DpomFile=... to make it work right. I haven't done this from the command line in a while. I'd also check whether Nexus has a web form where you can upload artifacts, that might be easier. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: speedier builds possible?
Write less code. Anyone can solve a problem in 1,000,000 lines of code. The challenge is to do it with 10,000. On Wed, Aug 12, 2009 at 3:45 PM, Brian Foxbri...@infinity.nu wrote: If you aren't using a repository manager, then using one can save a good chunk of time. On Wed, Aug 12, 2009 at 1:45 PM, Jonathan Woodsjonathan.wo...@scintillance.com wrote: Couple of simple ideas: not 'clean'ing unless you need to; and skipping tests when it's safe to do so: mvn Dmaven.test.skip=true (or -DskipTests=true) -Original Message- From: Roger Pack [mailto:rogerdpa...@gmail.com] Sent: 12 August 2009 18:17 To: users@maven.apache.org Subject: speedier builds possible? Hi. I was wondering if there are any industry standard ways of speeding up a maven build, like in a project with a single parent and multiple children modules only building dependencies that have changed since the last svn commit or building things in parallel where possible Or anything else. Anybody know of much on that topic? Thanks! -r - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-release-plugin and javaHome parameter
Hi I am trying to use the release goals, release:prepare in specific. My application tries to release a number of projects. I wanted maven to use project specific jdk settings. For example, project A uses JDK 6 features. JAVA_HOME variable is set to JDK 5 in the machine where the application runs. I pass -DjavaHome=C:\jdk6 as part of the release goal. But for some reason, maven tries to compile the project using JDK5 only. Can you please let me know where I am wrong? How should I be using that. Thanks V -- View this message in context: http://n2.nabble.com/maven-release-plugin-and-javaHome-parameter-tp3435004p3435004.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
hibernate3-maven-plugin error (A required class is missing)
Using hibernate3-maven-plugin v2.2 executing the hibernate3:hbm2hbmxml goal I get the following error. It can't find the ExporterMogo class. What may be causing this? [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.codehaus.mojo:hi bernate3-maven-plugin:2.2:hbm2hbmxml': Unable to load the mojo 'org.codehaus.moj o:hibernate3-maven-plugin:2.2:hbm2hbmxml' in the plugin 'org.codehaus.mojo:hiber nate3-maven-plugin'. A required class is missing: org/codehaus/mojo/hibernate3/E xporterMojo org.codehaus.mojo.hibernate3.ExporterMojo BTW, I was using hibernate 3.2.7.ga but I upgraded to 3.3.2.ga but that didn't help. Do I need to add something to get this class? -Dave
Re: Question regarding inheritance vs pluginManagement
Thanks for answering and clarify the documentation. I also looked into profiles and it looked quite promising but limitations on how they are activated and inherited let me to (yet another) dead end. This however leaves me hung dry... how else can I obtain the desired functionality (modulate plugins behaviour for descendents with finer grain than by declaring them) Right now all I get is an all or nothing behaviour, would it be possible to use ID of some sort to determine if this or that plugin config should be used ? Here is an example to illustrate what I mean. on the four projects above C determines a base on which other projects are created. Thus I want to configure there as much of what the children behaviour as possible, simplifying as much as possible the children's creation. Now if I have different types of children on which a plugin needs to behave differently. How can I modulate this behaviour for the children right in the child POM without having to redeclare the whole plugin configuration ? Thanks Éric On Wed, Aug 12, 2009 at 11:01 PM, Brian Fox bri...@infinity.nu wrote: The docs are wrong. Although it is often used for inheritence, it most definitely applies to the current project as well. The pluginManagement provides defaults to the plugins if they are used, either from the cli, default lifecycle bindings, or explicit bindings in the pom. See here for more information: http://www.sonatype.com/people/2008/05/optimal-maven-plugin-configuration/ http://www.sonatype.com/books/maven-book/reference/optimizing-sect-plugins.html On Wed, Aug 12, 2009 at 7:59 AM, Éric Daigneaultdai...@gmail.com wrote: Hi, I was refactoring my projects to make better use of dependency management and pluginManagement. Almost got it all to work the way I want but I hit a wall in how the pluginManagement is used. When looking at the definition in the documentation find the following *pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions.* * *This is all good and actually is exactly the behaviour that I am after... so after hours of fiddling and looking I was quite pleased to find this little bit. However when actually applying I find that the plugin definition in plugin management are actually made active in the CURRENT project as well as the children. This is quite bothersome unfortunately. I created a toned downed version of my build situation to illustrate the issue : Project A is a generic parent POM that basically just defines the common parts for all projects. Project B is a library that is used in many different projects Project C is an aggregation project as well as parent POM that defines a framework. There is no code here, just POMs, Assembly descriptors etc. but the project aggregate many projects to form a single package. I do this to make it easier to develop against the framework, this way we only inherit from Project C and all the needed stuff is there that standardizes the dependencies and packaging of projects built on the framework. Project D is a project that is built on the framework, a bit of code ans some stuff to add to the assembly. OK... Now, everything is working well and Project C is creating a zip file as it should that contains all the stuff from modules and dependencies. Now anyone can download the zip file and start working on the framework. Now I want to define in the pluginManagement of project C some stuff to help child projects to use the framework package directly instead of rebuilding it from scratch everytime. Below is the POM snippet that defines this behaviour : in Project C I have ... build pluginManagement plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.0/version executions ... /execution /executions /plugin /plugins /pluginManagement /build if I do mvn help:effective-pom on project C I get that the build section is empty, which is exactly what I ordered.. If in project D (which has project C as parent) I have the following build section : build plugins plugin artifactIdmaven-dependency-plugin/artifactId /plugin /plugins /build and do a mvn help:effective-pom I get a build section that contains the maven-dependency-plugin with all the bells and whistle I placed in project`s C pluginManagement... again all is good... But