Re: does maven support multiple parents (multiple inheritance) ?
You do know that aggregation does not have to map with inheritance? You can have an aggregator pom that is not the parent of the projects it aggregates. -Stephen On 6 April 2010 18:45, Marshall Schor m...@schor.com wrote: On 4/3/2010 4:58 PM, Wayne Fay wrote: I see this doc [1] says there is support in maven internally for multiple parents, including both parents Any particular reason you can't use multiple levels of parents... pom (grandparent) + pom (parent) ++ pom (child) Here's my use case. We have many (sub)projects, and several aggregations of these into release packages. The subprojects share various common attributes, which I'd like to factor into parents, but along different dimensions. For instance, some projects require a special extra build packaging step. Other projects (may overlap with above set) do their documentation using docbook - and I want to factor out for those common settings of the docbkx maven plugin. Because these sets of things are not in a hierarchical relationship, the multiple-parent, or mixin style seems appropriate. I would add to those projects using the extra packaging step, a mixin for that, and for those using docbook style documentation, a mixin for that. -Marshall Wayne - 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: Project build error: Unknown packaging: eclipse-plugin
On Wed, Apr 7, 2010 at 2:00 PM, Vijayan, Rohit rohit.vija...@sap.com wrote: Hi All I have installed maven plugin into eclipse and i have created a simple project(skip archetype selection) option and provided a GroupId, ArtifactId, version but gave the Packaging as `eclipse plug-in instead of jar. The project is getting generated but with the following error Project build error: Unknown packaging: eclipse-plugin in the pom.xml file. How can this error be resolved? Your packaging value should probably be jar. See http://maven.apache.org/guides/getting-started/index.html This sounds like you are trying to use m2eclipse? If so, try their mailing list. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Continuum 1.3.6 (GA) Released
The Apache Continuum team is pleased to announce the release of Apache Continuum 1.3.6 (GA). Apache Continuum is an enterprise-ready continuous integration server with features such as automated builds, release management, role-based security, and integration with popular build tools and source control management systems. The latest release can be downloaded from: http://continuum.apache.org/download.html For a complete list of changes, please see the release notes: http://continuum.apache.org/docs/1.3.6/release-notes.html If you have any questions, please consult: - the web site: http://continuum.apache.org - the continuum-user mailing list: http://continuum.apache.org/mail-lists.html Enjoy! - Apache Continuum Team
Testing in complex project setup with maven and m2eclipse
Hello, I work on a complex project, having many modules. I added one module M inside the existing hierarchy A.B. This M makes use of different other modules at specific places in the project A hierarchy. (usually guided by eclipse editor assistance that certain classes are to be imported, or compiler errors that informed me to add a dependency in the M's pom.xml). B's pom.xml is updated as having a new module M. From the command line: cd A mvn -X -s maven_settings.xml reactor:make -Dmake.goals=test -Dmake.folders=B/M maven.log - It runs also tests from other modules. I feel it should only run tests for module M? Running this command a second time, it re-compiles everything again. Why does the make system not see the sources have not been changed? Or is my command line wrong? mvn -X -s maven_settings.xml reactor:make-dependents -Dmake.goals=test -Dmake.folders=B/M maven.log - Starts compiling and then fails on certain modules due to snapshots not being found. But these failing modules are available as source, can be correctly compiled as classes, are even used this way with the command above. Then why does it need these jars if it fails retrieving these jars. Is there a command to make and store these jars in our own repository/portal? Actually, there are no modules depending on M, why is the compilation failing? From within eclipse GUI: I don't seem to be use m2eclipse in a working way. It is also not clear when maven is taken over command from eclipse (e.g. doing a 'build ...'). I feel it does not seem to behave consistent. It usually fails when trying to get snapshots from the portal. I like to understand these jar/snapshot problem above because I see this error related to the jars/snapshot also within the eclipse GUI environment under some circumstances: Right click on the module M in the project explorer. In this menu I see Debug as ... Intuitively I guess that does all actions for a debug build. I can now choose JUnit Test - long time nothing happens Then it reports Class not found com.orig.B.M.TestFileImport When I choose Maven test. - I get the snapshot error. Is there a way around this? Sorry for the long email and questions ... Kind regards, francis - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Jar Signing eats up build time
We have a legacy project that is pretty heinous in terms of build time and this is severely affecting delivery times. There are many pieces of refactoring to break this down into a more manageable build, that need to be done, but one quick win is to sort out the signing of dependencies and transient dependencies. There’s three modules where this occurs, and on a clean install it will sign spring, etc. once, then move onto the next webstart application and sign many of the same jars again. Ie. noddy-app-webstart signs all of spring, then shoddy-app-webstart signs all of spring again. This is also wasteful as the cert does not expire for several years. I can think of a few things to solve this but they greatly increase management of the build, for example, deploying the artifacts signed to a maven repo would be one approach and then only pulling in the classified version. However, this makes adding in new dependencies a pain and the build less portable. It will also take a lot of time upfront to sign and then deploy the classified versions (unless there’s a plug-in that can be run against the project to take the depedendencies, sign them and then deploy them classified). Using profiles to disable signing can also be done for development builds, but this makes the dev builds inconsistent to the live builds and there’s still the long time it takes to do a live build. Are there other solutions to this problem?
project.build.sourceEncoding not being recognized
I am trying to build a project that requires the cp1252 encoding to be used by the compiler. There are Spanish literals in the source code as quoted strings and I prefer to leave it that way rather than decipher the unicode every time I look at it. I wouldn't mind using the unicode if I could write the equivalent as a comment but the compiler complains about encodings in comments as well. I have always built this project using m2eclipse, successfully, but now am trying to build it from the command line. I find that in spite of the presence of this in the pom.xml properties project.build.sourceEncodingcp1252/project.build.sourceEncoding /properties the compiler plugin complains about unmappable character for encoding UTF8. This is true even though the maven output includes [INFO] Using 'cp1252' encoding to copy filtered resources. Why doesn't the compiler plugin respect my expressed wishes? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: project.build.sourceEncoding not being recognized
Steve Cohen wrote: I am trying to build a project that requires the cp1252 encoding to be used by the compiler. There are Spanish literals in the source code as quoted strings and I prefer to leave it that way rather than decipher the unicode every time I look at it. I wouldn't mind using the unicode if I could write the equivalent as a comment but the compiler complains about encodings in comments as well. I have always built this project using m2eclipse, successfully, but now am trying to build it from the command line. I find that in spite of the presence of this in the pom.xml properties project.build.sourceEncodingcp1252/project.build.sourceEncoding /properties the compiler plugin complains about unmappable character for encoding UTF8. This is true even though the maven output includes [INFO] Using 'cp1252' encoding to copy filtered resources. Why doesn't the compiler plugin respect my expressed wishes? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org I can workaround this by adding encodingcp1252/encoding to the compiler plugin configuration but this appears to contradict http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html which says The -encoding argument for the Java compiler. Default value is: ${project.build.sourceEncoding}. BTW, using compiler plugin version 2.0.2 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Documentation help
I've looked at a couple of the docs at the website, Getting started in 5 minutes and Getting started in 10 minutes, but I'd like to find something a bit more comprehensive. For example, I was trying to build and test a simple project with only two files, MathFunctions.java and MathFunctionsTests.java. The compile ran just fine, but the unit tests were not run. I eventually figured out that my unit tests source needed to match the name of the code source with the word Test appended to the name, so after renaming my unit test file to MathFunctionsTest.java, it ran just fine. I'm sure something simple like this is documented somewhere, I just don't know where. Mind you, I'm still fairly new to Java programming and environments such as Maven, so I think I'm going to need some hand holding, so if such a naming convention is considered standard, I was unaware. Thanks. A person who won't read has no advantage over one who can't read. --Sam Clemens Lorenzo Thurman lore...@thethurmans.com
Maven and Hudson
I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com
RE: Maven and Hudson
They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464
Re: Documentation help
On 07 Apr 2010, at 6:56 PM, Lorenzo Thurman wrote: I've looked at a couple of the docs at the website, Getting started in 5 minutes and Getting started in 10 minutes, but I'd like to find something a bit more comprehensive. For example, I was trying to build and test a simple project with only two files, MathFunctions.java and MathFunctionsTests.java. The compile ran just fine, but the unit tests were not run. I eventually figured out that my unit tests source needed to match the name of the code source with the word Test appended to the name, so after renaming my unit test file to MathFunctionsTest.java, it ran just fine. I'm sure something simple like this is documented somewhere, I just don't know where. Mind you, I'm still fairly new to Java programming and environments such as Maven, so I think I'm going to need some hand holding, so if such a naming convention is considered standard, I was unaware. The general pattern by which maven works is that anything that maven can do, is done with a plugin, so the question you typically find yourself asking is which plugin does X for me?. In the case of the compile, the maven-compile-plugin does the job for you out the box with default values, which is why it just worked. In the case of running tests, the maven-surefire-plugin does the job for you, and it by default will run any test that matches a standard naming convention. You needed to figure out what that naming convention before it would work. Once you know the name of the plugin that does what you need, the next step is to find the documentation for it, and usually a google for maven foo plugin will do the trick. What you're encouraged to do is stick with default conventional behaviour wherever you can. In other words, if maven wants you to name a file a certain way, or look for a file in a certain directory, stick to the defaults. If you do, most stuff should just work without any modification. Regards, Graham -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Hudson
+1 First do a web search for what these things are before you decide what to compare. -Dave On Wed, Apr 7, 2010 at 11:06 AM, Adam Purkiss ajpurk...@hotmail.com wrote: They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Hudson
They aren't really comparable. Hudson is a Continuous Integration tool. Maven is a build tool. Hudson can use maven for its builds, but they aren't competing products. If you're looking for a build tool its usually between Maven and Ant. If you're looking for a continuous integration server, there are several, but I typically hear people going between hudson and cruisecontrol. Hope that helps. -Tim On 4/7/2010 12:59 PM, Lorenzo Thurman wrote: I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Documentation help
On Apr 7, 2010, at 12:07 PM, Graham Leggett wrote: What you're encouraged to do is stick with default conventional behaviour wherever you can. In other words, if maven wants you to name a file a certain way, or look for a file in a certain directory, stick to the defaults. If you do, most stuff should just work without any modification. Thanks A person who won't read has no advantage over one who can't read. --Sam Clemens Lorenzo Thurman lore...@thethurmans.com
Re: Documentation help
I've looked at a couple of the docs at the website, Getting started in 5 minutes and Getting started in 10 minutes, but I'd like to find something a bit more comprehensive. http://maven.apache.org/articles.html Read the following: [older] Better Builds with Maven (Free PDF Download) and [newer] Maven: The Definitive Guide (Readable HTML and Free PDF Download) Also there is a large list of article links at the bottom of this page, read some of them (newest first). Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Documentation help
Thanks On Apr 7, 2010, at 1:04 PM, Wayne Fay wrote: I've looked at a couple of the docs at the website, Getting started in 5 minutes and Getting started in 10 minutes, but I'd like to find something a bit more comprehensive. http://maven.apache.org/articles.html Read the following: [older] Better Builds with Maven (Free PDF Download) and [newer] Maven: The Definitive Guide (Readable HTML and Free PDF Download) Also there is a large list of article links at the bottom of this page, read some of them (newest first). Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Life isn't fair. It's just fairer than death, that's all. --William Goldman The Pricess Bride Lorenzo Thurman lore...@thethurmans.com
Re: Maven and Hudson
I'm beginning to see this now. I was asked to look at a number of products that we may use on a large ATG/jsp project we'll be working on. Hudson, CruiseControl, Maven and Ant. I don't any of us knows much about them, but I have to sort out the differences in each. I think I'm leaning towards a pairing of Hudson/Maven pairing, but it's still early. Thx for the reply. On Apr 7, 2010, at 12:06 PM, Adam Purkiss wrote: They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464 Beware of all enterprises that require new clothes. -- Henry David Thoreau Lorenzo Thurman lore...@thethurmans.com
Re: Maven and Hudson
The tool stack we use is SVN, Maven, TeamCity Artifactory. -Dave On Wed, Apr 7, 2010 at 12:17 PM, Lorenzo Thurman lore...@thethurmans.com wrote: I'm beginning to see this now. I was asked to look at a number of products that we may use on a large ATG/jsp project we'll be working on. Hudson, CruiseControl, Maven and Ant. I don't any of us knows much about them, but I have to sort out the differences in each. I think I'm leaning towards a pairing of Hudson/Maven pairing, but it's still early. Thx for the reply. On Apr 7, 2010, at 12:06 PM, Adam Purkiss wrote: They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464 Beware of all enterprises that require new clothes. -- Henry David Thoreau Lorenzo Thurman lore...@thethurmans.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Hudson
If you're using TeamCity, do you also use IDEA for your IDE? -K, who rather prefers Nexus to Artifactory, having used both. Artifactory is pretty good, though. On Apr 7, 2010, at 1:20 PM, David Hoffer wrote: The tool stack we use is SVN, Maven, TeamCity Artifactory. -Dave On Wed, Apr 7, 2010 at 12:17 PM, Lorenzo Thurman lore...@thethurmans.com wrote: I'm beginning to see this now. I was asked to look at a number of products that we may use on a large ATG/jsp project we'll be working on. Hudson, CruiseControl, Maven and Ant. I don't any of us knows much about them, but I have to sort out the differences in each. I think I'm leaning towards a pairing of Hudson/Maven pairing, but it's still early. Thx for the reply. On Apr 7, 2010, at 12:06 PM, Adam Purkiss wrote: They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464 Beware of all enterprises that require new clothes. -- Henry David Thoreau Lorenzo Thurman lore...@thethurmans.com - 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 and Hudson
Ok, thanks. Two more things to look at now, TeamCity and Artifactory. On Apr 7, 2010, at 1:20 PM, David Hoffer wrote: The tool stack we use is SVN, Maven, TeamCity Artifactory. There are 10 types of people in this world: those who understand binary, those who don't --Unknown Lorenzo Thurman lore...@thethurmans.com
Re: Maven and Hudson
Personally yes I use IDEA but others use Eclipse, etc. (IDEA has very good maven integration.) -Dave On Wed, Apr 7, 2010 at 12:23 PM, Kathryn Huxtable kath...@kathrynhuxtable.org wrote: If you're using TeamCity, do you also use IDEA for your IDE? -K, who rather prefers Nexus to Artifactory, having used both. Artifactory is pretty good, though. On Apr 7, 2010, at 1:20 PM, David Hoffer wrote: The tool stack we use is SVN, Maven, TeamCity Artifactory. -Dave On Wed, Apr 7, 2010 at 12:17 PM, Lorenzo Thurman lore...@thethurmans.com wrote: I'm beginning to see this now. I was asked to look at a number of products that we may use on a large ATG/jsp project we'll be working on. Hudson, CruiseControl, Maven and Ant. I don't any of us knows much about them, but I have to sort out the differences in each. I think I'm leaning towards a pairing of Hudson/Maven pairing, but it's still early. Thx for the reply. On Apr 7, 2010, at 12:06 PM, Adam Purkiss wrote: They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464 Beware of all enterprises that require new clothes. -- Henry David Thoreau Lorenzo Thurman lore...@thethurmans.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Hudson
Yes, it does have good maven integration. I'm so used to Eclipse, though. I was just wondering, since TeamCity is a JetBrains product like IDEA. -K On Apr 7, 2010, at 1:27 PM, David Hoffer wrote: Personally yes I use IDEA but others use Eclipse, etc. (IDEA has very good maven integration.) -Dave On Wed, Apr 7, 2010 at 12:23 PM, Kathryn Huxtable kath...@kathrynhuxtable.org wrote: If you're using TeamCity, do you also use IDEA for your IDE? -K, who rather prefers Nexus to Artifactory, having used both. Artifactory is pretty good, though. On Apr 7, 2010, at 1:20 PM, David Hoffer wrote: The tool stack we use is SVN, Maven, TeamCity Artifactory. -Dave On Wed, Apr 7, 2010 at 12:17 PM, Lorenzo Thurman lore...@thethurmans.com wrote: I'm beginning to see this now. I was asked to look at a number of products that we may use on a large ATG/jsp project we'll be working on. Hudson, CruiseControl, Maven and Ant. I don't any of us knows much about them, but I have to sort out the differences in each. I think I'm leaning towards a pairing of Hudson/Maven pairing, but it's still early. Thx for the reply. On Apr 7, 2010, at 12:06 PM, Adam Purkiss wrote: They are two different products that work well together rather then competing products. Why are you testing them? Hudson put simply is a CI server that you provide Maven/Ant/Shell scripts etc to and it does builds and you can generate reports about, Maven is a project comprehension tool that can be used as a way to build software, manage dependancies and also run other tools on code. My descriptions are basic at best but I think you are trying to compare two things that I would be using together and not instead of so maybe a better understanding of what your objective is would help answer the question. From: lore...@thethurmans.com Subject: Maven and Hudson Date: Wed, 7 Apr 2010 11:59:05 -0500 To: users@maven.apache.org I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com _ Got a phone? Get Hotmail Messenger for mobile! http://go.microsoft.com/?linkid=9724464 Beware of all enterprises that require new clothes. -- Henry David Thoreau Lorenzo Thurman lore...@thethurmans.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Clearcase with maven release plugin
Hi Anders, Anders Hammar wrote: However, it does only work on the 'main' branch. What do you mean by it only works on the 'main' branch? What are the limitations? Anders Hammar wrote: Some quick things: * Create $user.home/.scm/clearcase-settings.xml containing clearcase-settings useVWSParameterfalse/useVWSParameter /clearcase-settings I've created the clearcase-settings.xml file in %HOME% on my Windows machine. And because I found a post somewhere, where they've put it in a .scm directory, so I copied it there. But I keep getting the following error: [INFO] Unable to checkout from SCM Provider message: The cleartool command failed. Command output: cleartool: Error: Unrecognized command option: -vws. I have the feeling that my settings file is ignored Do you have an idea how I should proceed? Thanks, Jeroen. -- View this message in context: http://old.nabble.com/Clearcase-with-maven-release-plugin-tp24059139p28169971.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Documentation help
On 07/04/2010 12:56 PM, Lorenzo Thurman wrote: I've looked at a couple of the docs at the website, Getting started in 5 minutes and Getting started in 10 minutes, but I'd like to find something a bit more comprehensive. For example, I was trying to build and test a simple project with only two files, MathFunctions.java and MathFunctionsTests.java. The compile ran just fine, but the unit tests were not run. I eventually figured out that my unit tests source needed to match the name of the code source with the word Test appended to the name, so after renaming my unit test file to MathFunctionsTest.java, it ran just fine. I'm sure something simple like this is documented somewhere, I just don't know where. Mind you, I'm still fairly new to Java programming and environments such as Maven, so I think I'm going to need some hand holding, so if such a naming convention is considered standard, I was unaware. Thanks. A person who won't read has no advantage over one who can't read. --Sam Clemens Lorenzo Thurman lore...@thethurmans.com This gets back to my point about Best Practices. These questions/problems are not about Maven but you can't use Maven in a vacuum. Ron - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Setting up Distribution Management inside of the pom.xml file
When you do a mvn deploy, Maven looks for a distributionManagement section of your POM. I would like to be able to move this distributionManagement section out of each project's POM. My developers shouldn't have to worry about it. I'd like to be able to put this in my build user's settings.xml file or in the settings.xml file inside the Maven home directory of my build system. That way, when we change the location of our release repository, I don't have to change all the various project POM files. Is this even possible? What about doing this in the company wide Super POM? I keep hearing about instituting a company wide Super POM, but can't find where this is suppose to go. My understanding is that the Super POM is inside the Maven JAR. Am I suppose to unjar the Maven JAR, modify the Super POM and then rejar the Maven JAR file? Or, is the company'e Super POM suppose to go somewhere else? -- David Weintraub qazw...@gmail.com
packing in a jar
Hi, I need put some files in different packages and this files are .xml and .wsdl, I can't put it in the resources directory I need put a wsdl file in the same package as your relative class. Is it possible? In eclipse it is a default behavior in export- jar, packing all .class and xml, or wsdl files. Anyone can help me? Regards, Cleiton Garcia. IT Department Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010 WEG Equipamentos Elétricos S.A. www.weg.nethttp://www.weg.net/
Re: Setting up Distribution Management inside of the pom.xml file
We have put this and a few other mostly static things in our top level company wide pom which gets deployed to corporate maven server (Artifactory) so all can reference it. -Dave On Wed, Apr 7, 2010 at 11:49 AM, David Weintraub qazw...@gmail.com wrote: When you do a mvn deploy, Maven looks for a distributionManagement section of your POM. I would like to be able to move this distributionManagement section out of each project's POM. My developers shouldn't have to worry about it. I'd like to be able to put this in my build user's settings.xml file or in the settings.xml file inside the Maven home directory of my build system. That way, when we change the location of our release repository, I don't have to change all the various project POM files. Is this even possible? What about doing this in the company wide Super POM? I keep hearing about instituting a company wide Super POM, but can't find where this is suppose to go. My understanding is that the Super POM is inside the Maven JAR. Am I suppose to unjar the Maven JAR, modify the Super POM and then rejar the Maven JAR file? Or, is the company'e Super POM suppose to go somewhere else? -- David Weintraub qazw...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: packing in a jar
Perhaps I don't understand. You can put whatever folder structure you want in resources, it will get included in jar just as you have it defined. -Dave On Wed, Apr 7, 2010 at 2:03 PM, Cleiton Dos Santos Garcia cleit...@weg.net wrote: Hi, I need put some files in different packages and this files are .xml and .wsdl, I can't put it in the resources directory I need put a wsdl file in the same package as your relative class. Is it possible? In eclipse it is a default behavior in export- jar, packing all .class and xml, or wsdl files. Anyone can help me? Regards, Cleiton Garcia. IT Department Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010 WEG Equipamentos Elétricos S.A. www.weg.nethttp://www.weg.net/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: packing in a jar
I need put some files in different packages and this files are .xml and .wsdl, I can't put it in the resources directory I need put a wsdl file in the same package as your relative class. Is it possible? The correct approach is to build the same directory structure under resources, and put those files there. They will be packaged into the same place in the resulting jar alongside the class files. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: project.build.sourceEncoding not being recognized
Le mercredi 07 avril 2010, Steve Cohen a écrit : I can workaround this by adding encodingcp1252/encoding to the compiler plugin configuration but this appears to contradict http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html which says The -encoding argument for the Java compiler. Default value is: ${project.build.sourceEncoding}. BTW, using compiler plugin version 2.0.2 default value was added in version 2.1 of this plugin see http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding Regards, Hervé - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Setting up Distribution Management inside of the pom.xml file
When you hear about a company super pom, some is mixing their references. Yes, the super pom is part of Maven and you wouldn't need to change it. What you want is a parent pom. We have a company parent pom and a program parent that refers to the company parent pom. Then each project refers to the parent pom for its program. When you put in a setting just decide 'do you want it to affect all company projects, only one program or only this project', that tells you where to put it. Just install each as a pom type artifact (and deploy if you have a repository manager). !-- Frank Gorham-Engard → It is a misnomer to label any practice 'a best practice'; a practice is only best in the specific context in which it performs well. -Original Message- From: David Weintraub [mailto:qazw...@gmail.com] Sent: Wednesday, April 07, 2010 1:49 PM To: Maven Users List Subject: Setting up Distribution Management inside of the pom.xml file When you do a mvn deploy, Maven looks for a distributionManagement section of your POM. I would like to be able to move this distributionManagement section out of each project's POM. My developers shouldn't have to worry about it. I'd like to be able to put this in my build user's settings.xml file or in the settings.xml file inside the Maven home directory of my build system. That way, when we change the location of our release repository, I don't have to change all the various project POM files. Is this even possible? What about doing this in the company wide Super POM? I keep hearing about instituting a company wide Super POM, but can't find where this is suppose to go. My understanding is that the Super POM is inside the Maven JAR. Am I suppose to unjar the Maven JAR, modify the Super POM and then rejar the Maven JAR file? Or, is the company'e Super POM suppose to go somewhere else? -- David Weintraub qazw...@gmail.com
Re: Maven and Hudson
maven is a build tool, you would compare it with ANT, make, cmake, etc Hudson is a continuous integration server, you would compare it with cron, cruisecontrol, bamboo, etc ci servers such as Hudson use build tools such as maven to build your source code if you are trying to compare Hudson to maven you will have a hard time as it is like comparing apples and wheelbarrows Sent from my [rhymes with tryPod] ;-) On 7 Apr 2010, at 17:59, Lorenzo Thurman lore...@thethurmans.com wrote: I hope this question is suitable for the list, if not apologies. Can someone give me a comparison between Maven and Hudson? I'm in the process of testing both of these, but would like some opinions on the strengths/weaknesses of the product. Thanks My Break-Dancing days are over, but there's always the Funky Chicken --The Full Monty Lorenzo Thurman lore...@thethurmans.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven and Hudson
Yes, I see that now. I have a simple project running under Hudson using Maven to do the builds. Pretty sweet actually! --My break-dancing days are nover, but there's always the funky chicken The Full Monty On Apr 7, 2010, at 5:25 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: if you are trying to compare Hudson to maven you will have a hard time as it is like comparing apples and wheelbarrows - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
README.txt bundled with maven doesn't mention M2_HOME
Team, The download page for Maven mentions the M2_HOME variable and setting it up. http://maven.apache.org/download.html However, the README.txt that ships with Maven binaries does not mention it in the setup instructions. A student today was puzzled at the disparity. Should we add it to the README.txt with the binary distributions for the sake of the users? http://svn.apache.org/viewvc/maven/maven-2/branches/maven-2.2.x/apache-maven/README.txt?view=markup and http://svn.apache.org/viewvc/maven/maven-3/trunk/apache-maven/README.txt?view=markup -Matthew - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: README.txt bundled with maven doesn't mention M2_HOME
Sounds like making them consistent makes sense. Note that the env var is not required - it is mostly for people that wish to run multiple versions of Maven. - Brett On 08/04/2010, at 1:03 PM, Matthew McCullough wrote: Team, The download page for Maven mentions the M2_HOME variable and setting it up. http://maven.apache.org/download.html However, the README.txt that ships with Maven binaries does not mention it in the setup instructions. A student today was puzzled at the disparity. Should we add it to the README.txt with the binary distributions for the sake of the users? http://svn.apache.org/viewvc/maven/maven-2/branches/maven-2.2.x/apache-maven/README.txt?view=markup and http://svn.apache.org/viewvc/maven/maven-3/trunk/apache-maven/README.txt?view=markup -Matthew - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org