custom extension problem, error mode enablement
Greetings I'm seeing some odd behavior with a custom Apache Maven extension intended to force on error message mode (-e). The extension can be found here https://gist.github.com/63e65486e60124a3e8f7 The extension loads fine, and I see the log message found in the extension, but it doesn't actually enable error message mode! I verify error message mode is not enabled via the extension by causing an error in a project, e.g. dependency on junit:junit:666, and observing the difference with and without -e passed to mvn. Would someone please tell me the magic incantation to programmatically get error message mode enabled? It appears that setting MavenExecutionRequest.setShowErrors(true) should do the trick, but perhaps this is read once and never again, which occurs before the extension gets loaded? Any help is appreciated, -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to optimize maven dependencies to get better performance?
Greetings, On Wed, Oct 10, 2012 at 11:16 PM, Wang, Simon yunfeng.w...@ebay.com wrote: We're in trouble of terrible performance on resolve maven dependencies. Any others suggestions? No -SNAPSHOT dependencies not in the reactor. No version range dependencies. No -U mvn invocation. One single {repositories,pluginRepositories}/repository defined at each project's top level pom.xml, i.e. your own MRM At your own MRM, proper ordering of repository search priority At your own MRM, proper white/black listing There are only a couple more ways to squeeze out performance. Let me know when you've verified all that, -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multiple Snapshot duplicates in WAR file
Greetings, On Mon, Aug 6, 2012 at 7:33 PM, Miguel Almeida migueldealme...@gmail.com wrote: too. I've used maven properties and dependency management to ensure they all depend on the same version (0.0.7-SNAPSHOT). I'd expect this to be http://jira.codehaus.org/browse/MWAR-220 -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: adding dependancy in test resources
Greetings, On Wed, Jul 25, 2012 at 5:56 AM, Moshe saa...@yahoo.com wrote: I'm writing an integration test that involves more than one project. I created a test jar for all projects but from some reason it the spring context doesn't see the resources that are defined in the other projects' test jar (although I defined a dependency in test scope for the test jar). do you have any idea regarding what the problem is ? how can I debug it ? I am sure you already did this, but humor us and one more time verify you have the proper dependencies, use tools like: mvn dependency:tree mvn dependency:analyze mvn dependency:copy-dependencies jar tf target/dependencies/my-test-dep-that-i-swear-blood-oath-has-the-resource.jar | grep resourceName Then verify that you are loading the application context resource (applicationContext.xml?) in a proper way, e.g: classpath*:*/applicationContext.xml Note the Kleene star at the end of classpath, this is not a typo. Also, asking good questions goes a long way. Reporting your Maven version, Java version, and in this case Spring versions, will be useful. To help: mvn enforcer:display-info -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Writing site documenation with eclipse
Greetings, On Mon, Jul 16, 2012 at 9:13 AM, Hervé BOUTEMY herve.bout...@free.fr wrote: for the editor, there is a good Doxia Eclipse plugin [1] [1] http://maven.apache.org/doxia/doxia-ide/eclipse/usage.html Except that the Eclipse installation sites don't work.. http://maven.apache.org/doxia/doxia-ide/eclipse/eclipse https://builds.apache.org/view/M-R/view/Maven/job/doxia-eclipse-editor/ws/doxia-ide-eclipse/eclipse-plugins/features/org.apache.maven.doxia.ide.eclipse.feature/target/site/ And it isn't in Eclipse Marketplace.. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How can I eliminate these embedded username and password entries?
Greetings, On Tue, May 22, 2012 at 6:15 PM, shaun.t.erick...@accenture.com wrote: get src=${artifactory-url}/libs-release-local/path/to/findbugs-filter.xml get src=${artifactory-url}/libs-release-local/path/to/checkstyle.xml get src=${artifactory-url}/libs-release-local/path/to/pmd-ruleset.xml I prefer to use m-remote-resources-p:bundle for this kind of thing. So, you'd create a set of plain Maven modules, one for each of these resources, and bundle them up into a standard Maven artifact. Then, in your /project/build/plugins you'd m-remote-resources-p:process those bundles; where you listed those previously bundled projects as plugin dependencies. http://maven.apache.org/plugins/maven-remote-resources-plugin/ -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:perform not removing release.properties
Greetings, On Mon, May 21, 2012 at 8:15 AM, Mark Hobson markhob...@gmail.com wrote: On upgrading maven-release-plugin from 2.2.2 to 2.3 I noticed that release:perform no longer removes release.properties nor pom.xml.releaseBackup. I confirm that this is happening to my release builds, also. I don't recall this happening before, and I don't think it is deliberate. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:perform not removing release.properties
Greetings, On Mon, May 21, 2012 at 4:08 PM, Mark Hobson markhob...@gmail.com wrote: Thanks for the quick fix Robert. Any chance of a 2.3.1 release as this is quite a visible regression? Thanks for the fix, but a new release seems excessive. The bug doesn't cause any sort of breakage, it just leaves some work files around.. I haven't tested it, but I think these work files won't even interfere with another invocation of the release. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: create executable file in target/ directory
Greetings, On Tue, Apr 3, 2012 at 8:02 PM, Radim Kolar h...@filez.com wrote: I need to create executable file in target/ directory. It is script which needs to be copied from src/ tree and then chmod +x. resource plugin can copy it but can not chmod +x it assembly plugin can make it executable but it is placed into tar archive any ideas? http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html http://ant.apache.org/manual/Tasks/chmod.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: exclude dependency from war file during packaging
Greetings, On Sat, Mar 17, 2012 at 7:47 AM, satya1234567 satyaprak...@tataelxsi.co.in wrote: I want to exclude this jar from my war file, but this jar is required during build of the project. scopeprovided/scope -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to include librabries when compile with Maven?
Greetings, On Fri, Mar 16, 2012 at 2:30 PM, gchoi gc...@sdl.com wrote: My project relies on many third party libraries, but I am not sure how do I make Maven aware of them? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven stats shows huge peak
Greetings, On Sun, Mar 11, 2012 at 6:45 PM, Johan Vogelzang johan.vogelz...@gmail.com wrote: Can anyone explain the huge peak around mid February 2012? http://people.apache.org/~vgritsenko/stats/projects/maven.html Theory: Maven 3.0.4 was released about two weeks prior; a week or so prior Jenkins supported auto-install for this version. With ver 30k phone-home Jenkins installations, and a lot more that don't, I'd say that application is good for about half of those 75k downloads. :-) -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven - Building a single war file from multiple modules
Greetings, On Tue, Mar 6, 2012 at 9:08 AM, Ziggy zigg...@gmail.com wrote: I posted a question last week on how i can build dependent modules and the result was that it was recommended that i use a build tool like Maven http://maven.apache.org/plugins/maven-war-plugin/overlays.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: gwt-maven-plugin build error
Greetings, On Thu, Jan 5, 2012 at 5:33 PM, David Hoffer dhoff...@gmail.com wrote: I've tracked this down considerably more. Did you make any more progress? Frankly, this doesn't really smell like a gwt-m-p problem... but I am curious if you resolved it. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: howto simply export dependent jars someplace
Greetings, Try dependency:copy-dependencies -Jesse On Jan 10, 2012 5:23 PM, Steve Cohen sco...@javactivity.org wrote: I have the following task, which should be simple. I'm having a brain cramp but I can't figure out how to do it. I am building a straight java application with dependencies. Under normal circumstances, I can get what I need painlessly by using the maven assembly plugin and building a jar-with-dependencies. However, the end goal here is that this application runs on a number of workstations, to which new versions would be pushed if available by an outside legacy process (not maven). In this scenario we simply wish to have the dependent jars (which will change rarely, if ever) in a lib directory on each machine, and an executable jar with a manifest putting all the jars on the classpath. I simply want to extract all the dependent jars from the repository into a directory. This collection can then be copied out to the production servers. What, if any, maven goal/lifecycle phase allows me to gather all the dependent jars someplace without manually picking each one out of my local repo? --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: gwt-maven-plugin build error
Greetings, On Thu, Jan 5, 2012 at 2:45 PM, David Hoffer dhoff...@gmail.com wrote: I'm getting the following error compiling with gwt-maven-plugin, I'm using version 2.4.0. Any ideas why? How about the output from enforcer:display-info and the contents of .gwt.xml file? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: WARNING: Cannot use Maven 3.0.3 with Maven Release Plugin 2.2.2 (MNG-5224)
Greetings, On Tue, Jan 3, 2012 at 3:45 PM, Mark Derricutt m...@talios.com wrote: Surely something as egregious as allowing releases to break should block 3.0.4 from being released tho. As someone who uses GPG in that manner for some of his releases I'd certainly want 3.0.4 to be able to release... It didn't stop the 3.0.3 release, what's the difference with 3.0.4? It's getting rather frustrating at seeing all these relatively solitary or edge-case problems derail the entire release process. I have performed many releases with 3.0.3 and 3.0.4-rcX both, so this is not a problem for me, and I dare say it's a very large majority of users that it is also not a problem for. Stop stopping the presses, please!! It's just a stupid point release! It doesn't have to solve every existing MNG-* out there! This kind of localized Chicken Little behavior is making it harder and harder to get small releases out the door. You're making it worse for all users. *sigh* (the same goes for all the bike shedding whiners about the dependency fetch timeout - you know who you are) -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: Could we delete old version jar in local repository by mvn ?
Greetings, On Tue, Jan 3, 2012 at 9:14 PM, zuxiong lin linzuxiong1...@gmail.comwrote: Is it possible? http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: Could we delete old version jar in local repository by mvn ?
Greetings, On Tue, Jan 3, 2012 at 11:02 PM, zuxiong lin linzuxiong1...@gmail.comwrote: Append like: repository\org\springframework\spring-core -3.0.5.RELEASE -3.0.6.RELEASE -3.1.0.RELEASE I want to remove 3.0.5 and 3.0.6. I don't think this is possible with an existing plugin. I don't think it would even be advisable for non-SNAPSHOT artifacts.. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: please unsubscribe
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org On Thu, Nov 24, 2011 at 7:05 AM, Thomas Flemming thomas.flemm...@usit.uio.no wrote: unsubscribe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- There are 10 types of people in this world, those that can read binary and those that can not.
Re: multiple versions of jar in war
Greetings, On Fri, Nov 18, 2011 at 11:17 AM, Heck, Timo t.h...@dnb.de wrote: After a while I figured out that maven does package libs which should not be there. There are multiple versions of some libs which actually are resolved once in pom but there are also libs which are not defined at all. Maybe http://jira.codehaus.org/browse/MWAR-220 ? I was seeing this with a few projects of mine where I use overlays. If dependency versions are resolved using dependencyManagement section, and there is an overlay, and the overlay declares different versions of dependencies, m-war-p would end up putting both the overlay version and the dM version into the final war. Ouch. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANNOUNCE] Apache Archiva 1.4-M1 Released!
Congratulations!! On Wed, Oct 26, 2011 at 7:42 AM, Olivier Lamy ol...@apache.org wrote: The Apache Archiva team would like to announce the release of Archiva 1.4-M1 (This is the first milestone of the 1.4 series) * http://archiva.apache.org/download.html 127 issues resolved! Wow, great work team!! We are running it in production for a few days now.. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Http(s) transport layer change (call for early adopters users)
Greetings, On Mon, Oct 3, 2011 at 4:24 AM, Olivier Lamy ol...@apache.org wrote: As it's important change in the core distribution, we like to have some feedbacks from users a SNAPSHOT distribution (based on rev 1178324) is available here : http://people.apache.org/~olamy/core/maven-3-r1178324/ I've been running with your 3.0.4-SNAPSHOT build since you announced it. I have done all my usual development activities, and even performed a couple of releases. I wiped out artifacts older than 2 weeks from my m2/repo and experienced no problems. Nice job, to you and all the other devs, Ship it! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
m-assembly-p problem with dependencies
Greetings, I am having a lot of problems with the assembly plugin, using Maven 3.0.3 and m-assembly-p 2.2.1. My assembly descriptor and relevant pom.xml information can be found here: https://gist.github.com/1242745 With this configuration, I expect com.acme.proj:bootstrap and its dependencies to be placed directly, unpacked, in the final artifact. For com.acme.proj:war, I expect it to be placed directly, unpacked, in the final artifact BUT not its dependencies. The reason I want this is because my war artifact already contains everything it requires. The bootstrap artifact has lots of other dependencies which are required for proper execution (final assembly is an executable jar), e.g. slf4j, Apache Tomcat, etc. I hope I am just making a stupid mistake, any help on this is greatly appreciated. Thank you! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Forbiden? http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
Greetings, On Wed, Aug 31, 2011 at 5:49 PM, Jason Pyeron jpye...@pdinc.us wrote: Not sure if this is the right place to ask, but I am getting a 403 error on http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/ It's just you. http://www.downforeveryoneorjustme.com/http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [maven] Re: Forbiden? http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
Greetings, On Wed, Aug 31, 2011 at 7:38 PM, Jason Pyeron jpye...@pdinc.us wrote: The site you linked only checks if the server is responding. It does not check for 404 or 403 errors. In any case, less than 5 minutes after you had posted I had checked it directly with the link you provided and also with the 3rd party mechanism. No failures. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: publishing pretty source code as part of a maven site
Greetings, On Tue, Aug 23, 2011 at 10:26 AM, Benson Margulies bimargul...@gmail.com wrote: Is there a reporting plugin out there that can be asked to publish prettified copies of java classes as part of a maven site? http://maven.apache.org/plugins/maven-jxr-plugin/ -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to add *.java source files in my jar?
Greetings, On Mon, Aug 15, 2011 at 6:46 PM, Wayne Fay wayne...@gmail.com wrote: I remember seeing this on the Maven Users list a couple times. I think they were from a project that someone was using GWT with since GWT likes to bundle certain source files into its jars. http://mojo.codehaus.org/gwt-maven-plugin/user-guide/project.html#Multi-project_setup -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
codehaus
The codehaus mailing lists seem to be down. I posted to user-subscr...@mojo.codehaus.org and dev-subscr...@mojo.codehaus.org, both, but did not get a response even after 10 minutes. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Upgraded to Maven 3 - now the clean goal deletes entire module directories?
Greetings, On Sun, Jul 31, 2011 at 10:28 AM, Hugi Thordarson h...@karlmenn.is wrote: I just upgraded to Maven 3. Now, when I run mvn clean on a multi-module project it will delete each module entirely, rather than just the target directories contained within each module directory (which is how it used to work in Maven 2). Anyone have any idea what I might be doing wrong here? Maven output or it didn't happen. I simply do not believe this is what is happening unless you've somehow attached to clean phase an antrun execution to delete all your modules.. or you've put them under build.outputDirectory. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Upgraded to Maven 3 - now the clean goal deletes entire module directories?
Greetings, On Sun, Jul 31, 2011 at 10:53 AM, Hugi Thordarson h...@karlmenn.is wrote: You inspired me to do quick search for outputDirectory in all the POMs and I found this little bugger in all the projects' common parent pom: reporting outputDirectory / /reporting Not sure what purpose it served - but once removed, the projects behave as expected in Maven 3 :). Glad you figured it out. Having an empty outputDirectory must make it default to the modules working directory. Then your clean would convert the build into a digital Ouroboros of disaster. Maybe Maven 3, in its aim to better inform users about code smells, should warn users of this perilous condition. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Upgraded to Maven 3 - now the clean goal deletes entire module directories?
http://jira.codehaus.org/browse/MNG-5144 On Sun, Jul 31, 2011 at 2:42 PM, Anders Hammar and...@hammar.net wrote: If you file a jira ticket ([1]) suggesting this it could actually get implemented instead of just being a clever idea... [1] http://jira.codehaus.org/browse/MNG -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Archiva vs. Nexus
I think now this better fits the Nexus mailing list. Thank you. On Mon, Jul 25, 2011 at 3:31 PM, Brian Topping topp...@codehaus.org wrote: Try http://localhost:8081/nexus. On Jul 25, 2011, at 3:30 PM, Eric Kolotyluk wrote: OK, so it is a bug, the correct way to start it is to go to the actual directory and run nexus.bat without any parameters. Things seems to start up, but when I go to http://localhost:8081 I get HTTP ERROR: 404 Problem accessing /. Reason: NOT_FOUND Powered by Jetty:// I do have an open mind to issues, which is why I reported it on JIRA - I'm just saying first impressions are very important. Cheers, Eric On 2011-07-25 12:20 PM, Brian Topping wrote: I'd run it from a directory that does not contain spaces or other non alphanumeric characters. Yours has two spaces, one of each different parenthesis, and a in it. Nexus is a very robust and easy to use installation that gets a lot of attention. You are not supposed to waste time on installing it, but having an open mind to issues that are often found in cross-platform software is helpful. Especially when you are running it on Windows. On Jul 25, 2011, at 3:06 PM, Eric Kolotyluk wrote: So I downloaded Nexus 1.9.2, watched the video, read the user manual on starting Nexus, entered C:\Program Files (Open)\Sonatype\nexus-oss-webapp-1.9.2-bundle\nexus-oss-webapp-1.9.2bin\jsw\windows-x86-64\nexus start and got back FATAL | wrapper | Unable to open configuration file. C:\Program Files (Open)\Sonatype\nexus-oss-webapp-1.9.2-bundle\nexus-oss-webapp-1.9.2\start Press any key to continue . . . First impressions are very important - this one was pretty bad. How much time am I supposed to waste now trying to figure out how to actually start Nexus? Maybe Archiva actually works according to the documentation... Cheers, Eric - 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 -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: m2eclipse: missing Navigate menu items
Greetings, On Mon, Jul 25, 2011 at 3:14 PM, kanesee kane...@gmail.com wrote: This is more a m2eclipse plugin issue and less maven but if any has an answer or can point me in the right direction, I'd appreciate it. http://eclipse.org/m2e/ http://m2eclipse.sonatype.org/project-information.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Archiva vs. Nexus
It works fine just as long as your minimal configuration doesn't include Java 6. There's a bug[1] hanging out there for almost a year now which prevents Archiva from being useful for me and a lot of others. That being the case, Nexus all the way. [1] http://jira.codehaus.org/browse/MRM-1412 -Jesse On Tue, Jul 19, 2011 at 12:10 AM, Rajesh Koilpillai rajesh.koilpil...@gmail.com wrote: They are competing and Apache Archiva works just fine with minimal configuration. -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to print (echo) values from pom.xml
Greetings, On Thu, Jun 9, 2011 at 7:06 AM, manukm07 manuk...@gmail.com wrote: Is there a way to print/echo some values in the console, from pom.xml without using maven-antrun-plugin. ? There's no first class way of doing it. Use the maven-antrun-plugin, or try your luck with http://code.google.com/p/maven-echo-plugin/ -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] license-maven-plugin 1.0-beta-1 Released
Congratulations, this is a fantastic plugin! On Sat, Mar 12, 2011 at 1:55 PM, chemit che...@codelutin.com wrote: The Mojo team is pleased to announce the release of the license-maven-plugin version 1.0-beta-1. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and tomcat deploying
Greetings, On Tue, Mar 1, 2011 at 10:48 PM, Mark static.void@gmail.com wrote: Is there some tool or plugin to deploy/undeploy a newly built war to tomcat or would I need to build a custom ant script that wraps the maven build process? What is the proper way to do this? The short answer is: it depends on how you want to deploy. Probably the following two will be useful: http://cargo.codehaus.org/Maven2+plugin http://mojo.codehaus.org/tomcat-maven-plugin/ -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a repository
Greetings, On Wed, Feb 23, 2011 at 1:08 PM, Mark static.void@gmail.com wrote: Can someone please point me in the direction on how to create a respository that will be located behind our firewall and accessible to our engineers. Try installing a MRM like http://nexus.sonatype.org/ or http://archiva.apache.org/ and then follow http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Mojo's Cassandra Maven Plugin 0.7.0-1 released
Congratulations! :-) On Sat, Feb 12, 2011 at 3:45 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: The Mojo team is pleased to announce the release of Mojo's Cassandra Maven Plugin version 0.7.0-1. This is the first release of Mojo's Cassandra Maven Plugin -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven project packaging
Hi CassUser, On Fri, Jan 21, 2011 at 11:55 AM, CassUser CassUser cassu...@gmail.com wrote: We have a large multi-module maven project. We need to ship it to a remote site where the client has no internet access. What is the easiest way to package our source code and all dependencies/plugins etc.? The maven-assembly-plugin would be the best fit. http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: GWT Widget as JAR
Greetings Hilco, On Wed, Jan 19, 2011 at 8:07 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: Option 1: It's easy to write a POM that creates a JAR for a GWT widget including CSS and other resources. It's also easy to then write a POM that depends on that JAR and creates a WAR for integration testing. So far so good. This is by far the best solution. If you want to create widgets to be shared across multiple projects, just make a packaging=jar and make sure src/main/java is part of build.resources. Then include src/main/java/com/acme/gwt/client/MyWidget.java and src/main/resources/com/acme/gwt/MyWidgets.gwt.xml as part of the project and install it as per usual (mvn install). Problem: Making changes in (e.g.) the CSS requires a full rebuild of both the JAR and the WAR. This is a real productivity issue. I'm not unsympathetic to this, but you can't have it both ways. You either want re-usable components a la a library, which has a bit of steadiness to it, or you want rapid development -- they are competing goals. Option 2: Put everything in a single WAR project. Integration testing uses this WAR and development can make changes that are reflected after a simple refresh. Yep, you can definitely do this, but it goes against the (unstated by OP) goal of reusability of components. Problem: We need a JAR, not a WAR for our other GWT projects that want to reuse the widget. Your war project which wants to incorporate the reusable widget jar need only to add inherits name=com.acme.gwt.MyWidgets/ and then utilize MyWidget somewhere. It will be properly compiled, and since you include src/main/java as part of the reusable widget's build.resources, GWT compiler will be happy. The only solution that I can see is to go with option 2 and create a second (JAR) project that depends on the WAR and strips away all its web-app-ness to create the JAR I referred to in option 1. This achieves all my goals but isn't very elegant. Can anyone think of a better way to do this? Best of luck to you, I have had a lot of success with the method I've outlined. I have about two dozen general purpose widgets, twice that in general reusable GWT async services, and incorporated them into about 20 internal projects. Everything works quite nicely... -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: GWT Widget as JAR
Hello, On Thu, Jan 20, 2011 at 1:24 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: On 20 January 2011 06:26, Jesse Farinacci jie...@gmail.com wrote: This is by far the best solution. If you want to create widgets to be shared across multiple projects, just make a packaging=jar and make sure src/main/java is part of build.resources. Then include src/main/java/com/acme/gwt/client/MyWidget.java and src/main/resources/com/acme/gwt/MyWidgets.gwt.xml as part of the project and install it as per usual (mvn install). I agree but only from a build/Maven's point of view. This is the Maven mailing list.. ;-) And what's good for Maven is almost always good for the developers. If you find this not to be the case, I suggest you re-evaluate your process because fighting Maven isn't really worth it. Maven is opinionated software. I'm not unsympathetic to this, but you can't have it both ways. You either want re-usable components a la a library, which has a bit of steadiness to it, or you want rapid development -- they are competing goals. I think I *can* have it both ways. It's working now. :-) I didn't tell you any of the several philosophically non-Maven ways that would enable it to work. I'm glad you got it working for you specifically, but everything you're apparently doing seems counter to Maven design goals. More soon. Option 2: Put everything in a single WAR project. Integration testing uses this WAR and development can make changes that are reflected after a simple refresh. Yep, you can definitely do this, but it goes against the (unstated by OP) goal of reusability of components. It may not have been stated very clearly but it was certainly implied. :-) Reusability is why I'm trying to do all this. Reusability.. hm. I am thinking about reusability of a particular GWT widget from multiple, possibly unrelated, consumer projects. Unnecessarily dumping everything into a WAR project seems incredibly naive and wasteful. You already admit that you're breaking Maven convention by producing multiple artifacts from the same module; you're forcing Maven to do something it doesn't want to, and you most likely (even if you aren't aware of why) don't want to do either. Unless you're creating a full-on web application, you shouldn't use the war packaging type. Reusable GWT widgets are best suited for jar packaging artifact. You can still run normal jUnit and HtmlUnit tests. I guess my mistake here is presuming that your generically reusable widget is actually tested outside of where you are using it in specific projects.. you seem to want to tweak this reusable widget as you are using it, as if it weren't fully developed when you start using it. This smells to me of you not fully understanding the needs of said widget ahead of time. That's fine, but let us agree that that design strategy is fully outside the realm of normal library engineering. Problem: We need a JAR, not a WAR for our other GWT projects that want to reuse the widget. Your war project which wants to incorporate the reusable widget jar need only to add inherits name=com.acme.gwt.MyWidgets/ and then utilize MyWidget somewhere. It will be properly compiled, and since you include src/main/java as part of the reusable widget's build.resources, GWT compiler will be happy. Not quite following you here. What you say is true, and it's what I'm doing, but I don't see how it relates to the problem. I need a JAR, not a WAR, as a dependency. (Well, strictly speaking, a WAR would work too but I'd have to unzip it before using [parts of] it.) I think you're quite confused about how Maven should be utilized. And possibly about how WAR overlays work (which I am not recommending for your solution!), not to mention the GWT compiler. The only solution that I can see is to go with option 2 and create a second (JAR) project that depends on the WAR and strips away all its web-app-ness to create the JAR I referred to in option 1. This achieves all my goals but isn't very elegant. Can anyone think of a better way to do this? Best of luck to you, I have had a lot of success with the method I've outlined. I have about two dozen general purpose widgets, twice that in general reusable GWT async services, and incorporated them into about 20 internal projects. Everything works quite nicely... I take it you don't have to deal with many other people (specifically non-developer people). :-) But even if it were just me, it's really nice to be able to see changes reflected after a refresh instead of a full rebuild of both a JAR and a WAR. About a half dozen internal consumers of my GWT libraries who are human, other than me. I think your desire to be able to tweak these re-usable widgets on the fly demonstrates precisely that you are trying to force reusability as an afterthought. You're developing the widget as you need it, and want to get proper separation of concerns happening, but you're just not there yet. I think you'd
Re: General exclusion of a dependency
Hi, On Mon, Jan 17, 2011 at 4:49 AM, mremerson...@aim.com wrote: is it possible to exclude a dependency without specifying from which other dependency it might come from ? Like wherever depA is coming from, exclude it ? Until MNG-1977 is resolved, you can perform a simple work around. E.g. project build dependencies groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId scopeprovided/scope /dependencies /build /project The scope=provided instructs Maven to not actually bring that dependency into the classpath, thus, it behaves as a global exclude. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Welcome Wayne Fay to the Maven PMC
Congratulations, Wayne!! Thanks for all your efforts, On Fri, Jan 14, 2011 at 8:08 PM, Brian Fox bri...@infinity.nu wrote: I'm sure you all know Wayne since he's been around forever answering user list questions. We recently voted him in both as a committer and a PMC member, so please join me in congratulating him. We're secretly hoping that he'll use his commit rights to start improving the documentation since he's so good at answering questions ;-) Welcome Wayne! --Brian Fox Apache Maven PMC Chair -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Differences between Maven 2.0, 2.1, 2.2 and 3.0
Hi Roland, On Sun, Dec 12, 2010 at 12:48 PM, Asmann, Roland roland.asm...@adesso.at wrote: Could someone tell me what the differences between 2.0, 2.1, 2.2 and 3.0 are? I am currently running on 2.0.9 and 2.0.10 (depending on the project) and I was wondering if I should start migrating. Any attempt to describe the differences is going to be a failure. You should read the comprehensive changelog found here: http://jira.codehaus.org/browse/MNG#selectedTab=com.atlassian.jira.plugin.system.project%3Achangelog-panel You should definitely start migrating. It's only a matter of time before the plugins stop being Maven 2.0.x compatible, and I'm already seeing lots of requirements for 2.2.x and even 3.0.x!! Currently I am not allowed to upgrade to 3.0 (a 2.x version is still mandatory), but maybe I could at least make a suggestion to switch to 3.0 -- depending on how big the migration would turn out to be. Maven 3 is exceptionally well tested for backwards compatibility, I consider it a mistake to spend resources and time updating from 2.0.x to 2.2.x when it's already been displaced by 3.0.x. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: multi-module agregated test report
Greetings Emerson, On Fri, Nov 26, 2010 at 10:30 AM, emerson echofloripa.y...@gmail.com wrote: I believe it is correct to say that MAVEN 2 HAS NO WAY to aggregate surefire reports from different sub-modules and at the same time show a summary for each module? Could some one confirm this,then I will look for another solution. That does appear to be the case, but I would be remiss if I didn't point out the somewhat contradictory requests you're making. You want the aggregation to maintain the separation. :-) To address your previous observation about Hudson splitting out by package, I suppose that may be true but I have structured my projects in such a way (and I suspect most users have) where this is not an issue. More specifically, for every project I can remember, there have been no Java-package/Maven-module path name conflicts. You could open an enhancement request at the plugin's JIRA instance[0] but I would expect this enhancement to be fairly unpopular (not negatively popular, but disinterested) given the aforementioned opposing philosophical goals. -Jesse [0] http://jira.codehaus.org/browse/SUREFIRE -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to add vendor (SAP) specific Manifest to war ?
Hi Torsten, On Mon, Nov 22, 2010 at 4:26 AM, torsten.reinh...@gi-de.com wrote: -- src `-- main |-- webResources | `-- META-INF | `-- SAP_MANIFEST.MF plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources resource !-- this is relative to the pom.xml directory -- directorysrc/main/webResources/directory /resource /webResources /configuration /plugin Why not just put the additional resource into src/main/webapp/META-INF/SAP-MANIFEST.MF ? Check out http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#warSourceDirectory which describes the default location for additional resources. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: multi-module agregated test report
Greetings, On Thu, Nov 4, 2010 at 11:13 AM, emerson echofloripa.y...@gmail.com wrote: Thanks for the tip Nick, but this very special case I have a project on maven with several submodules, and want to see the pass rate per module. This is the default base case which is handled just fine without any other tools outside of Maven. Please refer to http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo.html I'm running this in Anthill, which can also be integrated with Sonar. My problem now is to generate the summary report. Could someone point to an example? I'm not familiar with Anthill, sorry. I would be astonished if they didn't have a way of reporting on surefire reports. Good luck, -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [Repetitive]: Maven does not live up to its promises
Hi, On Mon, Oct 25, 2010 at 1:46 PM, Benson Margulies bimargul...@gmail.com wrote: Have a look, some time, at the POM structure at cxf.apache.org. The shared parent is over 1,500 lines. A notable fraction of that is dependency exclusions, which in some cases are repeated, over and over and over, because all of the Spring artifacts have all of the same unwanted dependencies. My top-level corporate POM is over 3,000 lines long, mostly for dependencyManagement and default plugin configurations. The bonus is that most of my satellite POMs are less than 100 lines long. Anyhow, a very clever way to bypass the problem you guys have with specifying exclusions for multiple artifacts (presumably commons-logging) is to specify them as dependencies but with scope=provided. Then you need not specify, let alone repeat, exclusions anywhere else.. Before The Maven Way Police come banging down my office door, I should say that the scope is not being abused in that we use slf4j everywhere and so the jcl-over-slf4j really does justify the scope=provided -- but regardless, only the most die hard Mavenites would critique you on this subtle point. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can clean plugin clean also local repository?
Greetings, On Mon, Oct 18, 2010 at 11:14 AM, Daniele Dellafiore ilde...@gmail.com wrote: It should be nice to tell mvn clean plugin to clean the local reposotory as well. What do you think? There is a way to do this? If not, is a patch for it interesting? http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Maven Assembly Plugin 2.2 Released
Greetings, On Mon, Oct 11, 2010 at 12:11 PM, John Casey jdca...@apache.org wrote: http://maven.apache.org/plugins/maven-assembly-plugin/ The site still shows version 2.2-beta-5, not the updated 2.2 documentation. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven WAR Plugin - Modify/Rename files before WAR
Hi Lukas, On Thu, Oct 7, 2010 at 8:59 AM, Lukas Bradley lu...@thrustinteractive.com wrote: I would love to use the maven-antrun-plugin, but it doesn't look like there is a stage where the war plugin would cede control, or allow something to pre-process the files that have been copied to the target directory. The prepare-package phase doesn't get you there? This was introduced around 2.1 or so.. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Phase between install and deploy?
Hi Phillip, On Thu, Oct 7, 2010 at 3:57 PM, Phillip Hellewell ssh...@gmail.com wrote: What is the general approach to solving this conundrum? If there were a post-install or a pre-deploy phase, that would solve it, but those don't exist afaik :( Please describe why the verify phase is not appropriate? verify : run any checks to verify the package is valid and meets quality criteria. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: multi-module agregated test report
Hi Emerson, On Tue, Oct 5, 2010 at 5:25 AM, emerson echofloripa.y...@gmail.com wrote: Should I presume there is no equivalent to the aggregated dashboard of M1? Yes. There is no equivalent for the M1 dashboard. Some report plugins support aggregation, but that is on a per-plugin basis. I realize what I'm about to suggest is even more bold than the statements that an MRM is a necessary component for proper Maven function in any environment of even minor sophistication (which it is), but.. You should consider running Hudson with all of the static code analysis tools, and test reporting, enabled. Hudson handles proper module {checkstyle, findugs, pmd, test} aggregation on your behalf, and in a spectacularly useful and easy way. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to centralize configuration accross multiple modules
Hi Emerson, On Tue, Oct 5, 2010 at 8:50 AM, emerson echofloripa.y...@gmail.com wrote: I would like then to pass a parameter to the mvn command (eg. mvn -Denv=st1) and it would pick up the appropriate resource file depending on the environment. What would be the best way to implement something on these lines? You should look at http://maven.apache.org/plugins/maven-remote-resources-plugin/ .. you could bundle them up in one module, and extract them (via property-enabled profile) wherever needed. Then your integration tests just need to pick up your properties bundle. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [PLEASE TEST] Apache Maven 3.0-RC2
Great! On Wed, Sep 22, 2010 at 2:44 PM, Benjamin Bentmann benjamin.bentm...@udo.edu wrote: https://repository.apache.org/content/repositories/maven-006/org/apache/maven/apache-maven/3.0-RC2/ I just performed a 30-something multi-module release (prepare, perform [deploy, site-deploy]) and I did not notice any hiccups. Performance was not noticeably different for me, but I've been using 3.0-beta3 since its release. [INFO] Maven Version: 3.0-RC2 [INFO] JDK Version: 1.6.0_21 normalized as: 1.6.0-21 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.21 Nice! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Welcome Stephen Connolly to the Maven PMC
Congratulations, Stephen! On Mon, Sep 13, 2010 at 10:03 PM, Brian Fox bri...@infinity.nu wrote: Stephen has just joined us on the Maven PMC. He is the author of the very popular versions-maven-plugin at Codehaus and has recently been doing maintenance of the Surefire plugin at the Maven project. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: WAR type and transitive dependencies
Greetings, On Mon, Aug 30, 2010 at 5:30 AM, Ognjen Blagojevic ognjen.d.blagoje...@gmail.com wrote: For instance, if you define javax.mail in pom.xml: dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4.2/version scopeprovided/scope /dependency mvn dependency:tree shows also transitive depndecy javax.activation: [INFO] +- javax.mail:mail:jar:1.4.2:provided (scope not updated to compile) [INFO] | \- javax.activation:activation:jar:1.1:provided Which will be available at compile time, and not packed inside WAR. You could also watch/vote for http://jira.codehaus.org/browse/MDEP-283 which would let you create these skinny WARs more or less dynamically. But certainly in an easier way than manually updating POM files. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: downloading JavaScript libraries
Greetings, On Thu, Aug 26, 2010 at 10:54 AM, Jacob Beard jbea...@cs.mcgill.ca wrote: I'm new to Maven, and so I don't completely understand your answer. Why would it be desirable to create a module for each JavaScript library in this context, especially as this will not facilitate their automated downloading? It would be desirable because your project has a dependency which is not part of the Maven ecosystem. Your project managing the download of dependencies is the antithesis of one of Maven's best features Making them proper Maven modules and populating them ONE time manually when you create the artifact would enable all of your users to automatically download the artifact which contains the javascript library. Also, it still seems like it would be desirable to instruct maven to automatically download these libraries, so that they will not need to be downloaded manually. Is there no way to instruct Maven to do this? Maven doesn't do well, nor was it designed to do well, with managing non-Maven artifacts. And this is what you're asking it to do. I also think you seem to be confusing Maven downloading a Maven artifact dependency and you downloading some javascript library which is not a Maven module. I suggest you do the latter one single time, manually, and create a proper Maven module. I also suggest you do the former automatically with Maven and standard Maven dependency resolution once the previous step is complete. If you want to continue to do things against The Maven Way, then you should fall back to the maven-antrun-plugin method which has already been described. I think this would be quite an error, but, alas, you're free to do whatever you want.. Please let me know what you think. Thanks, Perhaps someone else can step in and explain, I don't think I be clearer than I have been.. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: downloading JavaScript libraries
Hi Jake, On Thu, Aug 26, 2010 at 11:51 AM, Jacob Beard jbea...@cs.mcgill.ca wrote: I think this is where my comprehension is breaking down. In order for other users to automatically download these new JavaScript library modules that I would create, would these new modules need to be published in a Maven repository? Or is there another mechanism involved in distributing these libraries? I think you're getting it now! No worries :-) Ok, yes, you would create these artifacts yourself and then publish them. You probably would not have any luck getting them into Maven central so you'd want a Maven Repository Manager (MRM) available. There are a few which are freely available, I would recommend Nexus[1] or Archiva[2]; but there's an alternate means if you do not want to go through the very limited hassle. You could also create a file system which is in the right format of a Maven repository. Then you could just use mvn deploy to push them to that file system using scp, e.g. Then your web server would sort of act like an MRM of limited scope. It'd probably be easier to just set up one of the aforementioned MRMs and be done with it. Thanks for your patience in explaining this issue, You're picking it up quick, so that's always positive! -Jesse [1] http://nexus.sonatype.org/download-nexus.html [2] http://archiva.apache.org/download.html -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven community maintaining popular JS lib deps? (was: Re: downloading JavaScript libraries)
Greetings, On Thu, Aug 26, 2010 at 12:53 PM, Manos Batsis manos_li...@geekologue.com wrote: The only reason to package those javascript files in JARs and upload them to the maven central repo is for other projects to reuse them as dependencies. I don't think this is your case. This definitely wasn't what he asked to do, and you were right to answer him directly. I answered the question that I think he *should* have asked.. ;-) Perhaps complicating things far too much.. On the other hand and since most javascript projects do not produce maven dependencies for the maven users out there, it might make sense to establish a community in this list to maintain popular JS lib dependencies. Some questions to list members: - Does it sound like a good idea and why? - How should we go for it in organizing a team of maintainers? - How should those JS libs packaged? There's already a javascript project on codehaus[1], I am surprised that they do not already publish Maven artifacts for popular frameworks. I'd recommend publish them in a variety of formats: * maven-remote-resource-bundle * jar * war The first could be used to seed the second and third. Let the users choose for themselves which works best for them.. -Jesse [1] http://mojo.codehaus.org/javascript-maven-tools/ -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multiple profile execution in maven
Greetings, On Thu, Aug 26, 2010 at 11:29 PM, Sridhar Laxmipuram Srinivasan sridh...@yahoo-inc.com wrote: I have tried everything ie with multiple -Ps, comma separated list but in vain :), I think it is a bug, if anybody has any workaround please let me know $ echo This worked for me just 2 minutes ago! $ mvn -P mysql,deployment package jetty:run-war -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: downloading JavaScript libraries
Greetings, On Wed, Aug 25, 2010 at 10:44 PM, Jacob Beard jbea...@cs.mcgill.ca wrote: My project includes dependencies on several JavaScript libraries, including Dojo, RequireJS and beautify-js. I'm currently using Ant's get task to download these dependencies, but I'd like to integrate this with my Maven build. The way I thought I would do this would be to bind an antrun goal to the phase in which dependencies are downloaded. However, after consulting the lifecycle reference http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference, I cannot find a Maven phase in which dependencies are downloaded. Maven dependencies are downloaded in every phase, and only just before they are required to enter that phase. Please let me know if I'm on the right track, or if there is a better way of going about this. Thanks, I don't think you're on the right track, frankly. It would be better for you to create a module for each of your javascript library dependencies, and simply manually download it and put it into src/main/script (or perhaps src/main/resources to allow the easiest packaging). Set the version number to be whatever version of the library you're packaging. Then, in your projects which utilize this javascript, simply depend on your module with the appropriate version. This would be more The Maven Way. Good luck! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3 and the enforcer plugin
Thanks EJ, On Thu, Aug 19, 2010 at 10:04 AM, EJ Ciramella ecirame...@casenetinc.com wrote: [INFO] [INFO] [INFO] --- maven-enforcer-plugin:1.0-beta-1:display-info (default-cli) @ foo --- [INFO] Maven Version: 3.0-beta-2 [INFO] JDK Version: 1.5.0_18 normalized as: 1.5.0-18 [INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.2 [INFO] So, as you should be able to deduce by now, and also given Brett's hypothesis earlier, it seems that you should be using -18 instead of _18. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3 and the enforcer plugin
Hi, On Thu, Aug 19, 2010 at 1:41 PM, EJ Ciramella ecirame...@casenetinc.com wrote: What's really weird is with maven 2.2.1, this rule is just fine. I literally just setup m3 just to see what would break, this is the first thing that jumps out. The java version is reported like this: That is weird. Perhaps you should open a JIRA with the enforcer plugin[1]? To get past this issue for the time being, you should create m2 vs m3 profiles with different executions of the m-enforcer-p which use the _ vs - formats for JDK normalization. [1] http://jira.codehaus.org/browse/MENFORCER -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Hudson Maven
Greetings, On Wed, Aug 18, 2010 at 9:02 AM, Greg Akins angryg...@gmail.com wrote: I'm setting up a Maven build in Hudson. I can use the Maven deploy goal to deploy the artifacts; but Hudson has a Post-build task to deploy artifacts. That plugin describes why it exists, and I believe it to be still valid. Are there pros/cons to doing either? Or is it a non-issue? Is anyone else doing this and do either of the approaches cause problems? I use simple deploy goal but with some additional setup in Hudson which turns the issue the plugin solves into a non-issue. All of my multi-module Maven projects are split up using a 1 Hudson job per Maven module strategy. This lets me achieve high job throughput, high rates of parallelism using Hudson's own executors, or taking advantage of slave nodes. It also is advantageous when you have lots of little in-house libraries which are used scattershot throughout your modules, in conjunction with -SNAPSHOT dependencies, additionally in conjuction with Hudson's build when upstream projects are successful. Since only what should recompile will, and you'll likely flush out issues quicker and closer to where they affect downstream. Lots of little jobs all building quickly gets you status fast. And it scales quite well.. especially when you combine this with a MRM like Nexus. Good luck, -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3 and the enforcer plugin
Greetings, On Wed, Aug 18, 2010 at 7:46 PM, Brett Randall javabr...@gmail.com wrote: I don't know this plugin/rule well, but looking at your output, could it relate to the underscore versus hyphen in the detected versus normalized JDK version string? Maybe try a hyphen in your version rule. Try adding an execution of enforcer:display-info to see the normalized version of the JDK which you should feed to the enforcement rule. Here's an example from my system: [INFO] --- maven-enforcer-plugin:1.0-beta-1:display-info (display-info) @ isvt --- [INFO] Maven Version: 3.0-beta-2 [INFO] JDK Version: 1.6.0_21 normalized as: 1.6.0-21 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.18 -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generating resource base on compilation result
Hi AdRiAN, On Tue, Aug 3, 2010 at 6:53 AM, Adrian Shum tcs...@taifook.com wrote: I am trying to develop a plugin which will generate certain resources base on compiled classes and dependencies. Cool. Is there any suggestion for me? You could quite easily solve this if you just create another module which depends on your domain object module. Then run your classpath scanning for @Entity / @Embedded, etc, and output a persistence.xml. Trying to do this process in the same module without using APT *and* using the compiled classes will be difficult if not impossible. If you wanted to simply examine the source code and the dependency classpath, maybe it would work. But since you're oddly requiring compiled code, I'm fairly sure it will not. Just break it into separate modules and all will be fine. Or use APT. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Codehaus Repository
Greetings, I have Nexus-1.6.0 MRM deployed internally at my company. I've configured it to proxy to http://repository.codehaus.org/ (as well as several others). Nexus has a task which fetches the Maven contents index but it seems repository.codehaus.org doesn't want to provide one. I don't recall seeing this in the past, but perhaps I've just missed it; has something changed on codehaus that would prevent me from downloading the index? If not, could we start producing the index? I think resolving this will help the general Maven community. Thanks! 2010-07-17 18:15:48 INFO - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository codehaus 2010-07-17 18:15:48 INFO - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Expiring local cache in repository ID='codehaus' from path='/.index' 2010-07-17 18:15:48 INFO - org.sonatype.nexus.proxy.walker.DefaultWalker - Aborted walking on repository ID='codehaus' from path='/.index', cause: Item not found on path /.index in repository codehaus! 2010-07-17 18:15:48 INFO - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Clearing NFC cache in repository ID='codehaus' from path='/.index' 2010-07-17 18:15:48 WARN - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository codehaus java.io.FileNotFoundException: nexus-maven-repository-index.zip (item not found) at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:1224) at org.sonatype.nexus.index.updater.AbstractResourceFetcher.retrieve(AbstractResourceFetcher.java:22) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:246) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:74) at org.sonatype.nexus.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:815) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:1010) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1234) at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1115) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:999) at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:864) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:43) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:65) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:315) at java.util.concurrent.FutureTask.run(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:110) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:219) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920) at java.lang.Thread.run(Thread.java:736) 2010-07-17 18:15:48 INFO - org.sonatype.nexus.index.DefaultIndexerManager - Cascading merge of group indexes for group public, where repository codehaus is member. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: War overlay trouble for Pom that produces WAR and JAR
Hi Starrman, On Fri, Jun 11, 2010 at 11:03 AM, Starrman sta...@gmail.com wrote: Do you have any ideas how I could depend upon the classes during the compile yet not pull in the web artifacts into myapp2? You're having problems because you aren't doing things The Maven Way. Just refactor your project such that the common code bits are in some new shared module that you create. Then have the myapp1 and myapp2 depend on the shared module. You might not like this solution because it lends towards module explosion (to the benefit of decreasing build complexity), but you've probably already wasted more time trying to hack through the system than just working with it... The Japanese have a great expression which basically says: the nail that sticks out gets hammered. :-) -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: War overlay trouble for Pom that produces WAR and JAR
Hi Starrman, On Fri, Jun 11, 2010 at 1:27 PM, Starrman sta...@gmail.com wrote: I actually am using common code in both projects... This was the project that I referred to as the myOverlayWebapp.war project... I am trying to use war overlays for the common web components and the common classes. I guess I really don't understand the problem at all then. Any common code should be in some common module that is depended upon your war modules. Do you see a reason why Syed's suggestion wouldn't work? I'm not familiar with the mechanism proposed by Syed. Try it and see. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Compare M1 and M2 Artifacts
Hi Dave, On Tue, Jun 8, 2010 at 12:14 PM, D D dawi...@gmail.com wrote: I'm working on converting M1 to M2. Now I arrived at a point where I need to compare artifacts to make sure nothing was missed. JAR/EAR/WAR sizes (MD5 hashes) can't be compared due to different compiler versions and target platforms.. If it weren't for the different compiler versions and target platforms, you should use Animal Sniffer plugin[1] which I think could be utilized to compare the artifacts from m1 to the ones from m2. [1] http://mojo.codehaus.org/animal-sniffer-maven-plugin/ Does anyone have a tool/script that allows on automated artifact comparison on the level of files? $ jar tf m1.jar | cut -c 59- m1.manifest \ jar tf m2.jar | cut -c 59- m2.manifest \ diff -Naur m1.manifest m2.manifest || echo No changes. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Compare M1 and M2 Artifacts
Hi Dave, On Tue, Jun 8, 2010 at 1:00 PM, Jesse Farinacci jie...@gmail.com wrote: Does anyone have a tool/script that allows on automated artifact comparison on the level of files? $ jar tf m1.jar | cut -c 59- m1.manifest \ jar tf m2.jar | cut -c 59- m2.manifest \ diff -Naur m1.manifest m2.manifest || echo No changes. Sorry, I switched commands and didn't double check first! Tsk-tsk, Jesse. The above won't work, try instead: $ jar tf m1.jar | sort m1.manifest \ jar tf m2.jar | sort m2.manifest \ diff -Naur m1.manifest m2.manifest || echo No changes. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Chaining Maven goals of different Base Directories
Dan, On Fri, May 28, 2010 at 8:18 AM, Daniel Hoffmann biggibig...@googlemail.com wrote: This works! Thanks a lot! define a profile for deploying your app with cargo:deploy bound to the install phase in module A... you can even define defaultGoals in the profile so that all you need to type is mvn -Pmy-deploy-profile Why didn't you just attach cargo:deploy to the deploy phase within the WAR module?? I told you this 9 days ago. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Chaining Maven goals of different Base Directories
Hi Daniel, On Wed, May 19, 2010 at 9:47 AM, Daniel Hoffmann biggibig...@googlemail.com wrote: 1.) myproject/makewar clean install 2.) myproject/makeear clean install cargo:deploy Daniel Why not attach cargo:deploy to the deploy phase and then call mvn clean deploy? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: lock down plugin versions in enterprise poms?
Hi Ravi, On Tue, May 4, 2010 at 7:01 PM, Ravi Luthra cod...@gmail.com wrote: I've heard that locking down the plugin version is a bad practice mostly because of major versions of Maven being released. Is this really a bad practice? Not only is it a best practice, but there is support for you to ensure you've done your job well[1] as well as locate new versions of plugins for you to upgrade onto. [1] http://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html [2] http://mojo.codehaus.org/versions-maven-plugin/display-plugin-updates-mojo.html What consequences would we face if we locked down our versions and upgraded them on our own, rather than allowing Maven to choose for us? The only consequence would be that you'd not pick up any critical plugin updates due to bad plugins, but I'm not very convinced by this. Usually monitoring for [ANN] on maven-users is sufficient to keep abreast of changes. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Packing xml or wsdl in a jar, but in resource directory
Hi Cleiton, On Thu, Apr 8, 2010 at 6:31 AM, Cleiton Dos Santos Garcia cleit...@weg.net wrote: I need put some files in different java packages and this files are .xml and .wsdl. I can't put it in the resources directory, I need put a wsdl file in the same package as your relative class. Is it possible? In eclipse it is a default behavior in export- jar, packing all .class and xml, or wsdl files. Anyone can help me how to it with maven? What is stopping you from creating a mirrored directory hierarchy within src/main/resources and dumping your files into the proper location? They will end up at the right location in the packaged artifact. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Integration/Acceptance testing with already installed/deployed artifacts
Hi Harold, On Thu, Apr 1, 2010 at 1:53 PM, shinsato har...@shinsato.com wrote: How can you run integration or acceptance tests separately from the compile and package lifecycle phases using maven? You could always create a separate test-oriented module, which depends on the code you want to test, and just run your tests through it. There's no way in Maven to guarantee that you're testing against the exact artifact produced from another module unless it is within the same reactor. Hudson fingerprinting kind of gets you there but. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [WARNING] GWT plugin is configured to detect modules, but none where found (sp)
Hi Andy, On Thu, Mar 25, 2010 at 3:50 PM, nhcoder andrewnbenja...@hotmail.com wrote: According to the documentation at http://mojo.codehaus.org/gwt-maven-plugin/user-guide/compiler.html, if I don't specify a module that the plugin will automagically search for .gwt.xml files. Well, there is definitely a file that ends in .gwt.xml in src/com/mycompany_tech. My pom is below. Is this a bug with the plugin or is my POM wrong? Thanks, Andy You should not have '${basedir}/src/com/mycompany_tech'; you probably want to put your .gwt.xml files into '${basedir}/src/main/resources/com/mycompany/tech' or some such. There's also a separate mailing list for the GWT plugin located at http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users -- good luck! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Running multiple phases on multimodules.
Hi Lydie, On Wed, Mar 24, 2010 at 4:59 PM, Compere, Lydie lydie.comp...@tdassurance.com wrote: WHAT I WOULD LIKE MAVEN TO DO IS: clean Child-A clean Child-B clean Child-C install Child-A install Child-B install Child-C Is this possible?? $ mvn clean ; mvn install ; echo profit! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Read project version from pom
Hi Shahzad, On Tue, Mar 23, 2010 at 10:58 AM, Qureshi,Shahzad [Ontario] shahzad.qure...@ec.gc.ca wrote: I would like the ability to read the project's version number from pom in my java code as I need to insert that version number in the text file I generate as a result of my code. I am NOT writing a maven plugin but a standalone java project that uses maven as a build/dependency system At this point, I can only think of one way of doing that and that is using the properties-maven-plugin to output the properties section from the pom into a text file and in my properties seciton I reference the project's version as ${project.version} Can you suggest or think of a better solution? I have a somewhat novel solution, if I do say so myself. :-) $ cat src/main/resources/com/acme/project.properties.vm # project.properties project.name = ${project.name} project.version = ${project.version} project.description = ${project.description} project.inceptionYear = ${project.inceptionYear} And make sure to have resource filtering enabled (although I'm not sure if this is required). Then simply read the project.properties file (note: no .vm suffix) from your program using standard java.util.Properties. I actually bundle this project properties and unpack it with maven-remote-resources-plugin automatically in my corporate pom. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release plugin
Hi Ben, On Tue, Mar 9, 2010 at 3:42 AM, bendg ben.d.g...@gmail.com wrote: Is there any way of maintaining a separate pom hierarchy for modules that I do not want in the main build? ie. dev-build.pom.xml ? Even the most casual examination of the POM reference [1] would reveal: project profiles profile iddev/id modules modulemod1/module modulemod2/module /modules /profile /profiles /project Where you can add additional modules via a profile. Enable the profile with -Pdev on the command line. [1] http://maven.apache.org/pom.html#Profiles -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Refactoring the Maven Build
Hi Bob, On Mon, Mar 8, 2010 at 8:09 AM, Bob Aiello bob.aie...@verizon.net wrote: I just wrote an article on tactics for refactoring the Maven build and I would love to get your input. http://www.cmcrossroads.com/cm-basics/13317-refactoring-the-maven-build Feel free to post comments or send them to me privately. Bob Aiello Editor in Chief CM Crossroads http://www.linkedin.com/in/BobAiello raiello [at] acm.org Well, you seem to be a manager and not a technical developer, so I'll go easy on you. Your article is definitely filled with the right buzz words, they just don't seem to be used appropriately. The title, Refactoring the Maven Build, suggests that there will be some sort of detail provided on how to refactor the Maven pom.xml, but there aren't any details on this at all. Tip # 1 - Using help:effective-pom to diagnose problems is good Tip # 2 - Understanding what is going on in the build is generically useful Tip # 3 - Adding tracing to Maven itself isn't going to be useful to any reader unless you provide your changes, please do not Tip # 4 - Declaring dependencies in a clear and consistent way? What does this even mean? Being a correct, well-formed XML document will see to that.. Tip # 5 - There's so much wrong in this one I don't know where to start ... please just delete it Tip # 6 - This is the likely result of your misunderstanding Maven, and switching the packaging type from jar to war without ever cleaning out the .m2/repo and/or without changing the artifact's version - tsk-tsk on you! Tip # 7 - Anyone that has written a plugin for Maven, even a HelloWorldMojo, is going to be of a higher caliber Maven user than you.. telling them to 'optimize' their plugins isn't at all valuable or useful Tip # 8 - Here, you seem to have digressed from the original thesis; are you speaking about a Maven Repository Manager? It's unclear, and worse still, you provide no details about what you're trying to fix, or how you recommend fixing it Tip # 9 - This is a non-issue if you are using well defined best practices for software development - by this I mean using actual versions and tagging your source code version control system appropriately during a release; any deployed artifact should be recreatable Tip # 10 - This seems like more buzz word jumbo, I'm not sure I see any tip here at all I'm sorry if I'm being harsh, but this really isn't going to be a valuable contribution. You don't even link to where you can get more information about Maven, or where much better resources may be found (e.g. http://www.sonatype.com/products/maven/documentation/book-defguide ) -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: If mirror fails, fall back to original?
Hi Laird, On Fri, Mar 5, 2010 at 5:04 PM, Laird Nelson ljnel...@gmail.com wrote: The setup: I have a Nexus repository manager installed at work. Sometimes I'm on the VPN, sometimes I'm not. I'd like it so that if I'm off the VPN and therefore Nexus isn't available to proxy all the repositories from any given POM, that the repositories so proxied should be used directly instead. Why don't you set up a local MRM (e.g. Nexus) on your work station and mirrorOf * to it. You could then customize your local MRM to proxy-host from your official corporate MRM. You probably also want to create rules on your local MRM to never try and fetch your internal corporate artifacts from anywhere other than the official corporate MRM. This setup works pretty great, I've been using it for quite a while. Good luck! -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Purging local repository
Hi Wim, On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe wim.debla...@gmail.com wrote: what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. Do you mean you tried maven-dependency-plugin:purge-local-repository and it didn't do as you expect? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Java.net Maven Repository Rescue Mission
Hi, On Thu, Feb 25, 2010 at 10:36 AM, Brian Fox bri...@infinity.nu wrote: Justin, Yes we would but obviously the license on those binaries is important. Some of the original binaries couldn't be redistributed which is why they were pulled from central years ago. Well, one thing that could be done to help this problem is to locate all projects which depend on the unfriendly licenses and convert them to use the Geronimo specification packages instead. Once those (superficial?) changes had been completed, there would be little stopping them from being deployed into Central. Can such a query be crafted--to locate all of the projects which depend on Sun/Oracle javax.*? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Disabling Surefire Reports for aggregator projects (i.e., with pom packaging)
Hi Andreas, On Fri, Jan 8, 2010 at 10:09 AM, Andreas Sewe s...@st.informatik.tu-darmstadt.de wrote: How can I disable these non-sensical reports for aggregator POMs while still benefitting from inheritance? (I don't want to configure the plugin manually in all my non-aggregator POMs.) Andreas Sewe It would be best if plugins have some intelligence that they really ought not to operate on particular types of POMs, however until that day arrives... I define a property like maven.surefire.skip to be true in the parent pom, and then false in the leaf nodes. A corresponding reference to this property must be placed into the super/aggregator POM's plugin configuration sections (both in pluginManagement and also reporting) for the skip configuration option. We do this for all of our report plugins, but I find it most useful for PMD, Checkstyle, Javadoc, and GWT's SOYC. With this strategy I'm able to get a minimal amount of leaf-node replication. I also think it makes my build process more flexible, as an experienced person can -Dmaven.surefire.skip= on the command line. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Plugins and their versions
Hi Roland, On Thu, Dec 31, 2009 at 7:47 AM, Roland Asmann roland.asm...@adesso.at wrote: Now, how can I explain to the enforcer-plugin that this single plug-in indeed is allowed to be a snapshot?. Roland Even the most casual examination of the documentation reveals the unCheckedPluginsList - A comma separated list of plugins to skip version checking. Ie allow no version, or snapshots, etc. The plugins should be specified in the form: group:artifactId configuration option. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: BASH port of mercury?
Why not the maven-cli-plugin[1]? This seems fairly close. Or are the shell-bigots too bigoted to drop into a subshell? :-) [1] http://wiki.github.com/mrdon/maven-cli-plugin -Jesse On Tue, Dec 22, 2009 at 9:56 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Hi there, we have some Java-phobes... We want to use the Maven Repository to share binary artifacts across teams... Has anyone got any BASH scripts which replicate Maven / ANT Tasks / Mercury? -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to download every dependency we need at once?
Hi Gajo, 2009/12/15 Gajo Csaba csaba.g...@cosylab.com: Is there some cleaner way to do this? I know exactly which dependencies are needed (it's a large list), so is there some maven command to not build anything, just download these dependencies into the local .m2 directory? Check out the maven-dependency-plugin:go-offline goal: http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html -Jesse Farinacci - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?
Hi KJ, On Wed, Dec 2, 2009 at 3:19 PM, K J gomm...@gmail.com wrote: Does anyone have any examples or tips about how to handle the generation of multiple artifacts based on a shared model? For example, I have a project which needs to produce both Java and ActionScript code based on a shared UML model. I'm having trouble figuring out how to best setup and manage these types of projects, so that a change to the source project can easily result in the build of all the various generated outputs. Thanks in advance for the help. To go the real Maven way, I think that I'd probably put the shared model data (perhaps some sort of XML?) into a Maven module. Then I'd have more Maven modules for Java and ActionScript, each, that would depend on the model data module. They would use it as a dependency and then generate their source codes accordingly. -jesse - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How best to deploy ( different config ) to different machines
Sounds like a job for JNDI. On Thu, Nov 19, 2009 at 7:23 PM, Sony Antony sony.ant...@gmail.com wrote: Reading the following thread brings forth this question ( Actually there was a thread on this few weeks back. But it wasnt very detailed ) : We have this configuration file that contains machine/server specific information. Assuming my application is an ear, how do I do a build so that I dont have to do a build specific for each target hosts. 1. Should I bundle up the configuration file inside the ear file ? 2. Should I bundle up all configuration files for all possible servers and at deployment time set some kind of variable ( through teh app server admin console ), which resolves to a specific config file ? In general what is teh best practice for this --sony -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a JAR with dependencies
Hi Frank, On Wed, Nov 4, 2009 at 7:09 AM, maven_newbie99 fr...@visign.ch wrote: second: is it possible not to include the whole dependent JARs but only those classes within my dependencies that I really use in my code? Try http://mojo.codehaus.org/minijar-maven-plugin/ -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: JAR subtraction from webapp WEB-INF/lib / forcing 'provided' on a list of artifacts
Hi Benson, On Wed, Nov 4, 2009 at 8:03 AM, Benson Margulies bimargul...@gmail.com wrote: I have a webapp that runs in Jetty and Tomcat. To make it run cleanly in JBoss, I need to subtract some jar files from the dependency graph. Unless I'm confused, this is going to take a lot of POM XML, because those jars are in the graph of several of my dependencies. So, I'm wondering: is there any other declarative mechanism for forcing 'provided' scope? Can dependencyManagement do this? Alternatively, is there some large hammer to be had at the point of WAR packaging that would allow me to filter? Just something I've been toying with in my mind, without doing any sort of actual testing, is... Have the top level corporate pom define all of these types of dependencies as scope=provided. Then have child modules for each of the containers I could ever want to support (we use Jetty and Tomcat both, and are being asked to evaluate Websphere). These modules would have no actual code, but would be a set of dependencies with different scopes depending on what the container provides and what is required, to escalate the scope level beyond what the corporate pom has in dependencyManagement. Profile activation would then pull in one of these container modules which would trigger transitive dependencies at the right scope. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: JAR subtraction from webapp WEB-INF/lib / forcing 'provided' on a list of artifacts
Benson, On Wed, Nov 4, 2009 at 8:22 AM, Benson Margulies bimargul...@gmail.com wrote: The problem is that it's not quite 'corporate'. The problem is this: you can build a webapp with CXF services that is self-contained on Jetty and tomcat. Then, to get it to run on JBoss, you want to start subtracting. OK, well, a profile that subtracts. If the profile can just use dependency-management to mark these guys 'provided', fine. Sorry, you've missed the point entirely. I have a top level corporate-wide super POM which mostly just manages a giant dependencyManagement section. You don't have to be a corporate user to have something like this in place, all advanced Maven projects I've ever encountered do this... Anyhow, create separate modules like jetty-dependencies, tomcat-dependencies, jboss-dependencies, which have all the correctly scoped dependencies in them, perhaps you'd even want to attach some m-enforcer-p checks to verify stage that nothing has slipped in. Then use a profile to depend on the proper container-dependencies module. As for exclusions, I'm really not sure what kind of things would be causing problems.. Can you give an example? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: JAR subtraction from webapp WEB-INF/lib / forcing 'provided' on a list of artifacts
Hi Benson, On Wed, Nov 4, 2009 at 8:39 AM, Benson Margulies bimargul...@gmail.com wrote: I see, if you mean a set of profiles, each with a dependencyManagement that makes some things 'provided', then I'm following, and that is what I need. No, that isn't what I mean. I would have a profile for each container I was interested in supporting. That profile would add a dependency (not dependencyManagement) on the corresponding module ${container}-dependencies. This module would specifically depend on whatever it needed. I suspect this could be handled within the profile itself, but I am a module-happy kind of guy.. :-) As far as exclusions go, there is no way to ban a dependency at the top level. You must list exclusions manually, for each dependency. I believe that Maven 3 may be attempting to remedy this. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating a JAR with dependencies
A-ha! Ok, glad to hear you figured it out. :-) On Wed, Nov 4, 2009 at 9:30 AM, maven_newbie99 fr...@visign.ch wrote: Please forget about my last post. I have had, for some copy/paste reason, the following lines in my .pom: dependency groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.1/version /dependency which caused all these maven-specific libs to be added to the target. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: executable uberjar
Hi Frank, On Wed, Nov 4, 2009 at 10:53 AM, maven_newbie99 fr...@visign.ch wrote: But now that I create the .JAR file using minijar, I don't know how to automatically generate and include the MANIFEST.MF file. This sounds like a great requirement for minijar plugin. You should file a new JIRA, and include some testcases for it. A patch would probably even make it more welcome. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org