Re: [Continuum 1.0.3] Is Changes section broken again?
Looks fine to me. The last file was dated 4/26/06 2:43 PM. The author is listed there in RAD as well. _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/27/2006 03:08 AM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] Is Changes section broken again? Check if date and time are correct on your cvs server. Emmanuel Mang Jun Lau a écrit : I had a real SCM change today with the following Continuum output: 216248 [Thread-11] DEBUG org.apache.maven.scm.manager.ScmManager - U MemberWebJSPs/WebContent/WEB-INF/altTextResources.properties 216623 [Thread-11] DEBUG org.apache.maven.scm.manager.ScmManager - U MemberWebJSPs/WebContent/WEB-INF/altTextResources_fr.properties 217217 [Thread-11] DEBUG org.apache.maven.scm.manager.ScmManager - P MemberWebJSPs/WebContent/WEB-INF/securePages/rplanning/retplan_home_body_afterApp.jsp After the build, the Changes section still shows 3 blank columns. I'm using CVS. _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 03:38 AM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] Is Changes section broken again? You don't have committer and date because your modifications aren't a scm change. We get username/date for all files modified since last build and in your case files aren't modified in scm. If you do a real change in your scm, you'll see username/date. Emmanuel Mang Jun Lau a écrit : I just moved to 1.0.3 and I've done several test builds. In one of the builds, I removed a project directory from the working directory to test out the Changes section in the build log. When I ran the build again, Continuum checked out the missing directory just fine. After the build, in the e-mail and on the web interface, the Changes section shows 3 blank columns and then the files that have changed in the 4th column. I think it may be broken again. _Mang
Re: [Continuum 1.0.3] How does Deployment Repository work?
Thanks for your response. Is that how it works? Sorry I don't see the purpose of the feature though because if the goal is deploy, then Maven will already deploy it to a remote repository, I don't see a need to store the build again in another location. I thought it was to make the build server act as a repository. Not sure though. Can anyone clarify functionality and how to work this feature? _Mang Carlos Henriquez [EMAIL PROTECTED] 04/26/2006 02:58 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? Maybe it will be copy when the build is deploy or site:deploy, not clean install.
Re: [Continuum 1.0.3] How does Deployment Repository work?
That's what I did. I did configure it in the Configuration screen. In the Deployment Repository Directory field, I put P:\builds. When the build is complete, the build is not copied over to P:\builds though. _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 03:32 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? the deployment repository is an internal continuum repository that you can use as a repository with m2. When an artifact is available in your target directory, continuum copy it in the deployment repository even with clean install goals. If you want to activate it, you must configure it in configuration screen. Emmanuel Mang Jun Lau a écrit : Hi, I think my question got passed over yesterday because it was part of another thread. My question was asking how the new deployment repository feature works. I put P:\builds into the Deployment Repository Directory field and the build was not copied over after it finished. Am I missing some setting or something? Thanks. _Mang
Re: [Continuum 1.0.3] How does Deployment Repository work?
hmm...ok. So after a successful build, Continuum takes all the artifacts from each target directory in the numbered working directory and copies it to a location you specify. So I have the following tree: working-directory |--- 1 - pom.xml |--- dir1 - pom.xml |--- target - dir1.jar |--- dir2 - pom.xml |--- target - dir2.war |--- dir3 - pom.xml |--- target - dir3.ear So Continuum will detect and copy dir1.jar, dir2.war, and dir3.ear to the specified location (P:\builds in my case) upon a successful build? _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 04:31 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? I just tested it with D:\repocontinuum and it works fine. Artifacts and metadata are created in sub-directories of it. Emmanuel Mang Jun Lau a écrit : That's what I did. I did configure it in the Configuration screen. In the Deployment Repository Directory field, I put P:\builds. When the build is complete, the build is not copied over to P:\builds though. _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 03:32 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? the deployment repository is an internal continuum repository that you can use as a repository with m2. When an artifact is available in your target directory, continuum copy it in the deployment repository even with clean install goals. If you want to activate it, you must configure it in configuration screen. Emmanuel Mang Jun Lau a écrit : Hi, I think my question got passed over yesterday because it was part of another thread. My question was asking how the new deployment repository feature works. I put P:\builds into the Deployment Repository Directory field and the build was not copied over after it finished. Am I missing some setting or something? Thanks. _Mang
Re: [Continuum 1.0.3] How does Deployment Repository work?
Not working still. I think I should mention I'm using a Shell script. Does it work for that? _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 04:50 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? Continuum will copy them in : P:\builds\groupIdOfArtifacts\artifactIdOfArtifacts\versionOfArtifacts like a standard repository Emmanuel Mang Jun Lau a écrit : hmm...ok. So after a successful build, Continuum takes all the artifacts from each target directory in the numbered working directory and copies it to a location you specify. So I have the following tree: working-directory |--- 1 - pom.xml |--- dir1 - pom.xml |--- target - dir1.jar |--- dir2 - pom.xml |--- target - dir2.war |--- dir3 - pom.xml |--- target - dir3.ear So Continuum will detect and copy dir1.jar, dir2.war, and dir3.ear to the specified location (P:\builds in my case) upon a successful build? _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 04:31 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? I just tested it with D:\repocontinuum and it works fine. Artifacts and metadata are created in sub-directories of it. Emmanuel Mang Jun Lau a écrit : That's what I did. I did configure it in the Configuration screen. In the Deployment Repository Directory field, I put P:\builds. When the build is complete, the build is not copied over to P:\builds though. _Mang Emmanuel Venisse [EMAIL PROTECTED] 04/26/2006 03:32 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [Continuum 1.0.3] How does Deployment Repository work? the deployment repository is an internal continuum repository that you can use as a repository with m2. When an artifact is available in your target directory, continuum copy it in the deployment repository even with clean install goals. If you want to activate it, you must configure it in configuration screen. Emmanuel Mang Jun Lau a écrit : Hi, I think my question got passed over yesterday because it was part of another thread. My question was asking how the new deployment repository feature works. I put P:\builds into the Deployment Repository Directory field and the build was not copied over after it finished. Am I missing some setting or something? Thanks. _Mang
[Continuum 1.0.3] Is Changes section broken again?
I just moved to 1.0.3 and I've done several test builds. In one of the builds, I removed a project directory from the working directory to test out the Changes section in the build log. When I ran the build again, Continuum checked out the missing directory just fine. After the build, in the e-mail and on the web interface, the Changes section shows 3 blank columns and then the files that have changed in the 4th column. I think it may be broken again. _Mang
Re: Remove mavern folder in META-INF
Hi, I don't think that this functionality is in the current release of the maven-jar-plugin and the maven-war-plugin. So far, it only works with the maven-ear-plugin. So if you really need it, you can use the snapshot version of those plugins. _Mang Lau RobJac [EMAIL PROTECTED] 04/13/2006 12:31 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject Re: Remove mavern folder in META-INF Hi, I tried adding the plugin tag but it was giving me the below error java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1127) at java.util.regex.Matcher.reset(Matcher.java:284) at java.util.regex.Matcher.init(Matcher.java:205) at java.util.regex.Pattern.matcher(Pattern.java:879) at org.apache.maven.plugin.PluginConfigurationException.addParameterUsag eInfo(PluginConfigurationException.java:85) at org.apache.maven.plugin.PluginConfigurationException.buildConfigurati onDiagnosticMessage(PluginConfigurationException.java:272) at org.apache.maven.usability.PluginConfigurationDiagnoser.diagnose(Plug inConfigurationDiagnoser.java:49) at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro rDiagnostics.java:81) at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693) at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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) Any idea why i am getting this? My pom.xml looks like this project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdComponent_ADP/groupId artifactIdComponent_ADP/artifactId packagingjar/packaging version1.0/version nameMaven Quick Start Archetype/name parent groupIdDefinedBenefit_EA/groupId artifactIdDefinedBenefit_EA/artifactId version1.0/version /parent build directory${basedir}/directory outputDirectoryclasses/outputDirectory finalName${project.artifactId}/finalName testOutputDirectorytest-classes/testOutputDirectory sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory resources resource directory${basedir}/resources/directory /resource /resources testResources testResource directorytest/directory /testResource /testResources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive addMavenDescriptorfalse/addMavenDescriptor /archive /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration skip${unittests.skip}/skip testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build reporting outputDirectorytarget/site/outputDirectory /reporting /project -- View this message in context: http://www.nabble.com/Remove-mavern-folder-in-META-INF-t1444885.html#a3903992 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shared projects and Maven best practice
Eric Redmond [EMAIL PROTECTED] wrote on 04/06/2006 09:40:38 AM: I created an alternate repository named TAG (whatever your tag is) and pointed apache to it. For example, if your corporate repo is http://corp/repo1, then create another repository named http://corp/repo1-TAG, and continuum can build only specific projects that should be overridden. This repository was populated solely with a specific tagged cut of the code. Then your team can depend upon the repositories of both. When they point to Utility 1.0.0, they should pick it up from TAG. Isn't creating another repository too much overhead and a little overkill? Currently, we build the applications from RAD with the Utility project source. If an application needs to rely on older Utility source, we simply check out a tagged version of it into the workspace. Now, with Maven and Continuum, it gets a bit messy when you want to build your whole application together along with the Utility jars since we don't use Maven conventions with regards to CVS modules (i.e. each project is a separate module so the whole application has many CVS modules and not just one). To build properly using Continuum, I had to symlink all the modules into one so that Continuum can check it out properly. So the problem is that I can't mix and match CVS tags in one build. Now, in my defense, this strategy was employed to work on top of a very legacy build/deploy system that knew only of SNAPSHOTs (and nothing else... so its not really fair to even call it a versioning system). It sounds like you guys have an equally goofy system. Are you guys supporting legacy version in tandem? Meaning, do you branch 1.0 and continue working on it, and then also work on 1.1? This was actually our big problem. We don't tend to do branching and we usually work off of HEAD. When we release, we tag everything in our existing workspace and continue to work off HEAD for the next release. Right now, the solution for us may be to mix and match tags in the RAD workspace to your liking, then tag your entire workspace, then in Continuum, build from that tag. _Mang
Re: depedencies problem with maven2
my dependcy node in my pom.xml dependency groupIddependance/groupId artifactIdjtetscase4.0.0/artifactId version1.0/version /dependency Is there a typo for artifactId? I notice you have jtetscase4.0.0 there. _Mang
Re: How to put a Jar in my War
Hi, In your pom.xml for your war, I believe you need the following: build plugins plugin artifactIdmaven-war-plugin/artifactId configuration webXml/path/to/web.xml/webXml !-- specify location of web.xml here -- /configuration /plugin /plugins /build _Mang Lau Raymond Domingo [EMAIL PROTECTED] 04/05/2006 11:14 AM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject How to put a Jar in my War Hello all, Can any one please explain to me how I can add my Jar file to my War file... it seems such an easy thing to do... So currently I have an assembly which create a jar file (I like this) I also can create a second assembly creating a zip file (looks good) But if I change the format of this second assembly from zip to war I get an error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating assembly Embedded error: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) [INFO] One thing I notice that inside my zip file it says web-inf/web.xml and not WEB-INF/web.xml Any way to solve this problem ? thnx, raymond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Maven Release Notes
Release notes are on JIRA. http://jira.codehaus.org/secure/ReleaseNote.jspa?version=12107styleName=HtmlprojectId=10500 _Mang Lau [EMAIL PROTECTED] 04/05/2006 01:37 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject [m2] Maven Release Notes How do I find out what has changed between the various Maven 2.x.x releases? E.g. I need to understand what has changed between 2.0.2 and 2.0.3, so that we can determine if it's worth upgrading and what the effort is (please understand that we had to customize some plugins because of existing bugs ...) Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM : Not a v4.0.0 POM / Error building POM (may not be this proj ect's POM)
hehe...first name is Mang Jun, last name is Lau. I just go by Mang...it's shorter and easier :) It's confusing because Chinese names tend to have two or three characters -- one for last name and the other two for first name. _Mang Lau Alexandre Poitras [EMAIL PROTECTED] 04/03/2006 05:33 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: POM : Not a v4.0.0 POM / Error building POM (may not be this proj ect's POM) Mang Lay, you really have the eye of the tiger :) By the way, I was wondering what was your first name and your last name because I don't want to sound impolite ;) Asian names always confuse me, my japanese and korean friends were always making fun of me back in Vancouver. On 4/3/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Great, and Thanks Mang Jun Lau, it works. Thanks again! Regards. -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Monday, April 03, 2006 7:18 PM To: Maven Users List Subject: Re: POM : Not a v4.0.0 POM / Error building POM (may not be this proj ect's POM) modelVersion4.0/modelVersion needs to be modelVersion4.0.0/modelVersion instead. Try and see if that works. _Mang Lau Sharma, Jaikumar [EMAIL PROTECTED] 04/03/2006 06:20 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject POM : Not a v4.0.0 POM / Error building POM (may not be this proj ect's POM) Dear Maven users, When trying to execute : mvn compile I get the following error, I am not sure I am missing something or what is wrong . Could somebody help on this please ? Regards. ___ [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown POM Location: D:\Users\Alpha0\pom.xml Reason: Not a v4.0.0 POM. ___ project xmlns=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd http://maven.apache.org/maven-v4_0_0.xsd modelVersion4.0/modelVersion groupIdcom.mycompany.sample/groupId artifactIdtest/artifactId packagingpom/packaging nametest/name version4.0/version properties subsystem.home${basedir}/subsystem.home /properties plugins plugin groupIdorg.apache.maven.plugins.maven-archetype-plugin.1.0-alpha-3/gr oupI d artifactIdmaven-archetype-plugin-1.0-alpha-3.jar/artifactId version1.0-alpha-3/version /plugin plugin groupIdorg.apache.maven.plugins.maven-compiler-plugin.2.0/groupId artifactIdmaven-compiler-plugin-2.0.jar/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins.maven-install-plugin.2.1/groupId artifactIdmaven-install-plugin-2.1.jar/artifactId version2.1/version /plugin plugin groupIdorg.apache.maven.plugins.maven-jar-plugin.2.0/groupId artifactIdmaven-compiler-plugin-2.0.jar/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins.maven-resources-plugin.2.1/groupId artifactIdmaven-resources-plugin-2.1.jar/artifactId version2.1/version /plugin plugin groupIdorg.apache.maven.plugins.maven-surefire-plugin.2.1.2/groupId artifactIdmaven-compiler-plugin-2.1.2.jar/artifactId version2.1.2/version /plugin /plugins organization namemy company/name urlhttp://www.mycompany.com/url /organization modules module${basedir}/java/BusinessLogic//module module${basedir}/java/ClientUI//module /modules build sourceDirectory${basedir}/java/BusinessLogic/src//sourceDirectory outputDirectory${basedir}/java/BusinessLogic/classes//outputDirectory sourceDirectory${basedir}/java/ClientUI//sourceDirectory outputDirectory${basedir}/java/ClientUI/classes//outputDirectory defaultGoalcompile/defaultGoal /build /project - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination
Shared projects and Maven best practice
Hi everyone, I just want to spark a discussion here on the list. I want to know if you guys/girls have encountered a simliar problem to what I'm having now. So here goes: At our company we have two J2EE applications that are fairly large with many projects. We operate in a RAD/Eclipse environment with CVS as our SCM. There are shared projects (e.g. Utility projects) between the two applications. These shared projects are developed more or less separately from the two main applications. It is ideal for the two big applications to depend on the latest (i.e. HEAD) of the utility projects. However, sometimes when deadlines are looming, and there's no time to test these latest changes, one or both of our applications will want to depend on an older, CVS tagged version of these utility projects. So the question is, how can I design my POM for these Utility projects so that I can build the application despite using a CVS tagged version? What I have now: - App 1 depends on Utility 1.1.0 (HEAD) - App 2 depends on Utility 1.0.0 (old CVS tagged version) - Continuum 1.0.2 - Utility pom.xml at HEAD is 1.1.0 - Utility pom.xml at tag is 1.0.0 - both applications are in Continuum, modules are symlinked in CVS so that Continuum can check them all out at once. Utility project included with each application checkout. So really I guess that if there's a way to checkout an older version of the Utility project but HEAD of everything else, then I'm fine. Is there a way to do this? Or am I using Maven incorrectly? If I'm unclear, please ask and I'll try my best to clarify what I have. Thanks so much. _Mang Lau
RE: Shared projects and Maven best practice
Thanks for the reply. I actually thought of this idea too so I had a hard time coming up with why it doesn't work or why it's hard. I think we depend on CVS naturally because we use RAD as our environment and it's just easier to do so. Anyways, the solution that you have come up with is hard because we have two applications. So say both the applications are using the latest snapshot version of the utility project. Then, one wants to stop using HEAD while the other application continues to use HEAD/snapshot. So we release a version of the Utility project. As a result of this release, we would have to manually update all the POMs dependent on the Utility project with the specific version number being released. Then, we would have to manually update all the POMs from the other application that needs to depend on the new snapshot number since it is now incremented. This means that we would have to coordinate between the two application teams while really it should only affect one team. Do I make sense or am I missing something? Thanks again for your reply. _Mang Lau Siegmann Daniel, NY [EMAIL PROTECTED] 04/04/2006 10:36 AM Please respond to Maven Users List users@maven.apache.org To 'Maven Users List' users@maven.apache.org cc Subject RE: Shared projects and Maven best practice I'm afraid I can't help with your problem exactly, but since you wanted to spark a discussion... So really I guess that if there's a way to checkout an older version of the Utility project but HEAD of everything else, then I'm fine. Is there a way to do this? Or am I using Maven incorrectly? If I'm unclear, please ask and I'll try my best to clarify what I have. Thanks so much. _Mang Lau Why are you having your applications depend on CVS at all? I would think it would be best to build Utility as its own jar, which would by deployed to your central repository. Each release (tagged version) would exist as a jar in your repository, and you could approximate CVS HEAD by deploying snapshots. Then you can set the dependencies in your applications to whichever versions you wish (an exact version for a tag, and a snapshot for HEAD). Unless I'm missing a reason why this wouldn't work? -- Daniel Siegmann FJA-US, Inc. (212) 840-2618 ext. 139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shared projects and Maven best practice
Yes this seems feasible. The only thing is that changing the utility project requires a new deploy but it doesn't change that often anyways. Thanks for your input Daniel, I might end up implementing your suggestion depending on the consensus from others. _Mang Lau Siegmann Daniel, NY [EMAIL PROTECTED] 04/04/2006 12:14 PM Please respond to Maven Users List users@maven.apache.org To 'Maven Users List' users@maven.apache.org cc Subject RE: Shared projects and Maven best practice Do I make sense or am I missing something? Thanks again for your reply. _Mang Lau This is only true if you have to change the snapshot version. I don't know much about snapshots, particularly in Maven2, but I would assume you could just have a snapshot version 1-SNAPSHOT and then have versions 1.0.0, 1.0.1, 1.1.0, and so on. A project which was working on HEAD would just use 1-SNAPSHOT as the dependency. This way only the project which moved off of HEAD would have to list a specific version. There is one disadvantage to this if you work in Eclipse: you can't modify the utility code from the application project b/c it's in a jar file, and changes to the utility code won't affect the application projects until you update the jar. You'd have to make changes to the utility code and then run install on the utility project. Or if you need to make some quick changes to continue your work, just copy the relevant source code into your application project temporarily (this should override the version in the jar). Still, it is probably not impossible for you to continue working the way you do now. I am not familiar with Continuum, but I think this would be easy enough to do with CruiseControl. I would just check out a copy from the tag (in a different directory) for CC, and then update the application project's entry in CC's config.xml to point to the new checkout. Perhaps someone familiar with Continuum will know how you can achieve what you're looking for. -- Daniel Siegmann FJA-US, Inc. (212) 840-2618 ext. 139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shared projects and Maven best practice
yea you're right. I totally forgot about dependencyManagement. Thanks :) _Mang Lau Wayne Fay [EMAIL PROTECTED] 04/04/2006 12:41 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Shared projects and Maven best practice release a version of the Utility project. As a result of this release, we would have to manually update all the POMs dependent on the Utility project with the specific version number being released. Then, we would have to manually update all the POMs from the other application that needs to depend on the new snapshot number since it is now incremented. This Can you not utilize dependencyManagement and then change the Utility version in one parent POM for each project, rather than in every pom file in the project? This doesn't seem unreasonable to me... Wayne
Re: Shared projects and Maven best practice
Yes I believe so. _Mang Lau Arnaud Bailly [EMAIL PROTECTED] 04/04/2006 04:37 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Shared projects and Maven best practice Didn't know about this dependencyManagement tag. This allows to specify default characteristics for a dependency that may be overriden by a pom ? -- Arnaud Bailly, Dr. - Ingénieur de Recherche NORSYS 1, rue de la Cense des Raines ZAC du Moulin 59710 ENNEVELIN Tel : (33) 3 28 76 56 76 Mob : (33) 6 17 12 19 78 Fax : (33) 3 28 76 57 00 Web : http://www.norsys.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM : Not a v4.0.0 POM / Error building POM (may not be this proj ect's POM)
modelVersion4.0/modelVersion needs to be modelVersion4.0.0/modelVersion instead. Try and see if that works. _Mang Lau Sharma, Jaikumar [EMAIL PROTECTED] 04/03/2006 06:20 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject POM : Not a v4.0.0 POM / Error building POM (may not be this proj ect's POM) Dear Maven users, When trying to execute : mvn compile I get the following error, I am not sure I am missing something or what is wrong . Could somebody help on this please ? Regards. ___ [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown POM Location: D:\Users\Alpha0\pom.xml Reason: Not a v4.0.0 POM. ___ project xmlns=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd http://maven.apache.org/maven-v4_0_0.xsd modelVersion4.0/modelVersion groupIdcom.mycompany.sample/groupId artifactIdtest/artifactId packagingpom/packaging nametest/name version4.0/version properties subsystem.home${basedir}/subsystem.home /properties plugins plugin groupIdorg.apache.maven.plugins.maven-archetype-plugin.1.0-alpha-3/groupI d artifactIdmaven-archetype-plugin-1.0-alpha-3.jar/artifactId version1.0-alpha-3/version /plugin plugin groupIdorg.apache.maven.plugins.maven-compiler-plugin.2.0/groupId artifactIdmaven-compiler-plugin-2.0.jar/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins.maven-install-plugin.2.1/groupId artifactIdmaven-install-plugin-2.1.jar/artifactId version2.1/version /plugin plugin groupIdorg.apache.maven.plugins.maven-jar-plugin.2.0/groupId artifactIdmaven-compiler-plugin-2.0.jar/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins.maven-resources-plugin.2.1/groupId artifactIdmaven-resources-plugin-2.1.jar/artifactId version2.1/version /plugin plugin groupIdorg.apache.maven.plugins.maven-surefire-plugin.2.1.2/groupId artifactIdmaven-compiler-plugin-2.1.2.jar/artifactId version2.1.2/version /plugin /plugins organization namemy company/name urlhttp://www.mycompany.com/url /organization modules module${basedir}/java/BusinessLogic//module module${basedir}/java/ClientUI//module /modules build sourceDirectory${basedir}/java/BusinessLogic/src//sourceDirectory outputDirectory${basedir}/java/BusinessLogic/classes//outputDirectory sourceDirectory${basedir}/java/ClientUI//sourceDirectory outputDirectory${basedir}/java/ClientUI/classes//outputDirectory defaultGoalcompile/defaultGoal /build /project - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Downloading local cached jars
Try adding the parameter: -generatePom=true while installing your 3rd party jars. Not 100% sure it'll help but worth a try. _Mang Lau Bruno Patini Furtado [EMAIL PROTECTED] 03/31/2006 03:18 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Downloading local cached jars Hi folks, I have a few 3rd party jars installed into my local repository, but each time I call the maven install plugin the output tells me maven is downloading the jars (and it takes some time to 'download' each jar). Am I missing some point here? Is maven looking for this artifacts at the web repositories? One of my theories is that if I had a intranet maven repository properly configured maven would look for this artifacts there, it would see that there are no new versions and quickly would keep using the local cache. Is this right? -- Minds are like parachutes, they work best when open. Bruno Patini Furtado Software Developer webpage: http://bpfurtado.net software development blog: http://bpfurtado.livejournal.com
Re: [m2] How to package resource files in jar file
build resources resource directory${basedir}/directory includes include*.xml/include include*.wsdl/include /includes /resource /resources /build --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] Gautham Pamu [EMAIL PROTECTED] 03/30/2006 02:10 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject [m2] How to package resource files in jar file Hi Everyone, I have following directory structure ProjectFolder - META-INF - com directory (with java code) - sample.xml - pom.xml - xsd-includes directory - test.properties - sampleXSD.xsd - samplewsdl.wsdl How do configure the resources in pom.xml so that it package these xml,wsdl files in the jar file ? sourceDirectory${basedir}/sourceDirectory includes include${basedir}/include includeMETA-INF/include includexsd-includes/include /includes !-- exclude the com folder -- excludes excludecom/exclude /excludes -- -Gautham Pamu
Re: [M2] Compiling with JDK 1.4
I just tried using this method except with compilerVersion1.4/compilerVersion and without forktrue/fork since javac fails if I use fork (probably due to http://jira.codehaus.org/browse/MCOMPILER-22). It doesn't work. I'm still getting the java.lang.NoSuchMethodError: java.math.BigDecimal: method init(I)V not found exception, meaning maven is still using the 1.5 JDK to compile despite those settings. Is forking absolutely necessary to use an older JDK? Using: configuration source1.4/source target1.4/target compilerArguments bootclasspathC:/j2sdk1.4.1/jre/lib/rt.jar;C:/j2sdk1.4.1/jre/lib/jce.jar/bootclasspath /compilerArguments /configuration works well but seems like a hack. Is this the proper way of using another JDK for compilation? _Mang Lau Carlos Sanchez [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/28/2006 07:05 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Compiling with JDK 1.4 Check this out to actually use another JDK plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration forktrue/fork compilerVersion1.3/compilerVersion executableC:/Program Files/Java/jdk1.3.1_18/bin/javac/executable !-- A portable way using environment variables executable${JAVA_1_3_HOME}/bin/javac/executable -- /configuration /plugin On 3/28/06, Nicolas De Loof [EMAIL PROTECTED] wrote: This should work better : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion source1.3/source target1.3/target bootclasspath${pom.getDependencyPath('jara:rt')}/bootclasspath /configuration /plugin ... dependency groupIdjava/groupId artifactIdrt/artifactId version1.3/version scopesystem/scope /dependency Now, how to set the (computer specific) location of the system scoped dependency ? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html only says the dependency will not be looked-up from repository, but HOW to provide it ? Nico. Nicolas De Loof a écrit : Could it be possible to set this rt.jar as a (system ?) dependency, something like this : bootclasspath${getDependencyPath(java:rt:1.3)}/bootclasspath Siegmann Daniel, NY a écrit : I too have had to override the JAVA_HOME JDK, though in my case it was to compile for 1.3 rather than 1.4. What you seem to be missing is setting the bootclasspath to the correct Java runtime library. Below is the configuration I use. I hope this helps. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.3/source target1.3/target compilerArguments bootclasspath..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar/bootclasspath /compilerArguments /configuration /plugin -- Daniel Siegmann FJA-US, Inc. (212) 840-2618 ext. 139 -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 5:28 PM To: users@maven.apache.org Subject: [M2] Compiling with JDK 1.4 Hi, I've searched and tried the methods given before but things haven't been working for me. My JAVA_HOME points to the 1.5 JDK. I would like to compile my code to be able to run under JDK 1.4. So, in my snip Hope someone has done this successfully before. Thanks. _Mang Lau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute
Re: [M2] Compiling with JDK 1.4
Thank you both for your replies. I tried it out and now it can't find the javax.crypto package. I took a look at rt.jar from 1.4.1 and indeed it's not there. From the Sun website, it says that crypto is part of 1.4 so it should be there. Does this mean I need to add another jar to the bootclasspath? Which jar do I add? And will each jar be separated by a comma or semicolon? Thanks. _Mang Lau Nicolas De Loof [EMAIL PROTECTED] 03/28/2006 10:01 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Compiling with JDK 1.4 This should work better : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion source1.3/source target1.3/target bootclasspath${pom.getDependencyPath('jara:rt')}/bootclasspath /configuration /plugin ... dependency groupIdjava/groupId artifactIdrt/artifactId version1.3/version scopesystem/scope /dependency Now, how to set the (computer specific) location of the system scoped dependency ? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html only says the dependency will not be looked-up from repository, but HOW to provide it ? Nico. Nicolas De Loof a écrit : Could it be possible to set this rt.jar as a (system ?) dependency, something like this : bootclasspath${getDependencyPath(java:rt:1.3)}/bootclasspath Siegmann Daniel, NY a écrit : I too have had to override the JAVA_HOME JDK, though in my case it was to compile for 1.3 rather than 1.4. What you seem to be missing is setting the bootclasspath to the correct Java runtime library. Below is the configuration I use. I hope this helps. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.3/source target1.3/target compilerArguments bootclasspath..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar/bootclasspath /compilerArguments /configuration /plugin -- Daniel Siegmann FJA-US, Inc. (212) 840-2618 ext. 139 -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 5:28 PM To: users@maven.apache.org Subject: [M2] Compiling with JDK 1.4 Hi, I've searched and tried the methods given before but things haven't been working for me. My JAVA_HOME points to the 1.5 JDK. I would like to compile my code to be able to run under JDK 1.4. So, in my snip Hope someone has done this successfully before. Thanks. _Mang Lau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Compiling with JDK 1.4
Sorry for the noise, I just found the package I was looking for. It's in the jce.jar, in the jre/lib directory. And yes, it's separated by semicolons. Thanks for the replies though. The bootclasspath thing worked :) Would it be safe to include all jars from the lib directory like bootclasspathC:/j2sdk1.4.1/jre/lib/**/*.jar/bootclasspath ? _Mang Lau Mang Jun Lau [EMAIL PROTECTED] 03/28/2006 02:31 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Compiling with JDK 1.4 Thank you both for your replies. I tried it out and now it can't find the javax.crypto package. I took a look at rt.jar from 1.4.1 and indeed it's not there. From the Sun website, it says that crypto is part of 1.4 so it should be there. Does this mean I need to add another jar to the bootclasspath? Which jar do I add? And will each jar be separated by a comma or semicolon? Thanks. _Mang Lau Nicolas De Loof [EMAIL PROTECTED] 03/28/2006 10:01 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Compiling with JDK 1.4 This should work better : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion source1.3/source target1.3/target bootclasspath${pom.getDependencyPath('jara:rt')}/bootclasspath /configuration /plugin ... dependency groupIdjava/groupId artifactIdrt/artifactId version1.3/version scopesystem/scope /dependency Now, how to set the (computer specific) location of the system scoped dependency ? http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html only says the dependency will not be looked-up from repository, but HOW to provide it ? Nico. Nicolas De Loof a écrit : Could it be possible to set this rt.jar as a (system ?) dependency, something like this : bootclasspath${getDependencyPath(java:rt:1.3)}/bootclasspath Siegmann Daniel, NY a écrit : I too have had to override the JAVA_HOME JDK, though in my case it was to compile for 1.3 rather than 1.4. What you seem to be missing is setting the bootclasspath to the correct Java runtime library. Below is the configuration I use. I hope this helps. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.3/source target1.3/target compilerArguments bootclasspath..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar/bootclasspath /compilerArguments /configuration /plugin -- Daniel Siegmann FJA-US, Inc. (212) 840-2618 ext. 139 -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 5:28 PM To: users@maven.apache.org Subject: [M2] Compiling with JDK 1.4 Hi, I've searched and tried the methods given before but things haven't been working for me. My JAVA_HOME points to the 1.5 JDK. I would like to compile my code to be able to run under JDK 1.4. So, in my snip Hope someone has done this successfully before. Thanks. _Mang Lau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Is there a variable for the local repository?
Hi Scott, I've been wondering for the longest time and only recently, through the power of guessing, I've discovered that the variable for the local repository is ${settings.localRepository}. You'll need to make sure that the localRepository set in your settings.xml file though. _Mang Lau Scott Tailor [EMAIL PROTECTED] 03/27/2006 06:57 AM Please respond to Maven Users List users@maven.apache.org To 'Maven Users List' users@maven.apache.org cc Subject RE: [M2] Is there a variable for the local repository? Hi Dan, Thanks for the reply. I must be blind, but I couldn't find anything related to looking up paths to dependencies on the page you sent me, nor on the Answered questions link from that page. /Scott -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: den 27 mars 2006 09:32 To: Maven Users List Subject: Re: [M2] Is there a variable for the local repository? check out http://docs.codehaus.org/display/MAVENUSER/FAQs on how to lookup path to dependencies -D On 3/26/06, dan tran [EMAIL PROTECTED] wrote: I assume this is maven2 question, Your need to get a hold of maven-setting object to retreive the local repo path check maven-release-plugin source (AbstractReleaseMojo.java) -D On 3/26/06, Scott Tailor [EMAIL PROTECTED] wrote: Is there a variable for the path to the user's local repository? I tried using ${maven.home}/repository in the pom but maven.home wasn't resolved. Is there a ${repo.local} variable I could use? Or better yet anyway I can look up the path of a dependency? Something like: ${pom.getDependencyPath? http://wiki.taylorit.com/jsp/Wiki?topic=DependencyPathaction=action_edit ('org.springframework:spring-hibernate ')}? /Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unsubscribe me
Did you get the confirmation email too? You need to reply to that confirmation email to unsubscribe. _Mang Lau [EMAIL PROTECTED] 03/27/2006 11:31 AM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject RE: unsubscribe me okay definately not working -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 10:28 AM To: users@maven.apache.org Subject: RE: unsubscribe me Wayne: I just tried it again ([EMAIL PROTECTED]), so we will see. If I get this email backthen I am assuming it is not working. Russ -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 10:26 AM To: Maven Users List Subject: Re: unsubscribe me At the bottom of every email, it says: To unsubscribe, e-mail: [EMAIL PROTECTED] Is that not working for you? Wayne On 3/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Please unsubscribe me. I have rollowed your instructions and email the site last week. I am still getting emails. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Compiling with JDK 1.4
Hi, I've searched and tried the methods given before but things haven't been working for me. My JAVA_HOME points to the 1.5 JDK. I would like to compile my code to be able to run under JDK 1.4. So, in my master POM, I have: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.4/compilerVersion source1.4/source target1.4/target /configuration /plugin /plugins /build I've tried different permutations of the compilerVersion, source, and target tags being present and not, all to no avail. The code compiles in all instances but when I execute the code, I get the exception: java.lang.NoSuchMethodError: java.math.BigDecimal: method init(I)V not found I googled this and I know it's because the 1.5 API has a new int constructor. This means that my code is still being compiled with the 1.5 JDK. How can I get Maven to compile with the 1.4 JDK? I've even tried setting the executable tag to point to the 1.4 javac. The only way it works is if I point my JAVA_HOME to the 1.4 JDK, which I can't do because there are other applications that need to be compiled with 1.5 on the same machine. Hope someone has done this successfully before. Thanks. _Mang Lau
Re: newbie question: timestamp on target build file
I think you need your POM to be a snapshot version. If you call the deploy goal then you will get the timestamp by default. _Mang Lau Hong wu [EMAIL PROTECTED] 03/24/2006 05:07 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject newbie question: timestamp on target build file Hi, I'd like to know how to put a timestamp in my target build file, such as javabuild-20060324.jar I seem could not find it anywhere in the documentation or Google. Thanks for the help! Maven rocks! H.
Regarding MNG-1598
I'm trying to exclude that META-INF/maven directory in produced WARs. I know the fix has been made for JARs. It even works for EARs but how come not WARs? Here is the issue I'm referring to: http://jira.codehaus.org/browse/MNG-1598 Am I doing something wrong or does it indeed not work? Should I file another issue about not being able to exclude this directory in produced WAR files? _Mang Lau
Re: Regarding MNG-1598
Issue filed: http://jira.codehaus.org/browse/MWAR-27 _Mang Lau Wayne Fay [EMAIL PROTECTED] 03/22/2006 02:04 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Regarding MNG-1598 Jar plugin != Ear plugin != War plugin Potentially different people are responsible for each plugin. So yes I'd file a MWAR bug to deal with it. Should be an easy fix though since the EAR and JAR plugins have already handled it. Wayne On 3/22/06, Mang Jun Lau [EMAIL PROTECTED] wrote: I'm trying to exclude that META-INF/maven directory in produced WARs. I know the fix has been made for JARs. It even works for EARs but how come not WARs? Here is the issue I'm referring to: http://jira.codehaus.org/browse/MNG-1598 Am I doing something wrong or does it indeed not work? Should I file another issue about not being able to exclude this directory in produced WAR files? _Mang Lau
Re: running a internal repositories
What kind of errors do you get? Have you read this page yet? http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html _Mang Lau Pierre Monestie [EMAIL PROTECTED] 03/22/2006 04:55 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject running a internal repositories Hi, I'm a bit confused as far as setting up an internal repository: So far I just copied what was in my local cache onto it and that worked. However what is the correct methods to install new jars onto it. More precisely I want to install libraries that are not in the maven central and for which I just have a jar. Maven will always complain if I don't have a pom associated with it. I tried maven install:install-file without success. Thanks, Pierre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m202 How to package ear with our version numbers for the included artifiacts
Is there a way to change the bundle name of a dependency for WARs too? I don't want JARs in my WAR file to have version numbers on them. Any response would be good thanks. _Mang Lau Stephane Nicoll [EMAIL PROTECTED] 03/07/2006 08:58 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: m202 How to package ear with our version numbers for the included artifiacts See the EAR doc which explains how to change the bundle name of a dependency. Now, this sounds interesting, you can open an improvement in Jira if you like. Cheers, Stéphane On 3/6/06, Gautham Pamu [EMAIL PROTECTED] wrote: Hi Everyone, Currently when I package my ear, it is include the ejb jars and wars files in the ear but the jars names include the version number. I would have package the jars in the ear without the version numbers. For example: in my ear.. i have following dependency so it is packaging the compAWeb-1.0.war in the ear, I want to have compAEJBClient.jar in the ear instead. Is it possible to change names of the jars while packaging the ear using ear pluging or do I have to package the jar using a custom anttask dependency groupIdcompanyName/groupId artifactIdcompAWeb/artifactId version1.0/version typewar/type /dependency I tried changing the finalName for the war project to artifactname so it packaged two war files in the ear file. One with version compAWeb-1.0.warand another without version compAWeb.war Any suggestions on how package this kind of ear file. -- -Gautham Pamu -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Blame with Subversion
Are you using 1.0.2? If so then I don't think the change list is totally working properly. I believe it is fixed in the lastest snapshot of 1.0.3. It should show the user who committed the changes. _Mang Lau Mark Reynolds [EMAIL PROTECTED] Sent by: news [EMAIL PROTECTED] 03/20/2006 02:00 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Blame with Subversion I have recently setup Continuum and it is working fine. My SCM is subversion. For each build I can see the files that changed to trigger that build. Can Continuum also show the user(s) who committed the changes? Thank you. -- Mark R
[M2] Renaming of included jars in WAR file possible?
Hi, Is renaming the JARs inside the WAR file possible? In an EAR it's possible as Maven has the modules tag to specify javaModules to rename upon packaging. Is this functionality available for WAR files as well? I just want to get rid of the version numbers that are attached to the jar names. Has anyone needed this kind of functionality? Thanks. _Mang Lau
Re: Continuum 1.0.3 RC require some tester
Sweet! Thanks to the Continuum team for all the hard work. _Mang Lau Emmanuel Venisse [EMAIL PROTECTED] 03/16/2006 04:33 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Continuum 1.0.3 RC require some tester Hi, I think it's time to release Continuum 1.0.3. This release will incorporate 65 issues, including some critical fixes. The full listing of fixes can be found here: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10540styleName=Htmlversion=12330 If you're interested, you can take the current release candidate for a test drive. The RC tarball is at: http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/continuum-20060316.173001.tar.gz Cheers, Emmanuel
Re: Build error
Hi, My guess is that the central repository was down at that time so it could not download the maven-archetype-plugin. I would try it again at another time or add a mirror to your settings.xml file. This file can be found in your user home .m2 directory. If it's not there then make one like so: settings mirrors mirror idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /settings I use this mirror and it's usually up. Give that a try. _Mang Lau Jeff Mutonho [EMAIL PROTECTED] 03/14/2006 09:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Build error I've just started going through the M2 docs.I tried to create my first project , but got an error message as shown below : M2_FirstSteps]#mvn -e archetype:create -DgroupId=za.co.mycompany -DartifactId=myapp + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi st or no valid version could be found [INFO] - --- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' org.apache.m aven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin (Defa ultLifecycleExecutor.java:1247) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:378) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.java:134) 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:249) 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:324) 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) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val id version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin (DefaultPlug inManager.java:160) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin (Defa ultLifecycleExecutor.java:1218) ... 14 more [INFO] - --- [INFO] Total time: 21 seconds [INFO] Finished at: Tue Mar 14 15:54:08 GMT+02:00 2006 [INFO] Final Memory: 1M/2M [INFO] - --- M2_FirstSteps]# All I ask is a chance to prove that money can't make me happy. Jeff Mutonho Java/J2EE Developer mob: + 27 82 907 6420 GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build error
Sorry missing a closing mirrors tag. It should be like this: settings mirrors mirror idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings _Mang Lau Mang Jun Lau [EMAIL PROTECTED] 03/14/2006 09:47 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Build error Hi, My guess is that the central repository was down at that time so it could not download the maven-archetype-plugin. I would try it again at another time or add a mirror to your settings.xml file. This file can be found in your user home .m2 directory. If it's not there then make one like so: settings mirrors mirror idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /settings I use this mirror and it's usually up. Give that a try. _Mang Lau Jeff Mutonho [EMAIL PROTECTED] 03/14/2006 09:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Build error I've just started going through the M2 docs.I tried to create my first project , but got an error message as shown below : M2_FirstSteps]#mvn -e archetype:create -DgroupId=za.co.mycompany -DartifactId=myapp + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi st or no valid version could be found [INFO] - --- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' org.apache.m aven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin (Defa ultLifecycleExecutor.java:1247) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy AggregationNeeds(DefaultLifecycleExecutor.java:378) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.java:134) 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:249) 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:324) 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) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no val id version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin (DefaultPlug inManager.java:160) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin (Defa ultLifecycleExecutor.java:1218) ... 14 more [INFO] - --- [INFO] Total time: 21 seconds [INFO] Finished at: Tue Mar 14 15:54:08 GMT+02:00 2006 [INFO] Final Memory: 1M/2M [INFO] - --- M2_FirstSteps]# All I ask is a chance to prove that money can't make me happy. Jeff Mutonho Java/J2EE Developer mob: + 27 82 907 6420 GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build error
Try adding -U as a parameter after archetype:create. This will force an update from the server. _Mang Lau Jeff Mutonho [EMAIL PROTECTED] 03/14/2006 11:12 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Build error Sorry missing a closing mirrors tag. It should be like this: settings mirrors mirror idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings _Mang Lau I tried that but no luck.My settings.xml looks as follows : ?xml version=1.0 encoding=UTF-8? settings proxies proxy active/ protocol/ username/ password/ port80/port hostmyproxy/host id/ /proxy /proxies mirrors mirror idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings -- All I ask is a chance to prove that money can't make me happy. Jeff Mutonho Java/J2EE Developer mob: + 27 82 907 6420 GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build error
hmm...your maven has almost no changes to it right? It's just unzipped and you played with some stuff in settings.xml? Has it retrieved anything from the repository at all? Does anyone have any ideas? _Mang Lau Jeff Mutonho [EMAIL PROTECTED] 03/14/2006 11:26 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Build error Try adding -U as a parameter after archetype:create. This will force an update from the server. Still same error :( -- All I ask is a chance to prove that money can't make me happy. Jeff Mutonho Java/J2EE Developer mob: + 27 82 907 6420 GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Build error
I haven't played with proxies but from your file, it looks like you have some tags with no values in them proxies proxy active/ protocol/ username/ password/ port80/port host198.blah.blah.blah/host id/ /proxy /proxies Your active, protocol, username, password, id fields are all empty. Either set these fields or remove them. Also, set activetrue/active. Again I haven't tried this stuff before so I'm just guessing. If you can, remove the proxy section all together. _Mang Lau Jeff Mutonho [EMAIL PROTECTED] 03/14/2006 11:38 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Build error On 3/14/06, Mang Jun Lau [EMAIL PROTECTED] wrote: hmm...your maven has almost no changes to it right? It's just unzipped and you played with some stuff in settings.xml? Has it retrieved anything from the repository at all? Does anyone have any ideas? _Mang Lau I downloaded M2 today, unzipped it , setup my $PATH variable and went to the getting started site ( http://maven.apache.org/guides/getting-started/index.html) , started reading , reached the How do I make my first Maven project? sub-heading and got STUMPED , with this error.My settings.xml looks as follows (without the blah.blah.blah) ?xml version=1.0 encoding=UTF-8? settings proxies proxy active/ protocol/ username/ password/ port80/port host198.blah.blah.blah/host id/ /proxy /proxies mirrors mirror idlsu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings -- All I ask is a chance to prove that money can't make me happy. Jeff Mutonho Java/J2EE Developer mob: + 27 82 907 6420 GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: [M2] Version-less jar files
Hi, build finalName/ /build This lets you specify the final name without the version numbers on the jar but I still think there's a version number attached to it in the repository. The numbers only go away when the jars are packed into wars or ears. _Mang Lau Andreas Guther [EMAIL PROTECTED] 03/14/2006 12:02 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject [M2] Version-less jar files Hi, This is another Maven 2 question I am having problems finding the answer: How do I configure my maven 2 repository for jar files without a version number in the file name? I have the problem that jaxb1 has in its manifest file version less jar files in the Class-Path definition. I have added to my repository versioned jars but it looks as if jaxb is not unable to locate the requested class. In maven 1 I could add an entry to the dependency that gave the jar file name. How does this work in Maven 2? Thanks in advance for any help. Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [1.0.2] Continuum as a service in Windows?
Great thanks a lot! That worked. Is the service installed automatically when I execute run.bat because I can't find the service listed when I do a fresh Continuum install on another machine. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 04:02 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? by default, continuum nt server runs under system account. Your need to use servicce control panel to assign a known account ( like yours) to the service. Also, it seems that you aready installed it as a service, use service control panel to make sure it points to right place. -D On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: What do you mean by known account? Do you mean administrator privileges or what? I do have administrator rights on my machine. Anyhow, when I run InstallService.bat, I get the error: wrapper | CreateService failed - The specified service already exists. (0x431) When I try to start the service manually from Windows Computer Management, I get the error: Could not start the continuum service on Local Computer. Error 1067: The process terminated unexpectedly. So can anyone give me step-by-step instructions on how to setup Continuum as a service? Thanks again. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 03:49 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? make sure to run it under a known account On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, I did some searching on the website and through google but haven't come up with instructions on how to set up Continuum to run as a service on Windows. Right now I have it installed regularly by executing run.bat right after I unzipped it. I also see another bat that is InstallService.bat. I will try this out now. Is there anything I should look out for, such as uninstalling my current version first or changing any settings, etc.? Thanks. _Mang Lau
Re: [1.0.2] Continuum as a service in Windows?
yes you're right. You have to run the install script first and even though it shows an error message, it actually installed properly. Is this a known issue? _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 04:28 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? no, you may have accidentally run the service install script On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Great thanks a lot! That worked. Is the service installed automatically when I execute run.bat because I can't find the service listed when I do a fresh Continuum install on another machine. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 04:02 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? by default, continuum nt server runs under system account. Your need to use servicce control panel to assign a known account ( like yours) to the service. Also, it seems that you aready installed it as a service, use service control panel to make sure it points to right place. -D On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: What do you mean by known account? Do you mean administrator privileges or what? I do have administrator rights on my machine. Anyhow, when I run InstallService.bat, I get the error: wrapper | CreateService failed - The specified service already exists. (0x431) When I try to start the service manually from Windows Computer Management, I get the error: Could not start the continuum service on Local Computer. Error 1067: The process terminated unexpectedly. So can anyone give me step-by-step instructions on how to setup Continuum as a service? Thanks again. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 03:49 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? make sure to run it under a known account On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, I did some searching on the website and through google but haven't come up with instructions on how to set up Continuum to run as a service on Windows. Right now I have it installed regularly by executing run.bat right after I unzipped it. I also see another bat that is InstallService.bat. I will try this out now. Is there anything I should look out for, such as uninstalling my current version first or changing any settings, etc.? Thanks. _Mang Lau
Re: [1.0.2] Continuum as a service in Windows?
No I don't acutally. Maybe it was my mistake then since I double clicked install the first time and the window just closed so I didn't know that it installed. Thanks for pointing that out. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 05:08 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? do you still see the problem after remove and reinstall the service? -Dan On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: yes you're right. You have to run the install script first and even though it shows an error message, it actually installed properly. Is this a known issue? _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 04:28 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? no, you may have accidentally run the service install script On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Great thanks a lot! That worked. Is the service installed automatically when I execute run.bat because I can't find the service listed when I do a fresh Continuum install on another machine. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 04:02 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? by default, continuum nt server runs under system account. Your need to use servicce control panel to assign a known account ( like yours) to the service. Also, it seems that you aready installed it as a service, use service control panel to make sure it points to right place. -D On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: What do you mean by known account? Do you mean administrator privileges or what? I do have administrator rights on my machine. Anyhow, when I run InstallService.bat, I get the error: wrapper | CreateService failed - The specified service already exists. (0x431) When I try to start the service manually from Windows Computer Management, I get the error: Could not start the continuum service on Local Computer. Error 1067: The process terminated unexpectedly. So can anyone give me step-by-step instructions on how to setup Continuum as a service? Thanks again. _Mang Lau dan tran [EMAIL PROTECTED] 03/13/2006 03:49 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: [1.0.2] Continuum as a service in Windows? make sure to run it under a known account On 3/13/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, I did some searching on the website and through google but haven't come up with instructions on how to set up Continuum to run as a service on Windows. Right now I have it installed regularly by executing run.bat right after I unzipped it. I also see another bat that is InstallService.bat. I will try this out now. Is there anything I should look out for, such as uninstalling my current version first or changing any settings, etc.? Thanks. _Mang Lau
RE: Company Logo doesn't appear
The local path works in IE. It's probably just a Firefox issue somewhere. _Mang Johnson, Jonathan [EMAIL PROTECTED] 03/08/2006 02:18 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject RE: Company Logo doesn't appear I set the company logo using http://www.mycompany.com/images/logo.gif Its not clear by looking at the General Configuration page but perhaps configuration entry only accepts http / url strings. I think if you use /some/local/path/logo.gif it will not work. -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 2:11 PM To: continuum-users@maven.apache.org Subject: Re: Company Logo doesn't appear I talked to Emmanuel about this on IRC and he told me to file a PR. You can see it here: http://jira.codehaus.org/browse/CONTINUUM-621 --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] [EMAIL PROTECTED] 03/08/2006 02:06 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: Company Logo doesn't appear Thanks much that worked!! but still it doesn't display my company logo?? Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 03/08/2006 12:39 PM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: Company Logo doesn't appear you must add http:// before www.mycove.com Emmanuel [EMAIL PROTECTED] a écrit : This is the error i'm getting HTTP ERROR: 503 java%2Elang%2EClassNotFoundException%3A+www%2Ejpmchase%2Ecom RequestURI=/continuum/servlet/www.mycove.com Powered by Jetty:// Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 03/08/2006 11:37 AM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: Company Logo doesn't appear Can you paste html of company part? [EMAIL PROTECTED] a écrit : Hi, I configured my continuum with my my company name, logo, website address, but continuum doesn't show my company logo, it just displays company name in mozilla browser only not an IE and also when i click on that its not taking me to company website Thanks, Raghu LEGAL NOTICE: Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this e-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
RE: Company Logo doesn't appear
I see it fine in IE. You might want to add a comment to that PR I mentioned about your IE issue. You'll need to sign up for an account if you don't have one before being able to add comments. --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] [EMAIL PROTECTED] 03/08/2006 02:30 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject RE: Company Logo doesn't appear no i don't see it IE also when i use local path, but when use it as http://mycompany.com/images it worked both in IE as well as Firefox Thank you verymuch Thanks, Raghu Mang Jun Lau [EMAIL PROTECTED] 03/08/2006 01:19 PM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:RE: Company Logo doesn't appear The local path works in IE. It's probably just a Firefox issue somewhere. _Mang Johnson, Jonathan [EMAIL PROTECTED] 03/08/2006 02:18 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject RE: Company Logo doesn't appear I set the company logo using http://www.mycompany.com/images/logo.gif Its not clear by looking at the General Configuration page but perhaps configuration entry only accepts http / url strings. I think if you use /some/local/path/logo.gif it will not work. -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 2:11 PM To: continuum-users@maven.apache.org Subject: Re: Company Logo doesn't appear I talked to Emmanuel about this on IRC and he told me to file a PR. You can see it here: http://jira.codehaus.org/browse/CONTINUUM-621 --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] [EMAIL PROTECTED] 03/08/2006 02:06 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: Company Logo doesn't appear Thanks much that worked!! but still it doesn't display my company logo?? Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 03/08/2006 12:39 PM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: Company Logo doesn't appear you must add http:// before www.mycove.com Emmanuel [EMAIL PROTECTED] a écrit : This is the error i'm getting HTTP ERROR: 503 java%2Elang%2EClassNotFoundException%3A+www%2Ejpmchase%2Ecom RequestURI=/continuum/servlet/www.mycove.com Powered by Jetty:// Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 03/08/2006 11:37 AM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: Company Logo doesn't appear Can you paste html of company part? [EMAIL PROTECTED] a écrit : Hi, I configured my continuum with my my company name, logo, website address, but continuum doesn't show my company logo, it just displays company name in mozilla browser only not an IE and also when i click on that its not taking me to company website Thanks, Raghu LEGAL NOTICE: Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this e-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
Re: Downloading from the local rep
Hi Adel, A temporary fix would be to run Maven with a -o parameter for offline mode. This ensures that Maven will not look online. In my settings.xml, I don't specify the localRepository tag. I have never had to change the settings.xml file except to add mirrors. Since it says your folder does not exist, maybe you can remove that localRepository tag. See if that works. _Mang Lau [EMAIL PROTECTED] 03/08/2006 10:20 AM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject Downloading from the local rep Dear all, I am trying to get Maven downloading the required artifact from my local rep, but still using the remote one despite it's updating the local rep, every time downloading from the remote. I tried to set-up my local rep via Setting.xml as follow: localRepositoryC:\Documents and Settings\adel\.m2\repository/localRepository , but still giving me the below message every time reading my POM, any idea how I can sort this problem please? 08/03/06 15:11:23 GMT: Reading /Stephenie/pom.xml 08/03/06 15:11:23 GMT: Local repository folder does not exist 08/03/06 15:11:24 GMT: Downloading [central] - http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.pom 08/03/06 15:11:24 GMT: Downloaded [central] - http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.pom 08/03/06 15:11:25 GMT: Downloading [central] - http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar 08/03/06 15:11:29 GMT: Downloaded [central] - http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar Regards, Adel Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system.
Re: Company Logo doesn't appear
I talked to Emmanuel about this on IRC and he told me to file a PR. You can see it here: http://jira.codehaus.org/browse/CONTINUUM-621 --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] [EMAIL PROTECTED] 03/08/2006 02:06 PM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: Company Logo doesn't appear Thanks much that worked!! but still it doesn't display my company logo?? Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 03/08/2006 12:39 PM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: Company Logo doesn't appear you must add http:// before www.mycove.com Emmanuel [EMAIL PROTECTED] a écrit : This is the error i'm getting HTTP ERROR: 503 java%2Elang%2EClassNotFoundException%3A+www%2Ejpmchase%2Ecom RequestURI=/continuum/servlet/www.mycove.com Powered by Jetty:// Thanks, Raghu Emmanuel Venisse [EMAIL PROTECTED] 03/08/2006 11:37 AM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: Company Logo doesn't appear Can you paste html of company part? [EMAIL PROTECTED] a écrit : Hi, I configured my continuum with my my company name, logo, website address, but continuum doesn't show my company logo, it just displays company name in mozilla browser only not an IE and also when i click on that its not taking me to company website Thanks, Raghu
Re: How to specify multiple excludes in war-plugin?
Please refer to this thread: http://www.nabble.com/WAR-plugin-in-M2%3A-excludes-not-all-files-t1140057.html It could be a bug though. _Mang Lau Dixit, Sandeep (ProSource Solutions) [EMAIL PROTECTED] 03/08/2006 02:41 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject How to specify multiple excludes in war-plugin? I am trying to exclude few libraries (.jar) from getting packaged into war. How do I specify it using excludes tag? I tried using comma, space as well as multiple excludes tags. Nothing worked. It is only able to exclude a single jar. Please advise. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0-beta-2/version configuration warSourceDirectoryJavaSource/warSourceDirectory webappDirectoryWebContent/webappDirectory excludesWEB-INF/lib/commons-collections-2.1.jar, WEB-INF/lib/anttasks-6.0.jar /excludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to specify multiple excludes in war-plugin?
If you want to use my solution, you would have to put the tags like so: build resources resource directory${basedir}/WebContent/directory excludes excludeWEB-INF/lib/commons-collections-2.1.jar/exclude excludeWEB-INF/lib/anttasks-6.0.jar/exclude /excludes /resource /resources /build I don't know if this will work for you. _Mang Lau Dixit, Sandeep (ProSource Solutions) [EMAIL PROTECTED] 03/08/2006 03:01 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject RE: How to specify multiple excludes in war-plugin? I tried your resolution as below: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0-beta-2/version configuration warSourceDirectoryJavaSource/warSourceDirectory webappDirectoryWebContent/webappDirectory excludes excludeWEB-INF/lib/commons-collections-2.1.jar/exclude excludeWEB-INF/lib/anttasks-6.0.jar/exclude /excludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin However this doesn't exclude anything? What am I doing wrong? Thanks, Sandeep -Original Message- From: Mang Jun Lau [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 2:48 PM To: Maven Users List Subject: Re: How to specify multiple excludes in war-plugin? Please refer to this thread: http://www.nabble.com/WAR-plugin-in-M2%3A-excludes-not-all-files-t114005 7.html It could be a bug though. _Mang Lau Dixit, Sandeep (ProSource Solutions) [EMAIL PROTECTED] 03/08/2006 02:41 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject How to specify multiple excludes in war-plugin? I am trying to exclude few libraries (.jar) from getting packaged into war. How do I specify it using excludes tag? I tried using comma, space as well as multiple excludes tags. Nothing worked. It is only able to exclude a single jar. Please advise. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0-beta-2/version configuration warSourceDirectoryJavaSource/warSourceDirectory webappDirectoryWebContent/webappDirectory excludesWEB-INF/lib/commons-collections-2.1.jar, WEB-INF/lib/anttasks-6.0.jar /excludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - 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: Simple CVS question: How to add a file to the toplevel cvsroot
You can execute: ln -s path-to-actual-CVS-module This will create a symbolic link in a UNIX system. You're out of luck if your CVS is on Windows. In your cvsroot, create a new directory (i.e. module) and place your parent POM in there. Then symlink all of your modules in that directory. When you want to checkout the project, it will follow the symlinks and checkout everything in the proper location. _Mang Lau Gautham Pamu [EMAIL PROTECTED] 03/07/2006 01:19 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Simple CVS question: How to add a file to the toplevel cvsroot Thanks for responding to my email. I am more inclined to the second option.. Can you tell me how to create these symbollic links, what command should I use to acheive this or Are there any cvs commands to create links... - Keep the structure and create a new module that contains a parent POM and a list of symbolic links to your actual CVS modules Thanks Gautham Pamu On 3/7/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: You can't do that. I have two workaround for your problem: - Refactor your cvs modules for having only one cvs modules that contains all your actual module - Keep the structure and create a new module that contains a parent POM and a list of symbolic links to your actual CVS modules Emmanuel Gautham Pamu a écrit : Hi Everyone, I knew this is not the right mailing list for this question but I am posting here as most users on this mailing list are familiar with CVS. I want to have a parent pom.xml file for the all the modules in cvs. So is it possible to add pom.xml file to the cvsroot like for example: CVSROOT is to :ext:[EMAIL PROTECTED]:/usr/local/cvsroot so how do I add file to this folder. When I try the CVS add it is giving this error. ~/dev/test cvs -d :ext:[EMAIL PROTECTED]:/usr/local/cvsroot/ add pom.xml Password: cvs add: cannot open CVS/Entries for reading: No such file or directory cvs [add aborted]: no repository -- -Gautham Pamu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Gautham Pamu
Re: is there a way to filter dependency jars from being packaged
You can try using scopeprovided/scope for dependency B. _Mang Lau Brad O'Hearne [EMAIL PROTECTED] 03/06/2006 02:37 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject is there a way to filter dependency jars from being packaged I am building a JBoss sar and a JBoss wsr using the sar and wsr plugins. I would like to create these archives without including all of the jar dependencies. After looking at the documentation, I tried putting this into my dependency declaration in my pom: optionaltrue/optional This doesn't appear to work the way the documentation states. In my project, I have one dependency: call it B. I have declared B to be optional in my pom. When I package my project, inside the archive, B has been filtered out, but all of B's dependencies are there. Basically what I want to have happen, is that I want to filter B and all its depedencies up the dependency hierarchy from being inside the archive. How can this be accomplished? Thanks. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can Continuum fire off reports from changelog plugin?
Hi, I only recently discovered the changelog-maven-plugin that can generate reports of changes in SCM. I looked around in Continuum and haven't found a place where I can customize the e-mail notification that gets sent after a build. So is it possible that this notification e-mail can contain the changes and check-in comments from SCM? Thanks. _Mang Lau
Re: Not building EAR for an application
I will add these workarounds to the Contiuum FAQ page. _Mang Emmanuel Venisse [EMAIL PROTECTED] 02/27/2006 03:58 AM Please respond to continuum-users@maven.apache.org To continuum-users@maven.apache.org cc Subject Re: Not building EAR for an application Ah, you have one cvs modules by project module. It's really strange to use this structure in CVS, generally a CVS module is used for a complete project with some subdirectories for project modules. In your case, you can't use a parent pom without some work. I have 2 work around: - Refactor your CVS structure to a more standard - Keep your actual structure and create a new module that will contains a parent pom and a list of symbolic link to your actual CVS modules. An other user use this solution and it's works fine. Emmanuel Sanjay Choudhary a écrit : Hi Emmanuel, We use CVS (I wish it was svn). Each project of application corresponds to a module in CVS. at root level pom.xml (Not in cvs) failed as it doesn't exist in CVS. I copied it manually to folder 1. In working directory I was able to see pom.xml parentPOM ( in cvs) in continuum folder name 2 common (in cvs) in continuum folder name 3 ejb1 (in cvs) folder name 4 ejb2 (in cvs) folder name 5 war (in cvs) folder name 6 Java (in cvs) folder name 7 ear (in cvs) folder name 8 All the projects in CVS has pom.xml Now when I run mvn compile (or anyother phase) it doesn't work. It looks for the directory common , java, war etc. which are not present. (Which I expected) ( I don't know the design reason, but it would have been great if we had real folder names instead of numeric numbers.) Let me know if I am doing something wrong here!! -Sanjay On 2/26/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: ok you don't use the standard maven layout. If you want to build all in one time, you should add a new pom in the root directory of your parent pom and add one module in it (the parent pom), so all your modules will be checkout in the correct directory structure Emmanuel Sanjay Choudhary a écrit : Hi Emmanuel I like option 2 and I tried it too but it doesn't work My Parent pom has module definition as below: modules modules module../common/module module../ejb1/module module../ejb2/module module../war1/module module../java1/module module../ear/module /modules /modules But since Continuum uses number instead of folder name -N option doesn't work. Is there a work around to this issue? -Sanjay On 2/25/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: Actually a build start only if you have some changes in scm for your project. In future, we'll can start a build if a dependecies is new. If you want the latest EAR, without changes in your EAR project, you must build it manually from Continuum. or you can build all from parent project if you remove -N parameter in the build definition Emmanuel Sanjay Choudhary a écrit : Hi All, We hv. and application building thru continuum Our application is a normal J2EE application pom.xml EAR Project EJB1 Project EJB2 Project Jar Project Jar Project War Project Each of them has pom.xml. Now if we have change in Jar Project and EJB1 project, continuum builds the projects fine but doesn't rebuild the EAR. Now we don't have a latest EAR and deploy. Is there a workaround to this? Or this is a normal behavior of Continuum. If it is the normal behavior, then how we we get the latest EAR? Thanks, Sanjay
Re: [m2] m2eclipse system requirements
Hi, I think it's supposed to work on Eclipse 3.1.x. _Mang Lau Adrian Herscu [EMAIL PROTECTED] Sent by: news [EMAIL PROTECTED] 02/24/2006 12:25 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject [m2] m2eclipse system requirements Hi all, Couldn't find the system requirements of m2eclipse. On which Eclipse version it is supposed to work? Adrian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with multi-module CVS URLs
Yes I understand that it is invalid. I went on IRC and someone pointed out to me that to get the colons, I would have to add a SCM url to each child pom. So I did that and things are fine now. I have another question though. This is sort of similar to the multi-module thread. I would like to build all child projects by just hitting build on the parent project. I took off the -N parameter so that it will build recursively. The problem for me is that the SCM url specified in the parent pom does not point anywhere and is invalid since there is nothing to checkout for the parent pom. It's just a POM project. So since the URL is invalid, the build never progresses and fails right away. My parent pom works when I build manually from the command line since it doesn't need to checkout anything. This is different in Continuum. So how can I get around this problem? Do I just point the URL to some dummy module in CVS to allow the build to progress? Thanks. _Mang Yes, your scm url is invalid. look at correct format: http://maven.apache.org/scm/cvs.html Emmanuel
Re: Exclude patterns for resources
So you just want to exclude this particular .db file but within various/all places in the project? If so then you can specify ${basedir} between the directory tags. _Mang Lau Walco van Loon [EMAIL PROTECTED] 02/23/2006 07:38 AM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject Exclude patterns for resources Hi List, Is it possible to specify exclude patterns for *any* resource in a project? So, in meaning equivalent to this, but without having to specify the directory element for each resource type present. resources resource directorysrc/main/java/directory excludes exclude**/.copyarea.db/exclude /excludes /resource /resources TIA, Cheers, Walco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Correct usage of addClasspath tag for maven-jar-plugin
The addClasspath tag only adds a class-path entry to the manifest file if you have dependencies specified in your POM. _Mang Lau Kees de Kooter [EMAIL PROTECTED] 02/22/2006 10:51 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Correct usage of addClasspath tag for maven-jar-plugin Anyone? This is my current setup: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest mainClassnl.boplicityOrderBuilderWorkbench/mainClass addClasspathtrue/addClasspath /manifest /archive /configuration /plugin It does not have any effect on the manifest file. -- Cheers, Kees de Kooter http://www.boplicity.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Correct usage of addClasspath tag for maven-jar-plugin
I'm not really sure what's wrong. Your POM seems to be correct. Do you have dependencies that do not have a provided scope? These are excluded from the classpath. Otherwise I'm not sure what's wrong. Anyone else have any ideas? _Mang Lau Kees de Kooter [EMAIL PROTECTED] 02/22/2006 01:43 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Correct usage of addClasspath tag for maven-jar-plugin I have a _lot_ of dependencies in my POM. But nothing is appearing in my manifest. On 2/22/06, Mang Jun Lau [EMAIL PROTECTED] wrote: The addClasspath tag only adds a class-path entry to the manifest file if you have dependencies specified in your POM. _Mang Lau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Modifying war plugin
I need it because without it, the classes in my war cannot find classes from jars in my ear. --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] Alexandre Poitras [EMAIL PROTECTED] 02/20/2006 06:19 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Modifying war plugin I am curious to know why do you need a manifest file in a war? I have never needed it. On 2/20/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, Since there is no functionality in the maven-war-plugin to support the use of custom manifest files, I'm getting desperate and I'm going to try to add it in. I've checked out the latest code and I built it. My POM has the following: build plugins plugin artifactIdmaven-war-plugin/artifactId configuration archive manifest manifestFile${basedir}/WebContent/META-INF/MANIFEST.MF/manifestFile /manifest /archive warSourceDirectory${basedir}/WebContent/warSourceDirectory webXml${basedir}/WebContent/WEB-INF/web.xml/webXml /configuration /plugin /plugins /build This gives me this error when I run mvn clean package: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.0-beta-3-SNAPSHOT Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' The stack trace says Error configuring: org.apache.maven.plugins:maven-war-plugin. Reason: Unable to parse the created DOM for plugin configuration. Where is this code? To add this functionality would I have to modify the parser? Would I have to modify Plexus WarArchiver code? If so, I can't find the source anywhere. Their CVS and their SVN repos don't seem to work anymore. Could someone more experienced with the code (e.g. a Maven developer) point me in the right direction? Can it even be done? This is sort of a last ditch effort for me since my attempts at a workaround have failed. Please reply. I'm really desperate for this custom manifest file feature. Thanks again. _Mang Lau -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Modifying war plugin
Thanks so much :) The Antrun worked like a charm. Turns out the manifest file was already in the right place but Maven decides to overwrite it with its own during packaging. So I had to update the war's manifest after Maven packaging using Ant. Thanks again! :) --- Mang Lau Software Developer MIS Member Services Ontario Teachers' Pension Plan Board T: 416-228-3148 E: [EMAIL PROTECTED] Wayne Fay [EMAIL PROTECTED] 02/20/2006 06:26 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Modifying war plugin Is there a particular reason you cannot simply use Antrun to copy the Manifest.mf file to the proper place during packaging etc? If you already talked about this, I might have missed it in a previous thread etc. Wayne On 2/20/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I am curious to know why do you need a manifest file in a war? I have never needed it. On 2/20/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, Since there is no functionality in the maven-war-plugin to support the use of custom manifest files, I'm getting desperate and I'm going to try to add it in. I've checked out the latest code and I built it. My POM has the following: build plugins plugin artifactIdmaven-war-plugin/artifactId configuration archive manifest manifestFile${basedir}/WebContent/META-INF/MANIFEST.MF/manifestFile /manifest /archive warSourceDirectory${basedir}/WebContent/warSourceDirectory webXml${basedir}/WebContent/WEB-INF/web.xml/webXml /configuration /plugin /plugins /build This gives me this error when I run mvn clean package: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.0-beta-3-SNAPSHOT Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' The stack trace says Error configuring: org.apache.maven.plugins:maven-war-plugin. Reason: Unable to parse the created DOM for plugin configuration. Where is this code? To add this functionality would I have to modify the parser? Would I have to modify Plexus WarArchiver code? If so, I can't find the source anywhere. Their CVS and their SVN repos don't seem to work anymore. Could someone more experienced with the code (e.g. a Maven developer) point me in the right direction? Can it even be done? This is sort of a last ditch effort for me since my attempts at a workaround have failed. Please reply. I'm really desperate for this custom manifest file feature. Thanks again. _Mang Lau -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Adding jars to classpath in war manifest
Thanks for the reply Wayne. I added the addClasspath line to my ear pom but it made no difference. Both the webapp and the EAR have classpath entries in their manifest file but projects in the webapp still cannot find the resources in the EAR. Back to my original structure: projectEAR |--- moduleA.jar |--- moduleB.jar |--- JSPs.war |--- WEB-INF |--- lib |--- moduleC.jar |--- moduleD.jar We know that moduleC is dependent on moduleA, but since A is not in the webapp manifest, C cannot find A even though A is in the EAR manifest. Is this assumption correct? So using Maven, I put a dependency with a compile scope, moduleA will be in the webapp manifest but its jar will also be included in the webapp. So really I just want the classpath entry without including the jar in the webapp. Is there a way to do this? Hopefully someone knows how to do this. Thanks again. _Mang Lau Wayne Fay [EMAIL PROTECTED] 02/17/2006 05:39 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [M2] Adding jars to classpath in war manifest This is what I'm using rather successfully... in the webapp/pom.xml build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin /plugins /build in the ear/pom.xml build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin /plugins /build Give this a try, Mang, and let us know... Wayne On 2/17/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, I've seen people ask this or a similar question before but I don't think it has ever been answered. If it has then can some kind soul point me in the right direction? Here's the situation: I have an EAR and a WAR inside the EAR. The EAR also contains JARs. So here's a directory structure: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Modifying war plugin
Hi, Since there is no functionality in the maven-war-plugin to support the use of custom manifest files, I'm getting desperate and I'm going to try to add it in. I've checked out the latest code and I built it. My POM has the following: build plugins plugin artifactIdmaven-war-plugin/artifactId configuration archive manifest manifestFile${basedir}/WebContent/META-INF/MANIFEST.MF/manifestFile /manifest /archive warSourceDirectory${basedir}/WebContent/warSourceDirectory webXml${basedir}/WebContent/WEB-INF/web.xml/webXml /configuration /plugin /plugins /build This gives me this error when I run mvn clean package: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.0-beta-3-SNAPSHOT Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' The stack trace says Error configuring: org.apache.maven.plugins:maven-war-plugin. Reason: Unable to parse the created DOM for plugin configuration. Where is this code? To add this functionality would I have to modify the parser? Would I have to modify Plexus WarArchiver code? If so, I can't find the source anywhere. Their CVS and their SVN repos don't seem to work anymore. Could someone more experienced with the code (e.g. a Maven developer) point me in the right direction? Can it even be done? This is sort of a last ditch effort for me since my attempts at a workaround have failed. Please reply. I'm really desperate for this custom manifest file feature. Thanks again. _Mang Lau
Re: WAR plugin in M2: excludes not all files
Oh sorry, maybe I had the wrong idea. Maybe you can try excluding as a resource like so: build resources resource directory${basedir}/directory excludes excludeWEB-INF/lib/geronimo-spec*.jar/exclude excludeWEB-INF/lib/junit*.jar/exclude /excludes /resource /resources /build _Mang Lau Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 02/17/2006 02:11 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: WAR plugin in M2: excludes not all files If I have excludes**/lib/*.jar/excludes, no files go into my war. If I have excludesexclude**/lib/*.jar/exclude/excludes all the dependent jars go into my war. Putting two exclude sections under the excludes doesn't make it work. Is there some other stuff you have to put in the pom to make it work? -- Lee Meador On 2/17/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Actually, multiple excludes do work. You should have the following snippet: excludes excludeWEB-INF/lib/geronimo-spec*.jar/exclude excludeWEB-INF/lib/junit*.jar/exclude /excludes _Mang Lau Tim Davies [EMAIL PROTECTED] 02/17/2006 06:07 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: WAR plugin in M2: excludes not all files I believe that there is a bug which means that multiple excludes will not work but a single one will. Im afraid I cant remember where I read about this as it was a while ago that I came across it. Martin Goldhahn wrote: Hi! I'm using Maven 2.0.1 I have the following snippet in my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration excludesWEB-INF/lib/geronimo-spec*.jar, WEB-INF/lib/junit*.jar/excludes /configuration /plugin This doesn't seem to work, according to the doc it should. How do I tell the plug-in the exclude both my JUnit files and the Geronimo-spec files. I tried regexps, and the warSourceExcludes tag instead of the excludes tag. The result is the same. Is this a bug or am I doing something wrong? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
[M2] Adding jars to classpath in war manifest
Hi, I've seen people ask this or a similar question before but I don't think it has ever been answered. If it has then can some kind soul point me in the right direction? Here's the situation: I have an EAR and a WAR inside the EAR. The EAR also contains JARs. So here's a directory structure: projectEAR |--- moduleA.jar |--- moduleB.jar |--- JSPs.war |--- WEB-INF |--- lib |--- moduleC.jar |--- moduleD.jar Now, let's say that moduleB and moduleC depends on moduleA. Thus, moduleA has to be in the EAR so that both moduleB and C can find it without duplicating moduleA in the WAR. So now, in my pom file for the WAR, the dependencies contain moduleC and moduleD but since moduleC depends on moduleA, moduleA automatically gets included in the WAR. This duplication is something I don't want. I add an exclusion to exclude moduleA but now it doesn't show up in the manifest classpath. Since we can't use custom manifest files with the maven-war-plugin, I need to update the manifest manually after building. So I want to get away from manually updating, I want to know if there's a way to add classpath entries to the manifest without including the actual jar since the jar is already located in the EAR. Is there a way to do this? I've tried different scope settings for the dependencies but they don't seem to work. Is there something wrong with my structure? All of my problems could be solved if the war plugin supports custom manifest files like the jar plugin does. _Mang Lau
[M2] maven-war-plugin custom manifest entries possible?
Hi everyone, I hope this question hasn't been answered yet because I couldn't find it anywhere. I know that the maven-jar-plugin allows you to specify the path to a custom manifest file to include in the jar. This doesn't seem to work with the war plugin however. I'm getting this: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.0-beta-2 Cause: Cannot find setter nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestFile' So my question is if there's a way around this or is it just not possible to include a custom manifest file with the war plugin? Thanks. _Mang Lau
Re: Newbie question
I have something like this project |-module1 |-module2 |-module3 If you have something like this, have you defined a parent POM in your project directory? If you have, then you can compile module 2 by running mvn compile in your module2 directory. Please refer to this thread: http://www.nabble.com/-m2-parent-pom-t1021082.html for instructions on how to set up a parent/child hierarchy. _Mang Lau Eugeny N Dzhurinsky [EMAIL PROTECTED] 02/13/2006 03:07 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Newbie question On Sun, Feb 12, 2006 at 04:32:15PM -0500, Alexandre Poitras wrote: For instance 'mvn compile' will compile all the child modules while taking care of their interdependencies. I don't need to build entire project, i just want to build module2 :( How could I specify dependency of the module at the same hierarchy level? -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to exclude the pom.xml and pom.properties from the jar
Hi, This addMavenDescriptorfalse/addMavenDescriptor line seems to work with the maven-ear-plugin. It doesn't work for the maven-war-plugin nor the maven-jar-plugin though. Why is this? Does the ear plugin use a different archiver or something? Thanks. _Mang Lau Venkat Muthusamy [EMAIL PROTECTED] 01/31/2006 01:20 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: How to exclude the pom.xml and pom.properties from the jar Hi Allan, Thank you. It looks like the plugin version 2.0.1 is not available in maven repository ibiblio.org. i will wait. thanks Venkat M On 1/30/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi Venkat, Please refer to this link http://jira.codehaus.org/browse/MNG-1598 -allan Venkat Muthusamy wrote: Hi, When I build the jar file using maven, my jar includes the pom.xml and pom.properties by default. I like to know the reason what is the reason behind this and like to know incase if I want to override this what I need to do? Thanks in advance. Venkat M No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.25/246 - Release Date: 1/30/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Hi, Simply have something like this in your pom.xml: project dependencies dependency groupIdsomeGroupId/groupId artifactIdmoduleNameThisModuleIsDependentOn/artifactId version1.0.0/version /dependency /dependencies /project Hope that helps. _Mang Lau Eugeny N Dzhurinsky [EMAIL PROTECTED] 02/10/2006 11:03 AM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject Newbie question Hi there! Could somebody please point me how can i specify dependencies between modules in the project? modules are located on the same level. -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
In this case, you need to call a mvn install on the module that is being depended on so that the module is built to your local repository. Then, it should find the jar in your local repository and not on the web. _Mang Lau Eugeny N Dzhurinsky [EMAIL PROTECTED] 02/10/2006 11:38 AM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject Re: Newbie question On Fri, Feb 10, 2006 at 11:06:48AM -0500, Mang Jun Lau wrote: Hi, Simply have something like this in your pom.xml: project dependencies dependency groupIdsomeGroupId/groupId artifactIdmoduleNameThisModuleIsDependentOn/artifactId version1.0.0/version /dependency /dependencies /project it tries to download the JAR file from WEB... -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] parent pom
Thanks for that sample. It helps out a lot. I was wondering why we have to depend on maven-model? What is that for? Thanks. _Mang Maria Odea Ching [EMAIL PROTECTED] 01/30/2006 10:17 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; parent groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - 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: Using Maven 2 from Eclipse/RAD 6.0
I've tried installing this plugin into RAD 6 but it doesn't work. I right click on my project and try select Enable under the Maven2 group and it does nothing. Installing this plugin into RAD seems different from installing it into Eclipse. I installed this plugin using the Find and Install... option and not through the IBM Product Updater. I've chosen D:\Program Files\IBM\Rational\SDP\6.0\sdpisv\eclipse as the install directory as suggested from a forum post on IBM developerworks (I can't find that post now). Anyhow, has anyone gotten this plugin to work in RAD? Thanks a lot. _Mang Jason van Zyl [EMAIL PROTECTED] 01/25/2006 05:20 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Using Maven 2 from Eclipse/RAD 6.0 Dixit, Sandeep (ProSource Solutions) wrote: Can I use Maven 2 with Eclipse / Rational Application Developer 6.0? You mean from inside Eclipse? http://maven.apache.org/eclipse-plugin.html Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Using Maven 2 from Eclipse/RAD 6.0
This is not looking good. I just found this: http://jira.codehaus.org/browse/MNGECLIPSE-22 Looks like the priority was lowered for Eclipse 3.0 support. Has anyone been able to find workarounds? Seems like a pretty big roadblock though. Not being able to have tight integration with RAD could mean that we can't use Maven at all. _Mang Yann Andenmatten [EMAIL PROTECTED] 02/06/2006 11:08 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Re: Using Maven 2 from Eclipse/RAD 6.0 Hi Mang, I tried last week without success. My guess is that the plugin is written for Eclipse 3.1 and RAD6 is based on Eclipse 3.0. On the other hand, I didn't give a try on Eclipse directly. Any other experiences ? Yann _ Yann Andenmatten Mang Jun Lau [EMAIL PROTECTED] 06.02.2006 16:57 Veuillez répondre à Maven Users List users@maven.apache.org A Maven Users List users@maven.apache.org cc Objet Re: Using Maven 2 from Eclipse/RAD 6.0 I've tried installing this plugin into RAD 6 but it doesn't work. I right click on my project and try select Enable under the Maven2 group and it does nothing. Installing this plugin into RAD seems different from installing it into Eclipse. I installed this plugin using the Find and Install... option and not through the IBM Product Updater. I've chosen D:\Program Files\IBM\Rational\SDP\6.0\sdpisv\eclipse as the install directory as suggested from a forum post on IBM developerworks (I can't find that post now). Anyhow, has anyone gotten this plugin to work in RAD? Thanks a lot. _Mang Jason van Zyl [EMAIL PROTECTED] 01/25/2006 05:20 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Using Maven 2 from Eclipse/RAD 6.0 Dixit, Sandeep (ProSource Solutions) wrote: Can I use Maven 2 with Eclipse / Rational Application Developer 6.0? You mean from inside Eclipse? http://maven.apache.org/eclipse-plugin.html Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Cannot find maven-war-plugin
Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang
Re: [m2] Cannot find maven-war-plugin
I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
Thanks so much. It worked out :) _Mang Brett Porter [EMAIL PROTECTED] 01/31/2006 12:25 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin You can use -U to force an update. On 2/1/06, Mang Jun Lau [EMAIL PROTECTED] wrote: I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create a dummy POM
You can compile with the -o flag to make it not look at the online repositories for the jars. This would get rid of the warning. Ian Shafer [EMAIL PROTECTED] 01/27/2006 02:18 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject How to create a dummy POM Hello, I have a number of third party proprietary jars that I have added into a maven 2 repository. I get warnings every time I compile saying things like: [WARNING] Unable to get resource from repository central (http:// repo1.maven.org/maven2) Downloading: http://www.ibiblio.org/maven2/cybersource/security/2.0.0/ security-2.0.0.pom I would like to create a dummy pom to make this message go away. What is the bare minimum that I need to have in the dummy POM? Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2.0.2] Recursive checkout from CVS possible?
Hi, I have an application that is divided into many different projects. Is there a way to checkout multiple modules from CVS from one parent pom.xml? I know that you can't have multiple connection tags in one pom. Say I have a parent pom and a child pom and both have a connection URL defined. If I invoke mvn scm:checkout from the parent directory, Maven only checks out the module specified in the parent pom. Is it possible to also have Maven checkout the module from the child pom as well or do I need to invoke the same command a second time from the child directory? I ask this because in Eclipse, you can check out an entire solution based on a project set file (psf). I was wondering if similar behaviour is possible with Maven. Thanks. _Mang
[M2.0.2] Recursive checkout from CVS possible?
Hi, I have an application that is divided into many different projects. Is there a way to checkout multiple modules from CVS from one parent pom.xml? I know that you can't have multiple connection tags in one pom. Say I have a parent pom and a child pom and both have a connection URL defined. If I invoke mvn scm:checkout from the parent directory, Maven only checks out the module specified in the parent pom. Is it possible to also have Maven checkout the module from the child pom as well or do I need to invoke the same command a second time from the child directory? I ask this because in Eclipse, you can check out an entire solution based on a project set file (psf). I was wondering if similar behaviour is possible with Maven. Thanks. _Mang