Re: Building WAR files with/without EAR context
Hi, you don't usually depend on EJBs in your WARs. You should depend on ejb- client. IIRC you'll have to explicitely configure your EJB project to create an ejb-client artifact. I just tried that though, and the ejb-client JAR is still kept inside the WAR. Are you planning to deploy your WAR files also in a servlet container? Because if not, you could mark the ejb/ejb-client dependency as provided. That's how we solved that. Stefan - On Thursday 17 November 2016 15:07:31 Stefan Seidel wrote: > On 17 Nov 2016, Clemens von Musil wrote: > > We pushed a very minimal example project to a public github repo located > > here: > > > > https://github.com/kr1schan/mavenToy > > > > The project consists of an ear, two war modules, one ejb module and one > > plain jar artifact. > > Both war modules depend on the ejbmodule as well as on the jar artifact. > > SkinnyWar is enabled and configured in all conscience. > > > > After 'mvn clean package', the resulting ear shows correct handling of the > > jar dependency. > > The ejb dependency remains in both war files. > > Good to have a minimal example showing the problem! I confirm that I can > reproduce the buggy (?) behavior. > > Unfortunately I can reproduce it and can't see the error when looking > into it for 5 minutes. Don't have time for a close look right now, sorry. > > - martin
Re: Corrupt surefire booter?
Hi, Caused by: java.util.zip.ZipException: error reading zip file this is most likely because of a corrupt filesystem, or (more common) because another process updated the jar file at the same time. So for example, if you have two maven processes starting at the same time, and deciding it is time to re-download the jar, this can happen if they access the same .m2/repository. Stefan - On Tuesday 02 February 2016 14:28:17 Stefan Seidel wrote: > Hello Apache Maven community, > > In a Maven 3.3.3 and surefire 2.19 build I got this build failure on a CI > server: > > error 02-Feb-2016 01:20:27java.lang.NoClassDefFoundError: > org/apache/maven/surefire/report/LegacyPojoStackTraceWriter > error 02-Feb-2016 01:20:27at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:133) > error 02-Feb-2016 01:20:27Caused by: > java.lang.ClassNotFoundException: > org.apache.maven.surefire.report.LegacyPojoStackTraceWriter > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:370) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:362) > error 02-Feb-2016 01:20:27at > java.security.AccessController.doPrivileged(Native Method) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.findClass(URLClassLoader.java:361) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) > error 02-Feb-2016 01:20:27at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) > error 02-Feb-2016 01:20:27... 1 more > error 02-Feb-2016 01:20:27Caused by: java.util.zip.ZipException: > error reading zip file > error 02-Feb-2016 01:20:27at java.util.zip.ZipFile.read(Native > Method) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile.access$1400(ZipFile.java:61) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:420) > error 02-Feb-2016 01:20:27at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > error 02-Feb-2016 01:20:27at sun.misc.Resource.getBytes(Resource.java:124) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.defineClass(URLClassLoader.java:462) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.access$100(URLClassLoader.java:73) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:368) > error 02-Feb-2016 01:20:27... 7 more > error 02-Feb-2016 01:20:27Exception in thread "main" > java.lang.NoClassDefFoundError: > org/apache/maven/surefire/booter/ForkedBooter$5 > error 02-Feb-2016 01:20:27at > org.apache.maven.surefire.booter.ForkedBooter.exit(ForkedBooter.java:217) > error 02-Feb-2016 01:20:27at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:150) > error 02-Feb-2016 01:20:27Caused by: > java.lang.ClassNotFoundException: > org.apache.maven.surefire.booter.ForkedBooter$5 > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:370) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:362) > error 02-Feb-2016 01:20:27at > java.security.AccessController.doPrivileged(Native Method) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.findClass(URLClassLoader.java:361) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) > error 02-Feb-2016 01:20:27at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) > error 02-Feb-2016 01:20:27... 2 more > error 02-Feb-2016 01:20:27Caused by: java.util.zip.ZipException: > error reading zip file > error 02-Feb-2016 01:20:27at java.util.zip.ZipFile.read(Native > Method) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile.access$1400(ZipFile.java:61) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:420) > error 02-Feb-2016 01:20:27at > java.util.zip.InflaterInputStre
Re: How to arrange dependency management for maven reactor if child modules are versioned independently?
Hi, So the release of submodule because of this reason is nothing significant from the point of view of the whole platform and all the internal dependencies should continue with the highest snapshot versions with as small effort as possible. I hope this does makes sense. If I understand this correctly, wouldn't using version ranges solve this? We also update micro-projects often and so we use limites version ranges within major releases, so version[2,3)/version will resolve to the latest snapshot or release of the dependency unless it had received a major upgrade from, say, 2.8 to 3.0 or even 3.0-SNAPSHOT. Regards, Stefan František http://calavera.info Původní zpráva Od: Ron Wheeler Odesláno: středa, 1. července 2015 17:14 Komu: users@maven.apache.org Odpovědět: Maven Users List Předmět: Re: How to arrange dependency management for maven reactor if child modules are versioned independently? What is the relationship between the independent modules? If a child module gets a new version, should that trigger a change for other modules that depend on it? It seems to me from your description, that you do care when a child module releases a new version. If this should trigger a change in the dependant modules, then it seems reasonable that the parent pom should change to make this explicit. I would take a few seconds to think about how you want SNAPSHOTs to be handled. If A depends on B and B goes from 1.2.3 to 1.2.4-SNAPSHOT, do you want A to start to depend on the SNAPSHOT immediately or to continue to use 1.2.3 until 1.2.4 is released? You may need to separate the dependency versions from the artifact version if you want to keep A depending on the released version of B. properties B.build.version1.2.4-SNAPSHOT/B.build.version !-- version of B that will be built -- B.current.release.version1.2.3/B.current.release.version !--version of B used to build A -- /properties This will also allow the developer of B to test the impact on module A by setting B.current.release.version to 1.2.4-SNAPSHOT to build and test A prior to releasing B. Ron On 01/07/2015 6:35 AM, František Řezáč wrote: Hi, I have asked a question on stackoverflow about what I thought should be a relatively common scenario but I didn't get an answer even though I put a bounty on it and published it through my social networks to wide audience. Since it's still unanswered after a long time, I'm sending it here as a last hope for solution or expert insight. http://stackoverflow.com/questions/30253133/how-to-arrange-dependency-mana gement-for-maven-reactor-if-child-modules-are-vers We have a reactor pom whose child modules are versioned independently, ie. child module declares it's own version that is independent of the version of the main pom. There is however a dependency between two child modules. How should be this dependency configured to always use the version that is declared by the actual module of the reactor pom? I would expect that I can set up dependency management in the root pom and use some implicit properties to determine the version of child modules, but the best such option I can find : ${session.projectDependencyGraph.sortedProjects[0].version} or simply ${reactorProjects[0].version} looks unreliable because the reactor order may change when new modules or dependencies are added. Maybe this usage scenario is discouraged by design and then I would like to know why. As is suggested in comments in original stackoverflow post, declaring a global properties with child versions in parent POM may be an option for newer versions of Maven. I would however like to see some analysis with respect to wider consequences like workflow, releasing, directory and repository settings, some plugins usage (e.g. version plugin) etc. For example I think that direct consequence of this approach is that I would have to release parent module whenever any of child modules are released. Although this is doable, it would impact the original idea of having an independent versioning. -- Stefan Seidel Projektleiter IT ___ vub | Wissen mit System | Chopinstraße 4, 04103 Leipzig tel.+49 341 99 99 00 15 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 | Dr.C.Preuss-Neudorf
Re: Multi-Module and differing artifactId
On Thu, 18 Aug 2011 14:00:26 -0500 Wayne Fay wayne...@gmail.com wrote: I guess this has been asked before, but is there any way to gracefully handle situations in a multi-level modular project where the artifactId does not always correspond to the folder name of the module? Maven operates under certain conventions. This is not the convention, thus it is not well supported. parent with /childWithOtherName appended, and there is no way I can force it to use /childB, unless I specify the whole path, which is tedious with large projects. This is the not well supported aspect. I'm not even sure how good of an idea this is. Why can't you just change the artifactId or the module name?? Well, I'll resort to this, but it is quite cumbersome. On artifact level, groupId+artifactId is a unique id, but effectively, only artifactId needs to be unique (resulting filenames are only constructed from the artifactId). So I could have +/ = org.test:parent +/ejb= org.test.parent:ejb +/ejb/common = org.test.parent.ejb:common-ejbs +/war= org.test.parent:war +/war/common = org.test.parent.war:common-wars but I really am forced to use the unique artifactId in the directory as well: +/= org.test:parent +/ejb = org.test.parent:ejb +/ejb/common-ejbs = org.test.parent.ejb:common-ejbs +/war = org.test.parent:war +/war/common-wars = org.test.parent.war:common-wars This is just duplicate information and strange, but that's like it with conventions... Thanks for your comments, Stefan Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- best regards, Stefan Seidel Software developer VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Multi-Module and differing artifactId
Hi, I guess this has been asked before, but is there any way to gracefully handle situations in a multi-level modular project where the artifactId does not always correspond to the folder name of the module? It's especially about the scm url and connection. So my folder structure is like this: +/ = org.test:parent ++/childA = org.test.parent:childA ++/childB = org.test.parent:childWithOtherName Now the scm url for childWithOtherName will always be the one from the parent with /childWithOtherName appended, and there is no way I can force it to use /childB, unless I specify the whole path, which is tedious with large projects. I even tried to use ${project.parent.scm.connection}, which evaluates fine with help:evaluate, but will not expand when used in the scm connection. Any help? Stefan -- best regards, Stefan Seidel Software developer VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Limiting dependency resolution depth
Hi Mate, you can, as a workaround, download the pom.xml of your dependency and copy those dependencies into your own pom.xml (or another one which only contains those). Then change/add the scope of all those dependencies to provided, which should effectively disable deeper dependency resolution. Stefan On Fri, 10 Dec 2010 12:56:49 + Mate Varga mate.va...@gmail.com wrote: Hello Tamas, 1) Sources are checked out from SVN to the local drive. 2) Yes, missing dependencies. The problems stem from things like missing maven-metadata files in the public repos. (I've checked that, the repo maintainers do know about the inconsistencies, but they refuse to fix it.) 3) I've done all of that, and I've manually checked the online repos -- the dependency chain is broken, -U, :purge-local-repository does not help, and my network connection is all right. I could go and fetch all the required jars/wars/etc. manually and deploy them into my internal repo, but I want to avoid that if it's possible. Udv, Mate 2010/12/10 Tamás Cservenák ta...@cservenak.net: Hi, Okay, but to be able to help, we need more: 1) where are the sources you try to build? (especially POM) 2) what is the failure? dependency resolution fails as missing a dependency or what? 3) check for network failures on your side, and repeat builds with -U to force maven to try again (the fact that a dep was not found is cached) Thanks, ~t~ On Fri, Dec 10, 2010 at 1:22 PM, Mate Varga mate.va...@gmail.com wrote: Hi, I'm pretty new to Java and Maven, so my question may be very naive and/or stupid, apologies for that. I'm trying to compile an open-source project (if that matters, it's https://plugins.atlassian.com/plugin/details/4832 ), which is supposed to be built with Maven. I've got Maven 3 installed (Apache Maven 3.0.1 (r1038046; 2010-11-23 10:58:32+)). This pretty small project depends on a larger one (Atlassian JIRA), which has some Maven support, but the public repos are not well maintained, and there are a lot of broken dependencies, therefore the dependency resolution process fails. However, I have all of the first level (direct) dependencies resolved. As far as my knowledge goes, it's enough to have the first level dependencies to compile a Java project, and that's exactly what I want. Is there a way to tell Maven to stop resolving 2 level dependencies, and just try compiling the project? I tried to Google for this, no luck; and the guides on mvn dependency resolution don't help either. Thanks, Mate - 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 -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to download transitive dependencies
On Fri, 3 Dec 2010 17:39:23 +0530 amaresh mourya amaresh.mou...@gmail.com wrote: No, running dependency:go-offline didn't do the job. It just downloads plug-ins and immediate dependencies. It downloads all dependencies, these are not dependencies. And this maven-utils-parent-1.0.pom (in my local repository) has few dependencies in dependencyManagement. Is it possible to download these You should read http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management which says the dependency management section is a mechanism for centralizing dependency information. So, to make it more clear: these are NOT dependencies. That's why they're not downloaded with the above command. [...] Is there any other command which can download all dependencies including below ones.. Yes declare them as dependencies in your own pom.xml - because of the dependencyManagement entries, you will only need groupId, artifactId and maybe type. Stefan -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multiple projects - one artifact
On Sun, 03 Oct 2010 17:09:54 +0200 Dirk Reske d...@studiorga.de wrote: Hello, this was, what I'm looking for. Is something like this also possible for my api (normal jar files) and ejb projects? Usually, you would want to add all the EJBs and JARs into an EAR file, so there is no reason for merging them into one file. Also, every war file usually deploys to a different context path, so again no reason to merge them together, that is exactly what EAR was invented for. Everything else is just bad design. Maven helps you in this way that when you build the EAR, it will download the dependent JARs/EJBs from the repository. Stefan thanks Dirk Am 03.10.2010 16:55, schrieb Justin Edelson: Yes, you can do this with war overlays (see the docs for maven-war-plugin) and/or the assembly plugin. On Oct 3, 2010, at 10:27 AM, Dirk Resked...@studiorga.de wrote: Hello, so I will get a separation by project type (web, ejb, ear). But want I want, is a separation by functionality. Lets take a webshop example. I have the core module, which includes the main web.xml in the web sub-module, some core services in the api/impl sub-modules. Than I have the admin module, which includes the webpages for the shop administrators in the web submodule and the needed services in api/impl. etc. In the end a super-web module should merge the contents of core/web, admin/web, etc to one webapp. A super impl module should merge the contents of the core/impl and admin/impl to one ejb module And than a ear module should build an ear out of these thwo artifacts. So it should be possible that a developer only checks out the admin module from the scm an have all webpages, services, entities needed by the admin functionalities in the sub-modules. Dirk Am 03.10.2010 16:07, schrieb Martin Gainty: Dirk- i would configure a separate war-artifact pom.xml in MyProject folder something like artifactIdwar-artifact/artifactId groupId.. version.. !-- assuming the /core/web contents are copied to folder called core-web in MyProject folder -- !-- ASSUMING users/web contents are copied to folder called users-web in MyProject folder -- !-- ASSUMING admin/web contents are copied to folder called admin-web in MyProject folder -- !-- which contains these modules -- modules modulecore-web/module moduleusers-web/module moduleadmin-web/module /modules for building the ear ..follow antonios advice Viel Gluck! Martin Gainty __ Verzicht und Vertraulichkeitanmerkung 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. Date: Sun, 3 Oct 2010 15:48:04 +0200 Subject: Re: Multiple projects - one artifact From: antonio.petre...@gmail.com To: users@maven.apache.org 2010/10/3 Dirk Resked...@studiorga.de: is it possible to build one artifact out of multiple projects. We are trying to modularize the development. Example: MyProject |-- core | |--api | |--impl | |--web |-- users | |--api | |--impl | |--web |-- admin | |--api | |--impl | |--web this should results in the following ear file myproject.ear |--lib/myproject-api.jar (the entity classes, service interfaces, etc) |--myproject-impl.ear (the ejb module) |--myproject-web.ear (the web module) So, if I add a module MyProject/myproject-web, is there a configuration, so that this war module merges the contents of the existing */web modules to one war file? I think that this link might answer all your questions about JEE development with Maven: http://docs.codehaus.org/display/MAVENUSER/Developing+JEE+projects+with+Maven Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Site documentation format choosing
On Wed, 29 Jul 2009 10:44:28 +0200 Lukas Theussl ltheu...@apache.org wrote: turn it also lacks in flexibility and misses advanced functionality, eg (from the top of my head): - no advanced formatting and layout (eg tables) Wrong, tables are easily possible. - no meta-information What do you mean? You can include date, author and document title. Stefan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to perform a deploy only
deploy:deploy suggestion that it probably wouldn't work without running at least the package phase, sorry to give you bad info. I'm reasonably confident with some light hacking you could write a plugin that essentially faked the build, but if the below is your use case and you can afford Nexus Pro, it's probably a better solution. Justin From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] Sent: Wed 3/25/2009 10:37 PM To: 'Maven Users List' Subject: RE: How to perform a deploy only I have a whole bunch of components that are mostly interrelated but consumable individually by downstream builds. If I run deploy it basically starts deploying as it goes, so if a downstream component breaks for some reason then I am left with half of the components updated in the maven repo and half not. That's not really what we want. So ideally, we would run a build/test, make sure it all gets through completely, then deploy the resulting artifacts. -Jim -Original Message- From: Brian E. Fox [mailto:bri...@reply.infinity.nu] Sent: Wednesday, March 25, 2009 9:20 PM To: Maven Users List Subject: RE: How to perform a deploy only This really isn't a supported use case. Deploy is a phase and by definition all earlier phases run before the one you've asked for. Why would you not want to build before you deploy? -Original Message- From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] Sent: Wednesday, March 25, 2009 10:17 PM To: 'users@maven.apache.org' Subject: How to perform a deploy only Hello all, I have several components all built from a top level pom. This works great for accelerating users to be able to build a lot of stuff quickly but is giving me some fits when trying to deploy. Up to this point I have been using deploy:deploy-file to get built components into our local repository after a full build is successful, but this is labor intensive. I would like to be able to run some variation of mvn deploy from the top level. I have figured out how to skip things using the FAQ here: http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip But I do NOT want it to do anything other than deploy. I have googled for this but have not turned up anything useful. I was surprised that the documentation does not suggest how to do this. This is the correct deploy documentation I think. http://maven.apache.org/plugins/maven-deploy-plugin/ Anyway, any help would be appreciated. Thanks! -Jim - 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 - 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 -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to perform a deploy only
I don't really see the problem here. mvn clean install mvn deploy:deploy I'm sure there is an equivalent if you're building under Windows. Stefan On Wed, 25 Mar 2009 21:37:29 -0500 Jim McCaskey jim.mccas...@pervasive.com wrote: I have a whole bunch of components that are mostly interrelated but consumable individually by downstream builds. If I run deploy it basically starts deploying as it goes, so if a downstream component breaks for some reason then I am left with half of the components updated in the maven repo and half not. That's not really what we want. So ideally, we would run a build/test, make sure it all gets through completely, then deploy the resulting artifacts. -Jim -Original Message- From: Brian E. Fox [mailto:bri...@reply.infinity.nu] Sent: Wednesday, March 25, 2009 9:20 PM To: Maven Users List Subject: RE: How to perform a deploy only This really isn't a supported use case. Deploy is a phase and by definition all earlier phases run before the one you've asked for. Why would you not want to build before you deploy? -Original Message- From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] Sent: Wednesday, March 25, 2009 10:17 PM To: 'users@maven.apache.org' Subject: How to perform a deploy only Hello all, I have several components all built from a top level pom. This works great for accelerating users to be able to build a lot of stuff quickly but is giving me some fits when trying to deploy. Up to this point I have been using deploy:deploy-file to get built components into our local repository after a full build is successful, but this is labor intensive. I would like to be able to run some variation of mvn deploy from the top level. I have figured out how to skip things using the FAQ here: http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip But I do NOT want it to do anything other than deploy. I have googled for this but have not turned up anything useful. I was surprised that the documentation does not suggest how to do this. This is the correct deploy documentation I think. http://maven.apache.org/plugins/maven-deploy-plugin/ Anyway, any help would be appreciated. Thanks! -Jim - 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 -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to add a jar file to a ear with Maven?
Hi, you setup is a bit weird. To correct way to implement this is to set up an extra pom.xml (module) which has packgingear/packaging and a dependency to my_child_project. Then the EAR will build correctly because it complies with the Maven rule: one pom.xml, project, module, whatever you call it, produces one output file (artifact). HTH, Stefan On Fri, 6 Mar 2009 07:05:23 + Fredrik Andersson fredan...@hotmail.com wrote: How to add a jar file to a ear with Maven Hello! I have a small ejb-app in a project (my_child_project). But when I try to build the ear I do not manage to get it inside. Bellow is my pom.xml project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; parent groupIdhome/groupId artifactIdmy_parent_project/artifactId version1.0/version relativePath../my_parent_project/pom.xml/relativePath /parent modelVersion4.0.0/modelVersion groupIdhome/groupId artifactIdmy_child_project/artifactId packagingjar/packaging version1.0/version namemy_child_project/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdhome/groupId artifactIdmy_other_child_project/artifactId version1.0/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration ejbVersion3.0/ejbVersion jarNamemy_child_project_jar_server/jarName outputDirectory${project.build.outputDirectory}/outputDirectory generateClienttrue/generateClient /configuration /plugin plugin artifactIdmaven-ear-plugin/artifactId configuration finalNamemy_child_project_ear_server/finalName modules jarModule groupIdhome/groupId artifactIdmy_child_project/artifactId /jarModule /modules /configuration /plugin /plugins /build /project When I run: mvn clean install ...I get: my_child_project.jar When I run: mvn ejb:ejb ...I get: my_child_project_jar_server.jar my_child_project_jar_server-cleint.jar But when I try: mvn ear:generate-application-xml ...or... mvn ear:ear I get an error about [INFO] Artifact[jar:home:my_child_project] is not a dependency of the project. It seems like Maven does not like to put the project it self into the ear? Any comments is most welcome! Best regards Fredrik _ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven-copy-plugin
Hi, for Maven artifacts, we use the dependency plugin. For plain files, we use the antrun plugin and the copy task. For deployment we use a deploymentRepository with file:/// or scp:// location. Stefan On Fri, 6 Mar 2009 15:39:10 +0530 Vishal Pahwa vpa...@sapient.com wrote: Hi All Just wanted to know is maven-copy-plugin still exist in maven repositories or it has been obsolete. If not then can anyone please tell me what other plugin can be used to copy some files from one location to other. Regards Vishal -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exclude properties in certain situations
Just use a profile[1]. There is tons of information posts out there about the possibilities :) Stefan [1] http://maven.apache.org/pom.html#Profiles On Fri, 20 Feb 2009 01:18:09 -0800 (PST) Mathias P.W Nilsson math...@snyltarna.se wrote: Hi, I'm using Spring, Eclipse and maven2 as build tool. In my development environment I use a Spring property overrider to set certain properties for my computer whereas my co-workers use their. The problem is when we do mvn clean:clean install. The my.properties is included and will of course override spring. If I alter the pom file resource filteringfalse/filtering directorysrc/main/resources/directory excludes exclude**/my.properties/exclude /excludes /resource The war file will be ok but when deployed with eclipse on tomcat the my.properties will be exluded. Is there a way to include, exclude this file in certain situations. Is pretty annoing to go back and comment out lines in the pom for deployment. -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Integration for Eclipse - does it support modules?
You have to do: right click on project - Maven - Enable nested modules HTH, Stefan On Wed, 18 Feb 2009 00:45:11 + sebb seb...@gmail.com wrote: I tried enabling Maven Dependency Management on a project with modules (Surefire 2.4.3) and the dependencies from the top-level project were added OK, but none of the dependencies for any of the modules were added. Is this the expected behaviour? Or is it a bug? If if is expected, how can one use the plugin with modules? [Using version 0.0.12.20071107-2300 in Eclipse 3.4.1] - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- best regards Stefan Seidel Software Developer VUB Printmedia GmbH Chopinstraße 4, D-04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Recursive Dependency versions problem ?
You should look at the exclusions tag for dependencies[1]. Using this, you can exclude commons-collections from the ZK framework dependency. Stefan [1] http://maven.apache.org/pom.html#Exclusions On Wed, 18 Feb 2009 14:55:21 +0900 Ashika Umanga Umangiliya umanga@gmail.com wrote: Greetings all, Here is the scenario: I have two projects 1) homology : uses Velocty 1.5 as a dependency in POM. (Velocity 1.5 has **commons-collections-3.1** in dependency list) 2) Mysizouka (a web application) : Has ZK webframework in dependency (ZK has **commons-collections-2.1 in dependency list : Mysizouka uses 'homology' as a dependency. First, when I build WAR, 'lib' folder contained the 'commons-collections-2.1' which comes from ZK.So application gave a java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap, because Velocity needs 3.1. Then in Mysizouka POM I added 'commons-collections-3.1' in the dependency list. Now when I build the WAR is contains both 'commons-collections-3.1' and 'commons-collections-2.1' ?? How to resolve this? I only need 1.3 ? -- Here an illustration to show the scenario: homology -- needs Velocity 1.5 -uses commons-collections-3.1 MySizouka -- needs ZK framework --- uses commons-collections-2.1 | - needs 'homology' ~~~Velocity~~ need commons-collections-3.1 -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Running ALL tests and fail at the END
mvn test --fail-at-end or mvn test -fae mvn -h also helps regards, Stefan On Tue, 10 Feb 2009 01:35:48 -0800 (PST) Peter Meier blackicec...@gmx.net wrote: In my Maven project I have several modules which all have tests. If I run the tests and one module fails, then the execution is cancelled. But I want that the tests of ALL modules are executed and then at the end I want a notification that some tests have failed. I have tried it with setting the testFailureIgnore option on my pom.xml: configuration testFailureIgnoretrue/testFailureIgnore /configuration But in this case mvn test will return successfully: [...] [INFO] [INFO] [INFO] Reactor Summary: [INFO] [INFO] Module A .. SUCCESS [4.520s] [INFO] Module B ... SUCCESS [4:06.863s] [INFO] Module C . SUCCESS [14.553s] [INFO] Module D . SUCCESS [10.785s] [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 4 minutes 28 seconds [INFO] Finished at: Tue Feb 10 09:15:56 CET 2009 [INFO] Final Memory: 36M/69M [INFO] All module tests return success even though for example Module B failed. (without setting testFailureIgnore option only tests of Module B are executed) Is there any other option to achieve that all tests are executed with a fail notification at the end? (I have also played around with 'maven.test.haltafterfailure' but it seemed not to have any effect) Thanks for any help! -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency report fails
I added a comment to the bug showing how to disable the dependencies report. HTH, Stefan On Wed, 12 Nov 2008 07:14:46 -0500 EJ Ciramella [EMAIL PROTECTED] wrote: Can the dependency report be configured to skip a series of depenencies? If it can, I don't see a way... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2008 4:35 PM To: users@maven.apache.org Subject: Dependency report fails http://jira.codehaus.org/browse/MPIR-142 Any movement on this particular bug at all (or suggested workaround)? - 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: Simplest possible http repo setup?
Hi, do you really need HTTP PUT for your repo? Can you not do scp or even file? Also, maybe you want to use maven-proxy, which is old, but very lightweight, stable and and can serve from a custom repository plus acts as a cache for repo1 (central), which saves you bandwidth and time. Also, it is very easy to configure. Stefan Todor Boev wrote: Hello, I'm a maven uber-newby. Been playing with it since 2 days ago :) Currently I need to set up an HTTP visible maven repo on a resource constrained box. It has some linux - don't know the distro, and an old Apache 1.3 web server. I tried to simply designate a directory to be the repo and made it accessible via the apache (enabled indexing for the dir). As expected maven could download from that directory but could not put jars back into into it (HTTP PUT doesn't work). I need to know if it is possible to just tweak apaches config a bit more to make the repo fully functional. I hope I don't need to deploy something like Nexus - it doesn't leave enough resources for the elaborate Ant-based build system that also lives on the linux box (pentium III, 512 mb ram, 8gb hdd) Cheers, Todor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven release:perform get java.lang.OutOfMemoryError
Nick Stolwijk wrote: documentation page [1] and then especially the additionalJOption Doesn't even need to. There is a maxmemory option. Stefan [1] http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Aug 20, 2008 at 9:13 AM, hackaton [EMAIL PROTECTED] wrote: Hi, When I try to release:perform I got java.lang.OutOfMemoryError javadoc: java.lang.OutOfMemoryError: Please increase memory. For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx such as -J-Xmx32m. How can I increase the heap size for the javadoc? -- View this message in context: http://www.nabble.com/maven-release%3Aperform-get-java.lang.OutOfMemoryError-tp19064014p19064014.html Sent from the Maven - Users mailing list archive at Nabble.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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specific version/dependency resolving in maven
You should use version ranges[0] and/or the release plugin[1]. Stefan [0] http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges [1] http://maven.apache.org/plugins/maven-release-plugin/ Victor Tsoukanov wrote: I would like to use versioning based on JSR-277. They use the following format: major[.minor[.micro[.update]]][-qualifier]. Some extraxt from spec 1. Major version number should be incremented for making changes that are not backward compatible. 2. Minor version number should be incremented for making medium or minor changes that the software remains largely backward compatible, although minor incompatibilities might be possible. For example I have 3 modules: m1, m2 and m3 (m2 and m3 depends on m1). But m2 depends on m1 with version 1.0.0.0 and m3 depends on 1.1.0.0. As you see the changes in m1 are largely backward compatible - it means I can compile m2 and m3 with m1(1.1.0.0). When I try to compile it in maven m3 was compiled with m1(1.1.0.0) and m2 was compiled with m1(1.0.0.0) since they declared such dependencies, but I would like that maven compile both modules with last version of m1(1.1.0.0). As I know for this cases maven suggests to use snapshot, but I would like to have version history in my repository. Could somebody help me how could I implement such behavior in maven. Thanks - 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: surefire doesn't detect failed tests. (forkMode = always and jdk1.4)
I have sometimes experienced this when a test did System.exit(), thus shutting down the Surefire JVM. Stefan Benoit Decherf wrote: Hi When I execute mvn deploy (from continuum), The surefire reports show that there are errors, but the execution doesn't fail : In the output I have: Results : Failed tests: Tests in error: Tests run: 212, Failures: 24, Errors: 8, Skipped: 0 [INFO] [jar:jar] That's strange. It show that some tests fails, but it doesn't show which tests fails and it doesn't fails the execution. The exact command is : mvn clean deploy -e --batch-mode The configuration to reproduce it is forkMode=always and jdk1.4. If I use jdk1.6, it works and if I use forkMode=once it also works. (but the list of failed tests is still missing). Can I open a bug in this ? Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: packaging wars
Hi, I think we have two cases that are similar: Firstly, EJBs where only deployment descriptors are different. For this we use + parent +- generic +- specific1 +- specific2 All the sources are in generic/src/main/java. parent has packagingpom/packaging and sourceDirectory../generic/src/main/java/sourceDirectory specific1 and 2 have src/main/resources and different artifactIds. The other one is about sharing JSP fragments between WARs, and we use the dependency plugin for that: + common + war-parent +- war1 +- war2 +- war3 In war-parent we have: dependency artifactIdcommon/artifactId scopeprovided/scope /dependency and build plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.1-SNAPSHOT/version executions execution idexpand common JSP fragments/id goals goalunpack-dependencies/goal /goals phasegenerate-test-resources/phase configuration includeGroupIdsgroup.id/includeGroupIds includeArtifactIdscommon/includeArtifactIds excludeTransitivetrue/excludeTransitive includes**/*.jsp*/includes outputDirectory${project.build.directory}/webapp/outputDirectory /configuration /execution /executions /plugin Likewise, you could unpack your resources to ${project.build.directory}/generates-resources and ${project.build.directory}/generated-sources. HTH, Stefan Jean-Paul Vallée wrote: Thanks, Jeff and manuel I think i will have a look at overlays, your explainations seem to be what i want to do. But, is there a smarter way to do what i want, ie merge generic and specific artifact when building the specific artifact. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use ear plugin? Am I stupid??
Kent Närling wrote: I do understand the dependency and packaging concepts, but I failed to get it working by refering to another artifact even though i ran mvn install on the dependent artifact. (ok, it only installed it in my local repository, but that shouldn't matter?) But this is the way it is supposed to work apparently? This is the way maven in general works, what did you expect? So, the EAR packaging is actually just an artifact packaging a bunch of other artifacts into an EAR package? Yes. Are you sure you understand what EAR means? See [0]. Again, what did you expect? The documentation for the EAR plugin describes this badly... also, what packaging types should the referred packages have? I assume jar? In a normal Enterprise Application, it is common to have at least one EJB and one WAR. Thus, the dependent projects should have packaging ejb and war, respectively. IMHO the EAR plugin doc is not perfect, but clear enough iff you know what an EAR is and what it is used for. So actually, to get you started, your EAR pom could look something like this: ... packagingear/packaging ... dependencies dependency ... typeejb/type /dependency dependency ... typewar/type /dependency ... /dependencies ... This should be all that is needed for starters. If you need to configure special things the application.xml, you can add: build plugins plugin artifactIdmaven-ear-plugin/artifactId configuration webModule ... contextRoot/myWebApp/contextRoot /webModule ... jarModule ... includeInApplicationXmltrue/includeInApplicationXml /jarModule ... /configuration /plugin /plugins /build regards, Stefan [0] http://en.wikipedia.org/wiki/EAR_(file_format) -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remove inherited config
Hi, I'm afraid this isn't easy. I could find the JIRA entry for that, but overriding/disabling plugins/executions/configurations is somewhat tricky/impossible. Have a look at http://jira.codehaus.org/browse/MNG-3193 - I used phase none to disable plugin execution. In your case, it's not possible because you use the builtin execution, which cannot be overridden. So I guess it's down to one of: - solving by different inheritance levels - writing a MANIFEST.MF to include it - having a dummy MANIFEST.MF, and adding another execution of the jar plugin in order to build the correct MANIFEST.MF - filing an issue in JIRA Stefan Jérôme Waibel wrote: Hi, I'm having a project with some 15 or so modules. All those modules have a manifest file which is provided by the developers. So I put some config for the jar plugin in the parent pom to include that manifest for all modules: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFilepath/to/MANIFEST.MF/manifestFile /archive /configuration /plugin OK, this is working, so far, so good. Now I have one other modul which doesn't have a manifest file. Maven complains about the missing manifest which is configured in the parent. How can I unset the manifestFile configuration so the jar-plugin will go back to it's default behaviour and create one? My naive approach was this plugin configuration in the module's pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestFile / /archive /configuration /plugin which I thought might the the plugin make forget the manifestFile config from the parent, but that doesn't work. What would be the correct solution for this problem? Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi Inheritance
It is not needed to have a parent pom just for dependencies. You just need an artifact of packaging pom where you declare your dependencies, and then add a dependency to this artifact. As normal dependencies are transitive, this lets you combine several dependency sets. If there are special needs, you may also have a look at the 'import' scope introduced in Maven 2.0.9, although in general I would recommend the old way. Stefan Raffaele wrote: Hi all, I have the following short question: should be possibile define a pom with two or more parent pom? A practical utilization: It would be useful having a pom which specifies db specific dependencies and a pom which specifies web specific dependencies, and my app could be child of both those pom(s). Thanks in advance, best regards Raffaele -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven cobetura plugin 2.2 not working [C1]
Try to start here: http://mojo.codehaus.org/cobertura-maven-plugin/mail-lists.html and look here: http://jira.codehaus.org/browse/MCOBERTURA In general, reducing your projects complexity in order to find the error usually helps a) to find the mistake (if it is yours) b) to report a bug (if it is one) Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how maven run its plugin goals through java API????
Firstly, please do use normal English sentences, it helps you to be understood and increases your chances to get a reply. You will need the Maven Embedder[0] if your really want to run Maven goals. If you just want to execute the _logic_ of Maven goals, have a look if there is a normal way of doing it. For example, dbUnit can be run as Maven plugin, but is also available as Java API[1]. Especially, starting an instance of JBoss could be done via Cargo[2], or the JBoss Microcontainer[3], or the Embedded EJB3 Container[4]. Stefan [0] http://maven.apache.org/guides/mini/guide-embedding-m2.html [1] http://www.dbunit.org/howto.html [2] http://cargo.codehaus.org/Quick+start [3] http://www.jboss.com/products/jbossmc [4] http://docs.jboss.org/ejb3/embedded/embedded.html Renu Gupta wrote: Hey will b of grt help..:) Can u plz send the contents Thanx Cheers! Renu -Original Message- From: Vikramaditya Garg [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 11:09 AM To: Maven Users List Subject: RE: how maven run its plugin goals through java API I did that some time back.I will send u the xml contents what I did. Thanks Vikramaditya Garg STS Infosys Technologies Limited. -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:58 AM To: Maven Users List Subject: how maven run its plugin goals through java API Hi, Can we write our own common java code to run plugin goals?// Like if I wanna run a goal mvn jboss:start Now can I code a java class to run this goal instead of using mvn jboss:start Any suggestions.,comments or help shall b appreciable. :) Cheers! Renu CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use ear plugin? Am I stupid??
It is really very easy, you add the artifacts you want to include in the EAR as dependencies to the pom.xml. Modules refers not to Maven modules, but to the WARs and EJB-JARs that are included in the EAR. If dependencies and packaging are relatively new for you, I recommend reading one of [0], [1] or especially [2]. Stefan [0] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html [1] http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html [2] http://www.exist.com/download/BetterBuildsWithMaven.pdf Kent Närling wrote: Can anyone please enlighten me how to use the EAR plugin? The documentation is (as usual) a bit cryptic... In the documentation it almost seems like the EAR project packaging can contain sub-modules, but if I try to declare modules inside t I just get errors?!? (aggregator projects require 'pom' as packaging) But the configuration refers to modules (like ejb3 etc) ? Also each EAR module refer to groupId and artifactId, from where? I tried to build install a separate jar project and then refer to it in the EAR project, but nothing gets packaged? Please anyone give me a few pointers... Best regards, //Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum and Archiva mail address.
I know for continuum it is the VERY unintuitive file continuum/apps/continuum/webapp/WEB-INF/classes/META-INF/plexus/application.xml where there is a from-mailbox and from-name tag. Stefan Magne Nordtveit wrote: Hi! I have just set up Archiva and Continuum on the same Tomcat server, and its working beautifully (After setting the users-db to different directories... Doh!). Only one thing remaining now, to make Archiva's mailing address be [EMAIL PROTECTED] and give it a name i.e Archiva Repository Manager, and the same with Continuum. But I can't find out how to configure the sender... -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simple zip/tar packaging
Henri Gomez wrote: Hi to all, I'd like to package some files (no code just html/css/images) into a tar.gz or zip file. What's the consensus, solution for this ? The status is not clear from what I could see in http://jira.codehaus.org/browse/MNG-1683 Wow, what a discussion. Why not use the maven assembly plugin[0] that does all that? Stefan [0] http://maven.apache.org/plugins/maven-assembly-plugin/ -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about maven site and the created JavaDocs
erm, maybe you should look here: http://java.sun.com/j2se/javadoc/ Stefan thomas2004 wrote: Hi Marco, You are right. But where can I find information about the order of such parameter settings? I use Eclipse. After I type the @ and Ctrl-space, I get a context menu with a list of paramaters such as @reture, @see etc. I wonder there should be something like @comments. Regards Thomas Marco Huber wrote: Hi Thomas, I think you don't use the javadoc correctly. You comment must be followed by the @param tags: /** * My comments: This function sets ... * * @param i Percentage */ See also http://java.sun.com/j2se/javadoc/writingdoccomments/ Regards Marco thomas2004 wrote: A class looks as follow: /** * * @author Thomas * */ public class PriceIncrease { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass()); private int percentage; /** * * @param i Percentage * My comments: This function sets ... */ public void setPercentage(int i) { percentage = i; logger.info(Percentage set to + i); } ... } After I used maven site, the JavaDocs are generated. But as I open this class in javadocs, I see the followings: setPercentage public void setPercentage(int i)Parameters: i - Percentage I can't see the text of MyComments, why? - 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: Deploy a site generated by mvn site with FTP
Hi, ftp should work. If not, look through the issues in JIRA[0]. Stefan [0] http://jira.codehaus.org Alexandre Touret wrote: Hello is there a way to deploy a website generated with mvn site by FTP ? According to the documentation I only saw file scp. Do you know an other way ? thanks in advance for your help regards, Alexandre -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2+Jboss support(what's the future of jboss with maven2)
You're welcome. You need to add the start and stop executions to the plugin definition: executions execution idstart-container/id phasegenerate-test-resources/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions The phases may need to be adapted to your needs. Stefan Renu Gupta wrote: Hey thanx a lot Stefan.. Its working. But there is one more problem with the plugin.. It only deploys my application in the container. But doesn't explicitly starts and stops the container. Why so Here is my pom configuration: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version 0.3/version configuration !-- Container configuration -- container containerIdjboss4x/containerId homeE:\Softwares\jboss-4.0.5.GA/home /container configuration typeexisting/type homeE:\Softwares\jboss-4.0.5.GA\server\default/home /configuration /configuration /plugin Cheers! Renu -Original Message- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 2:59 PM To: Maven Users List Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2) Could it be you're looking for Cargo? http://cargo.codehaus.org/Maven2+plugin Stefan Renu Gupta wrote: Hi, Can any one tell me that Does maven2 supports jboss plugin? Because none of my jboss goals are working in maven2. When I execute mvn jboss:start it gives successful status but server is not actually started Same is the case with other goals of jboss plugin I m giving the link when it says that future distributions of maven won't support jboss http://maven.apache.org/maven-1.x/plugins/jboss/ Is it true - Renu Beauty is eternity gazing at itself in mirror. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2+Jboss support(what's the future of jboss with maven2)
) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) -Original Message- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 2:07 PM To: Maven Users List Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2) You're welcome. You need to add the start and stop executions to the plugin definition: executions execution idstart-container/id phasegenerate-test-resources/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions The phases may need to be adapted to your needs. Stefan Renu Gupta wrote: Hey thanx a lot Stefan.. Its working. But there is one more problem with the plugin.. It only deploys my application in the container. But doesn't explicitly starts and stops the container. Why so Here is my pom configuration: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version 0.3/version configuration !-- Container configuration -- container containerIdjboss4x/containerId homeE:\Softwares\jboss-4.0.5.GA/home /container configuration typeexisting/type homeE:\Softwares\jboss-4.0.5.GA\server\default/home /configuration /configuration /plugin Cheers! Renu -Original Message- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 2:59 PM To: Maven Users List Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2) Could it be you're looking for Cargo? http://cargo.codehaus.org/Maven2+plugin Stefan Renu Gupta wrote: Hi, Can any one tell me that Does maven2 supports jboss plugin? Because none of my jboss goals are working in maven2. When I execute mvn jboss:start it gives successful status but server is not actually started Same is the case with other goals of jboss plugin I m giving the link when it says that future distributions of maven won't support jboss http://maven.apache.org/maven-1.x/plugins/jboss/ Is it true - Renu Beauty is eternity gazing at itself in mirror. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem installing the oracle library ojdbc14.jar
hi, the problem seems to be your -X. Try without -e and without -X. Stefan María Isabel López Sánchez-Huete wrote: Hí, I'm a beginner in this matter, and I'm lost. I expect somebody can help me. I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer. I read the installation documentation, and follow the steps. My problems is about installing the oracle library ojdbc14.jar. I put in my current directory the ojdbc14.jar file, but when I run mvn -e -X install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true The following error appears (I reproduce only the first lines): + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: ' -X install'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: checking for updates from central [WARNING] POM for 'org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.maven.plugins:maven- -X install-plugin at Artifact [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven- -X install-plugin Version: LATEST Reason: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.apache.maven.plugins:maven- -X install-plugin': POM 'org.apache.maven.plugins:maven- -X install-plugin' not found in repository: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST (...) Any idea? Thanks in advance. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem installing the oracle library ojdbc14.jar
Ok, it just seemed to be because the output is very weird: [INFO] Searching repository for plugin with prefix: ' -X install'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: checking for updates from central [WARNING] POM for 'org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.maven.plugins:maven- -X install-plugin at Artifact [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST] Do you see all the -X? it seemed to search for a maven- -X install-plugin and it surely won't find that. Stefan María Isabel López Sánchez-Huete wrote: Thank you, for your rapid answer. I guess it´s not the problem. These options only shows a more detailled error message. The build error is the same without these options. Any other idea? Stefan Seidel escribió: hi, the problem seems to be your -X. Try without -e and without -X. Stefan María Isabel López Sánchez-Huete wrote: Hí, I'm a beginner in this matter, and I'm lost. I expect somebody can help me. I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer. I read the installation documentation, and follow the steps. My problems is about installing the oracle library ojdbc14.jar. I put in my current directory the ojdbc14.jar file, but when I run mvn -e -X install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true The following error appears (I reproduce only the first lines): + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: ' -X install'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: checking for updates from central [WARNING] POM for 'org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.maven.plugins:maven- -X install-plugin at Artifact [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven- -X install-plugin Version: LATEST Reason: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.apache.maven.plugins:maven- -X install-plugin': POM 'org.apache.maven.plugins:maven- -X install-plugin' not found in repository: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST (...) Any idea? Thanks in advance. - 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: Maven2+Jboss support(what's the future of jboss with maven2)
Could it be you're looking for Cargo? http://cargo.codehaus.org/Maven2+plugin Stefan Renu Gupta wrote: Hi, Can any one tell me that Does maven2 supports jboss plugin? Because none of my jboss goals are working in maven2. When I execute mvn jboss:start it gives successful status but server is not actually started Same is the case with other goals of jboss plugin I m giving the link when it says that future distributions of maven won't support jboss http://maven.apache.org/maven-1.x/plugins/jboss/ Is it true - Renu Beauty is eternity gazing at itself in mirror. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include resources from other module in .jar
Hi, one option is to extract the B jar using the dependency plugin: build plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.1-SNAPSHOT/version executions execution idexpand common JSP fragments/id goals goalunpack-dependencies/goal /goals phasegenerate-resources/phase configuration includeGroupIdsyour.group.id/includeGroupIds includeArtifactIdsyourArtifactId/includeArtifactIds excludeTransitivetrue/excludeTransitive includes**/*.xml/includes outputDirectory${project.build.directory}/generated-resources/outputDirectory /configuration /execution /executions /plugin adapt this a bit, add a dependency to the artifact your.group.id:yourArtifactId (where your shared resources are placed in src/main/resources) and off you go. HTH, Stefan Aiko85 wrote: Hi! Is it possible to directly include in a jar (lets call it A.jar) class/resource files from other module (lets call it B.jar). ? What I have is 5 jars/modules that need to have exactly the same property/xml files inside them, so I would like to keep the resources in a separate module, in one place, and just include them in 5 jars. Thanks for any help, Anne PS. Please don't be cryptic, I'm very new to maven ;) -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include resources from other module in .jar
You're welcome. You need to declare the pom in which the plugin is defined (root pom) as parent in all the poms that should inherit the plugin execution. As I posted it it works like that for Maven 2.0.8. regards, Stefan Aiko85 wrote: Thanks Stefan :-) So far I've added the build part to each of the including jar's poms and it works. Is it possible to configure it so the plugin configuration is in one place ? Didn't work out when i placed it in root pom. Anne VUB Stefan Seidel wrote: Hi, one option is to extract the B jar using the dependency plugin: build plugins plugin artifactIdmaven-dependency-plugin/artifactId version2.1-SNAPSHOT/version executions execution idexpand common JSP fragments/id goals goalunpack-dependencies/goal /goals phasegenerate-resources/phase configuration includeGroupIdsyour.group.id/includeGroupIds includeArtifactIdsyourArtifactId/includeArtifactIds excludeTransitivetrue/excludeTransitive includes**/*.xml/includes outputDirectory${project.build.directory}/generated-resources/outputDirectory /configuration /execution /executions /plugin adapt this a bit, add a dependency to the artifact your.group.id:yourArtifactId (where your shared resources are placed in src/main/resources) and off you go. HTH, Stefan Aiko85 wrote: Hi! Is it possible to directly include in a jar (lets call it A.jar) class/resource files from other module (lets call it B.jar). ? What I have is 5 jars/modules that need to have exactly the same property/xml files inside them, so I would like to keep the resources in a separate module, in one place, and just include them in 5 jars. Thanks for any help, Anne PS. Please don't be cryptic, I'm very new to maven ;) -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running all tests ignoring failures
Hi, what always worked was: mvn ... -Dmaven.test.failure.ignore=true Stefan Balasubramanian, Ravi Shankar wrote: Hi all, I need a way in maven (using the surefire-plugin) to run all tests in a project ignoring any test failures that might occur. All my tests are independent of each other and i want all the tests to be run ignoring any failures that might happen in the middle. Note: 1. I tried using the configuration testFailureIgnoretrue/testFailureIgnore for the surefire plugin and it does not run all the tests. 2. I dont see any consistent behavior as well. Sometimes, it skips all the tests after 5 failures and sometimes it skips all the tests after 6-7 failures. I am not able to observe any consistent behavior. Thanks, Ravi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More one phase for the execution's plugin
In addition to that, there is a configuration section outside the executions section. If you have only these two invocations, this is also an option. Stefan Rémy Sanlaville wrote: In order to share your configurations plugins, have a look to the pluginManagment cf. http://blogs.sonatype.com/brian/2008/05/26/1211857049779.html HTH, Rémy -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build ear problem
You have the same group and artifact id for your ejb and your war file. This cannot work, because the one will overwrite the other. Stefan neo anderson wrote: Env: jboss 4.2.2GA/ Debian lenny testing/ jdk 1.6.0_01/maven 2.0.7 I try to create an ear file via maven, but it issues error reporting that it requires to download sub porjects (web and ejb, etc.) first. The message is as below. It looks like repository problem. Though I can download it manually, I prefer to get it done automatically because last time I create ear file maven successfully except the target application server is geronimo, not jboss (but i can't remember exactly what i did to get it work). So hope someone can give me advice. [code] ... [INFO] Downloading: http://repo1.maven.org/maven2/net/sf/sample/sample-web/0.1/sample-web-0.1.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) net.sf.sample:sample-web:ejb:0.1 Try downloading the file manually from the project website. ... [/code] The way how I create ear project is through executing command 'mvn arcetype:create -DgropuId=net.sf.sample -DartifactId=sample -Dversion1.0' Then modifing the pom.xml (in ear folder) [code] ?xml version=1.0? project modelVersion4.0.0/modelVersion parent artifactIdsample/artifactId groupIdnet.sf.sample/groupId version0.1/version /parent artifactIdsample-ear/artifactId namesample-ear/name packagingear/packaging version0.1/version urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdnet.sample/groupId artifactIdsample-web/artifactId version0.1/version typewar/type /dependency dependency groupIdnet.sample/groupId artifactIdsample-web/artifactId version0.1/version typeejb/type /dependency /dependencies build plugins plugin artifactIdmaven-ear-plugin/artifactId configuration displayNameSample Project/displayName descriptionSample EAR artifact/description version5/version modules ejbModule groupIdnet.sf.sample/groupId artifactIdsample-middleware/artifactId bundleFileNamesample-middleware-0.1.jar/bundleFileName /ejbModule webModule groupIdnet.sf.sample/groupId artifactIdsample-web/artifactId bundleFileNamesample-web-0.1.jar/bundleFileName /webModule /modules /configuration /plugin /plugins /build project [/code] I can build ejb3 and web sub-projects successfully (execute 'mvn package' command and they work in jboss env). What part I may miss in ear pom.xml file? Thank you very much. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Hi, AFAIK, the execution of plugins in the same phase is not consistent. We have used 6 different phases to ensure the ordering is correct. See http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html for a good list. Stefan Bernhard David wrote: Hello, in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. Declaring the plugin once and having two goal entries in the goals doesn't help. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution iddeploy/id phasepre-integration-test/phase goals goaldeploy/goal /goals /execution /executions /plugin ** Shouldn't an entry like goals goalstart/goal goaldeploy/goal /goals force maven to do start first, then deploy? Is there a way to influence this - or, what are the rules for execution order of plugins in a phase? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Max Bowsher wrote: Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Actually, according to http://docs.codehaus.org/display/MAVENUSER/introduction-to-the-lifecycle you are right: When multiple executions are given that match a particular phase, they are executed in the order specified in the POM, with inherited executions running first. In practice and to my knowledge and experiences, it has never been like that. regards, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Wendy Smoak wrote: On Wed, Apr 16, 2008 at 7:22 AM, Bernhard David [EMAIL PROTECTED] wrote: Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: What happens if you put both executions in the same plugin? I see you've already solved it by consolidating even further, to one execution with two goals. I'm trying to think of a situation where you'd need to declare a plugin twice in one phase-- usually multiple executions are fine. The problem is: if it doesn't work with the same plugin twice, it will most probably not work with two different plugins - that's what I had here. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Executing a hook before reading a POM
Hi, use properties myPropertymyValue/myProperty /properties if you want to set fixed properties for the build process. You may also want to have a look at how to use profiles. regards, Stefan [EMAIL PROTECTED] wrote: Hi to all, I am trying to find out how I can get maven to execute a hook before it reads the POM file. But it seems that unless you go in and modify the maven source code, at a user level, there is nothing to be done. I am trying to execute the hook since maven doesn't replace variables within the POM. And I need this information to be statically available within our internal repositories. 1. Is there a smart way to get maven to execute hooks? 2. Am I a little far fetched for trying to implement a hook to do something that Ant could do to pre-process the POM file? Thanks in advance, Fernando - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Packaging of test-jar
The test-jar is not built when tests are skipped. Stefan James Clinton wrote: A module (B) isn't compiling because maven is skipping the packaging of test-jar in a dependant module (A). goaltest-jar/goal The goal above if declared as part of the profile in the module (A) but Skipping packaging of the test-jar is always outputted. Advice appreciated. J -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2 + cargo plugin
Hi, in your parent project, define the pluginManagement: build pluginManagement plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration ... (your configuration) /configuration executions execution idredeploy/id goals goaldeployer-redeploy/goal /goals /execution /executions /plugin /plugins /pluginManagement /build This defines an execution of the plugin phase (deployer-redeploy). Then, in the sub-projects, define build plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId executions execution idredeploy/id phasetest/phase /execution /executions /plugin /plugins /build (you may need to change the phase) This will use the previously defined execution and run it in the given phase. Then, when you do mvn install on the parent project, it will execute the test-phase (among others) of the child projects and your goal will run. Stefan Urooj Khan wrote: hi everyone i have a project with three sub-projects which are web apps... i am currently using cargo to deploy each web app project and have the individual pom.xml and profiles.xml configured... i am trying to figure out what command i can use when building the parent project that will be the equivalent of calling something like: mvn cargo:deployer-redeploy -Pdev on each individual project -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi-module site, why must I do mvn clean install site?
Hi, contrary to MSITE-171, I would say that this is not a bug. mvn site is for building the site, not the code. If you want fresh code coverage reports/surefire tests, of course you will have to run mvn install before - it's not a bug. Any standard site build will work just as fine without. It's mainly a question of understanding how maven works. Stefan Paul G wrote: Why do I have to run install to get a multi-module project to work correctly? Is this a bug? -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: a war can't use classes from another war
There was a plugin that created uber-wars, that is, overlayed WARs containing resources from both WARs. But I agree with the others that shared classes should be in a JAR. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Packaging selected class file
Hi, please read the maven guides on the website. Surely a lot can be done with maven, but if you use it, you should stick to the conventions wherever possible. Use three different artifacts (modules). regards, Stefan ferry97 wrote: Hi, Does maven has a capabilities to build a certain package to different jar ? For example. I have few packages in one project: 1. com.client1 2. com.client2 3. com.client3 and I'd like to be able to build 3 jars from it, client1.jar will have com.client1 package only, and client2.jar com.client2 package only. I'm not sure that I can use profile in order to achieve this, such as : mvn package -Pclient1 to package client1.jar Is that possible in maven ? If yes, any sample that I can refer to ? Thanks. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Version Range Specification
[EMAIL PROTECTED] wrote: Here's my dependency tree: [INFO] +- org.openlaszlo:openlaszlo:pom:3.2:compile [INFO] | +- axis:axis:jar:1.4:runtime (version managed from 1.2.1; scope managed from compile) [INFO] | | \- axis:axis-jaxrpc:jar:1.4:runtime [INFO] | +- xmlrpc:xmlrpc:jar:1.2-b1:runtime [INFO] | +- xpp3:xpp3:jar:1.1.3.3:runtime (version managed from 1.1.3.4d_b4) [INFO] | +- commons-beanutils:commons-beanutils:jar:1.6.1:compile [INFO] | +- commons-httpclient:commons-httpclient:jar:3.0:runtime (version managed from 2.0-rc1; scope managed from runtime) Well, the easiest solution for now is to exclude tose dependencies from openlaszlo: dependency groupIdorg.openlazslo/groupId artifactIdopenlaszo/artifactId version3.2/version exclusions exclusion groupIdaxis/groupId artifactIdaxis/artifactId /exclusion ... Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding goals to pom.xml
Hi David, have a look at the plugin lists from maven.apache.org and mojo.codehaus.org. There you will find a lot of plugins that do difficult work for you. The antrun plugin is of course good for backward compatibility, but I think there are better plugins if you just need to copy a file. Search the mailing list archives for my previous posts on that topic. regard, Stefan david delbecq wrote: Hello, still in process of upgrading to maven2 here :) Most of the work is taking good shape, thanks to informations on this ML. I have a question regarding a few of our goals. We have, for a war project, added a few goals that quickly do a copy of a part of webapp to tomcat (instead of building war or even compile). This is a way to allow easy test of jsp / pictures / css. Just patch a life tomcat with new files. We do this with such a command in maven 1 maven debug_deploy:jsp maven debug_deploy:resources those goals are just simple ant copy tasks in maven.xml. What would be the recommanded way to convert this. Should i create a custom plugin that adds those targets to maven2, and include plugin in pom.xml, or is there a way to add targets to pom.xml? Should i use the ant plugin, but then how do i link it to a target instead of a phase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Version Range Specification
[EMAIL PROTECTED] wrote: Well, that's not really an option, as Openlazlo needs axis. Yes, should have mentioned that: of course you declare the correct versions of the excluded dependencies (axis etc.) again in your own pom. Glad to hear you found another solution, though! Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use maven-bundle-plugin for packaging type other than bundle or jar
The doc suggests supportedProjectTypesjar,bundle,hk2-jar/supportedProjectTypes or maybe supportedProjectTypes supportedProjectTypehk2-jar/supportedProjectType supportedProjectTypejar/supportedProjectType supportedProjectTypebundle/supportedProjectType /supportedProjectTypes Stefan Sahoo wrote: I want to use maven-bundle-plugin in a project whose packaging type is neither jar nor bundle. Is it still possible? I configured my pom.xml like this, but it does not work: plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifestFile${project.build.outputDirectory}/META-INF/MANIFEST.MF/manifestFile /archive /configuration /plugin plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId configuration supportedProjectTypehk2-jar/supportedProjectType supportedProjectTypejar/supportedProjectType supportedProjectTypebundle/supportedProjectType /configuration executions execution idbundle-manifest/id phaseprocess-classes/phase goals goalmanifest/goal /goals /execution /executions /plugin Thanks, Sahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable maven-compiler-plugin for jar packaging
Try build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration excludes**/*.*/excludes /configuration /plugin /plugins /build or something similar. Stefan Sahoo wrote: Hi, I have an unusual requirement where I want to replace maven-compiler-plugin by another compiler-plugin. Is there a way I can do this? My situation is like this: I want to use hk2-maven-plugin [1] as the compiler plugin. This plugin automatically executes if I change my project's packaging type to hk2-jar, but I don't want to change the project's packaging type from jar to hk2-jar, as I depend on some other plugin which stops working when I change my packaging type. If I just add an execution entry for hk2-maven-plugin:compile goal, it is useless as all the sources first get compiled using the default compiler-plugin. One option might be to call hk2-maven-plugin in a pre-compile phase, but is that the only option to disable the default plugin? I am looking for some ideas here. Thanks, Sahoo [1] https://hk2.dev.java.net/hk2-maven-plugin/hk2-compile-mojo.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: property substitution in site files?
Hi Krish, what you want is absolutely ok with maven. Paul was talking about the apt format for the site documentation. I think this was just not made to include maven properties. See http://maven.apache.org/doxia/references/apt-format.html Curly braces mean anchor, not property. Stefan dasarikm wrote: Hey Paul, Did you resolve this issue. I have a parent pom and I want the properties in parent to be substituted in the child's pom when I do mvn install. Is it possible. Thanks Krish pjungwir wrote: Hello, I am trying to generate some site files using the .apt format. (I'm not wedded to that format, but I'm starting there since it's the easiest.) I was hoping to do something like this: ${project.name} ${project.description} But that doesn't work. The curly braces disappear, but the properties aren't replaced. So I guess maven doesn't do property substitution before processing these files, huh? Is there a switch to turn that on? Should I just hack it by running my site files through a resource filter? Thanks, Paul -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending maven to accomplish some tasks
Ah, the universal antrun solution. Guys, maven is better than ant, why do you keep using ant? For copying the built file use dependency plugin: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-installed/id phaseinstall/phase goals goalcopy/goal /goals configuration overWriteReleasestrue/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots stripVersiontrue/stripVersion artifactItems artifactItem groupId${project.groupId}/groupId artifactId${project.artifactId}/artifactId version${project.version}/version type${project.packaging}/type /artifactItem /artifactItems outputDirectory/home/stefan/jboss/server/default/deploy/outputDirectory /configuration /execution /executions /plugin /plugins /build To invoke things from other poms, use maven-invoker-plugin. Regards, Stefan Ian Hummel wrote: I use the antrun-maven-plugin to do things like this. I'm not sure if that's the right way though! In your specific case you could try build ... plugin artifactIdmaven-antrun-plugin/artifactId executions !-- bind to the install phase of the default lifecycle -- execution phaseinstall/phase goals goalrun/goal /goals configuration tasks copy todir=${todir} fileset dir=${fromdir} / /copy /tasks /configuration /execution execution !-- not sure in which phase you want to execute your sql command -- phase???/phase goals goalrun/goal /goals configuration tasks !-- ant task to call subproject... -- /tasks /configuration /execution /executions /plugin ... /build here is some more info on lifecycles/phases: http://docs.codehaus.org/display/MAVENUSER/introduction-to-the-lifecycle On Mar 5, 2008, at 8:02 AM, Martin Monsorno wrote: Hi *, there's one point I do not understand with maven: how can I use it to accomplish some tasks that doesn't seem to fit into the standard phases. The question arised when implementing continuous integration. For this I want to - Copy a artefact to another directory. (more precisely: to deploy the generated war-file to the app server) This is no job for deploying something to a maven repository or generating a site, but just a plain copy task. - Call a special goal of a subproject. (more precisely: my db subproject uses the hibernate-tools-plugin to execute some sql on the database) The subproject includes a plugin for a specific task, but I want to call this from the major build) With maven 1.x, I wrote a maven.xml and defined goals for this. But what is the maven 2 way? Must I write a plugin? Thanks for your thoughts, Martin. -- Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] compiling a generic method with maven fails
Now, I discovered that under Maven 2 with the following maven-compiler-plugin configuration: configuration source1.6/source target1.6/target /configuration Add forktrue/fork Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending maven to accomplish some tasks
Ian Hummel wrote: Fair enough... I had never heard of the maven-invoker-plugin. How about for the first part of his question? Which plug to use for copying a directory? http://maven.apache.org/plugins/maven-invoker-plugin/ As I understood the first question, it was about copying the artifact into a directory, which is what the dependency plugin does. A whole directory may also be copied with the resources plugin, although if it is really about external files copies to an external location, the ant task is not too wrong there. For copying external resources for inclusion into the artifact, there is another plugin. See http://maven.apache.org/plugins/ for a good start, and also http://mojo.codehaus.org/plugins.html. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending maven to accomplish some tasks
Tomasz Pik wrote: On 3/6/08, VUB Stefan Seidel [EMAIL PROTECTED] wrote: phaseinstall/phase Is there a way to setup it so maven will 'copy' artifact in 'package' phase, without installing artifact to local repo? phasepackage/phase? Maybe even phaseverify/phase. Then run mvn package. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Extending maven to accomplish some tasks
Tomasz Pik wrote: On 3/6/08, VUB Stefan Seidel [EMAIL PROTECTED] wrote: Tomasz Pik wrote: On 3/6/08, VUB Stefan Seidel [EMAIL PROTECTED] wrote: phaseinstall/phase Is there a way to setup it so maven will 'copy' artifact in 'package' phase, without installing artifact to local repo? phasepackage/phase? Maybe even phaseverify/phase. Then run mvn package. nop :( If this is being bind to 'package', then maven: 1. builds and package project into 'target/...' 2. use dependency mechanism to locate artifact defined in configuration for plugin through repositories (both local and remote) and copy one from repository, not the new one. Should I report it as a feature request? Ah. Yes, this is correct behaviour, but not very helpful. Then you can use the outputDirectory option of the jar plugin (or war plugin) in a second execution of the plugin to build the file agaijn into the directory you need. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test classpath problem in multi module project
Hi Petr, I have a default.persistence.properties in the artifact with the EJB3 abstract test case. There I can specify whatever I like. Also, in the jboss in deploy/ejb3.deployer/META-INF there is another persistence.properties where I specify the production properties. Stefan Petr Nejedly wrote: Thanks Stefan, Very helpful. Just a question: You said you're using only one persistence.xml for both, testing and live deployment. How do you specify different Hibernate properties for those, eg dialect (Oracle vs HSQLDB), auto create schema (on vs off), etc? Cheers, Petr The information contained in this email and its attachments is confidential and may be the subject of legal, professional or other privileged information. It is intended only for the named addressees and may not be disclosed to anyone else without consent from On Demand. If you are not the named addressee you must not use, disclose, distribute, copy, print or rely on the contents of this email and should destroy it immediately. Whilst On Demand takes care to protect its systems from electronic virus attack or other harmful event, the firm gives no warranty that this email message (including any attachments to it) is free of any virus or other harmful matter and accepts no responsibility for any loss or damage resulting from the recipient receiving, opening or using it. If you need any further information, please contact the originator of this message on +44 (0)20 7131 6700. Website: www.ondemand.co.uk. Registered Office: 1 Stephen Street, London, W1T 1AL. Registered in the UK No.4094951. This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc precompile
[EMAIL PROTECTED] wrote: There must be some option to alter the default path, right?? You saw the text in jspc maven plugin doc: configuration webXml${basedir}/target/jspweb.xml/webXml ... /configuration There you can set the path Nope, I don't think that's it. There you can only define were the jspweb.xml should be put. I would need to be able to define a custom path for the webapp folder. Ok, that wasn't it. I did a short test with one of my WARs and found the solution (I think). I renamed my webapp folder to webappx and checked what I needed to do in order to get it working again. Very helpful was the output from mvn help:describe -Dplugin=org.codehaus.mojo:jspc-maven-plugin -Dfull which pointed me to the options for this plugin. So what you already should have is in the maven-war-plugin: - webappDirectory: to you webapp-dir with the JSP files - webXml${basedir}/target/jspweb.xml/webXml so it would use the output from jspc and for the jspc plugin: - warSourceDirectory: same as webAppDirectory above - inputWebXmlsrc/war/WEB-INF/web.xml/inputWebXml pointing to your source web.xml That should work. If the jspc plugin cannot resolve URIs for TLDs, you will need to add the dependencies pointing to the JAR files containing the TLDs to the declaration of the plugin: plugin groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId dependencies dependency groupIdorg.apache.struts/groupId artifactIdstruts-taglib/artifactId version[1.0,)/version /dependency /dependencies (group and artifact id are just guessed, you'll need to find out more maybe). Hope that helps, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.naming.CommunicationException: Receive timed out problem
Neo Anderson wrote: However, I encounter a new question. I use test case to call my ejb application (stateless session bean). Thus I found out when executing command 'mvn clean install,' it will do test first, resulting failure because the ejb artifact is still not yet deployed to the server. How can deploy to and launch the server first before the test case executed. That depends on the way you want to set up your test environment. There have recently been several posts about the JBoss EJB3 microcontainer, if that helps you. For EJB2 and deploying to a running jboss you could move the tests to the integration-test phase (See http://adminsight.de/2006/04/04/integration-and-unit-test-strategies-with-maven2) regards, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc precompile
[EMAIL PROTECTED] wrote: YES! Now it works! Thanks! Glad to hear it :) Last but not least - is there a way to run the jspc goal standalone? When working on a certain jsp, without changing any backend java classes, creating the entire war seems to be a bit of a pain. Is there a way to just precompile the jsps to know if they'll be working / to redeploy them on tomcat server, without restarting the server? Yes, with mvn jspc:compile. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jspc precompile
[EMAIL PROTECTED] wrote: Is there a way to just precompile the jsps to know if they'll be working / to redeploy them on tomcat server, without restarting the server? Yes, with mvn jspc:compile. :-( This says: Embedded error: The -uriroot option must specify a pre-existing directory I've read somewhere I had to change the jsp spec and servlet spec jars from runtime to compile time. Could that be it? Sounds a bit like the settings for the plugin are not read from the pom.xml when you run the goal specifically from the CLI. You can play around with the scopes, maybe there is a solution, but I think this is more a bug in maven, something like http://jira.codehaus.org/browse/MNG-472 Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating sources jar
The easiest way to do this is to run mvn clean install -DperformRelease For more information on what happens behind the curtain see the maven doc about the super pom. regards, Stefan [EMAIL PROTECTED] wrote: Hi, when installing a jar (MyProject-1.1.jar) of the project containing the class files - is it possible to also create install MyProject-1.1-source.jar and MyProject-1.1-java-api.jar at the same time? Thanks in advance, Stefanie -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jsp precompile
[EMAIL PROTECTED] wrote: Hi, Hi, firstly, and again: Do NOT just reply to a random message from the mailing list when you start a new topic. Write a NEW MAIL to the mailing list. Trying to precompile Jsp's but can't get it to work. I tried the plugins: Maven jspc plugin: http://mojo.codehaus.org/jspc-maven-plugin/usage.html We're using that one too. Your web.xml needs to be in src/main/webapp/WEB-INF, and is from there on copied automatically to whatever you specify in the maven-war-plugin. Which version of the jspc-maven-plugin are you using? 1.4.6 works great here. regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jsp precompile
[EMAIL PROTECTED] wrote: firstly, and again: Do NOT just reply to a random message from the mailing list when you start a new topic. Write a NEW MAIL to the mailing list. I don't understand. I used the [EMAIL PROTECTED] mail adress, but I changed the topic. So it should be a new topic, shouldn't it?? I can't image the mail adress would remember what it was last used to, right??? -- Ok, I saw too late that the old subject line was wrong already. Anyway, in most mail clients, when you reply to a message, a header field In-Reply-To is set into the mail with either all (of this thread) or the latest message ids of the message(s) you replied to. Then again, the mail client looks into this header field to determine whether the message should be displayed in the same thread or in a new thread. Thus, you can change the subject but the mail client will still think that it is the same thread because of the In-Reply-To header field. In Thunderbird for example, you can click View, Sort By, Threaded to see what I mean. Your web.xml needs to be in src/main/webapp/WEB-INF, Well, as we are moving from Maven 1.1 I was told to first move the project as it is - using the (legacy) project structure in this first migration step. Therefore, I can't yet use src/main/webapp/WEB-INF. My web.xml is in src/war/WEB-INF, and when it's copied to the target folder, it will be in /target/MY_WAR_FILE_NAME/WEB-INF. Ok, one questions: is the war assembled correctly (including web.xml)? There must be some option to alter the default path, right?? You saw the text in jspc maven plugin doc: configuration webXml${basedir}/target/jspweb.xml/webXml ... /configuration There you can set the path. Anyway, you wrote you didn't want to let the compiler plugin modify the web.xml IIUC? But then the compilation is not in effect, because within the web.xml the /...jsp are mapped to the compiled ones, so I think you will need to let that happen if you want to use the precompiled JSPs. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.naming.CommunicationException: Receive timed out problem
Hi, this is most likely not a maven problem. It seems your test tries to connect to a remote JBoss instance but cannot contact it (not deployed?). regards, Stefan Neo Anderson wrote: Hi I am new to maven. And by following http://openejb.apache.org/3.0/simple-stateless-example.html I write a simple stateless session bean (ejb3) to test the jboss and maven,but encounter a problem. The error issues testHelloRemote(net.sf.sample.HelloTest) Time elapsed: 5.06 sec ERROR! javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] The way how I test is 1.) create ejb module mvn archetype:create -DgroupId=net.sf.sample -DartifactId=hello -Dversion=1.0 2.) modify pom.xml (adding dependency to pom.xml and 1.5 compatible) build pluginManagement plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /pluginManagement /build ... dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version4.0.3/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdjnpserver/artifactId version1.0/version scopesystem/scope systemPath${basedir}\lib\jnpserver.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdjboss-common/artifactId version1.0/version scopesystem/scope systemPath${basedir}\lib\jboss-common.jar/systemPath /dependency 3.) write stateless session bean package net.sf.sample; import javax.ejb.Stateless; @Stateless public class Hello implements HelloLocal, HelloRemote{ public String echo(){ return hello\n; } package net.sf.sample; import javax.ejb.Local; @Local public interface HelloLocal{ public String echo(); } package net.sf.sample; import javax.ejb.Remote; @Remote public interface HelloRemote{ public String echo(); 4.) run mvn command mvn clean install What might cause this problem? Thank you very much, env: jboss4.2.2.GA/ maven 2.0.8 / jdk1.6.0_04 __ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ftp://ibiblio.org/pub/packages/maven2 wiped out?
Jan Torben Heuer wrote: Martin Gainty wrote: both ftp and http sites for maven2 appear 'down' Is there a backup repository? Yes, the one you have running locally using maven-proxy, archiva or proximity so that the main repo has less load. SCNR, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with Tomcat / MyFaces in Maven JUnits
Hi Josh, if it is like that, you can also try if adding the dependency to the surefire plugin configuration (I assume you run the tomcat with surefire?) works. Stefan Joshua ChaitinPollak wrote: Hi Stefan, Thanks for the suggestion. For now I've just checked the myfaces libs into our webapp directory and moved on. Ugly, but it works. -Josh On Feb 26, 2008, at 7:37 AM, VUB Stefan Seidel wrote: Hi, I could be totally wrong, but I remember something like tomcat scanning the JARs in java.class.path for JSP tag libraries. As maven does not set java.class.path to the test class path, this could be the problem. In your test, try invoking the method presented in http://markmail.org/message/2lgpzzfyqypvp4km with classes from the myfaces JARs and append the resulting file names to the system property java.class.path. HTH, Stefan Joshua Pollak wrote: Hello, We use embedded Tomcat with MyFaces, and I'm having trouble getting them to run properly with Maven. Tomcat itself is working fine, its just the Myfaces thats causing trouble, and I'm pretty sure it is classpath related, I'm just not sure how to diagnose it. In short, the error we get is: javax.faces.FacesException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application We don't see this error with our ant build system however (exactly the same code, web.xml files, etc), which leads me to suspect Maven's classpath shenanigans. Any help would be appreciated, details are below -Josh I have the following dependencies in our pom.xml: dependency groupIdorg.apache.myfaces.core/groupId artifactIdmyfaces-api/artifactId version1.1.5/version /dependency dependency groupIdorg.apache.myfaces.core/groupId artifactIdmyfaces-impl/artifactId version1.1.5/version /dependency dependency groupIdorg.apache.myfaces.tomahawk/groupId artifactIdtomahawk/artifactId version1.1.5/version /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version /dependency And in an effort to make sure Tomcat was using the right classpath, I set it explicitly when we start tomcat: // Create a class loader from our own classpath Loader classLoader = initTomcat.createLoader(this.getClass().getClassLoader()); classLoader.setDelegate(true); Engine baseEngine = initTomcat.createEngine(); baseEngine.setName(TOMCAT_ENGINE_NAME); baseEngine.setDefaultHost(TOMCAT_HOST); baseEngine.setParentClassLoader(this.getClass().getClassLoader()); // Create Host Host baseHost = initTomcat.createHost(TOMCAT_HOST, ); // add host to Engine baseEngine.addChild(baseHost); Context rootCtx = initTomcat.createContext(/, webapp); rootCtx.setPrivileged(true); rootCtx.setLoader(classLoader); baseHost.addChild(rootCtx); PersistentManager manager = new PersistentManager(); manager.setSaveOnRestart(false); rootCtx.setManager(manager); But I see the following when I try and load a .jsf file: javax.faces.FacesException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
Re: Dependency must run before
See http://jira.codehaus.org/browse/MNG-2784 and related. Stefan Stefan Bley wrote: Hi, I'm starting developing Maven plugins. What I'm looking for is a way to achieve that during the same build phase my plugins are executed in a valid order. Is there a way to configure plugin B to tell that a plugin A has to be run before? If yes, is this configuration evaluated by Maven so that A will really be run before B because of this dependency? Regards, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: copy files with scp after install
Hi, the deploy plugin supports scp:// URLs. Activate with something like distributionManagement repository idvm02/id urlscp://[EMAIL PROTECTED]/tmp/maven//url /repository /distributionManagement The dependency plugin can copy files, but I think only to local directories. With the antrun plugin you will surely find some ant component that can do it. HTH, Stefan Cybexion wrote: Hi, after a successful install I could like to copy some (not all) of the created jars into a directory on a different machine. Does anyone know how to do this? Thanks in advance! -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cargo: custom ctx path for deployment
Clifton wrote: I need a way for one profile to override the properties of another is what it realy boils down to. You gave yourself the answer, didn't you? Just declare a profile for dev, set the property to the dev value within the profile. Activate the profile using settings.xml, or mvn -P regards, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test classpath problem in multi module project
that this was not too long, Stefan Petr Nejedly wrote: Hi guys, I'm trying to solve this issue for a few days and haven't been able to crack it so far. The scenario is following: I have a parent project that includes sub-modules, each having their own pom.xml. Each of these modules produces an ejb3 package. I want to be able to run unit/integration tests using the JBoss embedded container on those modules from the parent project (so that it builds all modules). The resources are different for the test phase from the ones to be deployed (obviously). Normally it could all be achieved using src/main/resources and src/test/tesources but in this case SureFire can see all the resource files on its classpath and tries to use them (eg persistence.xml - tries to deploy test AND live persistence units which fails the tests). I kind of hacked it so that I'm able to run tests in one module and package it. I end up with the following structure: A --target classes --META-INF (incl resources for tests, dependent modules can use these, when deploying this module's EJBs in the embedded JBoss for example) test-classes --A.jar (includes META-INF with resources for deployment) When I run the build from the parent project though, it builds the first one properly (eg A.jar) and when testing project B (which depends on A) it can see on its classpath A/target/classes + A/target/test-classes (this includes the proper resources for passing the tests) AND the built A.jar (deployment - ready, including resources that fail the tests). Dependency in B pom.xml is: dependency groupIdfoo/groupId artifactIdA/artifactId typeejb/type scopeprovided/scope /dependency Is there a way how to exclude built A.jar from classpath when two modules are dependent? Hope this makes sense, Petr The information contained in this email and its attachments is confidential and may be the subject of legal, professional or other privileged information. It is intended only for the named addressees and may not be disclosed to anyone else without consent from On Demand. If you are not the named addressee you must not use, disclose, distribute, copy, print or rely on the contents of this email and should destroy it immediately. Whilst On Demand takes care to protect its systems from electronic virus attack or other harmful event, the firm gives no warranty that this email message (including any attachments to it) is free of any virus or other harmful matter and accepts no responsibility for any loss or damage resulting from the recipient receiving, opening or using it. If you need any further information, please contact the originator of this message on +44 (0)20 7131 6700. Website: www.ondemand.co.uk. Registered Office: 1 Stephen Street, London, W1T 1AL. Registered in the UK No.4094951. This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Retrieving surefire classpath from a test class
I am looking for a solution to that too. My workaround was until now to pick specific classes whose JAR files I needed and do _class.getResource(/ + _class.getCanonicalName().replace(., /) + .class).toString().replaceAll(-client.jar!, .jar!).replaceFirst(jar:file:([^!]+).*, $1) and append this to java.class.path. Kindofa hack though ... Stefan Alexander Klimetschek wrote: I forgot to mention that the unit test runs perfect in Eclipse, because the project created by mvn eclipse:eclipse includes all test dependencies as well and the Eclipse jUnit runner puts all of them in the class path for the test. Would be cool to have the Eclipse project and mvn test behave the same without two different configurations. Alex Am 25.02.2008 um 20:58 schrieb Alexander Klimetschek: Hi all, I have a test case which starts another JVM (a derby database server in network mode). The classpath for the new JVM needs jar files which are defined as test dependencies (derby is available in the form of maven artifacts, and I want to test it against the same derby version against which the actual code is written). The problem is that due to the surefire boot mechanism, it's not sufficient to read the classpath of the JVM in which test is running via System.getProperty(java.class.path). How can I get access to the classpath of surefire? Or is there another way to retrieve the path of the jar files defined in the pom from my junit test class? Regards, Alex -- Alexander Klimetschek [EMAIL PROTECTED] -- Alexander Klimetschek [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cargo does not work when using profiles in the pom.xml (profile IS active).
Hi, why do you use pluginManagement within a profile? Also, you can always define the plugin outside the profile in pluginManagement without the executions and within the profile with the executions. Have you tried mvn cargo:start -Pjboss anyway? Stefan Marcelo Alcantara wrote: Hi, I am trying to use cargo based on the pom.xml profile configuration. When executing mvn cargo:start it says it cannot find the plugin with this prefix (cargo). When I use mvn help:active-profiles it shows me the jboss profile is active. If I copy the build xml block from the profile to the pom (without the profile) and runs mvn cargo:start it works fine. I tried a lot of ideas here but could not make this work. Somebody can give me any hint on this one? Follows my profile configuration bellow. Thanks in advance. Marcelo Alcantara profile idjboss/id activation activeByDefaulttrue/activeByDefault /activation build pluginManagement plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3.1/version executions execution idstart-container/id phaseinstall/phase goals goalstart/goal /goals /execution /executions configuration container containerIdjboss4x/containerId zipUrlInstaller urlS:/software/jboss/hg_jboss-4.0.5.GA_v2.zip/url installDirC:/software/installDir /zipUrlInstaller /container configuration home${project.build.directory}/jboss/server/home /configuration /configuration /plugin /plugins /pluginManagement /build /profile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with Tomcat / MyFaces in Maven JUnits
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) Caused by: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419) ... 21 more -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Retrieving surefire classpath from a test class
Yes, that client was just because from within an Maven execution the classpath would give me the -client.jar first, but I needed the jar without client. Stefan Alexander Klimetschek wrote: Thanks Stefan, nice hack ;-) I didn't know that you can get the Jar file via the class resource URL, but it makes sense. FYI, I made a useful method out of this (I removed the special -client.jar replacement): /** * Returns the path to the JAR file that a certain class is located in. This only works * if the classloader loaded this class from a JAR file. */ public static final String getJarFileForClass(Class clazz) { // eg. /org/apache/derby/drda/NetworkServerControl.class String classResource = / + clazz.getCanonicalName().replace(., /) + .class; // eg. jar:file:/Users/alex/.m2/repository/org/apache/derby/derbynet/10.2.1.6/derbynet-10.2.1.6.jar!/org/apache/derby/drda/NetworkServerControl.class String fullResourceURL = clazz.getResource(classResource).toString(); // eg. /Users/alex/.m2/repository/org/apache/derby/derbynet/10.2.1.6/derbynet-10.2.1.6.jar return fullResourceURL.replaceFirst(jar:file:([^!]+).*, $1); } Regards, Alex Am 26.02.2008 um 12:11 schrieb VUB Stefan Seidel: I am looking for a solution to that too. My workaround was until now to pick specific classes whose JAR files I needed and do _class.getResource(/ + _class.getCanonicalName().replace(., /) + .class).toString().replaceAll(-client.jar!, .jar!).replaceFirst(jar:file:([^!]+).*, $1) and append this to java.class.path. Kindofa hack though ... Stefan Alexander Klimetschek wrote: I forgot to mention that the unit test runs perfect in Eclipse, because the project created by mvn eclipse:eclipse includes all test dependencies as well and the Eclipse jUnit runner puts all of them in the class path for the test. Would be cool to have the Eclipse project and mvn test behave the same without two different configurations. Alex Am 25.02.2008 um 20:58 schrieb Alexander Klimetschek: Hi all, I have a test case which starts another JVM (a derby database server in network mode). The classpath for the new JVM needs jar files which are defined as test dependencies (derby is available in the form of maven artifacts, and I want to test it against the same derby version against which the actual code is written). The problem is that due to the surefire boot mechanism, it's not sufficient to read the classpath of the JVM in which test is running via System.getProperty(java.class.path). How can I get access to the classpath of surefire? Or is there another way to retrieve the path of the jar files defined in the pom from my junit test class? Regards, Alex -- Alexander Klimetschek [EMAIL PROTECTED] -- Alexander Klimetschek [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexander Klimetschek [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: maven appends sub-project artifactId to urls - Please help - design suggestion
Jens Riboe wrote: As I understand it; the current rule implements implicit URLs as ${parent.url}/${project.artifactId} For example: scm connection${parentPOM.scm.connection}/${project.artifactId}/connection ... /scm Where parentPOM is a made-up symbol denoting an upward search for the pom property that follows (scm.connection). So, how about the following suggestion: The Super POM contains this kind of definition for all URLs where this rule applies today. When the effective POM is computed for a sub-project it uses the closest url definition that contains the symbol parentPOM. If none is found expect the def in super pom, this one is used and the rule applies as it always has. This will break existing builds. The maven inheritance mechanism will not take the parent pom into consideration if you say something like connectionscm:cvs:[EMAIL PROTECTED]:/yyy/connection because this is considered as a fixed string and thus overrides the value from the parent. Maven only inherits values from parent POMs when the tags are non-existing in the child pom or in special cases likes plugin configurations from pluginManagement or plugin executions with the same id. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
Hi Chris, we started with m2eclipse, too, and had troubles too. After spending about a week in total fixing the worst things in it, it is quite usable. Unfortunately, almost none of my suggestions made it into the mainstream code, and I've given up trying. I thought about a fork but I don't have the time. Anyway, m2eclipse is based on some good ideas, and when I last looked at Q4E, it wasn't usable due to its early dev stage. There is a eclipse plugin for maven that generated the .project files and others, this one allows you to develop maven apps in Eclipse, but it is no real Eclipse integration. HTH, Stefan Chris wrote: I googled around to try to find a comparison between Mevenide and the alternatives, and didn't come up with much. Can someone tell me the differences? (I've spend some time with m2eclipse, and I'm *not* impressed). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to define a goal which wil depends on other goal in maven?
Your question is not precise enough. I suggest you read http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html and have a look at http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html regards, Stefan san84 wrote: thank u but how can i do using maven 2? plz let me know with ex [EMAIL PROTECTED] wrote: san84 schrieb: hi all, how can i define a goal which depends on other goal in my maven.xml in ant we can do it as follow like blabla ... target name=a depends =b blabla ... please let me know What is the actual problem you are trying to solve? In other words, what do a and b do, and why does b need to run first? Maven has this concept of phases that it runs through in order, with zero or more plugins attached to each phase. So to do something before some other thing, the plugins are bound to the appropriate phases. But the stuff which is set up by default covers almost all cases already... Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding Plugin Configuration in Settings.xml
You need two profiles in your pom with the different settings. Then you can add the appropriate profile in the settings.xml and set activeByDefaulttrue/ for the one to use. Stefan DHARNA, AJAY [AG/1000] wrote: Please let me know if there is a way in which I can override my cargo plugin configuration and execution from a profile that is in my settings.xml. I want the project pom to remain the same, however, when I am running this project in tomcat on my machine, I would like to change the configuration and also change what goals it executes. Ajay - 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. - -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven appends sub-project artifactId to urls - Please help
Hi Jens, you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it. HTH, Stefan Jens Riboe wrote: I have an organization POM, with common defs, including url templates for scm and distribution. Here are the relevant snippets, from the parent pom scm connectionscm:svn:https://www.myhost.com/svn/pub/${project.name}/trunk/connection developerConnectionscm:svn:https://www.myhost.com/svn/pub/${project.name}/trunk/developerConnection urlhttp://www.myhost.com/websvn/${project.name}/trunk/url /scm site iddoc/id urldav:http://dav.myhost.com:8000/doc/${project.name}//url /site Here are the relevant snippets, from a test sub-pom parent ... /parent artifactIdhello/artifactId version0.17/version packagingjar/packaging nameHelloMvn/name The problem is that the URLs of the effective pom of the sub-project has the artifactId appended. scm connectionscm:svn:https://www.myhost.com/svn/pub/HelloMvn/trunk/hello/connection developerConnectionscm:svn:https://www.myhost.com/svn/pub/HelloMvn/trunk/hello/developerConnection urlhttp://www.myhost.com/websvn/HelloMvn/trunk/hello/url /scm site iddoc/id urldav:http://dav.myhost.com:8000/doc/HelloMvn/hello/url /site So my question is: How can I disable this feature, or configure the way it is working? As it stands right now, I consider this feature to be a bug. It's not documented and I hardly see the benefit of it. There was a mail trail touching this back in December, but it didn't come to a conclusion http://www.mail-archive.com/users@maven.apache.org/msg77123.html Regards, /jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shared modules and versioning
Create an extra artifact A of packing type pom. Declare the dependency to the shared module M within A, with the version you want/need. In your projects P1, P2, ... declare a dependency on A (here, a version range is useful, since A is your own project). Thus, all projects P1...Px use the same version of M, namely the one you declare in A. If you want to change to another version of M, change it in A and deploy/release it. regards, Stefan EJ Ciramella wrote: So we have a module that is shared across multiple deployable units. It's imperative that each deployable unit uses the SAME version of this dependency. If these deployable units are in their OWN project structure, how do you uniformly enforce they use the same version without letting each deployable unit have it's very own dependency listing. We've tried making the version a property in our current parent project, but this doesn't feel like it's the correct place to put them (we're slowly becoming more and more modular - and realizing there's no true parent to all projects). How have people solved this in scenario? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven appends sub-project artifactId to urls - Please help
I added a comment to http://jira.codehaus.org/browse/MNG-3244. You may want to add you votes. Apparently, it was originally planned to not append the artifact id unless the URL would end with a /. Stefan Ben Lidgey wrote: -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 21 February 2008 09:52 To: Maven Users List Subject: Re: maven appends sub-project artifactId to urls - Please help Hi Jens, you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it. HTH, Stefan We have a similar problem to Jens as our projects are structured in Eclipse friendly structure, e.g. ParentProject - pom.xml ChildProject1 - pom.xml - src/java etc ChildProject2 - pom.xml - src/java etc Which is different to the standard Maven dir structure, e.g. ParentProject - pom.xml - ChildProject1 - pom.xml - src/java etc - ChildProject2 - pom.xml - src/java etc It would make sense to me to be able to specify a different naming strategy, perhaps the Maven one is used as a default, but you could define a different naming strategy and set that to be used instead, e.g. scm namingStrategy=org.apache.maven.scm.FlatTreeNamingStrategy ... /scm That doesn't append artifactIds. Then if people had other weird and whacky ways of structuring projects they could write custom naming strategies to behave in accordance with their structures. Ben This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven appends sub-project artifactId to urls - Please help
I agree, it is a bit too late to change this behaviour now. Maybe some other suffix like $ or ${fixed} or you-name-it could be the cure. Then all existing builds would continue to work and if someone would not want the artifact id appended, they can add the special character. Stefan Brian E. Fox wrote: The discussion in the issue revolves around the fact that changing this behavior to as documented will break every build where there isn't a / at the end. It's not apparent how to fix this without hosing tons of unsuspecting users. --Brian -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 6:03 AM To: Maven Users List Subject: Re: maven appends sub-project artifactId to urls - Please help I added a comment to http://jira.codehaus.org/browse/MNG-3244. You may want to add you votes. Apparently, it was originally planned to not append the artifact id unless the URL would end with a /. Stefan Ben Lidgey wrote: -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 21 February 2008 09:52 To: Maven Users List Subject: Re: maven appends sub-project artifactId to urls - Please help Hi Jens, you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it. HTH, Stefan We have a similar problem to Jens as our projects are structured in Eclipse friendly structure, e.g. ParentProject - pom.xml ChildProject1 - pom.xml - src/java etc ChildProject2 - pom.xml - src/java etc Which is different to the standard Maven dir structure, e.g. ParentProject - pom.xml - ChildProject1 - pom.xml - src/java etc - ChildProject2 - pom.xml - src/java etc It would make sense to me to be able to specify a different naming strategy, perhaps the Maven one is used as a default, but you could define a different naming strategy and set that to be used instead, e.g. scm namingStrategy=org.apache.maven.scm.FlatTreeNamingStrategy ... /scm That doesn't append artifactIds. Then if people had other weird and whacky ways of structuring projects they could write custom naming strategies to behave in accordance with their structures. Ben This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with property inheritance in maven site plugin
Hi, ${project.version} is an internal maven property, so it is absolutely not a good idea to use it. So the first try should be to rename that one. Stefan Christian Kölle wrote: Hi all I have a problem with the property inheritance in the maven site project. I have a multi-module project. The base pom looks like this: project modelVersion4.0.0/modelVersion groupIdmy.project/groupId artifactIdall/artifactId packagingpom/packaging version${project.version}/version properties project.version1.0/project.version /properties ... /project The poms of the subprojects look like this: project modelVersion4.0.0/modelVersion parent groupIdmy.project/groupId artifactIdall/artifactId version${project.version}/version relativePath../Build/pom.xml/relativePath /parent ... /project This works fine for the install goal (wich use a lot of different plugins for special purposes) but not for the site plugin. A call to mvn site produces the following error: [INFO] [site:stage] Downloading: http://repo1.maven.org/maven2/my/project/${project.version}/all-${project.version}.pom [INFO] Parent project loaded from repository. [INFO] Parent project loaded from repository. Downloading: http://repo1.maven.org/maven2/my/project/${project.version}/all-${project.version}-site_en.xml [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The site descriptor cannot be resolved from the repository: No such file or directory When I change to explicit version numbers in both poms everything works fine. Obviously the site plugin has problems with resolving the property. Any ideas? Thanks Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tgz in compile.classpath of antrun
Hi, I think it is perfectly normal for any java program to ignore any non-java files (like tgz) in the classpath or not to add them even if requested. Maybe you should rather use another plugin (like dependency-plugin) to extract the tgz into the target/classes or a similar folder? Stefan Benoit Decherf wrote: Hi, I have a problem with the classpath passed to antrun: If my project have a compile dependency on a tgz, the tgz doesn't appear in the maven.compile.classpath. I attache the example that reproduce the bug: In project A, just execute mvn install. It create several artifacts : A.jar A-jar-with-dependencies.jar, A.tar.bz2, etc... In project B: mvn dependency:tree show all the dependencies mvn compile just execute the antrun plugin and print the classpath. Can you confirm me that there is a bug ? Is there a workaround on this bug ? Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire / Surefire-report 2.4.1 and java heap space
Hi, I know that findbugs is crazy about memory. Maybe you are also affected by http://jira.codehaus.org/browse/SUREFIRE-449 and http://jira.codehaus.org/browse/MJAVADOC-171 and your plugins and tests run too often. You could just increase the heap size using $MAVEN_OPTS=-Xmx512m Stefan [EMAIL PROTECTED] wrote: I've updated our company pom to use surefire and surefire-report 2.4.1. We have a project with 4 modules with not much source (Like 10 to 15 classes and 10 to 15 testclasses per module). We are running a mvn site-deploy and started to run out of heap space. We have quite a few plugins running (PMD, Findbugs, Checkstyle, Qalab, Cobertura, JDepend, Javadoc, JXR and a few others) Is it a known issue that with surefire 2.4.1 there is more memory usage? With regards, Nick Stolwijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 / Archiva / Informations about artifacts
For 2), use a simple pom that declares a dependency on the artifact, using version[0,)/version, then you can use the maven-dependency-plugin to do whatever you want with it. For 1) I don't know. regards, Stefan Julien Stern wrote: Hi list, I'm using Maven2 and Archiva. I'm looking for a way to programatically perform the following (or at least to be able to call it from a CLI): 1) Obtain the available versions of an artifact in my Archiva 2) Retrieve the latest SNAPSHOT of a given version of an artifact from the Archiva I did not find any straightforward way to do this, except fetching the various maven-metadata.xml from all the repositories defined in the Archiva, parsing them, and deducing available versions and the correct paths to fetch the latest SNAPSHOT. This is not terribly complicated, but I felt like reinventing the wheel. After all, Maven2 is doing essentially this, at least for #2, all the time, so I'm sure I can re-use some module, or even maybe that this is done already. Can I use a Maven2 plugin ? A Maven2 standalone component ? Thank you for any hint / javadoc links / code samples / etc Regards, -- Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly Plugin and ejb-client jars
If it is just about the file names, you can configure those with outputFileNameMapping${artifactId}${classifier}.${extension}/outputFileNameMapping where ${classifier} here denotes client in case of ejb-client or nothing in case of ejb. Stefan Richard Featherstone wrote: Hi, Trial and error sorted this out In the pom I declared the dependency with typeejb-client/type In the assemble.xml I have includecom.xxx.cml:cml-trigger-ejb/include This creates cml-trigger-ejb.jar in the dist but only including the client classes. Not exactly what I was after but it serves the purpose. Richard -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-compiler-plugin: setting testSourceDirectory for an execution
Hi, I think it should be possible to use the includes/excludes and outputFileName configuration elements for the plugin in conjunction with multiple executions during an appropriate phase, e.g. generate-test-resources for your purpose. regards, Stefan simon wrote: Hi, I want to create multiple executions of the maven-compiler-plugin that use different testSourceDirectory and testOutputDirectory settings. The reason is that the particular project I'm trying to maven-enable (clirr) is designed to analyse jarfiles. So as part of its unit tests, it first builds a couple of jarfiles from local sources, then runs its unit tests against them. Ideally, I want the test-compile phase to run the compile:testCompile goal three times: once to build the source for testjar1, once to build the source for testjar2, then once to build the real unit-test code. After that, the test phase can happily run and find the jars it needs to run tests against. But I cannot see any option on the maven-compiler-plugin to specify an override for the testSourceDirectory or testOutputDirectory settings. Is there one, or not? An alternative is to make the two test jars into subprojects. But that means moving the code around (in CVS, ecch), and then fixing the existing ant and maven1 builds. Not so tempting. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire plugin 2.3 - 2.4.1 not working.
] -- /mvn test -- Rerpot with: mvn -X test Is included as an attachment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Junit report and surefire plugin
* maven-surefire-report-plugin * dashboard-maven-plugin Stefan Bala Rajamani wrote: Currently generating junit reports (*.txt and *.xml files) using maven-surefire-plugin. wondering is there way to display these reports in HTML format and a dash report within Maven? Thanks in advance, Bala. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nexus repository manager
We're using archiva now. It's much easier to set up than proximity, but awfully slow (similar to continuum). So we only use it for repo cleanup, but for repo cacheproxy we stick with maven-proxy 0.2 - it has never let us down ;) With nexus, it seems, the situation is similar to HURD - it's coming _next week_: http://blogs.sonatype.com/jvanzyl/2007/11/21.html *SCNR* Stefan Hayes, Peter wrote: Is there any update on the Nexus repository manager? I am interested in snapshot cleanup. Thanks, Peter Hayes Architecture Shared Technology Services | Fidelity Investments Management Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc:jar error: Not executing Javadoc as the project is not a Java classpath-capable package
Hi Ryan, the thing is: in maven philosophy, it does not make sense to create an aggregate javadoc jar. A javadoc jar contains the sources for _one_ artifact, so that for that specific artifact an IDE could for example download this javadoc jar in order to have the javadoc available for all the classes in this artifact. I understand that you want all the aggregated javadoc in one file, but to do that you cannot use standard maven procedures. Just package the aggregate javadoc yourself. HTH, Stefan Ryan H. wrote: Has anyone successfully used mvn javadoc:jar -Daggregate=true for multiple projects? Here is the directory structure for my multiple projects: Project |-- pom.xml |-- Module1 | `-- pom.xml |-- Module2 | `-- pom.xml `-- Module3 `-- pom.xml Now, when I run mvn javadoc:jar -Daggregate=true under Project, it always throws me this info without doing anything: *[INFO] Not executing Javadoc as the project is not a Java classpath-capable package* I downloaded the source code of maven-javadoc-plugin and added the debug statement before the above line is printed in this block of code snippet: ArtifactHandler artifactHandler = project .getArtifact().getArtifactHandler(); *if* ( !java.equals( artifactHandler.getLanguage() ) ) { getLog().info(problematic artifact is: + project.getArtifactId() + , language: + artifactHandler.getLanguage()); getLog().info( Not executing Javadoc as the project is not a Java classpath-capable package ); } And it turned out to be complaining about Project, whose packing type is pom and language is none: [INFO] [javadoc:jar] [INFO] problematic artifact is: Project, language: none [INFO] Not executing Javadoc as the project is not a Java classpath-capable package Am I missing something? Anyone has a clue? Thanks On 1/29/08, Ryan H. [EMAIL PROTECTED] wrote: I stripped out all modules and run it again. It still complains as shown below: D:\maven1\testmvn javadoc:jar -Daggregate=true [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'javadoc'. WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Foundations POM [INFO]task-segment: [javadoc:jar] (aggregator-style) [INFO] [INFO] Preparing javadoc:jar [INFO] [INFO] Building MyProjects POM [INFO] [INFO] No goals needed for project - skipping *[INFO] [javadoc:jar] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package *[INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Jan 29 17:42:20 PST 2008 [INFO] Final Memory: 7M/508M [INFO] On 1/29/08, Ryan H. [EMAIL PROTECTED] wrote: Hi Vincent, I invoke javadoc:jar from my top level POM whose package type is pom. All modules included are java projects and their packaging types are jar across the board ... On 1/29/08, Vincent Siveton [EMAIL PROTECTED] wrote: Hi Ryan, What is your packaging type of your project (or subprojects)? It seems it is not a java one. Cheers, Vincent 2008/1/29, Ryan H. [EMAIL PROTECTED]: Hello, Anyone knows what this javadoc:jar complains about? I'm able to run javadoc:javadoc in aggregate mode (ie. generate only one report for all multiple projects). However, when I run javadoc:jar, it starts complaining it ... [INFO] [javadoc:jar] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package Thanks Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]