Re: help needed: problems with eclipse, m2e and wst
You're talking about missing dependencies to libraries, not Maven modules, it that correct? Did you try going to Project Properties Deployment Assembly ? Is Maven Dependencies shown? If not, click on Add Java Build Path Entries Maven Dependencies Finish Then, to be safe, remove the project from Tomcat in the Servers view, click Publish, and add the project to the Tomcat instance in the Servers view. HTH, Daniel Serodio Jörg Hohwiller wrote: Hi there, I have problems running/debugging a WAR module out of a maven based multi-module project in Eclipse using WST and Tomcat. The problem is that the classpath is wrong. When I build the WAR and manually deploy to a local tomcat webapps directory all works fine. However in Eclipse I get these ClassNotFoundExceptions. When I expand the JEE sub-modules of the WAR module in servers view, I can see that there are modules missing. If I select the WAR module in Projects view and check Properties Java Build Path Libraries Maven Dependencies everything is there... Maven Update Project... does not help either. Nor removing the WAR module from Tomcat and adding once again. Nor cleaning Tomcat. This lead me to the config file .settings/org.eclipse.wst.common.component When I manually patched this file by adding the missing modules and refreshed the project the problem goes away. Searching the web I found this one: https://issues.sonatype.org/browse/MECLIPSEWTP-146 However this is fixed already in 0.14.0 and I am running m2e 1.1.0.20120130-216 with m2e wtp in 0.14.0.20110928-2045 Anyhow the entries with the JAR including Version still can be found in my org.eclipse.wst.common.component Mybe the fix did not make it into 0.14.0 ? Any ideas but going back to mvn eclipse:eclipse ? I always avoided m2e before and now just started loving it until I ran into these problems... Regards Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven - offer anything for runtime?
For webapps, Maven is completely out of the picture at runtime. If you're running a (console) app from within the project folder - i.e. you have the pom.xml - you may use the Exec Maven Plugin: http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html But in any case, you shouldn't have two different versions of a library (like log4j). I you really, really need two different versions of a library, the Shade plugin may help, as its able to rename a package so you can refer to these different versions separately. HTH, Daniel Serodio J.V. wrote: I understand how Maven resolves dependencies (and transitive dependencies) at compile time, but does it bring anything to the table at run time? For example, if I have in my application dependency list two versions of log4J (let's say version 8 and version 15), will I deploy both jars/version along with my app on say a tomcat server inside the war? At runtime which one does it choose? If I am executing the code that depends on version 8, how would the correct jar be in the classpath at that point and later log4J version 15 be in my classpath when code that has that dependency executes? At runtime, Maven is out of the picture correct? This is a missing piece for me. thanks J.V. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:prepare and :perform on separate computers
For the record, I ended recreating mvn release:perform with a shell script that accepts commandline parameters instead of the release.properties that Maven looks for. Regards, Daniel Serodio Daniel Serodio wrote: We have a Jenkins instance that I'd like to use to make releases, but because of our company's security policy, it can't access GitHub (our main git repo). We also have a git.intranet repo that pulls every commit from GitHub via a post-receive hook, and Jenkins pulls from git.intranet. What I'd like to do it run release:prepare from my computer (which can access GitHub normally), and release:perform from Jenkins. Is this feasible? Would you suggest a different setup? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Shouldn't release:prepare check for distributionManagement
release:perform will fail if distributionManagement is not set. Shouldn't release:prepare check for this field and fail it it's not set? Regards, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
release:prepare and :perform on separate computers
We have a Jenkins instance that I'd like to use to make releases, but because of our company's security policy, it can't access GitHub (our main git repo). We also have a git.intranet repo that pulls every commit from GitHub via a post-receive hook, and Jenkins pulls from git.intranet. What I'd like to do it run release:prepare from my computer (which can access GitHub normally), and release:perform from Jenkins. Is this feasible? Would you suggest a different setup? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Use mvnsh with already installed Maven - how?
Lewis, Eric wrote: Hi I'm looking into mvnsh right now, after having installed Maven 3.0.3 Is there a way to let mvnsh use the installed Maven instead of its own bundled version 3.0.2? Did you try replacing the maven-* JARs in mvnsh's lib directory? Regards, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Should I use classifiers to differentiate between devel and production builds?
Ansgar Konermann wrote: Am 25.07.2011 22:13, schrieb Daniel Serodio (lists): Do you think using a classifier to differentiate artifacts built for development and production is hacky, is is this an appropriate solution? Use the same *artifacts* for all stages and allow for *configuring* the relevant properties of your application at runtime/startup time, as much as possible. A common mechanism to configure things at runtime is using JNDI parameters. I'mconsidering changing our build process. Setting up the DB using JNDI is easy enough, but how do you suggest we deal with different logging configurations, which differ not only on some values, but structure (ie log4j Loggers and Appenders with different classes, file paths and severity thresholds) ? Regards, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Should I use classifiers to differentiate between devel and production builds?
We have two sets of (database and logging) settings, for development and productions builds. We're using dev and prod profiles to choose the appropriate settings for each environment. Do you think using a classifier to differentiate artifacts built for development and production is hacky, is is this an appropriate solution? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to stop embedded Tomcat server?
Que memória, heim? Sim, era eu mesmo! :) I didn't know about this plugin, thanks for the pointer. []'s Daniel Serodio Aldrin Leal wrote: Você era o Daniel Serodio da Altconn? btw, tenta isso: https://github.com/t7mp/t7mp -- -- Aldrin Leal,ald...@leal.eng.br / http://www.leal.eng.br/mnemetica/ On Tue, Jun 21, 2011 at 4:23 PM, Daniel Serodio (lists) daniel.lis...@xxx.com.br wrote: I'm using the maven-tomcat-plugin to run an embedded, forked Tomcat server which is then used by the maven-failsafe-plugin to run tests on. I'd like to stop this embedded Tomcat after the tests finish, but the tomcat:stop goal needs the Tomcat Manager application, which is not included in the embedded Tomcat. How can I stop this embedded Tomcat server from within Maven? Thanks in advance, Daniel Serodio --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to stop embedded Tomcat server?
I'm using the maven-tomcat-plugin to run an embedded, forked Tomcat server which is then used by the maven-failsafe-plugin to run tests on. I'd like to stop this embedded Tomcat after the tests finish, but the tomcat:stop goal needs the Tomcat Manager application, which is not included in the embedded Tomcat. How can I stop this embedded Tomcat server from within Maven? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Why isn't Maven using the (site) plugin version I told it?
When I run mvn site, I get a AbstractMethodError [...] SiteRendererSink.unknown error. As reported in SUREFIRE-714, maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told Maven to use these versions of the plugins, but it's still using maven-site-plugin 2.0-beta-7 I'm using Maven 2.2.1 BTW. Why isn't Maven using the plugin versions I told it to use? Thanks in advance, Daniel Serodio 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 groupIdcom.example/groupId artifactIdbusca-web/artifactId version1.0.0-SNAPSHOT/version packagingwar/packaging nameBusca/name descriptionBusca - Frontent Web/description properties project.build.sourceEncodingISO8859-1/project.build.sourceEncoding project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding /properties build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId /plugin /plugins /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.3/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId version2.8/version configuration outputEncodingUTF-8/outputEncoding /configuration /plugin /plugins /reporting dependencies dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.6.1/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.6.1/version /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.6/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.6/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version scopeprovided/scope /dependency /dependencies /project - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why isn't Maven using the (site) plugin version I told it?
That was it. Thanks a lot. Is there somewhere in the documentation I could've found this information? Benson Margulies wrote: The site plugin does not go intoreporting/ . Put that into pluginManagementplugins//pluginManagement On Tue, Jun 7, 2011 at 5:29 PM, Daniel Serodio (lists) daniel.lis...@xxx.com.br wrote: When I run mvn site, I get a AbstractMethodError [...] SiteRendererSink.unknown error. As reported in SUREFIRE-714, maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told Maven to use these versions of the plugins, but it's still using maven-site-plugin 2.0-beta-7 I'm using Maven 2.2.1 BTW. Why isn't Maven using the plugin versions I told it to use? Thanks in advance, Daniel Serodio 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 groupIdcom.example/groupId artifactIdbusca-web/artifactId version1.0.0-SNAPSHOT/version packagingwar/packaging nameBusca/name descriptionBusca - Frontent Web/description properties project.build.sourceEncodingISO8859-1/project.build.sourceEncoding project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding /properties build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId /plugin /plugins /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.3/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId version2.8/version configuration outputEncodingUTF-8/outputEncoding /configuration /plugin /plugins /reporting dependencies dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.6.1/version /dependency dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.6.1/version /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.6/version /dependency dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.6/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.8.1/version scopetest/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version scopeprovided/scope /dependency /dependencies /project - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SV: Eclipse knows resources dir?
Hermod Opstvedt wrote: Hi No problem, you need to go into settings/build/Sourcepath path and then add src/main/resources as a new source folder. Remember to set target as the default output folder Actually, the default output folder should be target/classes/ HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2, Eclipse WTP
[EMAIL PROTECTED] wrote: Hi There is a typo here: the exact syntax is: mvn -Dwtpversion=1.0 eclipse:eclipse (You can also specify 1.5 and 0.7 for wtpversion) I tried using 1.5 but it gave me an error Unsupported WTP version: 1.5. This plugin currently supports only the following versions: 1.0 R7 none. Daniel Serodio -Original Message- From: Alexandre Touret [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 10:30 AM To: Maven Users List Subject: Re: Maven 2, Eclipse WTP Hello, I have already tried this. Regards, Alexandre [EMAIL PROTECTED] wrote: Hi Try: mvn -DwtpVersion=1.0 eclipse:eclipse Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2] subversion revision in MANIFEST file
I'm using the assembly plugin to generate a jar with dependencies, so the MANIFEST.MF is static (not generated dinamically); how can I add the scm.revision to such a jar? Thanks in advance, Daniel Serodio Bernd Bohmann wrote: Hello Alex, you can get the svn revision with plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId executions execution phasevalidate/phase idgetting-scm.revision/id goals goalupdate/goal /goals /execution /executions /plugin this stores the svn revision in the property scm.revision. http://maven.apache.org/scm/plugins/update-mojo.html You can use this for example in the jar plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version configuration archive manifestEntries Revision${scm.revision}/Revision /manifestEntries /archive /configuration /plugin Regards Bernd Alex Hollerith wrote: hi, we are using subversion as scm and are in the middle of moving from ant 1.6 to maven2. right now i am stuck with the following issue. i would like to get information about the subversion copy that was used to check-out the src directory and the repository revision of the src directory into the MANIFEST files. (something like: branches/1_2;r56725) i tried to find something in the avilable documentation without success. maybe somebody can point me into the right direction? thanks alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2] subversion revision in MANIFEST file
pjungwir wrote: Daniel Serodio-2 wrote: I'm using the assembly plugin to generate a jar with dependencies, so the MANIFEST.MF is static (not generated dinamically); how can I add the scm.revision to such a jar? When you say static, do you mean that you have a MANIFEST.MF sitting on your filesystem, and you're telling the assembly plugin to pick it up? If so, then you could filter this file as a resource to get the svn info into it. Or do you just mean that the assembly plugin is creating the MANIFEST.MF for you? In that case, you can still customize the manifest. You do this in the assembly plugin's configuration section (in the pom, not the assembly.xml file). It looks just like the jar configuration: Actually, I meant that I have a MANIFEST.MF sitting in my filesystem, because I wasn't able to specify manifestEntries for the assembly plugin. What is the difference between manifest and manifestEntries ? configuration descriptorRefsdescriptorIdjar-with-dependencies/descriptorId/descriptorRefs archive manifestEntries Revision${scm.revision}/Revision /manifestEntries /archive /configuration At least, that's how it should work. But as far as I can tell, the assembly plugin only honors manifest, not manifestEntries. I think this must be a bug. Does anyone else know if this is right? Paul There seems to be a bug alright. MASSEMBLY-121 maybe? Thanks, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2/eclipse/wtp configuration + tapestry
Borut Bolčina wrote: I have, but I also had such error message. I don't know the solution from the top of my head, but it works now, as I am doing the development with WTP1.5, Tapestry4, libcopy and Subversion. What was it??? Outdated Subclipse plugin. HTH, Daniel Serodio 2006/9/5, Sebastien Pennec [EMAIL PROTECTED]: Hello, Let me bring this topic up, since it appears that it doesn't do the trick if the project is managed with a VC like svn. By following the instructions, the sync by libcopy doesn't work, because of an error message saying: Errors during build. Errors running builder LibCopy builder on project PROJECT_NAME. Project 'PROJECT_NAME' is mapped to repository type 'org.tigris.subversion.subclipse.core.svnnature' which does not support linked resources. Has anybody been able to link such a project with a subversion repository? Thanks for your help -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading Maven 2 documentation
Wayne Fay wrote: I believe the entire Maven website is generated by Maven itself. You'll need to checkout the maven-site component from SVN and then build it with mvn site. Can't we include this documentation in the download? TIA, Daniel Serodio Wayne On 10/18/06, Ian Springer [EMAIL PROTECTED] wrote: There are a number of good tools for downloading entire web sites, or subtrees of web sites, for offline browsing. I recommend HTTrack (http://www.httrack.com/), or if you prefer a command line tool, you can use wget or curl. | -Original Message- | From: Carlos A. Carnero Delgado [mailto:[EMAIL PROTECTED] | Sent: Wednesday, October 18, 2006 3:01 PM | To: Maven Users List | Subject: Downloading Maven 2 documentation | | Hello, | | I'm a new Maven user, and I'd like to have a local copy of the | documentation | (http://maven.apache.org/guides/getting-started/index.html | and all the documents linked from | http://maven.apache.org/guides/index.html) for offline browsing while | commuting. | | What's the best way? I could not find a download link. | | Best regards, | Carlos. | -- | nick grah windows just crashed again, unstable crap. | yukito Windows isn't unstable, it's just spontaneous. | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse target directory
Douglas Ferguson wrote: Awesome! Thanks. The only problem is that this breaks when the target folder is re-created (for example, if you run mvn clean, because this information (is derived) is stored in the folder's metadata. I've requested the ``ability to remember that a resource is derived when said resource is deleted´´ (https://bugs.eclipse.org/bugs/show_bug.cgi?id=154089), but it seems like it's not going to happen (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=150578). HTH, Daniel Serodio Where does it store this value? I can't find it in any of the config files for the project. Could this be added to eclipse:eclipse? -Original Message- From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 8:48 AM To: Maven Users List Subject: Re: Eclipse target directory In eclipse right-click on the target folder and select 'Properties...' Then, in the Info page, check the 'derived' check box. This should exlude it from searches and resource lookups. Probably error reporting too but I haven't verified that Donnchadh On 9/5/06, Douglas Ferguson [EMAIL PROTECTED] wrote: When using eclipse on war projects, the target directory will start to collect copies of jsp files, from war:war commands, etc. Is there a way to have eclipse ignore the files when searching and reporting errors? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How should I organize mixed-language projects?
I have a project which is part Java, and part PHP. How should I organize this project if I want to use Maven and stay as close as possible to the Standard Directory Layout? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] eclipse plugin - too many jar showing in package explorer
Man-Chi Leung wrote: hi, after I did mvn eclipse:eclipse and got the project imported to eclipse I found a very long list of jar showing in eclipse's Package Explorer. however, not all the jars that i am actually programming for , i believe , they are simply the dependencies of dependencies. in eclipse plugin, how can I only include those dependencies that are stated in pom.xml and add them in .classpath eclipse conf file ? pls help ~manchi Is the problem is the clutter in the Package Explorer, try adding a *.jar filter to this view. HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cywin shell script error
Todd Nine wrote: I'm receiving the following error when I try to run maven 2.0.4 from cygwin $ mvn : command not found.0.4/bin/mvn: line 17: : command not found.0.4/bin/mvn: line 20: 'cygdrive/c/maven-2.0.4/bin/mvn: line 40: syntax error near unexpected token `in 'cygdrive/c/maven-2.0.4/bin/mvn: line 40: `case `uname` in I thought that my #!/bin/sh might not exist, but it does. Also if I run echo `uname`, I receive the output CYGWIN_NT-5.1. Does anyone have any input on this? Todd I've been using Maven on Cygwin with no problems for a while. The errors in line 17 and 20 (blank lines) seem to indicate a line ending problem, are you sure your mvn script is using Unix delimiters? HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Equivalent of One-Jar as Maven2 plugin
Andrés wrote: El 16/10/2006 18:08, Sebastien Arbogast escribió: I was trying to deliver my Maven2-built desktop application as a single executable JAR with all dependencies included (using Assembly plugin) when I realized that the default classloading mechanism doesn't allow it. I had a look à One-Jar (http://one-jar.sourceforge.net/) and I was told that UberJar did that for Maven1. Is there an equivalent for this kind of use with Maven2? I also looked for a one-jar plug-in, and I didn't find it. Instead, I used assembly plug-in with these files: snip/ Nice recipe, how do we go about adding it to the official assembly plugin documentation? Nonetheless, it would be great if a one-jar plug-in exist! I was told that writing Maven2 plugins is easy, maybe someone will step up to the job? :-) TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Releasing Software
Douglas Ferguson wrote: I have been playing with the release plugin and it is really cool. However, I am curious about how folks are applying process on top of the tool. If you are developing a snapshot and you are ready to release the new version, then you run the release plugin. What happens when qa finds a defect and now you have to re-release the same version? If you do any changes, then you're not re-releasing the same version, but a different one. Here are some thoughts: snip/ 3) Just release the software and if it needs to be re-released, then release it again or release it with a new build number? I'd take this one. HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Better to use variables or hard-coded paths?
Scott Ryan wrote: We actually use the same application context but use the test resources construct to pull it out of the main build path for use during testing. You just need to include the xml files from the main tree in your resources during testing and it works very nice. We use a different hibernate configuration since in one case we are using a JNDI lookup in production and during testing just a direct jdbc connection. The xml is configured to build the session factory from the data source we define in the properties file. If you like I can send you the maven 1 or 2 config we are using. Can you please send me the m2 config? I don't understand what you mean by pull it out of the main build path. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 10:58 AM To: Maven Users List Subject: Re: Better to use variables or hard-coded paths? On 8/23/06, Daniel Serodio [EMAIL PROTECTED] wrote: Matt Raible wrote: I'm customizing my pom.xml so XML files are available on my classpath (at /WEB-INF/*.xml) when testing. My question is (hopefully) simple. Is it better to use: snip/ I think using Hard-coded directories is more Maven-like, while using variables is more Ant-like. I'd stick with the hard-coded directories, or better yet, use Maven's stardard directory layout http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html I am using this layout, I just need to include src/main/webapp in my classpath so I can use /WEB-INF/applicationContext.xml in my tests - w/o having duplicate context files. Thanks for your advice Daniel. Matt HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building MyEclipse project with Maven2
Konstantin Bartchenkov wrote: Hi Guys, I'm having a problem building myEclipse project using m2. The main issue is that it's not in default maven file structure. It looks like this myProject src com/company... all java sources go here WebRoot *.jsp all jsp files are here WEB-INF Xmls Classes compiled classes should be placed here POM.xml The first task is to get maven to compile it and place classes to WebRoot/WEB-INF/classes It could be done by saying following build sourceDirectorysrc/sourceDirectory outputDirectoryWebRoot/WEB-INF/classes/outputDirectory /build But how can I manage to create war file when it doesn't really know where my jsps/xmls are? Basically after the compilation all it has to do is to grab WebRoot and just work with it... I couldn't really find a solution, any help would be appreciated. Add the following to your plugins section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directoryWebRoot/directory /resource /webResources /configuration /plugin HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Better to use variables or hard-coded paths?
Matt Raible wrote: I'm customizing my pom.xml so XML files are available on my classpath (at /WEB-INF/*.xml) when testing. My question is (hopefully) simple. Is it better to use: snip/ I think using Hard-coded directories is more Maven-like, while using variables is more Ant-like. I'd stick with the hard-coded directories, or better yet, use Maven's stardard directory layout http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Preference page critical problem for Maven 2 Plugin
Jim Bethancourt wrote: Unfortunately the preferences page won't even come up, so I can't even specify the Local Repository Folder location. Just to make sure: I mean the Eclipse preferences, not the Project's preferences, does Eclipse preferences not come up either? HTH, Daniel Serodio Thanks, Jim On 8/21/06, Daniel Serodio [EMAIL PROTECTED] wrote: Jim Bethancourt wrote: Hi Ryan, Thanks for the response. Unfortuately that didn't work. When I right click the project and go to Maven2 - Enable I get the message The chosen operation is currently not available. I'll keep trying various things if anyone else has any ideas, please post back. :-) I've seen this error message when the Local Repository Folder under Window Preferences Maven2 was blank. HTH, Daniel Serodio Thanks! Jim On 8/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I believe this problem will occur if you do not have any projects in your workspace. Try adding an initial project and try again. I had this same problem last week with a new installation and I think this was the solution. Jim Bethancourt [EMAIL PROTECTED] 08/18/2006 10:34 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Eclipse Preference page critical problem for Maven 2 Plugin Hi all, I've previously used the 0.0.9 Maven 2 Eclipse Integration Plugin and it worked just fine. I just started a new job and I'm now running into trouble with the Preferences page. I'm getting the error Unable to create the selected preference page Reason: Plug-in org.maven.ide.eclipse was unable to load class org.maven.ide.eclipse.preferences.Maven2PreferencePage Is anyone else experiencing similar problems? I'm using Windows XP, Eclipse 3.2, and Java 1.5_06. I noticed that this bug has been posted in JIRA for the bug -- http://jira.codehaus.org/browse/MNGECLIPSE-149 , but has anyone found a workaround? The plugin is great and I miss it already! Thanks Eugene. :-) Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to organize settings for development and production?
I need to use one set of settings (log4j, database configuration, etc) for development and testing and a different configuration for production deployment. I've read the Introduction to build profiles document, and I understand that I can use target environment-type profiles to trigger different build results. My question is: How should I organize my (application, not Maven) settings for different target environments? ie, I have a log4j.xml file for development/testing, and another one for production deployment. Where should I put each of them? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Configuring the scp executable
[EMAIL PROTECTED] wrote: I apologize in advance for any animosity this post may generate. This is a subject that has come up time and time again on a number of mailing lists, and frankly it's getting annoying. First, Maven is not a Unix tool, not did it grow up in the Unix World. It is a Java tool, and has been since day one (as is its predecessor, Ant). This means that it will be run on a number of different operating systems, not just UNIX. What does this mean for processing files and paths? 1) Files can have spaces in the filename 2) The file seperation character depends on the underlying operating system 3) The path seperation character depends on the underlying operating system I would consider any code which fails to take into consideration these simple truths as defective. Forcing Windows users to mangle their filenames in order to satisfy UNIX-centric assumptions is not the answer. Fixing the code is. While I do come from a Unix World (Linux, actually), and really dislike Windows, I whole-heartedly agree with you. Even more when you consider that Unix filenames _can_ contain spaces, and that mangling the filenames didn't work. Thank you, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory DTS Distributed Server Services JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Andrew Kreps [EMAIL PROTECTED] il.comTo Maven Users List 08/14/2006 06:43 users@maven.apache.org PM cc Subject Please respond to Re: [m2] Configuring the scp Maven Usersexecutable List [EMAIL PROTECTED] he.org On 8/14/06, Daniel Serodio [EMAIL PROTECTED] wrote: Exit code 1 - 'c:\Program' is not recognized as a command, application or batch file. Have you tried the age old trick of changing long filenames to their short counterparts? C:\Program Files is usually also accessable by using C:\progra~1, which avoids the space character problem you appear to be having. Seeing as maven grew up in the Unix world, you may also want to try escaping the spaces (\ ) or using forward slashes instead of back slashes for the directories. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Debugging ScpExternalWagon: fireSessionDebug ?
I'm trying to understand what's happening inside ScpExternalWagon. Looking at its source code, I noticed a bunch of calls to fireSessionDebug (eg, ``fireSessionDebug( *Executing command: * + cl.toString() ); ´´), but even when I run Maven with -X, no Executing command is output. How can I see the output of fireSessionDebug? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Configuring the scp executable
[EMAIL PROTECTED] wrote: I apologize in advance for any animosity this post may generate. This is a subject that has come up time and time again on a number of mailing lists, and frankly it's getting annoying. First, Maven is not a Unix tool, not did it grow up in the Unix World. It is a Java tool, and has been since day one (as is its predecessor, Ant). This means that it will be run on a number of different operating systems, not just UNIX. What does this mean for processing files and paths? 1) Files can have spaces in the filename 2) The file seperation character depends on the underlying operating system 3) The path seperation character depends on the underlying operating system I would consider any code which fails to take into consideration these simple truths as defective. Forcing Windows users to mangle their filenames in order to satisfy UNIX-centric assumptions is not the answer. Fixing the code is. While I do come from a Unix World (Linux, actually), and really dislike Windows, I whole-heartedly agree with you. Even more when you consider that Unix filenames _can_ contain spaces, and that mangling the filenames didn't work. Thank you, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory DTS Distributed Server Services JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Andrew Kreps [EMAIL PROTECTED] il.comTo Maven Users List 08/14/2006 06:43 users@maven.apache.org PM cc Subject Please respond to Re: [m2] Configuring the scp Maven Usersexecutable List [EMAIL PROTECTED] he.org On 8/14/06, Daniel Serodio [EMAIL PROTECTED] wrote: Exit code 1 - 'c:\Program' is not recognized as a command, application or batch file. Have you tried the age old trick of changing long filenames to their short counterparts? C:\Program Files is usually also accessable by using C:\progra~1, which avoids the space character problem you appear to be having. Seeing as maven grew up in the Unix world, you may also want to try escaping the spaces (\ ) or using forward slashes instead of back slashes for the directories. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Configuring the scp executable
I found documentation on how to configure the scp executable at http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html, but it doesn't work for Maven2: [INFO] Error deploying artifact: While configuring wagon for 'vulcano': Unable to apply wagon configuration. Cannot find setter nor field in org.apache.maven.wagon.providers.ssh.ScpWagon for 'sshExecutable' How do I configure the scp executable for Maven 2? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Index and delete failure (Maven2 and eclipse plugin)
[EMAIL PROTECTED] wrote: Hi, i am using maven 2 as the eclipse plugin (v0.0.9) and I am able to download stuff from the repositories uding that eclipse plugin. But after a while the plugin or maven2 (don't know which) complains by use of error message in the eclipse console. Here is an example: Unable to index commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar; Cannot delete C:\Documents and Settings\SEMARWAH\workspace\.metadata\.plugins\org.maven.ide.eclipse\index\local\_29.cfs any thoughts http://jira.codehaus.org/browse/MNGECLIPSE-138 As a workaround, closing Eclipse and re-opening it should fix the problem (temporarily at least). HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I tell Maven to use my internal repository first?
I have setup an internal repository in our intranet, and added it to the project's POM, but Maven still tries repo1.maven.org before trying our internal repo. How can I tell it to try my internal repository first? It's the only one listed in the project's POM. Maven is 2.0.4 TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn cygwin
Douglas Ferguson wrote: Anybody using mvn cygwin? I just ran into this problem, where path-to-project = my local path. It seems like it is a cygwin path vs. windows path issue. svn: '/cygdrive/c/path-to-project/c:/path-to-project ' is not a working copy Anybody got a good work around? I'm using mvn in Cygwin with no problems, but I'm not using Subversion integration. Your error message is shown by Subversion. Regards, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Selenium?
Christophe DENEUX wrote: Hi , A snapshot repository is available at: http://maven.openqa.org/ Have you try jWebUnit (http://jwebunit.sourceforge.net/index.html) instead of Selenium for your functional tests? With jWebUnit, you can run your tests with different engines as htmlunit or Selenium (the Selenium engine is available trough SVN). You will use the htmlunit engine to execute your tests in a background mode (continuous integration) and the selenium engine in a visual mode. It's been a while since I looked at jWebUnit, and I'm currently using Selenium; what is the advantage of using jWebUnit as you describe instead of using Selenium directly? Do you have an URL with more info on the subject? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse 3.2/callisto Dynamic Content web project question
William Kinney wrote: Hello, I apologize if this is not the correct mailing list for this question. I tried the codehaus mailing list for the plugin, but it seems that list is dead. I did reply to you on the codehaus list, didn't you get my reply there? Is there any word on the integration of the plugin with callisto / 3.2's Dynamic Content Web project? I was hoping to use maven 2 along with it, but it seems the web path Library won't include the maven 2 Library (and therefore include all the jars in WEB-INF/lib) Or does someone perhaps have a workaround for this? I would like to use callistos autodeploy feature for local testing/debugging, rather than doing cargo:deploy cargo:undeploy every time... See http://jira.codehaus.org/browse/MNGECLIPSE-105 HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse 3.2/callisto Dynamic Content web project question
William Kinney wrote: Hello, I apologize if this is not the correct mailing list for this question. I tried the codehaus mailing list for the plugin, but it seems that list is dead. I did reply to you on the codehaus list, didn't you get my reply there? Is there any word on the integration of the plugin with callisto / 3.2's Dynamic Content Web project? I was hoping to use maven 2 along with it, but it seems the web path Library won't include the maven 2 Library (and therefore include all the jars in WEB-INF/lib) Or does someone perhaps have a workaround for this? I would like to use callistos autodeploy feature for local testing/debugging, rather than doing cargo:deploy cargo:undeploy every time... See http://jira.codehaus.org/browse/MNGECLIPSE-105 HTH, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED Re: [M2] Difference between 'mvn test' and 'mvn install'
Jakub Pawlowicz wrote: Hi Jörg, I used the -X switch and I found that 'mvn test' uses module's target/classes directory where 'mvn install' uses module's jar. And then I discovered, that Spring does not handle wildcard patterns (eg applicationContext*.xml) when looking for contexts packaged in other jars. So I've changed wildcard pattern to the real names and now everything works perfectly well. Thanks for sharing the information, but shouldn't Spring handle wildcard patterns when looking for contexts packaged in other jars? Did you post about this in the Spring forums? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Extending maven.xml
Hi! Is there some way to extend maven.xml, or only project.xml? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]