archiva fails when tomcat is installed under path with blanks
Archiva works on my local computer, but fails on the target (windows) server. The only difference is that the target Tomcat 5.5.17 server is installed under D:\Apache Software Foundation\Tomcat 5.5 When starting archiva, I get this exception : 2007-03-19 19:20:39,243 [Main Thread] ERROR [/archiva] - Exception lors de l'envoi de l'ÚvÞnement contexte initialisÚ (context initialized) Ó l'instance de classe d'Úcoute (listener) org.codehaus.plexus.xwork.PlexusLifecycleListener java.lang.RuntimeException: org.codehaus.plexus.PlexusContainerException: Could not read file: D:\Apache%20Software%20Foundation\Tomcat%205.5 \webapps\archiva\WEB-INF\classes\META-INF\plexus\application.xml at org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized( PlexusLifecycleListener.java:105) Is this a plexus bug / limitation ? I don't have this limitation with some older archiva build (that uses plexus-xwork-1.0-alpha-2) Is there any workaround (I cannot change tomcat server path) ? Nico.
Re: evangelising maven from the business benefits point of view
Hi, I want also add that every management should be concerned with software quality and a convenient dashboard which allow to drive software quality. Lot of plugins go in that direction. Have a look for example to the project we are starting at hortis with the goal to offer such software quality dashboard to every Maven enabled team: sonar.hortis.ch Good luck and enjoy Maven. Gianfranco OLDANI +41 78 7330350 www.hortis.ch www.gfoldani.com Original Message Follows From: Jerome Lacoste [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: evangelising maven from the business benefits point of view Date: Sun, 18 Mar 2007 20:13:41 +0100 On 3/18/07, Adam Hardy [EMAIL PROTECTED] wrote: I want the software house where I work to go to the next level with maven from where we are at the moment, which is a case of gross under-utilisation. We use maven as a glorified ant script to run tests and build jars. There are several other projects in-house which have not been mavenised but could be, there is a great opportunity to implement maven's release cycle management, and the need for configuration, filtering and profiles is huge. No-one on the project management side though has much interest in all the reports, the QA, test coverage, continuous integration or release management. I have a meeting with a chief PM lined up and I have to present hard data in terms of developer-days saved if we put maven into place. What is the best way to nail down potential future gains from mavenization into easily grasped cost savings? Are there any good stories out there on this sort of stuff? Does anyone have some experiences they would like to share in this area? Introducing a new technology will always incur a cost. And resistance to change. So focus on the maven benefits and on the strategy to make these changes happen. Maybe can you start moving all projects to maven then improve your use of maven. Or maybe you should start. Probably a mix of both. * on projects not using maven. Compare them to those using maven. If maven is already helping, and people in the team already recognize the benefits, then this case is easier to argue. Further, you reduce the amount of technology used across projects making it easier to move people around (or when you take in new employees), or have site technology champions. Try to first migrate the projects which are related to the ones that already use maven (maybe because they use similar, or they share a pool of developers, or are on the same network and share the same development server). * on projects already using maven, you identify the gap doing 2 things: ** for each plugin listed under maven.apache.org and mojo.codehaus.org, see if you're using it. If not, estimate what would be the cost of introducing it, how often you would use it and what it would bring. Select the 4-5 most relevant plugins. I guess the release one should happen there. ** look at your process, and identify areas where automation/uniformisation would help. The plugin might exist, but it may not. Where do people make recurrent costly errors (during development/deployment/maintainance/...)? Can those be detected ? Think how you could make this part of the build. * identify one project and start adding the things yourself. Don't start with a too big of a project. Do this on your own time if you don't get approval. Make it in a branch if necessary. After some weeks, compare the before after states. Be objective. Still for each costs look if these costs would go down if you were to share them across projects. If the boss is not happy for you to taking initiative, consider that you at least improved your own knowledge. * Look at indirect savings. Do they have problem to hire the right people ? Do people leave because they feel they don't learn new things? Is the motivation low because of problems that this change could address (at least in part)? Etc... 3 last things: * identify the right people to convince. Sometime to convince your boss you have to convince the right coworker. Or a respected person in your company * know the person you are talking to and identify the words he wants to hear. * be patient. Hope that helped. And come back with a summary of how it went ! Cheers, Jerome _ Ne faites pas souffrir des pauvres volatiles sans défense afin de communiquer! http://www.communicationevolved.com/fr-ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How Does Maven Handle This?
Hi Ian, Dees, Ian (GE Healthcare) wrote on Friday, March 16, 2007 7:14 PM: If I have a dependency tree similar to this: projectA depends on projectB-1-01-SNAPSHOT projectA depends on projectC-1-00 projectC depends on projectB-1-00 How does maven handle running tests on projectA, for example? In our case, projectB-1-01-SNAPSHOT should be API-compatible with projectB-1-00 (i.e. we only added new method signatures and classes, no changes), but when compiling projectA, we get compile errors because javac does not ever see the changes introduced in the projectB-1-01-SNAPSHOT. I'm assuming that maven will put both versions on the classpath when executing the compile, and that javac will pick the first JAR (which could be either one). I would expect, though, that if the older JAR is first, javac would continue on to the newer JAR and pick up the added classes. No. Maven only takes one version of the JAR for the classpath. You may have a look at the output calling Maven with the -X option. I'm not crazy, right? It's the normal dependency hell :) But in any case, Maven should take the SNAPSHOT here ... how do you declare the dependencies in your POM? - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing new plugins
I turned stacktraces on and it seems that maven looks for the wrong plugin: [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-minijar-plugin:pom:LATEST Instead of minijar-maven-plugin it looks for maven-minijar-plugin. There must be something I'm doing wrong ... -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 1:30 AM To: Maven Users List Subject: Re: Installing new plugins As far as I can see, you've misspelled ueberjar: http://mojo.codehaus.org/minijar-maven-plugin/plugin-info.html But I don't use this plugin myself, so I'm not entirely positive this is the problem. Run mvn -X for more error details. Wayne On 3/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I wish to work with a plugin from codehaus. I added the required repository and pluginRepository to my pom as stated in the codehaus site. Still when I try to run it I get a plugin does not exist or no valid version could be found. The plugin I tried to use is minijar and I tried both the following commands to make it work: mvn minijar-maven-plugin:uberjar mvn minijar:uberjar Is there anything else one should do in order to install a new plugin? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ejb3 on Linux
Hi, I have posted this question earlier, but I am still struggling to find a solution. Any one who has come across the problem or have a work around can help me. I have a ejb3 application and I am generating a jar file which I am deploying it on JBoss. All the dependency injections work properly on Jboss running on Windows machine, but fail on Jboss running on Linux. I think it is because maven puts jboss.xml and persistence.xml in a meta-inf (lower case) folder. Has anyone come across this problem earlier.. Any help is appriciated. Regards This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html
Problems with multi module project dependencies
Hi, Here is the structure of my project : parent | |- cdk | |- components | |- comp 1 |- comp 2 comp 1 and comp2 depend on cdk. I've released a 1.2 version of the cdk project. the two component projects depend on version 1.2 explicitly. Now I wanna do some modifications on the cdk, so version of this project is now 1.3-SNAPSHOT. The problem is : when I try to compile components by launching mvn at the parent level (so it compile cdk, then components...), the classpath of the compiler plugin is : cdk/target/classes instead of cdk-1.2.jar as mentionned in the component's dependencies. So compilation failed. The compilation is ok when I try to launch maven at the component's level. So I think the problem could be that in the parent pom, cdk and components are in the same modules/modules tag. So How can I force the use of version 1.2 instead of module classes ? Any body can help me ? Regards Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
site plugin fails
Hi! This morning I out of the blue the site plugin fails with this exception [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:site': Unable to find the mojo 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:site' in the plugin 'org.apache.maven.plugins:maven-site-plugin' org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext When I left work on Friday everything was working alright, and nobody has touched the system since. Apart from this specific failure, how can I prevent that from happening, e.g. freeze a working system? Tilman Rossmy MC-TO-CPT-POA-IMD Swisscom Mobile Waldeggstrasse 51 3097 Liebefeld BE Phone: +41795932871
RE: Problems with multi module project dependencies
Olivier Fabre - EBM WebSourcing wrote on Monday, March 19, 2007 10:41 AM: Hi, Here is the structure of my project : parent | |- cdk | |- components | |- comp 1 |- comp 2 comp 1 and comp2 depend on cdk. I've released a 1.2 version of the cdk project. the two component projects depend on version 1.2 explicitly. Now I wanna do some modifications on the cdk, so version of this project is now 1.3-SNAPSHOT. The problem is : when I try to compile components by launching mvn at the parent level (so it compile cdk, then components...), the classpath of the compiler plugin is : cdk/target/classes instead of cdk-1.2.jar as mentionned in the component's dependencies. So compilation failed. The compilation is ok when I try to launch maven at the component's level. So I think the problem could be that in the parent pom, cdk and components are in the same modules/modules tag. So How can I force the use of version 1.2 instead of module classes ? Any body can help me ? Do you already use Maven 2.0.5 ? - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restricting maven build from accessing central repo
Hi, Is there a way by which we can stop maven from accessing the central repository - http://repo1.maven.org/maven2/org/apache/maven/plugins/ to download plugins I require my build to refer to another repo and not the central repo. Please help Regards, Brinnel Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: best maven2 eclipse integration?
Phillip Rhodes wrote: I am using the the m2 eclipse plugin and while it works (and I appreciate it very much), I just can't stand the several minute long build cycles and looking for something that will speed up my development. Can anyone recommend something for me besides the http://m2eclipse.codehaus.org/ ? Phillip, I wouldn't recommend anything else, sorry. When are you triggering the build cycle and which part is taking so long? Are you running on an old machine? Perhaps you should try running offline. Generally speaking I don't see the plugin launching any more than about a build a day, generally when I launch eclipse or do a 'project clean'. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restricting maven build from accessing central repo
On 3/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a way by which we can stop maven from accessing the central repository - http://repo1.maven.org/maven2/org/apache/maven/plugins/ to download plugins Configure a mirror: http://maven.apache.org/guides/mini/guide-mirror-settings.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restricting maven build from accessing central repo
Hi Brinnel, You could define a repository in your settings.xml with id central, I believe this overrides the built-in definition that takes you to repo1.maven.org Regards, Marcel - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: users@maven.apache.org Sent: Monday, March 19, 2007 11:30:19 AM Subject: Restricting maven build from accessing central repo Restricting maven build from accessing central repo Hi, Is there a way by which we can stop maven from accessing the central repository - http://repo1.maven.org/maven2/org/apache/maven/plugins/ to download plugins I require my build to refer to another repo and not the central repo. Please help Regards, Brinnel Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097
Assembly with 'system' dependency
Hi. I try to create an executable jar that contains all the project's dependencies using the assembly plugin. Some of my dependencies are custom 'system' dependencies. Here is an example from my pom: dependency groupIdadm-commons/groupId artifactIdadm-commons/artifactId version1.0.1/version scopesystem/scope systemPath${basedir}/lib/Common.jar/systemPath /dependency The problem I experience with the assembly plugin is that it does not include such dependencies. Does anyone know if there is a workaround?
create an assembly only for a release
Does anyone know of a good way to have a particular assembly generated and deployed iff I'm cutting a release? It'd be nice if I could get it to happen automatically (without having to specify a profile or something). Greg Kick [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly id parameter
You need to declare an execution: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html (See Normal Assemblies). HTH, Stéphane On 3/18/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote: how can I deploy the assembly? I'm using a multimodule project so the only thing that gets deployed is the pom. Jean-Luc Stephane Nicoll wrote: final name is not honored when deploying anyway. I don't think you can customize this, the classifier (e.g. assembly Id) is always a suffix of the main artifact. HTH, Stéphane On 3/18/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote: Hi, I'm trying to customize the of the assembled distribution file. I would like to set the parameter finalName using the assembly id (I don't want it appended, I want it somewhere in the middle). Is there a parameter I could use? Jean-Luc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File name according to groupId, artifactId and a version.
Hi, Given a groupId, artifactId and a version, how can I know the final name of the file? For example, groupIdorg.apache.maven/groupId artifactIdmaven-core/artifactId version2.0.4/version The file will be maven-core-2.0.4.jar But the packaging can be not only jar, but war, ear... Is there an API from within Maven to get this file name? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File name according to groupId, artifactId and a version.
I believe that ${finalName} will give you the exact name of the output-file... Although you can normally combine the artifactId with version and packaging to get the name of the output. On Monday 19 March 2007 14:56, Rahamim, Zvi (Zvi) wrote: Hi, Given a groupId, artifactId and a version, how can I know the final name of the file? For example, groupIdorg.apache.maven/groupId artifactIdmaven-core/artifactId version2.0.4/version The file will be maven-core-2.0.4.jar But the packaging can be not only jar, but war, ear... Is there an API from within Maven to get this file name? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot set user roles on latest snapshot build..
Hy, I'd like to ugrade my archiva server with latests snapshot build. When installing it on my local tomcat server, I can't setup user roles. I allways get error : Cannot use AssignmentsAction for RBAC Edit User with an empty principal. Is there something I've missed ? Nico.
RE: File name according to groupId, artifactId and a version.
There isn't one exposed inside maven itself, however there is one in the dependency plugin to do it though (you can just copy the code): http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/utils/DependencyUtil.java?view=markup -Original Message- From: Roland Asmann [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:59 AM To: Maven Users List Subject: Re: File name according to groupId, artifactId and a version. I believe that ${finalName} will give you the exact name of the output-file... Although you can normally combine the artifactId with version and packaging to get the name of the output. On Monday 19 March 2007 14:56, Rahamim, Zvi (Zvi) wrote: Hi, Given a groupId, artifactId and a version, how can I know the final name of the file? For example, groupIdorg.apache.maven/groupId artifactIdmaven-core/artifactId version2.0.4/version The file will be maven-core-2.0.4.jar But the packaging can be not only jar, but war, ear... Is there an API from within Maven to get this file name? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing new plugins
Try specifying the full name on the command line ie: mvn -X org.codehaus.mojo:minijar-maven-plugin:ueberjar Wayne On 3/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I turned stacktraces on and it seems that maven looks for the wrong plugin: [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-minijar-plugin:pom:LATEST Instead of minijar-maven-plugin it looks for maven-minijar-plugin. There must be something I'm doing wrong ... -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 1:30 AM To: Maven Users List Subject: Re: Installing new plugins As far as I can see, you've misspelled ueberjar: http://mojo.codehaus.org/minijar-maven-plugin/plugin-info.html But I don't use this plugin myself, so I'm not entirely positive this is the problem. Run mvn -X for more error details. Wayne On 3/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I wish to work with a plugin from codehaus. I added the required repository and pluginRepository to my pom as stated in the codehaus site. Still when I try to run it I get a plugin does not exist or no valid version could be found. The plugin I tried to use is minijar and I tried both the following commands to make it work: mvn minijar-maven-plugin:uberjar mvn minijar:uberjar Is there anything else one should do in order to install a new plugin? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven without an intyernet connection
If you can run maven on an internet connected computer first to download all the dependencies then you could just copy the ~/.m2/ repository/ directory to the computer without the internet and run maven in offline mode (mvn -o) Andy On 19 Mar 2007, at 07:17, Ivan Biddles wrote: Hi, I am integrating several open source projects into an application and some of these projects are built with Maven, which I have not used to date. I have read the FAQs etc. but I could not find a mention of being able to do a Maven build on a machine that is not directly connected to the Internet or whether such a connection is a prerequisite. My situation is that my development machine is not connected but I do need to be able to build some of these projects. Is there some way that Maven supports this disconnected build? Thanks. Best wishes, Ivan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly with 'system' dependency
Don't use system dependencies. Install/deploy the artifacts into your local repo/corporate repo and change the dependency scope. Wayne On 3/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I try to create an executable jar that contains all the project's dependencies using the assembly plugin. Some of my dependencies are custom 'system' dependencies. Here is an example from my pom: dependency groupIdadm-commons/groupId artifactIdadm-commons/artifactId version1.0.1/version scopesystem/scope systemPath${basedir}/lib/Common.jar/systemPath /dependency The problem I experience with the assembly plugin is that it does not include such dependencies. Does anyone know if there is a workaround? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot set user roles on latest snapshot build..
I don't know if you've missed something, but it works fine for me. Emmanuel nicolas de loof a écrit : Hy, I'd like to ugrade my archiva server with latests snapshot build. When installing it on my local tomcat server, I can't setup user roles. I allways get error : Cannot use AssignmentsAction for RBAC Edit User with an empty principal. Is there something I've missed ? Nico.
Re: Using Maven without an intyernet connection
If your development machine is not connected to the internet, but IS connected to an internal network that has other systems connected to the internet, you could use one of the maven proxies/managers such as Archiva on one of those connected machines. On 3/19/07, Andrew Williams [EMAIL PROTECTED] wrote: If you can run maven on an internet connected computer first to download all the dependencies then you could just copy the ~/.m2/ repository/ directory to the computer without the internet and run maven in offline mode (mvn -o) Andy On 19 Mar 2007, at 07:17, Ivan Biddles wrote: Hi, I am integrating several open source projects into an application and some of these projects are built with Maven, which I have not used to date. I have read the FAQs etc. but I could not find a mention of being able to do a Maven build on a machine that is not directly connected to the Internet or whether such a connection is a prerequisite. My situation is that my development machine is not connected but I do need to be able to build some of these projects. Is there some way that Maven supports this disconnected build? Thanks. Best wishes, Ivan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cannot set user roles on latest snapshot build..
I really don't understand what's happening : cannot change roles form any existing user (admin/guest). I can create a new one and set it's roles, but can change them anymore after that... Will try to rebuild archiva... 2007/3/19, Emmanuel Venisse [EMAIL PROTECTED]: I don't know if you've missed something, but it works fine for me. Emmanuel nicolas de loof a écrit : Hy, I'd like to ugrade my archiva server with latests snapshot build. When installing it on my local tomcat server, I can't setup user roles. I allways get error : Cannot use AssignmentsAction for RBAC Edit User with an empty principal. Is there something I've missed ? Nico.
Re: ejb3 on Linux
2007/3/19, Vidya Mahavadi [EMAIL PROTECTED]: Hi, I have posted this question earlier, but I am still struggling to find a solution. Any one who has come across the problem or have a work around can help me. I have a ejb3 application and I am generating a jar file which I am deploying it on JBoss. All the dependency injections work properly on Jboss running on Windows machine, but fail on Jboss running on Linux. I think it is because maven puts jboss.xml and persistence.xml in a meta-inf This seems like a reasonable guess, as in linux boxes file(directory) names are case-sensitive. Maybe a solution is to generate your jboss.xml and persistence.xml and keep them in the resource/META-INF directory, and so they will be picked up when building the jar. I am not sure if this approach will help, or maybe I have misunderstood the question, for what I appologize myself. HTH (lower case) folder. Has anyone come across this problem earlier.. Any help is appriciated. Regards This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html -- Regards, Petar! Karlovo, Bulgaria. Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
Re: cannot set user roles on latest snapshot build..
On 3/19/07, nicolas de loof [EMAIL PROTECTED] wrote: I really don't understand what's happening : cannot change roles form any existing user (admin/guest). I can create a new one and set it's roles, but can change them anymore after that... Will try to rebuild archiva... Are you using an old user database, or starting over and creating the admin user, etc. ? -- Wendy
Re: ejb3 on Linux
In the project set up I have those two xml files in META-INF folder(upper case). But when maven generates the jar file it puts them in a lower case folder. :( Petar Tahchiev [EMAIL PROTECTED] 19/03/2007 16:43 Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: ejb3 on Linux 2007/3/19, Vidya Mahavadi [EMAIL PROTECTED]: Hi, I have posted this question earlier, but I am still struggling to find a solution. Any one who has come across the problem or have a work around can help me. I have a ejb3 application and I am generating a jar file which I am deploying it on JBoss. All the dependency injections work properly on Jboss running on Windows machine, but fail on Jboss running on Linux. I think it is because maven puts jboss.xml and persistence.xml in a meta-inf This seems like a reasonable guess, as in linux boxes file(directory) names are case-sensitive. Maybe a solution is to generate your jboss.xml and persistence.xml and keep them in the resource/META-INF directory, and so they will be picked up when building the jar. I am not sure if this approach will help, or maybe I have misunderstood the question, for what I appologize myself. HTH (lower case) folder. Has anyone come across this problem earlier.. Any help is appriciated. Regards This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html -- Regards, Petar! Karlovo, Bulgaria. Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html
Re: ejb3 on Linux
2007/3/19, Vidya Mahavadi [EMAIL PROTECTED]: In the project set up I have those two xml files in META-INF folder(upper case). But when maven generates the jar file it puts them in a lower case folder. :( Petar Tahchiev [EMAIL PROTECTED] 19/03/2007 16:43 Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: ejb3 on Linux 2007/3/19, Vidya Mahavadi [EMAIL PROTECTED] : Hi, I have posted this question earlier, but I am still struggling to find a solution. Any one who has come across the problem or have a work around can help me. I have a ejb3 application and I am generating a jar file which I am deploying it on JBoss. All the dependency injections work properly on Jboss running on Windows machine, but fail on Jboss running on Linux. I think it is because maven puts jboss.xml and persistence.xml in a meta-inf This seems like a reasonable guess, as in linux boxes file(directory) names are case-sensitive. Maybe a solution is to generate your jboss.xml and persistence.xml and keep them in the resource/META-INF directory, and so they will be picked up when building the jar. I am not sure if this approach will help, or maybe I have misunderstood the question, for what I appologize myself. HTH (lower case) folder. Has anyone come across this problem earlier.. Any help is appriciated. Regards This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html -- Regards, Petar! Karlovo, Bulgaria. Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 This e-mail is subject to a disclaimer, available at http://www.rmb.co.za/web/elements.nsf/online/disclaimer-communications.html Sounds like a bug to me. I don't know which version of maven you use, but maybe you should try to download the latest one and if the problem still appears, then you may open an issue in the JIRA. -- Regards, Petar! Karlovo, Bulgaria. Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
Re: Error with JPOX when trying to build on Windows XP
On 3/18/07, Olivier Dehon [EMAIL PROTECTED] wrote: I am trying to build continuum from a checkout from the trunk on WinXP. I am getting this error from the JPOX Enhancer tool (in the continuum-model project): ... Indeed, even though the tool completed with success, the exit status is 1. I am using Maven 2.0.5, and JDK 1.6 Does it build with JDK 1.5? I see there's an issue open for problems building Continuum on JDK 1.6, this might be related. http://jira.codehaus.org/browse/CONTINUUM-1094 -- Wendy
Re: Using Maven without an intyernet connection
What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the whole thing? On Mon, 2007-03-19 at 14:26 +, Andrew Williams wrote: If you can run maven on an internet connected computer first to download all the dependencies then you could just copy the ~/.m2/ repository/ directory to the computer without the internet and run maven in offline mode (mvn -o) Andy On 19 Mar 2007, at 07:17, Ivan Biddles wrote: Hi, I am integrating several open source projects into an application and some of these projects are built with Maven, which I have not used to date. I have read the FAQs etc. but I could not find a mention of being able to do a Maven build on a machine that is not directly connected to the Internet or whether such a connection is a prerequisite. My situation is that my development machine is not connected but I do need to be able to build some of these projects. Is there some way that Maven supports this disconnected build? Thanks. Best wishes, Ivan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven without an intyernet connection
On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the whole thing? See 'Creating your own mirror' at the bottom of this page: http://maven.apache.org/guides/mini/guide-mirror-settings.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven without an intyernet connection
Quite a while back (possilby 2 years ago) I did that using wget. Be advised you're probably going to need several gig of disk space for it. On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the whole thing? On Mon, 2007-03-19 at 14:26 +, Andrew Williams wrote: If you can run maven on an internet connected computer first to download all the dependencies then you could just copy the ~/.m2/ repository/ directory to the computer without the internet and run maven in offline mode (mvn -o) Andy On 19 Mar 2007, at 07:17, Ivan Biddles wrote: Hi, I am integrating several open source projects into an application and some of these projects are built with Maven, which I have not used to date. I have read the FAQs etc. but I could not find a mention of being able to do a Maven build on a machine that is not directly connected to the Internet or whether such a connection is a prerequisite. My situation is that my development machine is not connected but I do need to be able to build some of these projects. Is there some way that Maven supports this disconnected build? Thanks. Best wishes, Ivan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven without an intyernet connection
Yep - rsync will definitely work better than wget. On 3/19/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the whole thing? See 'Creating your own mirror' at the bottom of this page: http://maven.apache.org/guides/mini/guide-mirror-settings.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven without an intyernet connection
Yes, do not wget the repository: http://maven.apache.org/community.html under Being a Good Maven Citizen Eric On 3/19/07, Thierry Lach [EMAIL PROTECTED] wrote: Yep - rsync will definitely work better than wget. On 3/19/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the whole thing? See 'Creating your own mirror' at the bottom of this page: http://maven.apache.org/guides/mini/guide-mirror-settings.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: Assembly id parameter
Stephane Nicoll wrote: You need to declare an execution: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html (See Normal Assemblies). Thanks! (how could I have missed this one???) Jean-Luc HTH, Stéphane On 3/18/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote: how can I deploy the assembly? I'm using a multimodule project so the only thing that gets deployed is the pom. Jean-Luc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Handling special characters in localized site report
Hi Maven experts, I'm trying to create a localized version of the site according to the mini guide http://maven.apache.org/guides/mini/guide-site.html. mvn site works as expected with one issue I don't know how to solve: The generated site's menu on the left containing the reports looks as Projekt Dokumentation * Projekt Information o Abhängigkeiten -- ä instead of German umlaut ä o Continuous Integration o Mailinglisten o Problembehandlung o Project Summary o Projekt Lizenz o Projekt Team o Quellcode Archiv o Willkommen bei However, my own text that contains umlauts is shown correctly. It seems that all the localized texts created automatically by Maven are displayed incorrectly on the site although each of the HTML pages contains the following entry in the HTML header section: meta http-equiv=Content-Type content=text/html; charset=UTF-8 / I searched in the mailing list and the FAQ on http://docs.codehaus.org/display/MAVENUSER/Home, but didn't really found a solution. My pom.xml: ?xml version=1.0 encoding=UTF-8? 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 groupIdde.ukv/groupId artifactIdmaven/artifactId version1.1-SNAPSHOT/version nameVoreinstellungen für Maven-basierte Projekte/name descriptionAllgemeine Voreinstellungen für Maven-basierte Projekte/description (...) build pluginManagement plugins (...) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration localesde/locales outputEncodingUTF-8/outputEncoding /configuration /plugin /plugins /pluginManagement /build profiles !-- Standardprofil -- profile iddefault/id activation activeByDefaulttrue/activeByDefault /activation build plugins (...) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration localesde/locales outputEncodingUTF-8/outputEncoding /configuration /plugin /plugins /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactId maven-project-info-reports-plugin /artifactId version2.0.1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactId maven-surefire-report-plugin /artifactId version2.3/version /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId version2.0/version configuration tags tagTODO/tag tag@todo/tag tagFIXME/tag tag@deprecated,/tag tagHACK/tag tagXXX/tag /tags /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.1/version /plugin /plugins /reporting /profile /profiles dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.2/version scopetest/scope /dependency /dependencies /project ...and my site_de.xml: ?xml version=1.0 encoding=UTF-8? 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/maven-navigation-1.0.xsd; name=Voreinstellungen für Maven skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-default-skin/artifactId version1.0/version /skin bannerLeft nameMaven/name srchttp://maven.apache.org/images/apache-maven-project.png/src hrefhttp://maven.apache.org//href altMaven Logo/alt /bannerLeft bannerRight srchttp://maven.apache.org/images/maven-small.gif/src nameMaven Banner (klein)/name /bannerRight publishDate format=dd.MM. position=right / body links item name=Apache href=http://www.apache.org/; / item name=Jakarta href=http://jakarta.apache.org/; / item name=Maven 2 href=http://maven.apache.org/maven2/; / /links menu ref=reports / /body /project What am I doing wrong? I also added -Dfile.encoding=UTF-8 to MAVEN_OPTS,
RE: File name according to groupId, artifactId and a version.
Thanks! -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 4:15 PM To: Maven Users List Subject: RE: File name according to groupId, artifactId and a version. There isn't one exposed inside maven itself, however there is one in the dependency plugin to do it though (you can just copy the code): http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/utils/DependencyUtil.java?view=markup -Original Message- From: Roland Asmann [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 9:59 AM To: Maven Users List Subject: Re: File name according to groupId, artifactId and a version. I believe that ${finalName} will give you the exact name of the output-file... Although you can normally combine the artifactId with version and packaging to get the name of the output. On Monday 19 March 2007 14:56, Rahamim, Zvi (Zvi) wrote: Hi, Given a groupId, artifactId and a version, how can I know the final name of the file? For example, groupIdorg.apache.maven/groupId artifactIdmaven-core/artifactId version2.0.4/version The file will be maven-core-2.0.4.jar But the packaging can be not only jar, but war, ear... Is there an API from within Maven to get this file name? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to upload a pom.xml into an internal repository?
Hi I'm using 'jdom 1.0'. But I've the problem that this pom which comes from the remote repository contains false dependencies. Therefore I will include the corrected jdom pom.xml into our company wide internal repository. - Does it suffice to insert just the pom (without any artifacts) into the internal repository? Because the artifacts are already available in the remote repository. - How can I insert a pom.xml into the internal repository? Thanks .cla -- Treffen Sie uns an der Jazoon'07: 24. - 28. Juni - http://jazoon.com Cla Emanuel Monsch | [EMAIL PROTECTED] Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to upload a pom.xml into an internal repository?
On 3/19/07, Cla Emanuel Monsch [EMAIL PROTECTED] wrote: I'm using 'jdom 1.0'. But I've the problem that this pom which comes from the remote repository contains false dependencies. Therefore I will include the corrected jdom pom.xml into our company wide internal repository. - Does it suffice to insert just the pom (without any artifacts) into the internal repository? Because the artifacts are already available in the remote repository. Probably not, since you don't have control of what order Maven searches repositories. Are developers able to contact both your internal repo *and* central? If instead you are proxying central, then you have the chance to correct problems like this. In general it's not a good idea for there to be different files with the same groupId/artifactId/version number. You might want to deploy it with a different version number, such as 1.0-[mycompany]. - How can I insert a pom.xml into the internal repository? What are you using to serve your internal repository? mvn deploy:deploy-file should work. I find that using both -Dfile= and -DpomFile is easiest, though it does deploy the file twice. The alternative is specifying -DgroupId, -DartifactId, etc., etc., which is more error prone. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validate Phase Plugins?
Hi, Does anyone know how I can find out which maven plugins are run during the validate phase for jar packaged artifacts? I created a mojo, gave it a new lifecycle, and somehow turned of pom parameter injection, so I'm trying to find the lifecycle phase and plugin that handles this. Thanks, - Ole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto run a command at the begining of a
Hi, My project's version is defined as: version${env.SVNVERSION}-SNAPSHOT/version where the SVNVERSION environment variable is set before hand by a shell script. How can I embed the script inside maven's build lifecycle? (it should run before anything else) Right now the shell script is called by the mvn script before the JVM invocation but I'd rather make it an Ant task or even write a plugin just for that. Jean-Luc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archiva fails when tomcat is installed under path with blanks
PLXCOMP-65 created for this. Using the URL constructor solves this issue. That beeing said, archiva uses lot's of SNAPSHOT dependencies. Can we expect a stable version some day or do you consider Archiva as a Web2.0-styleallways in beta application ? Archiva 1.0 will have to wait so much sub-project to get GA release... Nico. 2007/3/19, nicolas de loof [EMAIL PROTECTED]: The exception comes from the DefaultPlexusContainer that is built with a File as argument. This class has an alternative constructor that uses URL. This may solve this issue. I'll try this and report any succes... 2007/3/19, nicolas de loof [EMAIL PROTECTED]: Archiva works on my local computer, but fails on the target (windows) server. The only difference is that the target Tomcat 5.5.17 server is installed under D:\Apache Software Foundation\Tomcat 5.5 When starting archiva, I get this exception : 2007-03-19 19:20:39,243 [Main Thread] ERROR [/archiva] - Exception lors de l'envoi de l'ÚvÞnement contexte initialisÚ (context initialized) Ó l'instance de classe d'Úcoute (listener) org.codehaus.plexus.xwork.PlexusLifecycleListener java.lang.RuntimeException: org.codehaus.plexus.PlexusContainerException: Could not read file: D:\Apache%20Software%20Foundation\Tomcat%205.5 \webapps\archiva\WEB-INF\classes\META-INF\plexus\application.xml at org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized( PlexusLifecycleListener.java:105) Is this a plexus bug / limitation ? I don't have this limitation with some older archiva build (that uses plexus-xwork-1.0-alpha-2) Is there any workaround (I cannot change tomcat server path) ? Nico.
Re: site plugin fails
Seems like you're pointing to the snapshot repo for some of your artifacts. Remove that from your pom. Also, lock down your artifact versions using pluginManagement and dependencyManagement in parent poms with versions declared as version[1.2.3]/version. Wayne On 3/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! This morning I out of the blue the site plugin fails with this exception [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:site': Unable to find the mojo 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:site' in the plugin 'org.apache.maven.plugins:maven-site-plugin' org/apache/maven/doxia/module/xhtml/decoration/render/RenderingContext When I left work on Friday everything was working alright, and nobody has touched the system since. Apart from this specific failure, how can I prevent that from happening, e.g. freeze a working system? Tilman Rossmy MC-TO-CPT-POA-IMD Swisscom Mobile Waldeggstrasse 51 3097 Liebefeld BE Phone: +41795932871 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archiva fails when tomcat is installed under path with blanks
We have the hand of all snapshot and we release them when we want. So it isn't a problem. Emmanuel nicolas de loof a écrit : PLXCOMP-65 created for this. Using the URL constructor solves this issue. That beeing said, archiva uses lot's of SNAPSHOT dependencies. Can we expect a stable version some day or do you consider Archiva as a Web2.0-styleallways in beta application ? Archiva 1.0 will have to wait so much sub-project to get GA release... Nico. 2007/3/19, nicolas de loof [EMAIL PROTECTED]: The exception comes from the DefaultPlexusContainer that is built with a File as argument. This class has an alternative constructor that uses URL. This may solve this issue. I'll try this and report any succes... 2007/3/19, nicolas de loof [EMAIL PROTECTED]: Archiva works on my local computer, but fails on the target (windows) server. The only difference is that the target Tomcat 5.5.17 server is installed under D:\Apache Software Foundation\Tomcat 5.5 When starting archiva, I get this exception : 2007-03-19 19:20:39,243 [Main Thread] ERROR [/archiva] - Exception lors de l'envoi de l'ÚvÞnement contexte initialisÚ (context initialized) Ó l'instance de classe d'Úcoute (listener) org.codehaus.plexus.xwork.PlexusLifecycleListener java.lang.RuntimeException: org.codehaus.plexus.PlexusContainerException: Could not read file: D:\Apache%20Software%20Foundation\Tomcat%205.5 \webapps\archiva\WEB-INF\classes\META-INF\plexus\application.xml at org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized( PlexusLifecycleListener.java:105) Is this a plexus bug / limitation ? I don't have this limitation with some older archiva build (that uses plexus-xwork-1.0-alpha-2) Is there any workaround (I cannot change tomcat server path) ? Nico.
Howto run a command at the begining of a lifecycle?
-- repost since original post had incomplete subject Hi, My project's version is defined as: version${env.SVNVERSION}-SNAPSHOT/version where the SVNVERSION environment variable is set before hand by a shell script. How can I embed the script inside maven's build lifecycle? (it should run before anything else) Right now the shell script is called by the mvn script before the JVM invocation but I'd rather make it an Ant task or even write a plugin just for that. Jean-Luc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto run a command at the begining of a lifecycle?
On 3/19/07, Jean-Luc Wasmer [EMAIL PROTECTED] wrote: -- repost since original post had incomplete subject Hi, My project's version is defined as: version${env.SVNVERSION}-SNAPSHOT/version where the SVNVERSION environment variable is set before hand by a shell script. How can I embed the script inside maven's build lifecycle? (it should run before anything else) You can't. You have to understand that the pom is read before starting anything else (and variables are resolved/interpoloated at that point). I am not sure that customizing the version that way is a best practice anyway. HTH, Stéphane Right now the shell script is called by the mvn script before the JVM invocation but I'd rather make it an Ant task or even write a plugin just for that. Jean-Luc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build WAR without a web.xml
I need to be able to build WAR that does not include a web.xml. The use case for this is certain forms of Java EE 5 Web Services deployment. However, Maven2 gives me this error when I try: Error assembling WAR: Deployment descriptor: C:\soabook\code\book-code\chap08\nodescriptor-sibonly\endpoint\target\chap08-nodescriptor-sibonly-endpoint-1.0\WEB-INF\web.xml does not exist. Is there a way around this? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: project.properties property not being picked up
I did some further research and found that my variable wasn't in systemScope. Why would it be there locally on Eclipse but not the build machine. Is there something I need to do to enable that? I had to resort to something like this to see the variable, but that still presents me the problem of having to hardcode the environment in my maven.xml: goal name=echome echo${runtime.env}/echo echo${systemScope.setProperty(runtime.env,'TST')}/echo j:choose j:when test=${systemScope['runtime.env'] == 'TST'} echo${runtime.env} is found/echo /j:when j:when test=${runtime.env} == 'TST' echo${runtime.env} is not found/echo /j:when /j:choose /goal Please let me know if there is anyway for it to pickup my ${runtime.env} from my project.properties on the build server. Thanks, Lou lsacco wrote: I have a runtime.env variable in my project.properties that has the specific environment I want to use. Then in my maven.xml I use this variable in 'if' statements (note: I'm using Maven 1.0.2 so this is Jelly). For some reason this works fine in Eclipse, but when I run from CruiseControl this variable is not picked up and so my filtered @@ variables are not being changed. Does anyone know how I can remedy this? Thanks, Lou -- View this message in context: http://www.nabble.com/project.properties-property-not-being-picked-up-tf3417665s177.html#a9560347 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build WAR without a web.xml
Filed a long time ago in JIRA: http://jira.codehaus.org/browse/MWAR-53 Wayne On 3/19/07, Mark Hansen [EMAIL PROTECTED] wrote: I need to be able to build WAR that does not include a web.xml. The use case for this is certain forms of Java EE 5 Web Services deployment. However, Maven2 gives me this error when I try: Error assembling WAR: Deployment descriptor: C:\soabook\code\book-code\chap08\nodescriptor-sibonly\endpoint\target\chap08-nodescriptor-sibonly-endpoint-1.0\WEB-INF\web.xml does not exist. Is there a way around this? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom artifact type
Hello, I'm trying to create an installer artifact type, and then depend on the installer's dependencies in other projects. The transitive dependencies aren't being exposed in the dependent project. A concrete example of what's currently Not Working for me is this: I want to provide a jdbc-drivers-installer that declares it's dependencies on e.g., dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId versionx.y.z/version /dependency (as well as other JDBC drivers). I've been able to kludge up a buld lifecycle for packaginginstaller/packaging such that Maven produces a jdbc-drivers-1.0.0-SNAPSHOT-installer.tar.gz, which 1) bundles the declared dependencies and 2) adds an install.sh at the top level that when run will copy the bundled dependencies to the appropriate place on the appliance. This part I've got working, as I described here (http://www.nabble.com/Trying-to-%22reuse%22-the-maven-assembly-plugin-tf3416766s177.html). The part that doesn't work, the applications that are going to be installed on the appliance, such as webapps, depend (...) on the exact same set of JDBC drivers, and I want to express this dependency inside the webapp POM as follows: dependency groupIdnet.example/groupId artifactIdjdbc-drivers/artifactId classifierinstaller/classifier typetar.gz/type scopeprovided/scope /dependency (in other words, I want to manage the specific JDBC dependencies in the same place as builds the installer.tar.gz, and I want to get these on the compile classpath by depending to that installer artifact, through transitivity; Don't Repeat Yourself, as it were). Yeah. Not So Much. The dependency on the installer is honored by Maven (I can see the dependency when I build the dependent, using mvn -X), except it appears the artifact handler doesn't know what to do with it. Or, more accurately, the default artifact handler doesn't know that I expect the transitive dependencies to be added to the webapp's compile classpath. As a result, the dependent webapp build fails with compile errors on the import statements. I suspect I'll be having to write a custom artifact handler, but I'm wondering whether anybody here can offer recommendations how to go about it. Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using Maven without an internet connection
Dear All, I am very glad to hear that Maven has taken into account the disconnected build use case. Thank you all very much for your insights and all the good references too. This has certainly set me off in the right direction. Best wishes, Ivan -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 8:01 AM To: Maven Users List Subject: Re: Using Maven without an intyernet connection Yes, do not wget the repository: http://maven.apache.org/community.html under Being a Good Maven Citizen Eric On 3/19/07, Thierry Lach [EMAIL PROTECTED] wrote: Yep - rsync will definitely work better than wget. On 3/19/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the whole thing? See 'Creating your own mirror' at the bottom of this page: http://maven.apache.org/guides/mini/guide-mirror-settings.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Snapshot overload
Hello, My dev team has been using Maven2 full-time for about 2 months now, and we're starting to notice a problem that we hadn't really considered until now. I don't know a safe way to deal with it, but I'm getting very close to having to do something that might be unsafe. The issue is that snapshot builds of our half-million LOC in 30-some-odd modules ends up chewing up 80GB of space in the short time we've been using Maven. Developers are doing several snapshot builds each day, while several modules are under heavy development, and when we do a QA milestone build, we promote modules to release versions, and development toward the next milestone goes on a new version number (as well as on a new scm branch). I've not seen any instance where more than a few snapshot builds are actually needed to be maintained, but I'm concerned that deleting old snapshots will leave the repository metadata in a state that doesn't reflect the reality. Can anyone comment on this? Is it really safe to roll old snapshots off the disk, keeping just a few for the not-uncommon case of incompatible API change? Thanks, -- Tommy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven-Idea-Plugin - questions
[EMAIL PROTECTED] wrote: Hello... I am revamping our build environment with Maven. And am meeting with stiff resistance from the group, despite its obvious advantages. In that context: From: Dennis Lundberg [EMAIL PROTECTED] What is painful about it? We are dealing with the problem of 'hot deployment' - after the initial drop of the warfile into the (locally installed) instance of Tomcat, we'd like a way to incrementally deploy changes to class files as a part of our test-debug cycle. So we do this by having idea deposit the changed class files and class path resources onto WEB-INF/classes. Whenever the project has to be regenerated, they have to reconfigure the project again to map the classes that need to be hot-deployed. There is a feature request for this in JIRA: http://jira.codehaus.org/browse/MIDEA-76 All this is being added to the yet-another-way-maven-is-complicated argument that is being raised. The problem of hot deployment is a common one; could you pl advice on how it may be solved easily, even when the project has to be regenerated? Regards /U -- Original message -- From: Dennis Lundberg [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The Maben Idea Plugin works great - except when I have to add a new dependency to the project after I have regenerated the idea project. It appears that I must regenerate the idea project file everytime the dependencies change. Is this correct? This is very painful - I hope there is a way to incrementally update the previously generated idea project file when dependencies change - either manually or using the plugin. What is painful about it? You just run 'mvn idea:idea' once more and then you are done. Thanks, /U -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Handling special characters in localized site report
Thorsten Heit wrote: Hi Maven experts, I'm trying to create a localized version of the site according to the mini guide http://maven.apache.org/guides/mini/guide-site.html. mvn site works as expected with one issue I don't know how to solve: The generated site's menu on the left containing the reports looks as Projekt Dokumentation * Projekt Information o Abhängigkeiten -- ä instead of German umlaut ä o Continuous Integration o Mailinglisten o Problembehandlung o Project Summary o Projekt Lizenz o Projekt Team o Quellcode Archiv o Willkommen bei However, my own text that contains umlauts is shown correctly. It seems that all the localized texts created automatically by Maven are displayed incorrectly on the site although each of the HTML pages contains the following entry in the HTML header section: meta http-equiv=Content-Type content=text/html; charset=UTF-8 / I searched in the mailing list and the FAQ on http://docs.codehaus.org/display/MAVENUSER/Home, but didn't really found a solution. My pom.xml: ?xml version=1.0 encoding=UTF-8? 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 groupIdde.ukv/groupId artifactIdmaven/artifactId version1.1-SNAPSHOT/version nameVoreinstellungen für Maven-basierte Projekte/name descriptionAllgemeine Voreinstellungen für Maven-basierte Projekte/description (...) build pluginManagement plugins (...) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration localesde/locales outputEncodingUTF-8/outputEncoding /configuration /plugin /plugins /pluginManagement /build profiles !-- Standardprofil -- profile iddefault/id activation activeByDefaulttrue/activeByDefault /activation build plugins (...) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration localesde/locales outputEncodingUTF-8/outputEncoding /configuration /plugin /plugins /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactId maven-project-info-reports-plugin /artifactId version2.0.1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactId maven-surefire-report-plugin /artifactId version2.3/version /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId version2.0/version configuration tags tagTODO/tag tag@todo/tag tagFIXME/tag tag@deprecated,/tag tagHACK/tag tagXXX/tag /tags /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.1/version /plugin /plugins /reporting /profile /profiles dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.2/version scopetest/scope /dependency /dependencies /project ...and my site_de.xml: ?xml version=1.0 encoding=UTF-8? 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/maven-navigation-1.0.xsd; name=Voreinstellungen für Maven skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-default-skin/artifactId version1.0/version /skin bannerLeft nameMaven/name srchttp://maven.apache.org/images/apache-maven-project.png/src hrefhttp://maven.apache.org//href altMaven Logo/alt /bannerLeft bannerRight srchttp://maven.apache.org/images/maven-small.gif/src nameMaven Banner (klein)/name /bannerRight publishDate format=dd.MM. position=right / body links item name=Apache href=http://www.apache.org/; / item name=Jakarta href=http://jakarta.apache.org/; / item name=Maven 2 href=http://maven.apache.org/maven2/; / /links menu ref=reports / /body /project What am I doing wrong? I also added
RE: [M2] Repository Problem trying to override central and maintain local corporate repository
Hello, Wayne. I'm curious about the answer to Peter's original question, which was: How is Maven getting out to the wider world in spite of the fact that his network does not allow outbound http traffic and the settings.xml file does not define any proxies? thanks, --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 9:02 PM To: Maven Users List Subject: Re: [M2] Repository Problem trying to override central and maintain local corporate repository Use the new mirrorOf*/mirrorOf feature to declare that all repos are mirror'ed by your local override. Wayne On 3/14/07, Peter Anning [EMAIL PROTECTED] wrote: Hi, We need to override the Maven Central Repository and maintain a local network repository. This has worked fine, up until now, with a mirror setting in the maven settings.xml settings ... mirrors mirror idmirror-maven-central/id mirrorOfcentral/mirrorOf nameLocal Override for The Maven Central Repository/name urlfile:///\\AUBNVRAT03\repository\/url !-- Yes this works it's how you define a file based repo -- /mirror /mirrors ... /settings When building a project I noticed that mysteriously Maven was downloading jibx jars from http://jibx.sf.net/maven Despite the fact that our network does not allow outbound http traffic and the local settings.xml file not defining any proxies! On further investigation and debugging I found that the xfire-jibx-1.2.4.pom in my corporate repository defines a repository with an id of jibx.sf.net and the rouge url of http://jibx.sf.net/maven as a workaround I have created another mirror definition that overrides this repo id and points at my corporate repository. mirror idmirror-jibx.sf.net/id mirrorOfjibx.sf.net/mirrorOf nameLocal Override for Jibx/name urlfile:///\\AUBNVRAT03\repository\/url /mirror This stops it downloading from a remote source in this case. The questions are: How on earth Maven is picking up proxy settings from the underlying system is still a mystery. I certainly can't browse to this repository when I use a Browser with no proxy configured?! Surely this is not desired behaviour, how can I be sure that Maven won't go sucking jars off the Internet when I don't want it to? Peter Anning Sr Software Engineer Dialect Payment Technologies Pty Ltd [EMAIL PROTECTED] www.dialectpayments.com IMPORTANT NOTICE --- Confidentiality Note: The information contained in this email and any attachments is confidential and/or privileged. This email and any attachments are intended to be read only by the person named above. If the reader of this email and any attachments is not the intended recipient, or a representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and any attachments is prohibited. If you have received this email and any attachments in error, please notify the sender by email, telephone or fax and return it to the sender at the email address above. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven/eclipse project import problem
Ladies and Gentlemen Something is awry in my eclipse import and I am sure I have dome something dumb since I can find no one else with the same issue. Here is the order of events I take please let me know where I drove off the cliff created a clean temp directory Copied working POM into it executed mvn eclipse:eclipse opened eclipse executed import new project and selected above (non-child) directory It finishes without error Problem: Damn thing picks 1.5.0.11 JDK instead of j2ee install even though the j2ee is java_home. No JDK on path. Try deleting or adding new JDK or even tools.jar and after rebuild eclipse removes it from library reference. Another side effect is the project does not actually compile the code either. Copies my resources to the correct spot but that is it. PDE exception of errors during build This is all on winXP, eclipse 3.2 (BEA version), Maven 2.0.5. Same POM compiles just fine from command line Phill
Re: [M2] Repository Problem trying to override central and maintain local corporate repository
Impossible for me to say. Run mvn -X and ask your network guy to run some packet capture/analysis tools to help discover what exactly is going on in your network. ;-) Wayne On 3/19/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Hello, Wayne. I'm curious about the answer to Peter's original question, which was: How is Maven getting out to the wider world in spite of the fact that his network does not allow outbound http traffic and the settings.xml file does not define any proxies? thanks, --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 9:02 PM To: Maven Users List Subject: Re: [M2] Repository Problem trying to override central and maintain local corporate repository Use the new mirrorOf*/mirrorOf feature to declare that all repos are mirror'ed by your local override. Wayne On 3/14/07, Peter Anning [EMAIL PROTECTED] wrote: Hi, We need to override the Maven Central Repository and maintain a local network repository. This has worked fine, up until now, with a mirror setting in the maven settings.xml settings ... mirrors mirror idmirror-maven-central/id mirrorOfcentral/mirrorOf nameLocal Override for The Maven Central Repository/name urlfile:///\\AUBNVRAT03\repository\/url !-- Yes this works it's how you define a file based repo -- /mirror /mirrors ... /settings When building a project I noticed that mysteriously Maven was downloading jibx jars from http://jibx.sf.net/maven Despite the fact that our network does not allow outbound http traffic and the local settings.xml file not defining any proxies! On further investigation and debugging I found that the xfire-jibx-1.2.4.pom in my corporate repository defines a repository with an id of jibx.sf.net and the rouge url of http://jibx.sf.net/maven as a workaround I have created another mirror definition that overrides this repo id and points at my corporate repository. mirror idmirror-jibx.sf.net/id mirrorOfjibx.sf.net/mirrorOf nameLocal Override for Jibx/name urlfile:///\\AUBNVRAT03\repository\/url /mirror This stops it downloading from a remote source in this case. The questions are: How on earth Maven is picking up proxy settings from the underlying system is still a mystery. I certainly can't browse to this repository when I use a Browser with no proxy configured?! Surely this is not desired behaviour, how can I be sure that Maven won't go sucking jars off the Internet when I don't want it to? Peter Anning Sr Software Engineer Dialect Payment Technologies Pty Ltd [EMAIL PROTECTED] www.dialectpayments.com IMPORTANT NOTICE --- Confidentiality Note: The information contained in this email and any attachments is confidential and/or privileged. This email and any attachments are intended to be read only by the person named above. If the reader of this email and any attachments is not the intended recipient, or a representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and any attachments is prohibited. If you have received this email and any attachments in error, please notify the sender by email, telephone or fax and return it to the sender at the email address above. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error with JPOX when trying to build on Windows XP
Wendy Smoak wrote: Does it build with JDK 1.5? I see the same issue with JDK 1.5 I also tried to build the continuum-1.0.3, which uses earlier versions of JPOX, to no avail (fails with the exact same error, and after all required classes have been enhanced successfully). I see there's an issue open for problems building Continuum on JDK 1.6, this might be related. http://jira.codehaus.org/browse/CONTINUUM-1094 Thanks for pointing this out, but it is not related, I am afraid. -Olivier
what's up with maven/nabble
Get only timeouts. Any reason someone can share Phill Moran
Re: what's up with maven/nabble
works for me. If you continue to have problems, you probably need to contact nabble, or check with your own system administrators - the service is completely hosted by Nabble. On 20/03/07, Phill Moran [EMAIL PROTECTED] wrote: Get only timeouts. Any reason someone can share Phill Moran -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: what's up with maven/nabble
It was dead for many days. But as usual you complain and the problem goes away. Suddenly tonight no issues. Thanks for the response though -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: March 20, 2007 12:50 AM To: Maven Users List Subject: Re: what's up with maven/nabble works for me. If you continue to have problems, you probably need to contact nabble, or check with your own system administrators - the service is completely hosted by Nabble. On 20/03/07, Phill Moran [EMAIL PROTECTED] wrote: Get only timeouts. Any reason someone can share Phill Moran -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot remove project (due to notifier)
Hello! I am unable to remove a project because of a FK constraint in the DB on the notifiers. However, in the UI, it is not possible to remove the notifiers (that were from the POM). I tried commenting them out from the pom, but the old projects remain with their dependencies on the notifiers. Is there anyway I can get around this without having to poke around in the DB? Stack trace below: ognl.MethodFailedException: Method removeProject failed for object [EMAIL PROTECTED] [javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM PROJECTNOTIFIER WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of foreign key constraint 'PROJECT_NOTIRN_FK2' for key (184). The statement has been rolled back. javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM PROJECTNOTIFIER WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'PROJECTNOTIFIER' caused a violation of foreign key constraint 'PROJECT_NOTIRN_FK2' for key (183). The statement has been rolled back.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation(DeleteEntity.java:57) at org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.java:47) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) /-- Encapsulated exception \ javax.jdo.JDOUserException: One or more instances could not be deleted at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1438) at org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContainerStore.java:595) at org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.java:304) at org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:332) at org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2280) at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838) at org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4049) at org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1391) at org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1402) at org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:53) at org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:969) at org.apache.maven.continuum.store.JdoContinuumStore.removeProject(JdoContinuumStore.java:901) at org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:328) at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
Maven2 and JUnit4
Ok, I now that this is a so much frequent question, but I can't find a neat thread about this issue. I already have take a look at surefire plugin doc and JIRA without success. In surefire how tohttp://maven.apache.org/plugins/maven-surefire-plugin/howto.htmlyou can see this statement: Which providers are available is controlled simply by the inclusion of the appropriate dependencies (ie, junit:junit for JUnit, org.testng:testng 4.7+for TestNG). Since this is required to compile the test classes anyway, no additional configuration is required. JUnit 4 is configured in the following way: dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.2/version scopetest/scope /dependency But I catch some test failures when my tests except some exception: @Test(expected = IllegalStateException.class) public final void testSomethingBah() throws Exception { ... } So, how I can configure Maven/Surefire to correctly run JUnit 4 tests? Kind Regards, -- Marcos Silva Pereira recife - pe [EMAIL PROTECTED] skype: marcos.silva.pereira http://blastemica.blogspot.com