Re: How to package a binary distribution with dependencies / resources
Never mind, I finally found the assembly plugin. http://maven.apache.org/plugins/maven-assembly-plugin/howto.html JT On 7/12/06, Jeremy Thomerson [EMAIL PROTECTED] wrote: Okay, I give up. I've searched high and low. I'm new to Maven, just using it (2.0.4) for an OS project I opened ( http://vitalsigns.sourceforge.net). I love it so far, except that I'm having a terrible time trying to find an documentation on how to do anything other then the out-of-the--box functionality. The main thing that is killing me right now is this: How do I package my jar with all of its dependencies in a binary distribution of sorts? A zip file that has my jar, my resources, and my dependencies? All help is appreciated. Thanks for your hard work! Jeremy Thomerson jthomerson AT users DOT sourceforge DOT net
Re: Is there a way to kill a Continuum build in Windows?
We have a little bug on continuum initialization. It should reinitialize all projects states but it don't do it. If you click on Build All button, your project will be build and the project state will be reinitialized. Emmanuel Deb Berkson a écrit : I have tried restarting Continuum and rebooting my machine but neither worked. It is stuck thinking it's checking out from Subversion and I need it to just fail. Thanks in advance! Deb Berkson
RE: m2 multiple war files with some common code
I've posted the answer to this a few time on this user list A -Original Message- From: Srinivas Pavani [mailto:[EMAIL PROTECTED] Sent: 13 July 2006 19:51 To: users@maven.apache.org Subject: m2 multiple war files with some common code Can someone shed some light on how to setup maven2 to allow sharing some common code across multiple war files? Given below is an example of how I would like to setup multiple modules but I am not sure how the war generation can occur when webapp contents from common-module are needed for war-module1, war-module2 and war-module3. /parent-project /parent-project/common-module /parent-project/common-module/src/main/java /parent-project/common-module/src/main/resources /parent-project/common-module/src/main/webapp /parent-project/war-module1 /parent-project/war-module1/src/main/java /parent-project/war-module1/src/main/resources /parent-project/war-module1/src/main/webapp /parent-project/war-module2 ... /parent-project/war-module3 ... -- View this message in context: http://www.nabble.com/m2-multiple-war-files-with-some-common-code-tf1939 224.html#a5314384 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven site plugin
Thanks for the relpy Arnaud, think I wrote my 1st post wrong. Sorry meant the maven-site-plugin in Maven 2. Do the properties I set in build.properties now go into a css file in the site folder? -- View this message in context: http://www.nabble.com/maven-site-plugin-tf1938390.html#a5322992 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven site plugin
rebels_mascot wrote: Thanks for the relpy Arnaud, think I wrote my 1st post wrong. Sorry meant the maven-site-plugin in Maven 2. Do the properties I set in build.properties now go into a css file in the site folder? You should have a look at this document: http://maven.apache.org/plugins/maven-site-plugin/howto.html The last section talks about Skinning which is the way to customize the look of the site generated by the Maven 2 Site plugin. -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overwrite when changing profile
On 2/22/06, Wouter de Vaal [EMAIL PROTECTED] wrote: Hi, In my project I have created several profiles for different environments like profile idenv-local/id activation property nameenv/name valuelocal/value /property /activation build resources resource directory src/main/profiles/local/resources /directory /resource /resources /build /profile so the src/main/profiles/local/resources contain specific file for the correct environments. This works ok when I call clean and package the correct profile files are selected. However when the target dir is already filled with these files it won't override the profile files when I run mvn package. Is there a way to let mvn override these files, but not having to clean the whole target dir? Did you find a solution yet Wouter? If not I will submit a jira issue. I am having the exact same problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 2 and JUnit-Tests for Eclipse Plugins
Has anybody set up Maven 2 builds for Eclipse (PDE) plugin projects and has managed to integrate JUnit in-container tests for Eclipse-Plugins into the Maven build lifecycle? I would be very much interested in some best practices. Thank you! Arne -- View this message in context: http://www.nabble.com/Maven-2-and-JUnit-Tests-for-Eclipse-Plugins-tf1942500.html#a5324188 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overwrite when changing profile
Anyway, this is my workaround: build outputDirectorytarget/${profile.name}/outputDirectory Every profile is built in its own directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with check out with more than one sheduled projects
Hi, now i have five projects, that start at 12:00. All Projects get this error (see below). (Manuell starting works fine - scm provider is 'file') What is going wrong? Thanks, Thorsten Build statistics: State: Error Previous State: Ok Started at: Fr, 14 Jul 2006 12:00:51 +0200 Finished at: Fr, 14 Jul 2006 12:01:05 +0200 Total time: 14s Build Trigger: Schedule Exit code: 0 Building machine hostname: srv-ew-web Operating system : Windows 2003(Service Pack 1) Java version : 1.5.0_06(Sun Microsystems Inc.) Build Error: org.apache.maven.continuum.scm.ContinuumScmException: Cannot checkout sources. at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:276) at org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmContinuumAction.execute(UpdateWorkingDirectoryFromScmContinuumAction.java:58) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:166) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at org.apache.maven.continuum.scm.DefaultContinuumScm.convertScmResult(DefaultContinuumScm.java:414) at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:244) ... 5 more
Re: Problem with check out with more than one sheduled projects
it seems to be a problem with the local provider. The local provider doesn't initialize the change date because we can't know it and in DefaultContinuumScm, we check it. Please create an issue. Emmanuel [EMAIL PROTECTED] a écrit : Hi, now i have five projects, that start at 12:00. All Projects get this error (see below). (Manuell starting works fine - scm provider is 'file') What is going wrong? Thanks, Thorsten Build statistics: State: Error Previous State: Ok Started at: Fr, 14 Jul 2006 12:00:51 +0200 Finished at: Fr, 14 Jul 2006 12:01:05 +0200 Total time: 14s Build Trigger: Schedule Exit code: 0 Building machine hostname: srv-ew-web Operating system : Windows 2003(Service Pack 1) Java version : 1.5.0_06(Sun Microsystems Inc.) Build Error: org.apache.maven.continuum.scm.ContinuumScmException: Cannot checkout sources. at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:276) at org.apache.maven.continuum.core.action.UpdateWorkingDirectoryFromScmContinuumAction.execute(UpdateWorkingDirectoryFromScmContinuumAction.java:58) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:166) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at org.apache.maven.continuum.scm.DefaultContinuumScm.convertScmResult(DefaultContinuumScm.java:414) at org.apache.maven.continuum.scm.DefaultContinuumScm.updateProject(DefaultContinuumScm.java:244) ... 5 more
Maven 2 Site Language Help me!!! plz
I made some changes on the properties file for my language on Maven. But now I don't know how I proceed to use it on my Maven project. I put that file in the src/main/resources on my project and point on my pom for that but even when I make some changes for that, the site stills present the same properties file, looks like he seeks on the net for the file and don't use the modified properties of my machine. Where should I put that file? Is there any plug-in that I have to insert for this to work? Thx -- Evandro Broering Nascimento Florianópolis - SC - Brasil If you really want something in this life, you have to work for it. Now, quiet! They're about to announce the lottery numbers... - Homer Simpson -- Evandro Broering Nascimento Florianópolis - SC If you really want something in this life, you have to work for it. Now, quiet! They're about to announce the lottery numbers... - Homer Simpson
Launch application through maven 2.x
Hi, Is it possible to launch an application with maven 2.x ? I mean is there any goal that allows users to launch an application with mvn command line ? (ex. mvn run runs the main class of the project). If not, does it exist a way to do it (with some plugin or whatever) ? Thanks for your support, Fred. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn failed
Can you send more logs? Do you have svn installed on your machine? Emmanuel Vinay Kumar a écrit : Hi All, I just installed continuum yesterday . When I am doing build using continuum svn command failing : jvm 1| 2006-07-14 16:18:51,628 [Thread-2] WARN ContinuumScm - Provider message: The svn command failed. Can anyone highlight what all I need to configure to make it working. Thanks Vinay
How to specify what's included in the jar with maven-jar-plugin?
Hello, I am trying to build a multi-module project. One module (core) is needed by another module. When I run mvn install, a jar with the core module is built, but it doesn't contain the test classes, and I need them to be included. I've search through the maven-jar-plugin site but nothing seems to do the trick. I've already used a few assemblies and I guess I could use this to build the jar I need, but then, the install command wouldn't use it automatically (right?). Anybody knows how to specify what's supposed to be included in the jar? Or is there another way to include my test classes in the jar? Thanks a lot, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn failed
Hi Emmanuel, Thanks for replying!!! Now it works. SVN was installed but its bin directory is missing from path Env variable. Anyway after modifying its working. Thanks Vinay - Original Message From: Emmanuel Venisse [EMAIL PROTECTED] To: continuum-users@maven.apache.org Sent: Friday, 14 July, 2006 6:26:14 PM Subject: Re: svn failed Can you send more logs? Do you have svn installed on your machine? Emmanuel Vinay Kumar a écrit : Hi All, I just installed continuum yesterday . When I am doing build using continuum svn command failing : jvm 1| 2006-07-14 16:18:51,628 [Thread-2] WARN ContinuumScm - Provider message: The svn command failed. Can anyone highlight what all I need to configure to make it working. Thanks Vinay
Re: Launch application through maven 2.x
Fred wrote: Hi, Is it possible to launch an application with maven 2.x ? I mean is there any goal that allows users to launch an application with mvn command line ? (ex. mvn run runs the main class of the project). If not, does it exist a way to do it (with some plugin or whatever) ? Thanks for your support, Fred. Hello, Try exec-maven-plugin, hosted at Codehaus Mojo project. See http://mojo.codehaus.org/exec-maven-plugin/. cheers, Andrius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javadoc 2.0 plugin: doc-files/* not being copied!
I now think I know what the matter is. It looks like doc-files/ directories have to be at least three directories deep in order to be copied. (This is in addition to the condition that the directory must contain .java files.) E.g. com/lafros/juice/demo/doc-files: copied com/lafros/juice/doc-files: copied com/lafros/doc-files: NOT copied This condition doesn't appear to be documented, and doesn't apply to javadoc itself. Can anyone disprove this? Rob On 9 Jul 2006, at 18:21, Rob Dickens wrote: It looks like the problem was confined to the version I'd compiled from src (a week before 2.0 was officially released). Anyway, I just cleared this from my local repository, thereby forcing the released version to be downloaded, and the problem went away. Sorry for having wasted anyone's time. Rob On 31 May 2006, at 08:34, Rob Dickens wrote: Still couldn't get this to work, so http://jira.codehaus.org/ browse/MJAVADOC-76 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Launch application through maven 2.x
Fred, I've had some limited success with the exec-maven plugin. If you only need to launch a java app with maven and can specify all configs in your pom, then it works great. However, if you thought that you could specify some args on command line (such as -Dexec.args) then there are some bugs with parsing and assignment of command-line args. http://jira.codehaus.org/browse/MEXEC-5 nevertheless, it works great, and here's an example of launching your own app from within Maven. Place this in the plugins section in the builds in your POM: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId configuration mainClassorg.marketcetera.oms.OrderManagementSystem/mainClass arguments argumentoms/argument /arguments systemProperties systemProperty keyfoo/key !-- plugin crashes when there are no values here -- valuebar/value /systemProperty /systemProperties /configuration /plugin On 7/14/06, Andrius Šabanas [EMAIL PROTECTED] wrote: Fred wrote: Hi, Is it possible to launch an application with maven 2.x ? I mean is there any goal that allows users to launch an application with mvn command line ? (ex. mvn run runs the main class of the project). If not, does it exist a way to do it (with some plugin or whatever) ? Thanks for your support, Fred. Hello, Try exec-maven-plugin, hosted at Codehaus Mojo project. See http://mojo.codehaus.org/exec-maven-plugin/. cheers, Andrius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify what's included in the jar with maven-jar-plugin?
Sebastien, you can explicitly configure the maven-jar plugin to jar your test code. We do it this way: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution idbundle-test-jar/id phasepackage/phase goals goaltest-jar/goal /goals /execution /executions /plugin it gets bound to the package phase so it's created during 'mvn package'. It appends the -tests suffix to the jar, so that later, if you need to refer to it (to copy it somewhere, for example or to declare a dependency) you need to use the test classifier so that maven would know to append the -tests suffix: dependency groupIdorg.marketcetera/groupId artifactIdcore/artifactId version${project.version}/version classifiertests/classifier scopetest/scope /dependency hope this helps. -- Toli Kuznets Marketcetera.org: Open-Source Trading Platform: download.run.trade. On 7/14/06, Sebastien Pennec [EMAIL PROTECTED] wrote: Hello, I am trying to build a multi-module project. One module (core) is needed by another module. When I run mvn install, a jar with the core module is built, but it doesn't contain the test classes, and I need them to be included. I've search through the maven-jar-plugin site but nothing seems to do the trick. I've already used a few assemblies and I guess I could use this to build the jar I need, but then, the install command wouldn't use it automatically (right?). Anybody knows how to specify what's supposed to be included in the jar? Or is there another way to include my test classes in the jar? Thanks a lot, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 Site Language
IIRC you will need to pull the source code to maven-site-plugin, add your properties file there, and build/install/deploy it for it to use your updated language properties file. I believe you cannot simply add it to your project's resources and expect it to be used. Ideally, you would also contribute this updated properties file for your language back to the Maven project so it could be included in future m-s-p releases for the benefit of the rest of the Maven Users community. Wayne On 7/13/06, H€ñÐ(r)I× [EMAIL PROTECTED] wrote: I made some changes on the properties file for my language on Maven. But now I don't know how I proceed to use it on my Maven project. I put that file in the src/main/resources on my project and point on my pom for that but even when I make some changes for that, the site stills present the same properties file, looks like he seeks on the net for the file and don't use the modified properties of my machine. Where should I put that file? Is there any plug-in that I have to insert for this to work? Thx -- Evandro Broering Nascimento Florianópolis - SC - Brasil If you really want something in this life, you have to work for it. Now, quiet! They're about to announce the lottery numbers... - Homer Simpson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify what's included in the jar with maven-jar-plugin?
Toli, It's exactly what I needed, thanks! Sebastien Toli Kuznets a écrit : Sebastien, you can explicitly configure the maven-jar plugin to jar your test code. We do it this way: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution idbundle-test-jar/id phasepackage/phase goals goaltest-jar/goal /goals /execution /executions /plugin it gets bound to the package phase so it's created during 'mvn package'. It appends the -tests suffix to the jar, so that later, if you need to refer to it (to copy it somewhere, for example or to declare a dependency) you need to use the test classifier so that maven would know to append the -tests suffix: dependency groupIdorg.marketcetera/groupId artifactIdcore/artifactId version${project.version}/version classifiertests/classifier scopetest/scope /dependency hope this helps. -- Toli Kuznets Marketcetera.org: Open-Source Trading Platform: download.run.trade. On 7/14/06, Sebastien Pennec [EMAIL PROTECTED] wrote: Hello, I am trying to build a multi-module project. One module (core) is needed by another module. When I run mvn install, a jar with the core module is built, but it doesn't contain the test classes, and I need them to be included. I've search through the maven-jar-plugin site but nothing seems to do the trick. I've already used a few assemblies and I guess I could use this to build the jar I need, but then, the install command wouldn't use it automatically (right?). Anybody knows how to specify what's supposed to be included in the jar? Or is there another way to include my test classes in the jar? Thanks a lot, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Filters
I'm trying to specify different filter files during different phases, 1 during the main filtering process and the other during the test filters, so I checked out the maven-resource-plugin and saw I could change the filters for each goal or so I think I can, anyway this is what I tried but it ain't working, any advice? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId executions execution goals goaltestResources/goal /goals configuration filters filter ${basedir}/test/resources/filter-test-resources.properties /filter /filters /configuration /execution /executions /plugin And have another execution for the resources goal with a different filter file. Can you specify a filter file in this way, is it a bug they're not working? I can't use the other (normal) way because will have the same properties but with different values, I have been using antrun but would prefer not to. Thanks, Brian -- View this message in context: http://www.nabble.com/-m2--Filters-tf1943491.html#a5327412 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test resource filtering
I think we're having the same problem or similar anyway, one way around it is to use antrun but it's a crappy way to do it I think. Not sure if my post will help but I think it's wat your looking for but I doubt it's meant to be used in that fasion and it doesn't work :-). -- View this message in context: http://www.nabble.com/Test-resource-filtering-tf1943497.html#a5327573 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test resource filtering
There's probably an easy way to do this, but I've been banging my head off a wall for hours! I have a configuration properties file in my application, that needs to be filtered differently for the packaged artifact, and for the test classes. I can't see how I can create two versions of the file using different filter properties, as you only seem to be able to specify universal filters. -- View this message in context: http://www.nabble.com/Test-resource-filtering-tf1943497.html#a5327445 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cobertura and XML Beans maven plugin conflict
This one turned out to be the file path size limitation for windows and not either plugin. Relocating the project to a directory closer to the root of the drive made the issue disappear. Windows. Sigh. kris bravo -Original Message- From: Bravo, Kris Sent: Thursday, July 13, 2006 3:22 PM To: Maven Users List Subject: Cobertura and XML Beans maven plugin conflict Cobertura doesn't get along with the .xsb files created by the xml beans compile. Does anyone have experience working around this issue? Here's my plugin definition: plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId configuration instrumentation ignore**/*.xsb/ignore exclude**/*.xsb/exclude /instrumentation /configuration executions execution goals goalclean/goal goalcheck/goal /goals /execution /executions /plugin Here's the error. FileUtils seems to choke on some of the characters in these files: Caused by: java.io.IOException: Failed to copy full contents from C:\data\user\bravo\projects\outbound-notes-common\target\classes\schemao rg_apache_xmlbeans\javaname\com\cingular\clarify\synchronization\notes\c onfig\NotesConfigurationDocument\NotesConfiguration.xsb to C:\data\user\bravo\projects\outbound-notes-common\target\generated-class es\cobertura\schemaorg_apache_xmlbeans\javaname\com\cingular\clarify\syn chronization\notes\config\NotesConfigurationDocument\NotesConfiguration. xsb at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:834) at org.codehaus.plexus.util.FileUtils.copyFileToDirectory(FileUtils.java:77 3) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1486) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java :1495) at org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.execute(CoberturaIns trumentMojo.java: 85) ... 22 more kris bravo * Clarify Development * office: 678.893.1288 * mobile: 678.296.8723 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 1: Profiling the Build
We've got a multi-project build that's been taking progressively longer; it's not yet critical, but I wouldn't mind a way to get simple 'profiling' of the build. Just knowing which maven goals/pregoals/plugins/etc are taking how much time would be really useful -- is there a way to get that kind of information out of Maven, even if it's just a Log4J configuration that identifies cleanly when targets/plugins start and end in a timestamped log message? Thanks, - Geoffrey Geoffrey Wiseman direct: 416.646.7124 main: 416.646.7000 fax: 416.646.7050 Exchange Solutions Inc. 250 Yonge Street, 18th Floor Toronto, ON M5B 2L7 www.exchangesolutions.com
Re: WEB-INF/lib excludes once more
WAR plugin is broken in 2.0.4 so excludes don't work. As a workaround I'm using the following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idpackage/id phasepackage/phase goals goalrun/goal /goals configuration tasks !-- | Repackages the generated WAR file to exclude | JARs from the WEB-INF/lib directory. This is | a workaround until the WAR plugin is fixed to | allow to exclude these files. |-- property name=war.dir value=${project.build.directory}/${project.build.finalName} / unjar src=${war.dir}.war dest=${war.dir}/ jar destfile=${war.dir}.war basedir=${war.dir} excludes=WEB-INF/lib/*.jar manifest=${war.dir}/META-INF/MANIFEST.MF / /tasks /configuration /execution /executions /plugin -- View this message in context: http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a5327843 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manage internal dependencies that do not follow Maven conventions
Hey there. Is there a recommended way to handle internal dependencies that do not follow Maven's directory structure and naming conventions? Internal dependencies will be in development so it's necessary to pull them instead of storing them locally. For instance, a project may have a build dependency on: http://host:port/repo/jar_name_1_0.jar Thanks. -Chris ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
Problem w/M2 plugin
Hi all, Is anyone having problems with accessing information using maven 2.0 this morning? I am getting the following error: Project ID: org.codehaus.cargo-maven2-plugin Reason: Error getting POM for 'org.codehaus.cargo:cargo-maven2-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from 'C:\Folder File name \username\.m2\repository\org\codehaus\cargo\cargo-maven2-plugin\maven-metada ta-cargo m2 snapshot repository.xml': entity reference name can not contain character =' (position: TEXT seen ...dehaus.org/pages/editpage.action?spaceKey=${space.spaceKey}title=... @210:120) org.codehaus.cargo:cargo-maven2-plugin:pom:LATEST For example, I get this error after running a mvn cargo:clean command. Please let me know if anyone else is having this problem. Thanks in advanced, Matilda - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.
RE: javadoc 2.0 plugin: doc-files/* not being copied!
Do you have your 'doc-files' in the source folder or in a resource folder? I've never been able to get it to copy 'doc-files' that are in resource folders. Maybe that's linked to the must contain .java files you mentioned. -Nathan -Original Message- From: Rob Dickens [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 8:48 AM To: Maven Users List Subject: Re: javadoc 2.0 plugin: doc-files/* not being copied! I now think I know what the matter is. It looks like doc-files/ directories have to be at least three directories deep in order to be copied. (This is in addition to the condition that the directory must contain .java files.) E.g. com/lafros/juice/demo/doc-files: copied com/lafros/juice/doc-files: copied com/lafros/doc-files: NOT copied This condition doesn't appear to be documented, and doesn't apply to javadoc itself. Can anyone disprove this? Rob On 9 Jul 2006, at 18:21, Rob Dickens wrote: It looks like the problem was confined to the version I'd compiled from src (a week before 2.0 was officially released). Anyway, I just cleared this from my local repository, thereby forcing the released version to be downloaded, and the problem went away. Sorry for having wasted anyone's time. Rob On 31 May 2006, at 08:34, Rob Dickens wrote: Still couldn't get this to work, so http://jira.codehaus.org/ browse/MJAVADOC-76 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cobertura reports 0% for some classes
Curiously I'm getting the same problem but in reverse. If I delete cobertura.ser I get 0% coverage for everything. If not deleted then the reports show the results of the previous build - i.e. I could increase coverage, build, and see no change in the coverage report; build again and increased coverage is reported. Any ideas greatly appreciated. Andy -- View this message in context: http://www.nabble.com/Cobertura-reports-0--for-some-classes-tf1675082.html#a5328129 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem w/M2 plugin
On 7/14/06, Matilda Robert [EMAIL PROTECTED] wrote: Is anyone having problems with accessing information using maven 2.0 this morning? I am getting the following error: Project ID: org.codehaus.cargo-maven2-plugin Reason: Error getting POM for 'org.codehaus.cargo:cargo-maven2-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from 'C:\Folder File name \username\.m2\repository\org\codehaus\cargo\cargo-maven2-plugin\maven-metada ta-cargo m2 snapshot repository.xml': entity reference name can not contain character =' (position: TEXT seen ...dehaus.org/pages/editpage.action?spaceKey=${space.spaceKey}title=... Yes, something similar happened here yesterday. It looks like you have corrupted metadata in your local repository. This worked: Delete Cargo from your local repository, rm -rf $M2_REPO/org/codehaus/cargo and then double-check the remote repo you're using to get the Cargo snapshots. This one is working for me (up to yesterday I was using a different one,): http://snapshots.repository.codehaus.org Then again, I build Cargo from source locally, so that may also have fixed it. :) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 1: Profiling the Build
Does this help? http://mail-archives.apache.org/mod_mbox/maven-users/200507.mbox/[EMAIL PROTECTED] Quoting Geoffrey Wiseman [EMAIL PROTECTED]: We've got a multi-project build that's been taking progressively longer; it's not yet critical, but I wouldn't mind a way to get simple 'profiling' of the build. Just knowing which maven goals/pregoals/plugins/etc are taking how much time would be really useful -- is there a way to get that kind of information out of Maven, even if it's just a Log4J configuration that identifies cleanly when targets/plugins start and end in a timestamped log message? Thanks, - Geoffrey Geoffrey Wiseman direct: 416.646.7124 main: 416.646.7000 fax: 416.646.7050 Exchange Solutions Inc. 250 Yonge Street, 18th Floor Toronto, ON M5B 2L7 www.exchangesolutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem w/M2 plugin
Thanks Wendy, I will try it out. Matilda -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:24 AM To: Maven Users List Subject: Re: Problem w/M2 plugin On 7/14/06, Matilda Robert [EMAIL PROTECTED] wrote: Is anyone having problems with accessing information using maven 2.0 this morning? I am getting the following error: Project ID: org.codehaus.cargo-maven2-plugin Reason: Error getting POM for 'org.codehaus.cargo:cargo-maven2-plugin' from the repository: Unable to read local copy of metadata: Cannot read metadata from 'C:\Folder File name \username\.m2\repository\org\codehaus\cargo\cargo-maven2-plugin\maven-metada ta-cargo m2 snapshot repository.xml': entity reference name can not contain character =' (position: TEXT seen ...dehaus.org/pages/editpage.action?spaceKey=${space.spaceKey}title=... Yes, something similar happened here yesterday. It looks like you have corrupted metadata in your local repository. This worked: Delete Cargo from your local repository, rm -rf $M2_REPO/org/codehaus/cargo and then double-check the remote repo you're using to get the Cargo snapshots. This one is working for me (up to yesterday I was using a different one,): http://snapshots.repository.codehaus.org Then again, I build Cargo from source locally, so that may also have fixed it. :) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pb to filter modules from maven-checkstyle-plugin
Hi, I have some issues with the plugin 'maven-checkstyle-plugin'. My project includes several modules including third party sources. I want to check all my modules but these third party ones. The only way I've found is to add a 'checkstyle-suppressions.xml' file on the root of these libraries, which should be like : suppressions suppress checks=JavadocStyleCheck files=* / /suppressions The problem is that this file is not accepted with 'files=*' (Embedded error: Error rendering Maven report: failed to load suppressions location: ./checkstyle-suppressions.xml invalid files or checks format) but is ok when I write 'files=blabla.java' According to http://checkstyle.sourceforge.net/config.html#XML Details http://checkstyle.sourceforge.net/config.html#XML%20Details , a regular expression is accepted. Any idea to get it work or a solution to remove this modules from the checking ? Thanks! Franck --
Problem with Maven Hello Plugin Example
Hi, I am getting a strange error when I try to create the simple Maven Hello Plugin example. When compiling it, I get the message: Cannot read file: GreetingMojo.java (Detailed error message is below). I don't get any error when I just change the packaging from maven-plugin to jar. Any ideas what the issue could be? Thanks for your help! -Alexander I copied the examples from the Maven2 documentation: GreetingMojo.java: package sample; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; /** * @goal sayhi * @description Says Hi to the user */ public class GreetingMojo extends AbstractMojo { public void execute() throws MojoExecutionException { getLog().info(Hello, world.); } } -- pom.xml: - project modelVersion4.0.0/modelVersion groupIdsample.plugin/groupId artifactIdmaven-hello-plugin/artifactId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version nameSample Parameter-less Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies /project C:\D\test\tempmvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Sample Parameter-less Maven Plugin [INFO]task-segment: [compile] [INFO] - --- [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Cannot read file : GreetingMojo.java [INFO] [INFO] Trace java.lang.RuntimeException: Cannot read file : GreetingMojo.java at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java: 369) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(Directory Scanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.jav a:362) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtrac tor.execute(JavaMojoDescriptorExtractor.java:477) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug inDescriptor(DefaultMojoScanner.java:69) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract GeneratorMojo.java:99) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Fri Jul
Re: javadoc 2.0 plugin: doc-files/* not being copied!
The doc-files/ folders are located in the src/ tree (in folders containing .java files). On 14 Jul 2006, at 16:16, Beyer,Nathan wrote: Do you have your 'doc-files' in the source folder or in a resource folder? I've never been able to get it to copy 'doc-files' that are in resource folders. Maybe that's linked to the must contain .java files you mentioned. -Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Maven Hello Plugin Example
This works fine for me. Can you run it again like this (with debugging turned on): mvn -X compile and post the results. -- Dennis Lundberg Alexander Hars wrote: Hi, I am getting a strange error when I try to create the simple Maven Hello Plugin example. When compiling it, I get the message: Cannot read file: GreetingMojo.java (Detailed error message is below). I don't get any error when I just change the packaging from maven-plugin to jar. Any ideas what the issue could be? Thanks for your help! -Alexander I copied the examples from the Maven2 documentation: GreetingMojo.java: package sample; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; /** * @goal sayhi * @description Says Hi to the user */ public class GreetingMojo extends AbstractMojo { public void execute() throws MojoExecutionException{ getLog().info(Hello, world.); } } -- pom.xml: - project modelVersion4.0.0/modelVersion groupIdsample.plugin/groupId artifactIdmaven-hello-plugin/artifactId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version nameSample Parameter-less Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies /project C:\D\test\tempmvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Sample Parameter-less Maven Plugin [INFO]task-segment: [compile] [INFO] - --- [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Cannot read file : GreetingMojo.java [INFO] [INFO] Trace java.lang.RuntimeException: Cannot read file : GreetingMojo.java at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java: 369) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(Directory Scanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.jav a:362) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtrac tor.execute(JavaMojoDescriptorExtractor.java:477) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug inDescriptor(DefaultMojoScanner.java:69) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract GeneratorMojo.java:99) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at
install to local repo with activated profile
Hi, I have a module that has dependencies on various jboss libs. This module is maintained to be usable with both JBoss4.x and JBoss3.x. How would I create two modules that only differ in their dependencies to the JBoss version? I could use two POMs but this would mean duplicating the maintainance of my module's dependencies which is error prone and tedious. Does anyone have a better idea? Thanks, -dirk -- A: Maybe because some people are too annoyed by top-posting. Q: Why do I not get an answer to my question(s)? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javadoc 2.0 plugin: doc-files/* not being copied!
Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
websphere plugin
Is there a maven2 plugin for websphere 6? i remember there was maven plugin for websphere 5 but haven't found one for websphere 6. We are trying to do headless builds of EJB's for WAS with maven and are looking for a plugin that will enable this. thanks michael wiles Disclaimer Sanlam Life Insurance Limited Reg no 1998/021121/06 - Licensed Financial Services Provider Disclaimer and Directors
maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
You should place it in dependecies not depenencyManagement On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/artifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WEB-INF/lib excludes once more
The maven version has nothing to do with it. It's broken in maven-war-plugin 2.0 and fixed in 2.0.1. -Original Message- From: Lukasz Szelag [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 9:44 AM To: users@maven.apache.org Subject: Re: WEB-INF/lib excludes once more WAR plugin is broken in 2.0.4 so excludes don't work. As a workaround I'm using the following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idpackage/id phasepackage/phase goals goalrun/goal /goals configuration tasks !-- | Repackages the generated WAR file to exclude | JARs from the WEB-INF/lib directory. This is | a workaround until the WAR plugin is fixed to | allow to exclude these files. |-- property name=war.dir value=${project.build.directory}/${project.build.finalName} / unjar src=${war.dir}.war dest=${war.dir}/ jar destfile=${war.dir}.war basedir=${war.dir} excludes=WEB-INF/lib/*.jar manifest=${war.dir}/META-INF/MANIFEST.MF / /tasks /configuration /execution /executions /plugin -- View this message in context: http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a532 7843 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spring 2.0, hibernate/ejb 3
This works for me .. not exhaustively tested but have gotten schema creation + insertion of data working. Combination of putting session factory in spring + using annotations for classes means you get away without needing any 'native' hibernate xml. Had to do the same thing with persistence + local repo obviously. HTH. A. dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.1beta9/version /dependency !-- dependency groupIdjavax.persistence/groupId artifactIdejb-3.0-public-draft/artifactId version20050623/version /dependency -- dependency groupIdjavax.persistence/groupId artifactIdejb/artifactId version3.0-public-draft-20060327/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.2.0.cr2/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.0-rc1/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-hibernate3/artifactId version2.0-rc1/version /dependency Josh Long wrote: Has anyone gotten the latest (or something close to a 2.0 release, and not 1.2.6) iteration of Spring, Hibernate 3 and ejb/hibrnate annotations to work? if so, what would the pom for that look like? My salient points on my old POM looks like this: dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version1.2.7/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version1.2.7/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-dao/artifactId version1.2.7/version /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.0.5/version optionaltrue/optional /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.0beta2/version /dependency Hibernate annotations have a dependency on the javax.persistence jar, which of course isn available but i got the correct iteration (the one shipped in hibernate-annotations' lib dir for 3.0beta2 and placed it in my private repository.. so that works wonderfully. im not faring sowell at trying to get spring 2.0m4 to work, though.. any one else have any luck here? Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Spring-2.0%2C-hibernate-ejb-3-tf1940231.html#a5330405 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] jvm heap size from within eclipse maven plugin
I'm running the jetty6 plugin from within eclipse using the maven plugin. Anyone know of a way to pass the -X option to up the heap size? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WEB-INF/lib excludes once more
OK, I meant that the WAR plugin which comes with 2.0.4 is broken. Anyways, is there a way to include these libs automatically in the EAR without explicitly specifying in EAR POM all dependencies from the WAR? This is how EJB dependencies are treated in the EAR. -- View this message in context: http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a5330992 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Maven Hello Plugin Example
That is odd... does the account you're running mvn on have read access to that file? Is the file locked by an external program? Is the file still there (since its in a temp directory)? file.toURL().openStream() is throwing an IOException, so it looks to be a Java thing. Thanks; Eric On 7/14/06, Alexander Hars [EMAIL PROTECTED] wrote: Hi, I am getting a strange error when I try to create the simple Maven Hello Plugin example. When compiling it, I get the message: Cannot read file: GreetingMojo.java (Detailed error message is below). I don't get any error when I just change the packaging from maven-plugin to jar. Any ideas what the issue could be? Thanks for your help! -Alexander I copied the examples from the Maven2 documentation: GreetingMojo.java: package sample; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; /** * @goal sayhi * @description Says Hi to the user */ public class GreetingMojo extends AbstractMojo { public void execute() throws MojoExecutionException { getLog().info(Hello, world.); } } -- pom.xml: - project modelVersion4.0.0/modelVersion groupIdsample.plugin/groupId artifactIdmaven-hello-plugin/artifactId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version nameSample Parameter-less Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies /project C:\D\test\tempmvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Sample Parameter-less Maven Plugin [INFO]task-segment: [compile] [INFO] - --- [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Cannot read file : GreetingMojo.java [INFO] [INFO] Trace java.lang.RuntimeException: Cannot read file : GreetingMojo.java at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java: 369) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(Directory Scanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(Directory Scanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.jav a:362) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtrac tor.execute(JavaMojoDescriptorExtractor.java:477) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug inDescriptor(DefaultMojoScanner.java:69) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract GeneratorMojo.java:99) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at
RE: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
I removed the artifact from the repository and modified the POM for the child by adding dependency within build plugins plugin artifactIdmaven-native-plugin/artifactId ... dependencies dependency ... -- groupId and artifactId only. no version. ... /dependencies /plugin /plugins /build [while leaving the original dependencyManagement element in the parent]. The child project build was still successful. Brad -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:52 AM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/art ifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Maven Hello Plugin Example
Dennis, Thanks for your quick response. I found the problem: The error occurs when the paths contains unusual characters. In my case: it was quite a long path that was c:\.\vc#\..\temp\... It is the '#' character that throws qdox of. -Alexander Dennis Lundberg wrote: This works fine for me. Can you run it again like this (with debugging turned on): mvn -X compile and post the results. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
move it outside of build -D On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: I removed the artifact from the repository and modified the POM for the child by adding dependency within build plugins plugin artifactIdmaven-native-plugin/artifactId ... dependencies dependency ... -- groupId and artifactId only. no version. ... /dependencies /plugin /plugins /build [while leaving the original dependencyManagement element in the parent]. The child project build was still successful. Brad -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:52 AM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/art ifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
Bingo. That did it. Thanks. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 1:45 PM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] move it outside of build -D On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: I removed the artifact from the repository and modified the POM for the child by adding dependency within build plugins plugin artifactIdmaven-native-plugin/artifactId ... dependencies dependency ... -- groupId and artifactId only. no version. ... /dependencies /plugin /plugins /build [while leaving the original dependencyManagement element in the parent]. The child project build was still successful. Brad -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:52 AM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/art ifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changing modules list in a profile
Hi, I've got a parent pom with several modules in it. I've defined a profile in it that only has a couple of the modules so I don't have to build everything to build them. When I run with that profile activated, all of the modules are built. I know the profile is active since I can change other settings in it and they go into effect. Can you not change the modules from a profile? Thanks, Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
The build worked by moving the dependency to the child (outside o build), but it *did* require a value for version. Thanks, all. Brad -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:52 AM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/art ifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: changing modules list in a profile
On 7/14/06, Charlie Groves [EMAIL PROTECTED] wrote: I've got a parent pom with several modules in it. I've defined a profile in it that only has a couple of the modules so I don't have to build everything to build them. When I run with that profile activated, all of the modules are built. I know the profile is active since I can change other settings in it and they go into effect. Can you not change the modules from a profile? Modules in a profile are added to the ones in the default build. It sounds like you want two profiles, one that's active by default and active *unless* [some condition]. Then the second one that is active on [some condition]. There's an example of activating exactly one of two profiles here: http://svn.apache.org/repos/asf/shale/trunk/pom.xml (look at the 'jsfri' and 'myfaces' profiles.) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
You only put the denpendency in the plugin on if your plugin needs it. On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: The build worked by moving the dependency to the child (outside o build), but it *did* require a value for version. Thanks, all. Brad -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:52 AM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/art ifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WEB-INF/lib excludes once more
The plugin does not come with Maven. Maven downloads the latest version when you first need it. If you were to install 2.0.4 today, it would download 2.0.1. No. It would be a nice feature in the EAR plugin, IMO. -Original Message- From: Lukasz Szelag [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 12:38 PM To: users@maven.apache.org Subject: RE: WEB-INF/lib excludes once more OK, I meant that the WAR plugin which comes with 2.0.4 is broken. Anyways, is there a way to include these libs automatically in the EAR without explicitly specifying in EAR POM all dependencies from the WAR? This is how EJB dependencies are treated in the EAR. -- View this message in context: http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a533 0992 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE]
If you have a depMgmt section in a parent pom with version etc declared, then when you declare the dep in the child pom dependencies, you do not need to declare a version. If you have no depMgmt section, then yes, each time you declare a dep you will need to include all details like version etc. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: The build worked by moving the dependency to the child (outside o build), but it *did* require a value for version. Thanks, all. Brad -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 11:52 AM To: Maven Users List Subject: Re: maven-native-plugin sensitive to dependencies? [CORRECTED SUBJECT LINE] DependencyManagement in a parent pom does not implicitly force the dependency on every child/module. You still need to (explicitly) declare the dependency in the children poms... but you only need to include the groupId and artifactId because you've already declared the version etc in the depMgmt section ie: child.pom dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-lib/art ifactId /dependency HTH. Wayne On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello all: Can anyone say if 'maven-native-plugin' is sensitive to explicit project dependencies? Should it be? I have dependencyManagement dependencies dependency groupIdthird-party/groupId artifactIddxr-third-party-com-emc-centera-fplibrary-WINDOWS-X86-li b/artifactId version2.0SP1/version typelib/type scopecompile/scope /dependency /dependencies /dependencyManagement in a POM descriptor. Sub-projects/modules of this project should require the named artifact, but % mvn compile build successfully, even though I hadn't yet installed the artifact in the local repository. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to copy war-project dependencies to different than WEB-INF/lib location
Hi, We have multi modules build which contains several jar projects and one war project. War-project has jar-projects as its dependencies. War-project itself is based on new Eclipse server side pluggable framework (Equinox) which required following directory structure: WEB-INF |__lib | |__common_lib1.jar | |__ .. | |__common_libN.jar | |__platform |__plugins |__plugin1.jar |__ |__pluginN.jar So during package phase server side plugins (jar projects) should go to WEB-INF/platform/plugins location. And also we will have some common libraries which should go to standard WEB-INF/lib location.Is there any way to configure war-plugin to copy dependencies into different than WEB-INF/lib location? Or maybe there is an other way to do that? Thanks, Sergey ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WEB-INF/lib excludes once more
OK, you're right and indeed excludes work in war-plugin 2.0.1. I thought that Maven releases explicitly depend on certain versions of plugins. -- View this message in context: http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a5333709 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Quick Validation vs. Full-Blown Regression Tests
Hello All: Once we go live with M2/Continuum/Subversion we're expecting to establish a build trigger on file commits, followed by a set of quick validation tests. Forced nightly builds from a clean environment will run a full set of regression tests. I'm guessing that a pair of profiles will be the route to take, with the one corresponding to quick validation specifying a subset of all test modules. I'm interested in hearing how folks have handled these use cases. Have any threads touched on this before? Thanks. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
uncompress order of war
How can i control the uncompress order of my war dependencies? My application have dependency with two war modules(module1, modulo2). I want that module1 uncompress than module2 uncompress and override existent files in module1 and at last the files of my application override any existent files in modules1 or module2.
RE: overwrite when changing profile
This doesn't appear to scale if you have both dev, test, prod environments and multiple app server environments e.g. jboss, tomcat, oc4j, weblogic. I'd like to be able to do: mvn -Pdev,tomcat or mvn -Pdev,oc4j without having to set up m * n resource folders. ___ David Beckedorff Senior Developer CellExchange, Inc. [EMAIL PROTECTED] Office: (617)528-2196 Cell: (781)820-0567 -Original Message- From: Kees de Kooter [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 6:06 AM To: Maven Users List Subject: Re: overwrite when changing profile Anyway, this is my workaround: build outputDirectorytarget/${profile.name}/outputDirectory Every profile is built in its own directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: changing modules list in a profile
Are there any pom examples of building for different environments (dev, qa, prod) *and* for different app servers (tomcat, jboss, oc4j, weblogic)? I'm trying to avoid setting up and maintaining m*n resource folders. ___ David Beckedorff Senior Developer CellExchange, Inc. [EMAIL PROTECTED] Office: (617)528-2196 Cell: (781)820-0567 -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, July 14, 2006 3:06 PM To: Maven Users List Subject: Re: changing modules list in a profile On 7/14/06, Charlie Groves [EMAIL PROTECTED] wrote: I've got a parent pom with several modules in it. I've defined a profile in it that only has a couple of the modules so I don't have to build everything to build them. When I run with that profile activated, all of the modules are built. I know the profile is active since I can change other settings in it and they go into effect. Can you not change the modules from a profile? Modules in a profile are added to the ones in the default build. It sounds like you want two profiles, one that's active by default and active *unless* [some condition]. Then the second one that is active on [some condition]. There's an example of activating exactly one of two profiles here: http://svn.apache.org/repos/asf/shale/trunk/pom.xml (look at the 'jsfri' and 'myfaces' profiles.) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: uncompress order of war
use cargo:uberwar. (http://cargo.codehaus.org) I think war plugin is inadequate, for any serious war merging. On 7/14/06, Lucas Gonçalves [EMAIL PROTECTED] wrote: How can i control the uncompress order of my war dependencies? My application have dependency with two war modules(module1, modulo2). I want that module1 uncompress than module2 uncompress and override existent files in module1 and at last the files of my application override any existent files in modules1 or module2. -- Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB3 Web project with cargo, jetty6
Hello all, I have a project that will use EJB3.0, and as far as I know only a few containers support that. I'm using jBoss now. My question is along the lines of the Improving Web Development Productivity section of the Maven Book. I've tried the jetty6 plugin and it's perfect for development; it lets me make changes to the working copy of the source, test them locally, and check them in. I don't have to deploy every time I make a change to the code, etc. The only problem is that I don't think the EJB3.0 part will work with jetty. Am I wrong there? Is there any way to let me easily deploy and view my web file changes with the cargo plugin somewhat like the jetty6 plugin? Can I start a development server, make working copy changes and see them without running maven and deploying every time I make a change? Thanks, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB3 Web project with cargo, jetty6
Tony, If you want to test your session beans and MDBs you can use the JBoss microcontainer. It starts up very quickly. No need for a long running server. Its been discussed a few times on this mailing list - I also have an example in my book's source code. EJB3 entity beans (aka JPA) can easily be tested outside of the container. I hope this helps Chris -- Enterprise POJO consulting - http://www.chrisrichardson.net Author, POJOs in Action - http://www.manning.com/crichardson Enterprise POJOs blog - http://chris-richardson.blog-city.com On 7/14/06, Tony Hillerson [EMAIL PROTECTED] wrote: Hello all, I have a project that will use EJB3.0, and as far as I know only a few containers support that. I'm using jBoss now. My question is along the lines of the Improving Web Development Productivity section of the Maven Book. I've tried the jetty6 plugin and it's perfect for development; it lets me make changes to the working copy of the source, test them locally, and check them in. I don't have to deploy every time I make a change to the code, etc. The only problem is that I don't think the EJB3.0 part will work with jetty. Am I wrong there? Is there any way to let me easily deploy and view my web file changes with the cargo plugin somewhat like the jetty6 plugin? Can I start a development server, make working copy changes and see them without running maven and deploying every time I make a change? Thanks, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error assembling WAR with no sources
After upgrading to war-plugin 2.0.1 I'm getting an error while assembling a Web app that has no Java sources (tested with an empty src directory). It used to work previously. Here is the error message: Error assembling WAR: Problem creating base-dir/target/classes (Is a directory) The classes directory is empty. Has anyone encountered the same? On a side note, the Web project inherits from a parent POM where the location of src directory is redefined (using sourceDirectory). -- View this message in context: http://www.nabble.com/Error-assembling-WAR-with-no-sources-tf1945394.html#a5334174 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cargo:uberwar question
Sorry if this question is not posted to the correct mailing list, but I can not find a way to sign up for Cargo list. Anyway here is the question: I am trying to use cargo:uberwar and I follow instructions given on the cargo maven2 plugin page (http://cargo.codehaus.org/Maven2+plugin). When I try to build the uberwar I am getting the following error: [INFO] [cargo:uberwar] [INFO] --- [ERROR] BUILD ERROR [INFO] --- [INFO] You must specify descriptor or descriptorId [INFO] --- [INFO] For more information, run Maven with the -e switch [INFO] --- [INFO] Total time: 6 seconds [INFO] Finished at: Fri Jul 14 17:20:29 EDT 2006 [INFO] Final Memory: 4M/9M [INFO] --- FATAL ERROR: Unable to configure the Maven application For more information, run with the -e flag here is thre relevant portion of my pom.xml: project . build plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration descriptorsrc/assemble/merge.xml/descriptorId /configuration /plugin /plugins /build .. /project Anyone knows what is wrong? -- Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cargo:uberwar question
On 7/14/06, Alex Shneyderman [EMAIL PROTECTED] wrote: Sorry if this question is not posted to the correct mailing list, but I can not find a way to sign up for Cargo list. It's here : http://xircles.codehaus.org/projects/cargo/lists Anyway here is the question: I am trying to use cargo:uberwar and I follow instructions given on the cargo maven2 plugin page (http://cargo.codehaus.org/Maven2+plugin). When I try to build the uberwar I am getting the following error: [INFO] [cargo:uberwar] [INFO] --- [ERROR] BUILD ERROR [INFO] --- [INFO] You must specify descriptor or descriptorId [INFO] --- [INFO] For more information, run Maven with the -e switch [INFO] --- [INFO] Total time: 6 seconds [INFO] Finished at: Fri Jul 14 17:20:29 EDT 2006 [INFO] Final Memory: 4M/9M [INFO] --- FATAL ERROR: Unable to configure the Maven application For more information, run with the -e flag here is thre relevant portion of my pom.xml: project . build plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration descriptorsrc/assemble/merge.xml/descriptorId /configuration /plugin /plugins /build .. /project Anyone knows what is wrong? What is the detail given with the -e switch ? Arnaud
[M2] Surefire POJO / Inner class issue
I¹m running into a weird issue here. It seems that the Maven surefire plugin is trying to create POJO tests for inner classes which clearly aren¹t tests. I¹m not even a surefire novice, so I¹m not sure why on earth this is happening I¹m just wondering how to stop it from happening. Anyone have any clues as to how to escape this? [INFO] Surefire report directory: /Users/hhildebrand/Projects/wadi/modules/core/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.maven.surefire.testset.PojoTestSet.init(PojoTestSet.java:52) at org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitD irectoryTestSuite.java:61) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:93) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:1 47) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB ooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Re: Quick Validation vs. Full-Blown Regression Tests
you will need to get your svn's hook script's postcommit/postcommit.bat to call a jvm with your java app that talk to continuum via XMLRPC. so the gut is the java code, not the script. Sorry I know this in theory only, but very comfortable it would work this way. On 7/14/06, Toli Kuznets [EMAIL PROTECTED] wrote: dan, Sorry for the stupid question, but do you (or anybody) have an example of such script? i couldn't find it in the archives. toli On 7/14/06, dan tran [EMAIL PROTECTED] wrote: Trigger build: You can get the svn hook script to make a XMLRPC call to continuum and start the build with your quick validation profile Forced Build: not at this moment with continuum 1.0.3, there are talk about work around for that involved scm:local, cron. Please check the archive Basically you can trigger continuum to run a script which do use scm:bootstrap to do you force build with another profile -D On 7/14/06, Brad Harper [EMAIL PROTECTED] wrote: Hello All: Once we go live with M2/Continuum/Subversion we're expecting to establish a build trigger on file commits, followed by a set of quick validation tests. Forced nightly builds from a clean environment will run a full set of regression tests. I'm guessing that a pair of profiles will be the route to take, with the one corresponding to quick validation specifying a subset of all test modules. I'm interested in hearing how folks have handled these use cases. Have any threads touched on this before? Thanks. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Toli Kuznets http://www.marketcetera.org: Open-Source Trading Platform download.run.trade. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB3 Web project with cargo, jetty6
Thanks Chris, I don't mean testing, I mean running the web application in container for development. I'd like to be able to meet the following goals: 1. Make changes from my working copy and view at http://localhost immediately with no 'mvn deploy', just like with the jetty6 plugin. 2. Use EJB3. Any solution that lets me meet those goals would be great. Thanks Tony, If you want to test your session beans and MDBs you can use the JBoss microcontainer. It starts up very quickly. No need for a long running server. Its been discussed a few times on this mailing list - I also have an example in my book's source code. EJB3 entity beans (aka JPA) can easily be tested outside of the container. I hope this helps Chris -- Enterprise POJO consulting - http://www.chrisrichardson.net Author, POJOs in Action - http://www.manning.com/crichardson Enterprise POJOs blog - http://chris-richardson.blog-city.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unit test works in Eclipse but fails in maven
I had the same problem and I found this... Hope it helps http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse Tim -- View this message in context: http://www.nabble.com/unit-test-works-in-Eclipse-but-fails-in-maven-tf1771802.html#a5335955 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unit test works in Eclipse but fails in maven
the sure plugin invokes another jvm to run the test, you need to configure the debugger with surefire, not maven plugin artifactIdmaven-surefire-plugin/artifactgId configuration argLineXdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent - Djava.compiler=NONE /argLine /configuaration /plugin On 6/11/06, Kent Tong [EMAIL PROTECTED] wrote: Hi, I have some junit tests and they pass if they're run in Eclipse. If they're run from the Eclipse maven2 plugin or from maven2 directly, many of them fail. I was trying to debug it by: set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE but it just won't stop at the breakpoints that I set in Eclipse. Any idea on: 1) How to debug in this situation? 2) Typically what make cause this weird behavior (failing in maven only)? Thanks! -- Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept, CPTTM Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag RedHat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: JavaMail 1.4.1ea SNAPSHOT available
Just an FYI to fellow Maven Users... Wayne -- Forwarded message -- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Jul 14, 2006 7:51 PM Subject: JavaMail 1.4.1ea SNAPSHOT available To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] As you know, JavaMail is now available under an open source license and is a part of Project GlassFish (https://glassfish.dev.java.net). The JavaMail mail.jar file is also available in the java.net Maven Repository (https://maven-repository.dev.java.net/) starting here: https://maven-repository.dev.java.net/nonav/repository/javax.mail/ Note that the Maven repository versions of JavaMail require at least J2SE 5.0 (JDK 1.5). We've pushed a snapshot (non-final, day in the life) of what will become the early access release of JavaMail 1.4.1 to the GlassFish CVS repository and the Maven repository. This snapshot addresses the following issues: 6423701 Problem with using OrTerm when the protocol is IMAP 6431207 SMTP is adding extra CRLF to message content 6447295 IMAPMessage fails to return Content-Language from bodystructure 6447799 encoded text not decoded even when mail.mime.decodetext.strict is false 6447801 MimeBodyPart.writeTo reencodes data unnecessarily no id fix performance bug in base64 encoder; now even faster! The fix for 6447801 fixes a problem introduced by the fix for 4403733, which fixed a long-standing problem where changes to a MimeMessage object that was created from a byte stream would be lost. With the fix for 4403733, you could read in a MIME message from a file, make some changes to it, and save it or send it. Unfortunately, that fix had a side effect that broke S/MIME support in some third party packages; signed messages would no longer verify. Hopefully the fix for 6447801 will allow both of these cases to work correctly. Note that this latest fix depends on you calling Message.saveChanges after making changes to the message, which you always should've been doing anyway, but which the previous (erroneous) fix didn't depend on in some cases. If you depend on the fix for 4403733, please, please, please try out this new version and let us know whether or not it works for you. Yes, we really do want to know about successes as well as problems! Thanks! The JavaMail team P.S. We plan to make snapshots available more frequently. Hopefully that's useful to you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]