Re: Issue with Maven WAR plugin and overlay when using war:inplace
Use overlay tags in war plugin configuration to control the order. On Wednesday, July 21, 2010, Julien HENRY henr...@yahoo.fr wrote: Hi all, I have a web application that depends on another WAR (overlay). According to m-war-p documentation [1], the current application is priority #1 and then come dependent war. My understanding is that when there are two files with same path in both current application and dependent war, this is the file in current application that should ultimately be taken to produce the final war. Example: current application contains the file src/main/webapp/WEB-INF/web.xml dependent war contain a nearly empty file dependentWar.war!WEB-INF/web.xml When I run mvn war:inplace I can read in the log: [INFO] --- maven-war-plugin:2.1-beta-1:inplace (default-cli) @ myWebApp --- ... [INFO] Processing war project [INFO] Processing overlay[ id com.mycompany:dependentWar] ... [INFO] File[WEB-INF/web.xml] belonged to overlay[currentBuild] so it will be overwritten. As a result the src/main/webapp/WEB-INF/web.xml file was overwritten in the current application by the file coming from the dependent WAR. If I run mvn war:exploded the result is correct and the file in target/myCurrentWebApp-XX-SNAPSHOT/WEB-INF/web.xml is the one coming from the current web app. Is it a known issue? Do you know if there is a workaround? Regards, Julien [1] http://maven.apache.org/plugins/maven-war-plugin/overlays.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin and dependencyManagement for modules - changes in last version?
Did you try using ${project.version} in the dependency management section ? On 4/29/10, Kaiser, Nils kai...@adesso-mobile.de wrote: Hello, In our multi-module project we included the module dependencies in the dependencyManagement of the parent POM to be able to leave out versions in the module POMs. Here a snippet extracted from the master POM: project ... ... groupId.../groupId artifactIdnotif-platform/artifactId packagingpom/packaging version1.3.1-SNAPSHOT/version ... modules modulecore-model/module modulecore-persistence/module modulecore-datasource/module modulecore-webapp/module modulenotif-core/module modulenotif-model/module ... /modules dependencyManagement dependencies dependency groupIdde.adesso.mobile.devicebackend/groupId artifactIdnotif-core/artifactId version1.3.1-SNAPSHOT/version /dependency dependency groupIdde.adesso.mobile.devicebackend/groupId artifactIdnotif-model/artifactId version1.3.1-SNAPSHOT/version /dependency dependency groupIdde.adesso.mobile.devicebackend/groupId artifactIdnotif-persistence/artifactId version1.3.1-SNAPSHOT/version /dependency ... We used continuum and the release plugin to manage the releases. In the past, the release plugin had no problems with updating the versions in the dependenyManagement of the parent POM. However, since version 2.0 (beta8 is automatically used, but 2.0 shows the same behavior) the release plugin does not change the versions in the dependencyManagement of the parent POM anymore. It thus produces a broken project after running the release plugin, as the module versions are changed in the respective module POMs, but not in the dependencyManagement of the master POM. Is it an error in the new release plugin version? Is use of module dependency versions in dependencyManagement of the POM discouraged now? Should I submit an issue? Best regards, Nils Kaiser -- Sent from my mobile device - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin and updating a release with some fixes
If you are not using the release:perform, how are you creating the releaser artifact 1.5 ? I am guessing you are running the install or deploy from the new tag 1.5. As far rescue changes, you will have to make changes to trunk or tag and then merge them to the other. Ideally I would create another release 1.5.1 using release;prepare and perform which will create a tag for 1.5.1 as well so that you will have reproducable builds for both 1.5 and 1.5.1 On 4/28/10, napple fabble jm.postili...@gmail.com wrote: I use release plugin to update my pom.xml and create tags in subversion. I just created a new release with it. While development was ongoing, my pom.xmls had version 1.5-SNAPSHOT. Release plugin created tag 1.5 and updated my trunk to 1.6-SNAPSHOT. So everything is as I want. The only thing I need to do is mvn release:prepare. This creates the correct tag and updates trunk as I want it to. I haven't had any need for release:perform. QUESTION: What do I do when I find some last bugs while installing the release and want to fix them. I would ideally like to have both 1.5 tag and the trunk (1.6-SNAPSHOT) updated with the fixes. Can I do this somehow conveniently with release plugin, or do I have to do it manually (if so, what's the best approach? just fix trunk and copy the changed to the tag?). -- View this message in context: http://maven-users.828.n2.nabble.com/Release-plugin-and-updating-a-release-with-some-fixes-tp4974743p4974743.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Sent from my mobile device - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Timestamped SNAPSHOTS
I have a web(war) project and I see a SNAPSHOT (ex: mylib-2.0-SNAPSHOT) dependency copied to WEB-INF/lib sometimes with Timestamp (mylib-2.0-20100426-27282.jar) and sometimes just SNAPSHOT ( mylib-2.0-SNAPSHOT). Why is that and any work arounds ? As one would expect, I always like to see 2.0-SNAPSHOT in my web-inf/lib. Thanks Kumar
Re: Running unit tests in a specific order
Can these tests in problem run by themselves standalone ? If so, I am guessing you are running into problem where one test is setting the data (like static or threadLocal etc) which is making the other tests to fail, You can run these tests in problem in a different execution set within the surefire plugin. Thanks Kumar On Thu, Jan 7, 2010 at 6:23 AM, Michel Barakat bmic...@gmail.com wrote: Hey folks, I am using the surefire plugin to run through JUnit tests. I am facing some cross-test dependencies issues and thus would like to investigate how tests perform when ran in a specific order. I have tried using the' test' flag, as in: mvn -Dtest=ATest,BTest,CTest test However, this does not necessarily execute the tests in the specified order (eg. CTest is executed before ATest or BTest). Is it possible to specify a strict order, through which unit tests should be executed? Cheers Michel - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: filter some resources files and put them to other module.
I am not sure if that's a good idea to have one project create files in the other project. If your 'lo' project has the config files, I would create an assembly of config files in 'lo' project. and then webapp project will use dependency plugin to extract the config artifact/assembly from repository and process them as needed. Hope that helps. Thanks Kumar Ampani On Mon, Dec 28, 2009 at 12:45 AM, alien.sulin sulinchong1...@gmail.comwrote: Mayby you can just try it, so you can find whether the targetPath can be set to other module! In my opinion, i would rather put all the config files to a single dir than put them in different dir On Sun, Dec 27, 2009 at 2:46 PM, maven apache apachemav...@gmail.com wrote: Hi: I have a project containing three modules, Server,Io,and Webapp, and the webapp is a pakcage of war, the other two are jars. Since the web module need to read some config files,so I want to put them under the WEB-INF/conf. However I also want to file the config files under the Io module by using the resources *filtering* * * That's to say I want to config the the parameter in the pom.xml of the Io module,(under the module there is a config file like the following: service=${service.name} time=${service.time} )) Then I need to use this config file in the Webapp module and it should be put under Webapp/WEB-INF/conf. I have seen the resource plugin in the maven site,and I found that there is a parameter named:targetPath,I wonder if I can set this parameter as the following: resource directorysrc/main/java/directory filteringtrue/filtering targetPath???/targetPath(Can I set the path to other module for example the Webapp module? if yes, how to set? Note that , this xml fragment is under the Io module) /resource --- * * -- alien.sulin(苏琳冲) SuLinchong Qq387973308 Msn sulinch...@hotmail.com