Overriding inheritance from parent POM?
I have a multi-module project with some assembly descriptors in the parent POM: http://code.google.com/p/galagosearch/source/browse/tags/galagosearch-1.0/pom.xml They're currently commented out, because when I type 'mvn install' in the parent's path, it tries to make .tar.gz files for all the child modules with these same assembly descriptors. That fails, of course, because the relative paths are all wrong. Any ideas on how to fix this? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Overriding inheritance from parent POM?
They're currently commented out, because when I type 'mvn install' in the parent's path, it tries to make .tar.gz files for all the child modules with these same assembly descriptors. That fails, of course, because the relative paths are all wrong. Adding this to the parent plugin configuration should do it: inheritedfalse/inherited Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: [MAVEN RELEASE PLUGIN] NoSuchMethodError: org.apache.maven.settings.Settings.getRuntimeInfo() for goal prepare
Hi Stephane, As you suggested, just tested the same maven command line from a fresh installed maven 2.1-M1 and it worked! So I filled an issue in M2Eclipse's JIRA (http://jira.codehaus.org/browse/MNGECLIPSE-1171), hope it's clear enough. Thanks, Sébastien Lesaint -Message d'origine- De : Stephane Nicoll [mailto:stephane.nic...@gmail.com] Envoyé : samedi 24 janvier 2009 10:50 À : Maven Users List Objet : Re: [MAVEN RELEASE PLUGIN] NoSuchMethodError: org.apache.maven.settings.Settings.getRuntimeInfo() for goal prepare Well it looks like an embedder issue. Install maven and run it on the command line (outside eclipse). If it is working, please file an issue in the m2eclipse project. S. On Fri, Jan 23, 2009 at 7:06 PM, Lesaint Sébastien sebastien.lesa...@ginerativ.fr wrote: Hi Stephane, Thanks for the quick answer. I must have messed up with the log file I had or with the copy/paste. The log data I've included in the mail was the one of a test I run with beta-7 after I had tried everything with beta-8. Since I'm using M2Eclipse, I don't have a real install of maven on my computer so I need beta-8. If there is no way to make beta-8 working, I'll install maven and try beta-7. Anyway, please find the correct log file below. Sorry for the waste of time. Sébastien Lesaint + Error stacktraces are turned on. Maven version: 2.1-SNAPSHOT Java version: 1.5.0_06 Default locale: fr_FR, platform encoding: Cp1252 OS name: windows xp version: 5.1 arch: x86 family: windows [DEBUG] Activated the following profiles for standalone super-pom: [Profile {id: cvs credentials, source: settings.xml}, Profile {id: development, source: settings.xml}] [DEBUG] Pre-scanning POM lineage of: F:\bar.boo\Eclipse\Java\bar-parent-pom\pom.xml for build extensions. [DEBUG] Building model-lineage for: F:\bar.boo\Eclipse\Java\bar-parent-pom\pom.xml to pre-scan for extensions. [DEBUG] Checking for external profiles in: F:\bar.boo\Eclipse\Java\bar-parent-pom\profiles.xml [DEBUG] Checking: com.bar:bar-parent-pom:pom:1.0.1-SNAPSHOT for extensions. (It has 0 modules.) [DEBUG] Checking com.bar:bar-parent-pom:pom:1.0.1-SNAPSHOT for extensions. [DEBUG] Basedir is: F:\bar.boo\Eclipse\Java\bar-parent-pom [DEBUG] Checking for external profiles in: F:\bar.boo\Eclipse\Java\bar-parent-pom\profiles.xml [DEBUG] Checking for external profiles in: F:\bar.boo\Eclipse\Java\bar-parent-pom\profiles.xml [DEBUG] Checking for external profiles in: F:\bar.boo\Eclipse\Java\bar-parent-pom\profiles.xml [DEBUG] Aligning project: com.bar:bar-parent-pom:pom:1.0.1-SNAPSHOT to base directory: F:\bar.boo\Eclipse\Java\bar-parent-pom [DEBUG] Capturing session for backward compatibility aspect: org.apache.maven.execution.mavensess...@3c2378 [...] [DEBUG] Returning artifacts: [org.apache.maven:maven-plugin-api:jar:2.0:runtime, org.apache.maven.release:maven-release-manager:jar:1.0-alpha-5:runtime, org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime, org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6:runtime, org.apache.maven:maven-model:jar:2.0:runtime, org.apache.maven:maven-artifact:jar:2.0.8:runtime, org.apache.maven:maven-project:jar:2.0:runtime, org.apache.maven:maven-settings:jar:2.0:runtime, org.apache.maven:maven-profile:jar:2.0:runtime, org.apache.maven:maven-artifact-manager:jar:2.0:runtime, org.apache.maven:maven-repository-metadata:jar:2.0:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven.scm:maven-scm-api:jar:1.1:runtime, org.apache.maven.scm:maven-scm-manager-plexus:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-accurev:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-bazaar:jar:1.1:runtime, regexp:regexp:jar:1.3:runtime, org.apache.maven.scm:maven-scm-provider-clearcase:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-cvsexe:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-cvs-commons:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-cvsjava:jar:1.1:runtime, org.netbeans.lib:cvsclient:jar:20060125:runtime, ch.ethz.ganymed:ganymed-ssh2:jar:build210:runtime, org.apache.maven.scm:maven-scm-provider-gitexe:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-git-commons:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-hg:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-perforce:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-starteam:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-svnexe:jar:1.1:runtime, org.apache.maven.scm:maven-scm-provider-synergy:jar:1.1:runtime, jdom:jdom:jar:1.0:runtime, jaxen:jaxen:jar:1.1-beta-8:runtime, org.apache.maven.shared:maven-invoker:jar:2.0.9:runtime, commons-cli:commons-cli:jar:1.0:runtime, commons-logging:commons-logging:jar:1.0:runtime,
Sharing my Maven repository
Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- View this message in context: http://www.nabble.com/Sharing-my-Maven-repository-tp21663284p21663284.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing my Maven repository
Well, yes you could copy it to other development machine. But it's not the best way to do it. You should install and configure a maven repository manager (See http://maven.apache.org/repository-management.html). Some of those tools have even the ability to scan a local repository like the one you have to transform it (i.e. add the right metadata) to make it a remote repository. Cheers. 2009/1/26 HHB hubaghd...@yahoo.ca Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Sharing my Maven repository
I want to copy/upload/transfer (not sure what is right) my local Maven repository to out Continuous Integration server. Not sure what is the best practice for this? Do I have to use a tool like Apache Archiva? Sorry, I'm new to Maven Thanks again. Baptiste MATHUS-4 wrote: Well, yes you could copy it to other development machine. But it's not the best way to do it. You should install and configure a maven repository manager (See http://maven.apache.org/repository-management.html). Some of those tools have even the ability to scan a local repository like the one you have to transform it (i.e. add the right metadata) to make it a remote repository. Cheers. 2009/1/26 HHB hubaghd...@yahoo.ca Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- View this message in context: http://www.nabble.com/Sharing-my-Maven-repository-tp21663284p21664321.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing my Maven repository
when you think of local repository, think of it as a cache of various remote repositories only. you should probably install a repository manager and start uploading artifacts there that are necessary for your projects. In the way that the repository manager supports.. not sure what that is exactly, I've always got away with existing public repositories. Milos HHB wrote: I want to copy/upload/transfer (not sure what is right) my local Maven repository to our Continuous Integration server (Hudson). Not sure what is the best practice for this? Do I have to use a tool like Apache Archiva? Sorry, I'm new to Maven Thanks again. Baptiste MATHUS-4 wrote: Well, yes you could copy it to other development machine. But it's not the best way to do it. You should install and configure a maven repository manager (See http://maven.apache.org/repository-management.html). Some of those tools have even the ability to scan a local repository like the one you have to transform it (i.e. add the right metadata) to make it a remote repository. Cheers. 2009/1/26 HHB hubaghd...@yahoo.ca Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Adding pre-release steps...?
Just asking to see if anyone wanted to do the same and hints about the best way of doing this: I would like to add some simple standard pre-validation steps before making a release of any project in the company. For instance checking that some standard files (release notes, etc) are present and up-to-date etc What is the best way to achieve this? Adding standard configuration for the release plugin in the root parent project? We are running continuum and invoice the release plugin there, which is working nicely so I don't want to change any of that behaviour, just want to add this behaviour... Grateful for any pointers or if there is stuff others did in this area etc :-)
Re: ${pom.version} without the SNAPSHOT part.
Probably off topic as the issue is solved, but wanted to share my experience with you, as I found myself in the same need stated on the title of this thread. __Problem: - Due to an issue with the specific product I'm working on (Alfresco) for which its Alfresco Module Packages (no more than a type of Zip for which I defined a custom packaging type AMP) do not allow 'characters in the versions', - due to the fact I defined archetypes for AMP [3] packaging and want to use the filtering and SNAPSHOT capabilities of maven (read: filter ${project.version} into the technology specific module.properties file) I was unable to use SNAPSHOT versions in my AMP projects as they were breaking the runtime configuration (as in issue [4]). __Solution: An aggregated use of the: - maven-buildnumber-plugin (which pushes the ${buildNumber} variable in the POM - my homebrew 5 liner mojo (maven-nosnapshot-plugin in our repo here [2], as trivial as non documented) which just strips out the '-SNAPSHOT ' part of the version in case it exists and pushes it in the pom as ${noSnapshotVersion} This way I could filter my module properties with something like: module.version=${noSnapshotVersion}.$[buildNumber} avoiding the Alfresco specific problem while still keeping incremental versions (mimicking the SNAPSHOT behavior) of the modules during development. My 0.02€ (even if I admit that's a workaround ;) Ciao! Gab [1] http://www.alfresco.com [2] http://repository.sourcesense.com/maven2/com/sourcesense/maven/maven-nosnapshot-plugin/0.0.3-SNAPSHOT/ [3] http://repository.sourcesense.com/maven2-sites/maven-alfresco-amp-archetype/ [4] http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=15 2009/1/26 Thiago Moreira (timba) tmoreira2...@gmail.com Ok, I found the solution! To add the Eclipse plugins to the Maven repository you should use the maven-eclipse-plugin for it. The goal is eclipse:make-artifacts http://maven.apache.org/plugins/maven-eclipse-plugin/make-artifacts-mojo.html Cheers On Sun, Jan 25, 2009 at 1:05 PM, Thiago Moreira (timba) tmoreira2...@gmail.com wrote: Okay, I found the problem! Eclipse don't accept - on the name of the artifacs... so I changed the name to 1.2.3.SNAPSHOT and now I'm good to go. Another question, how can I reference a Eclipse dependency in the pom file?? Like org.eclipse.core.resources?? Cheers On Sun, Jan 25, 2009 at 8:44 AM, Rusty Wright rusty.wri...@gmail.com wrote: If I understand that OSGi version grammar, doesn't that mean that 1.2.3-SNAPSHOT is an invalid OSGi version number? I.e., only periods are allowed between the version parts, no dash, and there should be three periods, not two. E.g., 1.2.3.SNAPSHOT. Does the maven OSGi plugin transform the maven style version number to the OSGi style when creating the bundle/jar? I was reading about OSGi over the winter break and it looks like the answer for various problems. Baptiste MATHUS wrote: I don't think it is. But I'm not sure I understand what you want to do. If you're trying to build an eclipse plugin jar from some project, you shouldn't do it yourself. There's tools out there that will do it just fine: have a look at tycho, maven-bundle-plugin, or maven-pde-plugin (this last one is quite outdated, from what I remember). These tools will deal just fine with your version number. Fwiw, here's the OSGi versioning grammar: version::=major('.'minor('.'micro('.'qualifier)?)?)? major::=digit+ minor::=digit+ micro::=digit+ qualifier::=(alpha|digit|'_'|'-')+ digit::=[0..9] alpha::=[a..zA..Z] There must be no whitespace in version. Cheers 2009/1/25 Thiago Moreira (timba) tmoreira2...@gmail.com Hi there, Is there a way to get only the numbers of the ${pom.version} property?? Something like this: 1.2.3-SNAPSHOT, I want just the 1.2.3 part.I will use it to build a Eclipse plugin that don't accept Strings on the version property. Thanks Thiago Moreira - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
Re: Sharing my Maven repository
start uploading artifacts there that are necessary for your projects. Well, actually no. Only if you want to explicitly validate each artifact you want to be used or only YOUR artifacts. The rest (public opensource jars...) will be downloaded by the MRM like a classical web cache server does. I've always got away with existing public repositories. Which is quite acceptable when developing as an individual and just trying things. But when behind say a continuous integration server, it becomes dangerous since network problems could directly affect your builds. Having a mrm will permit your CI to run just fine even if some repo (or the whole Internet access) becomes temporarily unavailable. And I don't even insist on performances: downloading locally will obviously run an order of magnitude faster than accessing public repositories. Cheers. 2009/1/26 Milos Kleint milos.kle...@sun.com when you think of local repository, think of it as a cache of various remote repositories only. you should probably install a repository manager and start uploading artifacts there that are necessary for your projects. In the way that the repository manager supports.. not sure what that is exactly, I've always got away with existing public repositories. Milos HHB wrote: I want to copy/upload/transfer (not sure what is right) my local Maven repository to our Continuous Integration server (Hudson). Not sure what is the best practice for this? Do I have to use a tool like Apache Archiva? Sorry, I'm new to Maven Thanks again. Baptiste MATHUS-4 wrote: Well, yes you could copy it to other development machine. But it's not the best way to do it. You should install and configure a maven repository manager (See http://maven.apache.org/repository-management.html). Some of those tools have even the ability to scan a local repository like the one you have to transform it (i.e. add the right metadata) to make it a remote repository. Cheers. 2009/1/26 HHB hubaghd...@yahoo.ca Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Adding pre-release steps...?
Write plugins to perform your validation and add them to the preparationGoals of the release plugin. Justin On Jan 26, 2009, at 7:12 AM, Kent Närling kent.narl...@seamless.se wrote: Just asking to see if anyone wanted to do the same and hints about the best way of doing this: I would like to add some simple standard pre-validation steps before making a release of any project in the company. For instance checking that some standard files (release notes, etc) are present and up-to-date etc What is the best way to achieve this? Adding standard configuration for the release plugin in the root parent project? We are running continuum and invoice the release plugin there, which is working nicely so I don't want to change any of that behaviour, just want to add this behaviour... Grateful for any pointers or if there is stuff others did in this area etc :-)
Sharing (big) parts of source across projects
Hi. I have an (Ant) project which generates a JAR, plus a WAR for webservices, to port to maven. I have a question about the best practises: 1) I created a subproject for the webservices, ok like this? 2) The Webservices uses lots of source from my main project what's the best approach ? Déclare two source path (ws + parent) ? Make the WS subproject depend on the parent project ? Thanks, Yves Dessertine - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding pre-release steps...?
That was what I was planning, which is easy enough for me, just wanted to check before that this was the best way... thanks! :-) Will this configuration setting be inherited even if I change other parts of the configuration in the inherited projects? or will they then override this with the default empty list (removing my called plugins)? //Kent 2009/1/26 Edelson, Justin justin.edel...@mtvstaff.com Write plugins to perform your validation and add them to the preparationGoals of the release plugin. Justin On Jan 26, 2009, at 7:12 AM, Kent Närling kent.narl...@seamless.se wrote: Just asking to see if anyone wanted to do the same and hints about the best way of doing this: I would like to add some simple standard pre-validation steps before making a release of any project in the company. For instance checking that some standard files (release notes, etc) are present and up-to-date etc What is the best way to achieve this? Adding standard configuration for the release plugin in the root parent project? We are running continuum and invoice the release plugin there, which is working nicely so I don't want to change any of that behaviour, just want to add this behaviour... Grateful for any pointers or if there is stuff others did in this area etc :-) -- Kent Närling System Architect SEAMLESS Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden Phone: +46 8 5648 7800, fax: +46 8 5648 7823 Mobile: +46 70 836 9925 Mail: kent.narl...@seamless.se www.seamless.se
RE: Sharing my Maven repository
Also having to rely on a single local repo as the master is going to burn you eventually. You also won't be able to do the best practices mentioned here[1] like have separate repos and cleaning the repo out nightly. [1] http://blogs.sonatype.com/people/2009/01/maven-continuous-integration-be st-practices/ -Original Message- From: bmat...@gmail.com [mailto:bmat...@gmail.com] On Behalf Of Baptiste MATHUS Sent: Monday, January 26, 2009 7:31 AM To: Maven Users List Subject: Re: Sharing my Maven repository start uploading artifacts there that are necessary for your projects. Well, actually no. Only if you want to explicitly validate each artifact you want to be used or only YOUR artifacts. The rest (public opensource jars...) will be downloaded by the MRM like a classical web cache server does. I've always got away with existing public repositories. Which is quite acceptable when developing as an individual and just trying things. But when behind say a continuous integration server, it becomes dangerous since network problems could directly affect your builds. Having a mrm will permit your CI to run just fine even if some repo (or the whole Internet access) becomes temporarily unavailable. And I don't even insist on performances: downloading locally will obviously run an order of magnitude faster than accessing public repositories. Cheers. 2009/1/26 Milos Kleint milos.kle...@sun.com when you think of local repository, think of it as a cache of various remote repositories only. you should probably install a repository manager and start uploading artifacts there that are necessary for your projects. In the way that the repository manager supports.. not sure what that is exactly, I've always got away with existing public repositories. Milos HHB wrote: I want to copy/upload/transfer (not sure what is right) my local Maven repository to our Continuous Integration server (Hudson). Not sure what is the best practice for this? Do I have to use a tool like Apache Archiva? Sorry, I'm new to Maven Thanks again. Baptiste MATHUS-4 wrote: Well, yes you could copy it to other development machine. But it's not the best way to do it. You should install and configure a maven repository manager (See http://maven.apache.org/repository-management.html). Some of those tools have even the ability to scan a local repository like the one you have to transform it (i.e. add the right metadata) to make it a remote repository. Cheers. 2009/1/26 HHB hubaghd...@yahoo.ca Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding pre-release steps...?
Unless the inheriting project overrides the preparationGoals property explicitly, you should be good. On Jan 26, 2009, at 8:24 AM, Kent Närling kent.narl...@seamless.se wrote: That was what I was planning, which is easy enough for me, just wanted to check before that this was the best way... thanks! :-) Will this configuration setting be inherited even if I change other parts of the configuration in the inherited projects? or will they then override this with the default empty list (removing my called plugins)? //Kent 2009/1/26 Edelson, Justin justin.edel...@mtvstaff.com Write plugins to perform your validation and add them to the preparationGoals of the release plugin. Justin On Jan 26, 2009, at 7:12 AM, Kent Närling kent.narl...@seamless.s e wrote: Just asking to see if anyone wanted to do the same and hints about the best way of doing this: I would like to add some simple standard pre-validation steps before making a release of any project in the company. For instance checking that some standard files (release notes, etc) are present and up-to-date etc What is the best way to achieve this? Adding standard configuration for the release plugin in the root parent project? We are running continuum and invoice the release plugin there, which is working nicely so I don't want to change any of that behaviour, just want to add this behaviour... Grateful for any pointers or if there is stuff others did in this area etc :-) -- Kent Närling System Architect SEAMLESS Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden Phone: +46 8 5648 7800, fax: +46 8 5648 7823 Mobile: +46 70 836 9925 Mail: kent.narl...@seamless.se www.seamless.se
Re: Sharing (big) parts of source across projects
On Mon, Jan 26, 2009 at 8:13 AM, Yves Dessertine yvesd.pub...@gmail.comwrote: I have an (Ant) project which generates a JAR, plus a WAR for webservices, to port to maven. I have a question about the best practises: 1) I created a subproject for the webservices, ok like this? 2) The Webservices uses lots of source from my main project what's the best approach ? Déclare two source path (ws + parent) ? Make the WS subproject depend on the parent project ? The WAR is your web services? What do you use the JAR for? Based on the limited understanding I have of your project, I'd say that basically, you want: myproject (pom project, no real implementation other than the two modules) - myproject-jar -- whatever this project is for; common? library? domain? JAR packaging. - myproject-web-services -- depends on myproject-jar as a JAR, WAR packaging. - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/
Archetype expression ${package.replace ('.', '/')} not a valid reference
Hi Ive been working with archetypes for a time and I had some archetypes with this expression: ${package.replace ('.', '/')} And it worked, but for some reason now it doesnt work. It throws a warning message is not a valid reference. Any ideas?
Re: Sharing (big) parts of source across projects
2009/1/26 Geoffrey Wiseman geoffrey.wise...@gmail.com: The WAR is your web services? What do you use the JAR for? Based on the limited understanding I have of your project, I'd say that basically, you want: myproject (pom project, no real implementation other than the two modules) - myproject-jar -- whatever this project is for; common? library? domain? JAR packaging. - myproject-web-services -- depends on myproject-jar as a JAR, WAR packaging. Thank you Geoffrey for your answer. Yes, that's what I want. It now compiles, thank you. The WAR contains the web services, and the JAR is a common lib, that we need to distribute. But, a new problem now pops up : can we build two versions of the JAR ? One light version to use with the Web services, and another, heavy version to distribute and full-featured ? While it works as it's now, the JAR included in the war, is much more heavy than before (where an Ant task picked up a few files to generate the lightweight jar). The few files are shared across the lightweight and the heavy jar... What to do now ? Put them in a seperate sub project ? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing (big) parts of source across projects
What is the reason for the heavy part for the full featured? More functionality? it has an UI? It seems you probably might to create something like: - myproject - myproject-common (jar) - myproject-heavy (jar) - myproject-webservices (war) 2009/1/26 Yves Dessertine yvesd.pub...@gmail.com 2009/1/26 Geoffrey Wiseman geoffrey.wise...@gmail.com: The WAR is your web services? What do you use the JAR for? Based on the limited understanding I have of your project, I'd say that basically, you want: myproject (pom project, no real implementation other than the two modules) - myproject-jar -- whatever this project is for; common? library? domain? JAR packaging. - myproject-web-services -- depends on myproject-jar as a JAR, WAR packaging. Thank you Geoffrey for your answer. Yes, that's what I want. It now compiles, thank you. The WAR contains the web services, and the JAR is a common lib, that we need to distribute. But, a new problem now pops up : can we build two versions of the JAR ? One light version to use with the Web services, and another, heavy version to distribute and full-featured ? While it works as it's now, the JAR included in the war, is much more heavy than before (where an Ant task picked up a few files to generate the lightweight jar). The few files are shared across the lightweight and the heavy jar... What to do now ? Put them in a seperate sub project ? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Kent Närling System Architect SEAMLESS Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden Phone: +46 8 5648 7800, fax: +46 8 5648 7823 Mobile: +46 70 836 9925 Mail: kent.narl...@seamless.se www.seamless.se
maven-javadoc-plugin and dependencies
I created my own Doclet that uses freemarker as a template engine. I tried adding it to another project to generated my own javadocs from it reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration docletmyPackage.BlockDoclet/doclet outputDirectory ${project.build.directory}/blockdocs/outputDirectory docletArtifact groupId${project.groupId}/groupId artifactIdmyPackage.blockdoc/artifactId version${project.version}/version /docletArtifact /configuration /plugin /plugins /reporting i thought that using the 'docletArtifact' would wire the dependencies that project has to the -classpath option of javadoc but it results in my doclet not finding freemarker ... 1 error [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error has occurred in JavaDocs report generation:Exit code: 1 - java.l ang.NoClassDefFoundError: freemarker/template/TemplateException at java.lang.Class.getDeclaredMethods0(Native Method) When i browsed the mailinglist i found suggestions to adding a dependency like this : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId dependencies dependency groupIdorg.freemarker/groupId artifactIdfreemarker/artifactId version2.3.15/version /dependency /dependencies /plugin /plugins /build but that doesn't change my error. any idea what i need to do to get this running ? even a workaround ? thanks in advance Bruno
Re: Maven 2.0.9 NullpointerException when running tests
Dave Newton wrote: Geoffrey Wiseman wrote: On Sun, Jan 25, 2009 at 7:21 PM, Dave Newton newton.d...@yahoo.com wrote: Does 4.5 not work? I was just responding to Amin's comment about JUnit 4.4 [...] Ah, missed that--never mind :) Dave - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Hi Thanks for the replies! I managed to get the surefire plugin to use junit 4. However I am getting some strange behaviour, in that some of my tests fail, while they all run fine in eclipse. I am using text mining as a dependency and exclude the version of poi that comes with it. The exception that I get is testCanCreateLuceneDocumentForMSWordDocument(com.amin.app.lucene.index.handler.ms.MSWordHandlerTest) Time elapsed: 0.038 sec ERROR! java.lang.NoSuchMethodError: org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/filesystem/DirectoryNode; at org.apache.poi.hwpf.HWPFDocument.init(HWPFDocument.java:158) at org.apache.poi.hwpf.extractor.WordExtractor.init(WordExtractor.java:59) at com.amin.app.lucene.index.handler.ms.MSWordHandler.extractText(MSWordHandler.java:16) I know that this exception occurs if I am using an old version of poi (2.5), even though I have excluded the version that comes with text mining. I have added dependency groupIdorg.apache.poi/groupId artifactIdpoi/artifactId version3.5-beta4/version scopecompile/scope /dependency This is very strange and I can't understand why the tests won't run. Any help again would be appreciated. -- View this message in context: http://n2.nabble.com/Maven-2.0.9-NullpointerException-when-running-tests-tp2209372p2220012.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven - Plugin LogLevel
What's the easiest way to temporarily hack the plexus logging level to debug? The maven-filtering classes are performing poorly and I'm trying to debug my issue and the existing debug messages would be good enough if I could just see them. Thanks, Brian Brian E Fox wrote: Unfortunately not in 2.x. The logger is configured in plexus (the ioc) and it's not possible to set a level like this. There are several jiras regarding the verbosity that you may want to follow. -Original Message- From: walterw [mailto:walterjwh...@hotmail.com] Sent: Sunday, January 04, 2009 6:38 PM To: users@maven.apache.org Subject: Maven - Plugin LogLevel Hi All, I would like to limit the output from each plugin and only show errors. I know there is a logLevel property that may be set, but I believe after reading and testing, it is only for setting the logLevel of the plugin meaning it will log at that level perhaps? Is it possibly to restrict what maven prints out without having to use the commandline? I know ant tasks can be made quiet, what about maven? mvn -q clean install The q makes the output just what I had in mind, but it would be nice to set once in a configuration. Walter -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21283059.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21671939.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing (big) parts of source across projects
Well, this code is an enterprise project, which is quite complicated. the common are the bare minimum classes for the web services to work. The heavy is the programm which is deployed as part of a proprietary framework. Thanks for the answer, it's the solution we've adopted! 2009/1/26 Kent Närling kent.narl...@seamless.se: What is the reason for the heavy part for the full featured? More functionality? it has an UI? It seems you probably might to create something like: - myproject - myproject-common (jar) - myproject-heavy (jar) - myproject-webservices (war) 2009/1/26 Yves Dessertine yvesd.pub...@gmail.com 2009/1/26 Geoffrey Wiseman geoffrey.wise...@gmail.com: The WAR is your web services? What do you use the JAR for? Based on the limited understanding I have of your project, I'd say that basically, you want: myproject (pom project, no real implementation other than the two modules) - myproject-jar -- whatever this project is for; common? library? domain? JAR packaging. - myproject-web-services -- depends on myproject-jar as a JAR, WAR packaging. Thank you Geoffrey for your answer. Yes, that's what I want. It now compiles, thank you. The WAR contains the web services, and the JAR is a common lib, that we need to distribute. But, a new problem now pops up : can we build two versions of the JAR ? One light version to use with the Web services, and another, heavy version to distribute and full-featured ? While it works as it's now, the JAR included in the war, is much more heavy than before (where an Ant task picked up a few files to generate the lightweight jar). The few files are shared across the lightweight and the heavy jar... What to do now ? Put them in a seperate sub project ? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Kent Närling System Architect SEAMLESS Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden Phone: +46 8 5648 7800, fax: +46 8 5648 7823 Mobile: +46 70 836 9925 Mail: kent.narl...@seamless.se www.seamless.se - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANNOUNCEMENT] - WAS6 Maven Plugin 1.1 released
The WAS6 Maven Plugin team is pleased to announce the was6-maven-plugin-1.1 release! Tools for working with IBM WebSphere 6.0.x and 6.1.x. This plugin works along with an installation of WebSphere Application Server or Process Server - standalone or ND installation, to provide automated tasks for: generating RMIC stubs, starting/stopping servers, installing/updating/uninstalling EARs to application servers, run serviceDeploy and run arbitrary scripts with wsadmin. Changes in this version include: New features: o Support SCA Development for Process Server Issue: MWAS-28. Fixed Bugs: o documentation has wrong artifact id Issue: MWAS-29. o NullPointerException when running plugin Issue: MWAS-26. For a manual installation, you can download the was6-maven-plugin-1.1 here: http://mojo.codehaus.org/was6-maven-plugin Have fun! -WAS6 Maven Plugin team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven 2.0.9 NullpointerException when running tests
On Mon, Jan 26, 2009 at 2:24 PM, aminm ami...@gmail.com wrote: I know that this exception occurs if I am using an old version of poi (2.5), even though I have excluded the version that comes with text mining. I have added dependency groupIdorg.apache.poi/groupId artifactIdpoi/artifactId version3.5-beta4/version scopecompile/scope /dependency This is very strange and I can't understand why the tests won't run. Any help again would be appreciated. Nothing leaps to mind right away -- try mvn dependency:tree and mvn help:effective-pom to see if you're getting the dependencies that you expect to get, and no additional dependencies? - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/
Re: Maven 2.0.9 NullpointerException when running tests
I Googled that stack trace for you and it pointed me straight to the POI FAQ here: http://poi.apache.org/faq.html#faq-N10006 . Classpath debugging advice there - you might need to check if you have an overlapping dependency, so dependency:analyze and dependency:tree are probably good starts. Best Brett On Tue, Jan 27, 2009 at 6:24 AM, aminm ami...@gmail.com wrote: Dave Newton wrote: Geoffrey Wiseman wrote: On Sun, Jan 25, 2009 at 7:21 PM, Dave Newton newton.d...@yahoo.com wrote: Does 4.5 not work? I was just responding to Amin's comment about JUnit 4.4 [...] Ah, missed that--never mind :) Dave - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Hi Thanks for the replies! I managed to get the surefire plugin to use junit 4. However I am getting some strange behaviour, in that some of my tests fail, while they all run fine in eclipse. I am using text mining as a dependency and exclude the version of poi that comes with it. The exception that I get is testCanCreateLuceneDocumentForMSWordDocument(com.amin.app.lucene.index.handler.ms.MSWordHandlerTest) Time elapsed: 0.038 sec ERROR! java.lang.NoSuchMethodError: org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/filesystem/DirectoryNode; at org.apache.poi.hwpf.HWPFDocument.init(HWPFDocument.java:158) at org.apache.poi.hwpf.extractor.WordExtractor.init(WordExtractor.java:59) at com.amin.app.lucene.index.handler.ms.MSWordHandler.extractText(MSWordHandler.java:16) I know that this exception occurs if I am using an old version of poi (2.5), even though I have excluded the version that comes with text mining. I have added dependency groupIdorg.apache.poi/groupId artifactIdpoi/artifactId version3.5-beta4/version scopecompile/scope /dependency This is very strange and I can't understand why the tests won't run. Any help again would be appreciated. -- View this message in context: http://n2.nabble.com/Maven-2.0.9-NullpointerException-when-running-tests-tp2209372p2220012.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven - Plugin LogLevel
Does mvn -x give you what you want? -Original Message- From: jaxzin [mailto:brian.r.jack...@espn3.com] Sent: Monday, January 26, 2009 2:34 PM To: users@maven.apache.org Subject: RE: Maven - Plugin LogLevel What's the easiest way to temporarily hack the plexus logging level to debug? The maven-filtering classes are performing poorly and I'm trying to debug my issue and the existing debug messages would be good enough if I could just see them. Thanks, Brian Brian E Fox wrote: Unfortunately not in 2.x. The logger is configured in plexus (the ioc) and it's not possible to set a level like this. There are several jiras regarding the verbosity that you may want to follow. -Original Message- From: walterw [mailto:walterjwh...@hotmail.com] Sent: Sunday, January 04, 2009 6:38 PM To: users@maven.apache.org Subject: Maven - Plugin LogLevel Hi All, I would like to limit the output from each plugin and only show errors. I know there is a logLevel property that may be set, but I believe after reading and testing, it is only for setting the logLevel of the plugin meaning it will log at that level perhaps? Is it possibly to restrict what maven prints out without having to use the commandline? I know ant tasks can be made quiet, what about maven? mvn -q clean install The q makes the output just what I had in mind, but it would be nice to set once in a configuration. Walter -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21283059.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21671939.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven - Plugin LogLevel
Oops, sorry I wasn't clear about that. I'm already running with -e -X and the debut messages in the maven-filtering classes are not coming through so I assumed that plexus logging level is not controlled by the -X on the mvn command line. Am I wrong? If so what could be eating the messages from those classes? I tried tracing back through plexus-logging but couldn't find where the loggers are initialized. Brian E Fox wrote: Does mvn -x give you what you want? -Original Message- From: jaxzin [mailto:brian.r.jack...@espn3.com] Sent: Monday, January 26, 2009 2:34 PM To: users@maven.apache.org Subject: RE: Maven - Plugin LogLevel What's the easiest way to temporarily hack the plexus logging level to debug? The maven-filtering classes are performing poorly and I'm trying to debug my issue and the existing debug messages would be good enough if I could just see them. Thanks, Brian Brian E Fox wrote: Unfortunately not in 2.x. The logger is configured in plexus (the ioc) and it's not possible to set a level like this. There are several jiras regarding the verbosity that you may want to follow. -Original Message- From: walterw [mailto:walterjwh...@hotmail.com] Sent: Sunday, January 04, 2009 6:38 PM To: users@maven.apache.org Subject: Maven - Plugin LogLevel Hi All, I would like to limit the output from each plugin and only show errors. I know there is a logLevel property that may be set, but I believe after reading and testing, it is only for setting the logLevel of the plugin meaning it will log at that level perhaps? Is it possibly to restrict what maven prints out without having to use the commandline? I know ant tasks can be made quiet, what about maven? mvn -q clean install The q makes the output just what I had in mind, but it would be nice to set once in a configuration. Walter -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21283059.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21671939.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Maven---Plugin-LogLevel-tp21283059p21679254.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Resource Filtering and targetPath
I have the following code in a pom with packaging=war: build filters filtersrc/main/filters/common-filter.properties/filter filtersrc/main/filters/${environment.type}-filter.properties/filter /filters plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directory${basedir}/src/main/webapp/WEB-INF/directory filteringtrue/filtering includes include*.xml/include /includes targetPathWEB-INF/targetPath /resource /webResources /configuration /plugin /plugins /build I want all the xml files to be filtered and copied to the WEB-INF directory (targetPath). Neither of those are happening. All the xml files are being copied, unfiltered, to the war root. Am I missing something or is this the way it's supposed to work? Also, this is a child of the main POM. Is the value of directory relative to this projects POM or the parents POM? I can't seem to get a reference to this projects ./src directory without using ${basedir}. Thanks -- View this message in context: http://www.nabble.com/Resource-Filtering-and-targetPath-tp21679278p21679278.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Resource Filtering and targetPath - SOLVED
Upgrading to maven-war-plugin 2.1-alpha-1 solved it. http://www.nabble.com/War-Plugin-Filtering-td17541883.html http://www.nabble.com/War-Plugin-Filtering-td17541883.html monkeyden wrote: I have the following code in a pom with packaging=war: build filters filtersrc/main/filters/common-filter.properties/filter filtersrc/main/filters/${environment.type}-filter.properties/filter /filters plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directory${basedir}/src/main/webapp/WEB-INF/directory filteringtrue/filtering includes include*.xml/include /includes targetPathWEB-INF/targetPath /resource /webResources /configuration /plugin /plugins /build I want all the xml files to be filtered and copied to the WEB-INF directory (targetPath). Neither of those are happening. All the xml files are being copied, unfiltered, to the war root. Am I missing something or is this the way it's supposed to work? Also, this is a child of the main POM. Is the value of directory relative to this projects POM or the parents POM? I can't seem to get a reference to this projects ./src directory without using ${basedir}. Thanks -- View this message in context: http://www.nabble.com/Resource-Filtering-and-targetPath-tp21679278p21680262.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org