Re: Getting the classpath right in a java plugin
Oops, my mistake! Don't you just love Outlook Express :) Viewing the message in text mode doesn't show the link. I wonder what else I've missed :) - Original Message - From: "TimHedger" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 28, 2006 3:11 PM Subject: Re: Getting the classpath right in a java plugin Try clicking on the underlined word thread in my post ! :) -- View this message in context: http://www.nabble.com/Getting-the-classpath-right-in-a-java-plugin-tf1861200.html#a5085121 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting the classpath right in a java plugin
And now you're guilty of not providing a link or other ref for that thread ;-) - Original Message - From: "TimHedger" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 28, 2006 2:59 PM Subject: Re: Getting the classpath right in a java plugin I'm guilty of not having searched thoroughly enough before this post - apologies. For others who find this post in search of answers themselves, there is another thread in this forum that deals with exactly this issue. -- View this message in context: http://www.nabble.com/Getting-the-classpath-right-in-a-java-plugin-tf1861200.html#a5084924 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with installed jaxrpc.jar
You need to include -DgeneratePom=true when using install:install-file Because you missed it out (easy to do), there is no local repo pom file so mvn goes off to central and finds the pom, which then has the relocation info in it for the jar. If you re-run the install with the extra param it should be happy. - Original Message - From: "Jeff Mutonho" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Wednesday, June 28, 2006 1:42 PM Subject: Problem with installed jaxrpc.jar I installed the Sun jaxrpc.jar as follows : mvn install:install-file -Dfile=D:\M2-WORK\eportal-lib\jaxrpc.jar -DgroupId=javax.xml -DartifactId=jaxrpc -Dversion=1.1 -Dpackaging=jar The included it at a dependency in one of my poms as shown below : javax.xml jaxrpc 1.1 But when I build I get the following error message : [INFO] Using default encoding to copy filtered resources. [WARNING] While downloading javax.xml:jaxrpc:1.1 This artifact has been relocated to javax.xml:jaxrpc-api:1.1. Downloading: http://repo1.maven.org/maven2/javax/xml/jaxrpc-api/1.1/jaxrpc-api-1 .1.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) javax.xml:jaxrpc-api:jar:1.1 Try downloading the file manually from: http://java.sun.com/webservices/downloads/webservicespack.html Then, install it using the command: mvn install:install-file -DgroupId=javax.xml -DartifactId=jaxrpc-api \ -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) za.co.mycompany.eportal:eportal-webservices:jar:1.0 2) javax.xml:jaxrpc-api:jar:1.1 -- 1 required artifact is missing. for artifact: za.co.mycompany.eportal:eportal-webservices:jar:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) -- Why isn't M2 just getting the one i manually installed? Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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: Sun jars revisited
Specification-Version. Definitely not the VM as a different VM could build the same jar. But for those artifacts that don't have any info in the manifest I tend to make it up/take an educated guess :) - Original Message - From: "Jeff Mutonho" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Wednesday, June 28, 2006 1:18 PM Subject: Sun jars revisited What version numbers do you guys use when installing these in your repository?Is this an individual choice...like the wild west :) ?I'm looking at the manifest file for (eg ) jaxrpc.jar and it says : Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.3 Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) Name: javax/xml/rpc Specification-Title: JAX-RPC Specification-Version: 1.1 Specification-Vendor: JCP Do you use the vm release version number 1.4.2_... or the Specifiacation-Version 1.1? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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: Proximity forum
Works ok here :) Non-authoritative answer: Name:abstracthorizon.org Address: 207.210.85.147 Aliases: www.abstracthorizon.org - Original Message - From: "John Allen" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 28, 2006 10:55 AM Subject: Re: Proximity forum DNS not resolving; is it just me? Tamás Cservenák gmail.com> writes: there is a forum set up for Proximity users/developers on www.abstracthorizon.org - 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: RE: [m204] Error with compiler plugin with new project...
>I removed what you said. I only found 1.5.0_07 and now I get this: > > ... >Caused by: java.io.IOException: CreateProcess: CMD.EXE /X /C javac -d Any problems running this from a Command Prompt? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jarring non class files
This is still pulling all xml under src onto the classpath: src **/*.xml - Original Message - From: "Jeff Mutonho" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, June 22, 2006 4:35 PM Subject: Re: jarring non class files On 6/22/06, Kieran Brady <[EMAIL PROTECTED]> wrote: A1) Because you are specifying your source directory as 'src'. The standard is src/main/java (inherited from the super pom). This would treat src/spring/context as source. A2) Not sure, probably a knock-on effect of the above If you are going to deviate from the standard directory structure it is worth explicitly setting all the paths normally set in the super pom so you can achieve some clarity when looking through the pom and when trying to debug unexpected outcomes. Ok I changed my pom to say src/za and src/spring true as shown below src/za src/spring true **/*.xml src **/*.xml And the same is still happening? - 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: jarring non class files
A1) Because you are specifying your source directory as 'src'. The standard is src/main/java (inherited from the super pom). This would treat src/spring/context as source. A2) Not sure, probably a knock-on effect of the above If you are going to deviate from the standard directory structure it is worth explicitly setting all the paths normally set in the super pom so you can achieve some clarity when looking through the pom and when trying to debug unexpected outcomes. - Original Message - From: "Jeff Mutonho" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, June 22, 2006 4:10 PM Subject: Re: jarring non class files On 6/22/06, Kieran Brady <[EMAIL PROTECTED]> wrote: Specify them as resources: ... src/spring/context ... HTH :) Thanx.My build section in my pom reads : src (i.e I do not specify any section) .How ever when bundle this the resulting jar has the following structure spring/context/databaseContext.xml spring/context/ldapContext.xml com/blah blah blah databaseContext.xml ldapContext.xml Q1)Why is maven including these in jar even though I haven't specifiying them yet? Q2)The two xml files are NOT suppose to be in the root directory of the jar , but here they are being included twice(i.e both in the root directory of the jar as well as in spring/context) .How can I prevent this from happening? - 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: jarring non class files
Specify them as resources: ... src/spring/context ... HTH :) - Original Message - From: "Jeff Mutonho" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, June 22, 2006 3:34 PM Subject: jarring non class files Under my src directory I have 2 other folders .One contains other subfolders with my java code(src/java/com/blah blah blah) .The second subfolder (src/spring/context/blah blah blah...) contains some spring config files (xml) that I also wish to be bundled in the jar file( keeping the directory structure intact).How do I specify this in my pom? -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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: external jar dependency
This should be: mvn install:install-file -DgroupId=JTKSortSuite -DartifactId=JTKSortSuite -Dversion=4.0 -Dfile=C:\branches\testApp\lib\JTKSortSuite_400.jar -Dpackaging=jar -DgeneratePom=true but you should probably change your groupId/artifactId to something different (e.g. groupId=JTK artifactId=SortSuite) - Original Message - From: "Vinay Kumar" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Tuesday, June 20, 2006 11:17 AM Subject: Re: external jar dependency Hi Jo, when I am trying to install our jar by command : mvn install:install-JTKSortSuite_400.jar -DgroupId=JTKSortSuite -DartifactId=JTKSortSuite -Dversion=4.0 -Dfile=C:\branches\testApp\lib -Dpackaging=jar -DgeneratePom=true == It gives following error: [INFO] Searching repository for plugin with prefix: 'install'. [INFO] --- [ERROR] BUILD FAILURE [INFO] --- [INFO] Required goal not found: install:install-JTKSortSuite_400.jar my jar JTKSortSuite_400.jar is located at C:\branches\testApp\lib . Can u suggest where I am wrong. Thanks Vinay - Original Message From: Jo Vandermeeren <[EMAIL PROTECTED]> To: Maven Users List Sent: Tuesday, 20 June, 2006 2:43:31 PM Subject: Re: external jar dependency Hi Vinay, To install your own non-maven project or third party proprietary libraries, you might want to consider the install plugin. It will install the jar in your local maven repository and create a POM for it, so your projects can depend on them and won't try to download them from a public repository.. For each jar you want to depend on in maven projects, execute this snippet: mvn install:install-file -DgroupId= -DartifactId=<*your_artifact_name*> -Dversion= -Dfile=<*path_to_your_far*> -Dpackaging=jar -DgeneratePom=true Regards, Jo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: Error with maven-archetype-j2ee-simple
I think this is your problem: http://jira.codehaus.org/browse/ARCHETYPE-36 Seems it was fixed early this week so you may need to build it from source or wait for the next release. >Thanks Felipe. Unfortunately, -U does not help. I even wiped out the entire m2 >repository and tried from scratch. I still get the same two errors: > >[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in >any resource loader. >... >[ERROR] ResourceManager : unable to find resource >'archetype-resources/site/pom.xml' in any resource loader. > >Naresh > >-Original Message- >From: Felipe Gaúcho [mailto:[EMAIL PROTECTED] >Sent: Friday, June 16, 2006 11:47 AM >To: Maven Users List >Subject: Re: Error with maven-archetype-j2ee-simple > >I was having several problems with the maven until I started to run the >command with the -U flag.. it forced the maven to update its libraries and >the things started to happens. > >On 6/16/06, Naresh Bhatia <[EMAIL PROTECTED]> wrote: > >> I am running the following command to generate a simple J2EE app: >> >> >> >>mvn archetype:create -DgroupId=TestEarApp -DartifactId=TestEarApp >> -DarchetypeArtifactId=maven-archetype-j2ee-simple >> >> >> >> But I am getting the following error. Can someone give me a helping hand >> on this one? >> >> >> >> [INFO] Scanning for projects... >> >> [INFO] Searching repository for plugin with prefix: 'archetype'. >> >> [INFO] >> >> >> >> [INFO] Building Maven Default Project >> >> [INFO]task-segment: [archetype:create] (aggregator-style) >> >> [INFO] >> >> >> >> [INFO] Setting property: classpath.resource.loader.class => >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. >> >> [INFO] Setting property: resource.loader => 'classpath'. >> >> [INFO] ** >> >> [INFO] Starting Jakarta Velocity v1.4 >> >> [INFO] RuntimeInstance initializing. >> >> [INFO] Default Properties File: >> org\apache\velocity\runtime\defaults\velocity.properties >> >> [INFO] Default ResourceManager initializing. (class >> org.apache.velocity.runtime.resource.ResourceManagerImpl) >> >> [INFO] Resource Loader Instantiated: >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader >> >> [INFO] ClasspathResourceLoader : initialization starting. >> >> [INFO] ClasspathResourceLoader : initialization complete. >> >> [INFO] ResourceCache : initialized. (class >> org.apache.velocity.runtime.resource.ResourceCacheImpl) >> >> [INFO] Default ResourceManager initialization complete. >> >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Literal >> >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Macro >> >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Parse >> >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Include >> >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Foreach >> >> [INFO] Created: 20 parsers. >> >> [INFO] Velocimacro : initialization starting. >> >> [INFO] Velocimacro : adding VMs from VM library template : >> VM_global_library.vm >> >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' >> in any resource loader. >> >> [INFO] Velocimacro : error using VM library template >> VM_global_library.vm : >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find >> resource 'VM_global_library.vm' >> >> [INFO] Velocimacro : VM library template macro registration complete. >> >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in >> templates >> >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline >> may NOT replace previous VM definitions >> >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will >> be global in scope if allowed. >> >> [INFO] Velocimacro : messages on : VM system will output logging >> messages >> >> [INFO] Velocimacro : autoload off : VM system will not automatically >> reload global library macros >> >> [INFO] Velocimacro : initialization complete. >> >> [INFO] Velocity successfully started. >> >> [INFO] [archetype:create] >> >> [INFO] Defaulting package to group ID: TestEarApp >> >> [INFO] >> >> >> >> [INFO] Using following parameters for creating Archetype: >> maven-archetype-j2ee-simple:RELEASE >> >> [INFO] >> >> >> >> [INFO] Parameter: groupId, Value: TestEarApp >> >> [INFO] Parameter: outputDirectory, Value: >> D:\ProjectsTest\Maven2\TestEarApp >> >> [INFO] Parameter: packageName, Value: TestEarApp >> >> [INFO] Parameter: package, Value: TestEarApp >> >> [INFO] Parameter: version, Value: 1.0-SNAPSHOT >> >> [INFO] P
Re: integration builds and version numbers
Its 'release:prepare' and 'release:perform' This is the best guide I know of: http://apollo.ucalgary.ca/tlcprojectswiki/index.php/Public/Project_Versioning_-_Best_Practices - Original Message - From: "EJ Ciramella" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Wednesday, June 14, 2006 3:14 PM Subject: RE: integration builds and version numbers I tried both mvn release and mvn release:release - neither exists. What is the correct goal? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 9:51 AM To: Maven Users List Subject: RE: integration builds and version numbers Where is this documented? I'd like to read more about this. -Original Message- From: Roald Bankras [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 3:16 AM To: Maven Users List Subject: RE: integration builds and version numbers Updating the version numbers in the pom files can be done by calling the release goal. Roald Bankras Software Engineer JTeam b.v. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 11:30 PM To: Maven Users List Subject: RE: integration builds and version numbers Someone must be using CC + M2, no? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 8:01 AM To: Maven Users List Subject: integration builds and version numbers How are people updating their pom.xml files with version numbers from say cruisecontrol? We have two types of codelines (in perforce) here, project and release lines. Everything starts out life as a project then over time one (or more) projects can be integrated to a release line. I'm curious, we're forcefully editing (with the ant replace task) some templated version.html files to reflect what version was built. Do I need to be doing this to the pom.xml files also? When something is getting built from a project branch, the build number looks like this: X.. So: 8.P01.1 In the maven world, all the project branches would look like this: X.X-SNAPSHOT8.0-P01-SNAPSHOT And when that goes to release 8.0.X Where X is a build number. This has a problem though - I'll have to remember the dependency order to build and make sure that module "C" gets built before "B" which is built before "A" (or the replace at least happens in that order). So what are people doing for this? Manually updating before every build? I _really_ don't want to have to go back to that - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/361 - Release Date: 6/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 6/12/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practices for multi-flavour build?
Hi Theo, You're correct, that solution does require duplication but in our case its only a couple of POMs so is manageable for the time being. I believe that a profiles.xml may be the solution for multiple POMs but I haven't yet had chance to test it out. Kieran - Original Message - From: "Toto Laricot" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Tuesday, June 13, 2006 5:51 AM Subject: Re: Best practices for multi-flavour build? Hi all, I have tried Kieran's solution myself; it works fine as long as the profiles are defined in the same POM that contains the variables that need to be injected. In other words –still using Kieran's example- if you define: dev […] dev […] in a parent POM, and this filter in a child POM: src/main/profiles/${delivery.name}/general-filter.properties src/main/profiles/${delivery.name}/${environment.name}- filter.properties src/main/resources/${operatingsys.name}-filter.properties The properties won't be injected. So, if you have a hierarchy of POM's, you have to duplicate you profile definitions into every POM, which is a maintenance nightmare. I'd be curious to find out how people deal with this issue. Is the ant plugin the only solution? I sure hope not. Theo. On 6/12/06, badaud <[EMAIL PROTECTED]> wrote: I will try something like this, thanks. -- View this message in context: http://www.nabble.com/Best-practices-for-multi-flavour-build--t1741483.html#a4826563 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test reports
Hi Iulia, Checked it now and in the XML reports yes there is duplication (but not in the text versions), looks like a bug! Kieran - Original Message - From: "Iulia Andreescu" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Friday, June 09, 2006 12:41 PM Subject: Test reports Back with the test reports question. None of you ever had Maven run more than 1 test class? If you ran multiple test classes did the test reports look OK? Did the reports only display the methods of the current class? - 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 3rd party jar with surefire
Something I would try would be adding those as dependencies to the surefire plugin. HTH - Original Message - From: "Brown, Charles" <[EMAIL PROTECTED]> To: "Maven Users List" ; "Maven Users List" Sent: Thursday, June 08, 2006 3:09 PM Subject: RE: Using 3rd party jar with surefire Yes, but I also add the parasoft jtest and junit jars, and the junit-addons, as below; junit junit 3.8.1 test parasoft.com jtest 7.5.43 test parasoft.com junit 7.5.43 test junit-addons junit-addons 1.4 test -Original Message- From: Thorsten Heit [mailto:[EMAIL PROTECTED] Sent: Thu 6/8/2006 9:59 AM To: Maven Users List Subject: Re: Using 3rd party jar with surefire -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Charles, We use Parasoft JTest to generate JUnit based unit tests. Afterward, I am able to run them in eclipse using "Run As -> JUnit Test", and they work fine. So, I think I should be able to run them using surefire, as long as I have the parasoft jars on the classpath, but I get the errors below. Is there a reason this should not work, or is there something I can do to make it work? Do you have JUnit in your class path? In my pom.xml I have the following dependency for the unit tests: ... junit junit 3.8.1 test ... HTH Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (MingW32) iD8DBQFEiC1FQvObkgCcDe0RAsGaAKCziQzCqBu6IWvnyz3jqEwvKVQP/gCgvdiy rOmoQwzVLHzGECjvhqTHzjs= =VFe2 -END PGP SIGNATURE- - 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: Errors in adding cruisecontrol plugin
Hi Shinjan, I'm afraid I don't know about jcoverage, sorry.. Kierna - Original Message - From: "shinjan sen" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, June 08, 2006 2:27 PM Subject: Re: Errors in adding cruisecontrol plugin Hi, Thanks for the help. I have a similar situation with the jcoverage plugin also. I am trying to use org.apache.maven.plugins maven-jcoverage-plugin which leads to an exception. Can you kindly tell me whether this plugin has been discontinued for maven 2? Many Thanks Shinjan On 6/8/06, Kieran Brady <[EMAIL PROTECTED]> wrote: There is no CruiseControl plugin for Maven2 AFAIK, only for maven1. You can just point your CC config.xml at a pom.xml and it will build it: ... - Original Message - From: "shinjan sen" <[EMAIL PROTECTED]> To: Sent: Thursday, June 08, 2006 1:53 PM Subject: Errors in adding cruisecontrol plugin > Hi, > Can anyone kindly tell me how to integrate cruise control with maven2 ? > > I have added the following in the section under in > POM.xml > > > org.apache.maven.plugins > maven-cruisecontrol-plugin > > > It's throwing an exception telling that it can't find the plugin. > "The plugin 'org.apache.maven.plugins:maven-cruisecontrol-plugin' does not > exist ..." > > But if I check at > http://www.ibiblio.org/maven2/net/sourceforge/cruisecontrol/cruisecontrol/ > I > can see two versions of the plugin available. > > Kindly advise > > Many Thanks > > Shinjan > - 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: Errors in adding cruisecontrol plugin
There is no CruiseControl plugin for Maven2 AFAIK, only for maven1. You can just point your CC config.xml at a pom.xml and it will build it: ... - Original Message - From: "shinjan sen" <[EMAIL PROTECTED]> To: Sent: Thursday, June 08, 2006 1:53 PM Subject: Errors in adding cruisecontrol plugin Hi, Can anyone kindly tell me how to integrate cruise control with maven2 ? I have added the following in the section under in POM.xml org.apache.maven.plugins maven-cruisecontrol-plugin It's throwing an exception telling that it can't find the plugin. "The plugin 'org.apache.maven.plugins:maven-cruisecontrol-plugin' does not exist ..." But if I check at http://www.ibiblio.org/maven2/net/sourceforge/cruisecontrol/cruisecontrol/ I can see two versions of the plugin available. Kindly advise Many Thanks Shinjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practices for multi-flavour build?
Sure! The below is from one of our webapps. src/main/resources true src/main/resources/filtered src/main/profiles/${delivery.name}/resources ../${delivery.finalName} true src/main/webapp-filtered ../${delivery.finalName} src/main/webapp ../${delivery.finalName} src/main/profiles/${delivery.name}/webapp ${delivery.finalName} src/main/profiles/${delivery.name}/general-filter.properties src/main/profiles/${delivery.name}/${environment.name}-filter.properties src/main/resources/${operatingsys.name}-filter.properties demo delivery.name demo Demo demo windows operatingsys.name windows windows c:/app unix operatingsys.name unix unix /home/app dev environment.name dev dev test environment.name test test live environment.name live live windows dev demo - Original Message - From: "badaud" <[EMAIL PROTECTED]> To: Sent: Thursday, June 08, 2006 8:17 AM Subject: Re: Best practices for multi-flavour build? Using build profiles is what I intended to do. My main concern is: as Maven usually uses fixed directories for most of the tasks, how should I structure my project to easily maintain the different configuration files/class files? Coudl you provide some samples of your pom files? Thank you -- View this message in context: http://www.nabble.com/Best-practices-for-multi-flavour-build--t1741483.html#a4767318 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practices for multi-flavour build?
Fred, This kind of problem is generally solved using build profiles in Maven. The 'Better Builds with Maven' book covers this topic (free from http://www.mergere.com/ ). A good starting point is here: http://maven.apache.org/guides/introduction/introduction-to-profiles.html and here: http://docs.codehaus.org/display/MAVEN/Build+Profiles We use profiles to capture customisations and modifications to webapps in terms of branding and configuration for different customers and their environments. So we have profiles unix,windows which are mutually exclusive, profiles dev,test,live which are mutually exclusive and then custA,custB,custC profiles which are also mutually excluive. When we are ready to release we build against (for example) unix,live,custA profiles. HTH Kieran - Original Message - From: "badaud" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 06, 2006 1:34 PM Subject: Best practices for multi-flavour build? I have a project for multiple clients. Each client must receive a ready-to-deploy package of ear files. The jar and war contained in those ear files are usually just different by a few configuration files (but the structure and the changes in these files can be quite complex). Right now, we have a pesky ad hoc ant file, with ad hoc file extensions, copy operations, separate Svn branches, a nightmare to maintain (not to mention the long, tedious, manual and error prone build process). I had some enjoyable experiences in the past with Maven and I'd like to make the move for this project too. I'd also like to have all those config files maintained in the trunk tree. What would be the best way to : - store and maintain those config files? - easily generate one build for one client and another build for another client? Thanks for your advice Best regards, Fred -- View this message in context: http://www.nabble.com/Best-practices-for-multi-flavour-build--t1741483.html#a4732364 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Referencing Files from a Unit Test
I think this is what you're looking for: this.getClass().getClassLoader().getResourceAsStream(... http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114917325827653&w=2 - Original Message - From: "Lyndon Washington" <[EMAIL PROTECTED]> To: Sent: Monday, June 05, 2006 8:24 PM Subject: Referencing Files from a Unit Test Hi, I have a unit test that was setup in the old ANT build to load resources using a relative path. I have put the resource that is being retrieved in the projects 'test/resources/conf' folder. How would I reference the file, where previously I used 'conf/foo.xml'? I guess I was assuming that there would be a system propery that I could use. Another snippet of info is that this project is part of a large pom heirarchy, so the test could be run from the parent or from the actual project location. Thanks for any help someone can provide. Cheers, -Lyndon- -- - Lyndon Washington - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Single Eclipse project for muti-module
Apparently Eclipse 3.2 supports nested projects so it looks like we'll have to wait: http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114774821906161&w=2 - Original Message - From: "Veyret Stephane" <[EMAIL PROTECTED]> To: Sent: Monday, June 05, 2006 12:25 PM Subject: [m2] Single Eclipse project for muti-module Hi, That would be cool to have a setting that make the eclipse plugin make a single eclipse project that holds the modules of a Maven 2 multi-module project. That would make a better integration with Subversion plugins for Eclipse... What do you think of this ? Thank you for your answer. - 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] Profile activation with property non-existance
It is possible - th link below should help and its the ! operator which is important (is this documented anywhere???) : http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114834785006237&w=2 I have used it such that if a certain property is not passed in, __or is false__ (note the ! on the value), then I activate that profile: !skip.something !true - Original Message - From: "Veyret Stephane" <[EMAIL PROTECTED]> To: Sent: Monday, June 05, 2006 12:23 PM Subject: [m2] Profile activation with property non-existance Hi, It is possible to automatically activate a profile testing a property existance (tag profile/activation/property). But is it possible to automatically activate another profile when this same property does not exist ? This would be very usefull. For exemple : delivery-version delivery-version Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: One more simple question
Does it work though? ;-) Where Maven is concerned if it works, I'd use it. - Original Message - From: "EJ Ciramella" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Friday, June 02, 2006 11:53 PM Subject: RE: One more simple question That would be a misuse of final name: finalName The filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is ${artifactId}-${version}. -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 6:51 PM To: Maven Users List Subject: Re: One more simple question Oh yeah, that's better than my jarName solution. Okay, I think I will stop trying to answer emails today before I give any more lousy advice. :-) -Max EJ Ciramella wrote: Also, wouldn't it be basedir according to that documentation? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 6:46 PM To: Maven Users List Subject: RE: One more simple question [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-jar-plugin. Reason: ERROR: Cannot overr ide read-only parameter: outputDirectory in goal: jar:jar maven-jar-plugin ${project.build.outputDirectory}/lib -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 6:40 PM To: Maven Users List Subject: Re: One more simple question http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html Set outputDirectory to ${project.build.outputDirectory}/lib in the jar plugin configuration. -Max EJ Ciramella wrote: By default, jars are placed in the root of target, how do you move them to target/lib? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: One more simple question
You'll need something like this in your POM: lib/${artifactId}-${version} and maybe you'll also need to create the lib directory. - Original Message - From: "EJ Ciramella" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Friday, June 02, 2006 11:30 PM Subject: One more simple question By default, jars are placed in the root of target, how do you move them to target/lib? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn install:install
No probs. It would be nice if it was true by default IMO, all that typing is error prone. It was introduced in version 2.1 of the install plugin: http://jira.codehaus.org/browse/MINSTALL-6 - Original Message - From: "Clifton Craig" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Friday, June 02, 2006 2:10 PM Subject: Re: mvn install:install On Friday 02 June 2006 7:59 am, Kieran Brady wrote: You need another parameter: mvn install:install-file -DgroupId=somegroup -DartifactId=someartifact -Dversion=1.0 -Dpackaging=jar -Dfile=./package.jar -DgeneratePom=true That's a new one on me too! I just learned and used this command for the first time yesterday afternoon and I did note the missing POM but thought nothing of it. Thanx a heap! --- Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn install:install
You need another parameter: mvn install:install-file -DgroupId=somegroup -DartifactId=someartifact -Dversion=1.0 -Dpackaging=jar -Dfile=./package.jar -DgeneratePom=true - Original Message - From: "Eugeny N Dzhurinsky" <[EMAIL PROTECTED]> To: Sent: Friday, June 02, 2006 12:52 PM Subject: mvn install:install I it possible to force maven to generate POM files every time when command mvn install:install-file -DgroupId=somegroup -DartifactId=someartifact -Dversion=1.0 -Dpackaging=jar -Dfile=./package.jar Right now maven tries to dowload POM every time when JAR file is used for compilation etc. -- Eugene N Dzhurinsky - 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: Referencing .properties files in the CLASSPATH in test
I use this.getClass().getClassLoader().getResourceAsStream(... rather than using the system classloader and it works in both Eclipse and Maven. HTH - Original Message - From: "Martin Aspeli" <[EMAIL PROTECTED]> To: Sent: Thursday, June 01, 2006 3:38 PM Subject: Referencing .properties files in the CLASSPATH in test Hi guys, I have some unit tests that do things like this: InputStream stream = ClassLoader.getSystemResourceAsStream("TestDBSetup.properties"); assertNotNull("Could not load TestDBSetup.properties from classpath", stream); Properties dbProperties = new Properties(); dbProperties.load(stream); TestDBSetup.properties lives in src/main/test/resources. In Eclipse, this works fine. However, when I execute mvn test, it doesn't work. TestDBSetup.properties is no copied to target/test-classes (Eclipse does it, though). Even if I put it there manually, the ClassLoader can't find it when I run 'mvn test', presumably because it's not on the CLASSPATH? In a similar vein, I have some xml files in src/main/test/java/com/foo/bar that need to be in the CLASSPATH under target/test-classes/com/foo/bar. My POM is like so: MyParentProject com.foo.bar 1.0-SNAPSHOT 4.0.0 com.foo.bar MyDatabasePackage MyDatabasePackage 1.1-SNAPSHOT http://foo.com MyDatabasePackage ${build.sourceDirectory} **/*.properties ${build.sourceDirectory} **/*.properties com.foo.bar MyProductCommon 1.1-SNAPSHOT mysql mysql-connector-java 3.1.11 provided org.hibernate hibernate 3.1rc3 junit junit 3.8.1 test dbunit dbunit 2.1 test directory-naming naming-core 0.8 test directory-naming naming-factory 0.8 test directory-naming naming-java 0.8 test Any help greatly appreciated! Martin -- View this message in context: http://www.nabble.com/Referencing+.properties+files+in+the+CLASSPATH+in+test-t1717149.html#a4663313 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] buildnumber-plugin
Here you go: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ - Original Message - From: "Jens Riboe" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, June 01, 2006 3:11 PM Subject: RE: [m2] buildnumber-plugin org.codehaus.mojo:maven-buildnumber-plugin I couldn't find it at codehaus (http://mojo.codehaus.org/). Do you know where I can get more info about it? /Jens -Original Message- From: Christian Wiesing [mailto:[EMAIL PROTECTED] Sent: 01 June 2006 14:43 To: Maven Users List Subject: Re: [m2] buildnumber-plugin Thanks. It works great. Thorsten Heit schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Christian, i have a problem with the buildnumber-plugin. When i execute "mvn buildnumber:create" I get the following error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error has occurred while checking scm status. Embedded error: Can't load the scm provider. The scm url cannot be null. [INFO] I had the same problem and fixed it by using the following plugin configuration: org.codehaus.mojo maven-buildnumber-plugin 0.9.2-SNAPSHOT {0,number} buildNumber0 create ... HTH Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (MingW32) iD8DBQFEft7NQvObkgCcDe0RAlv/AKDdULFWUU4Yk+WpXcD1KvHSaSQMZQCgvZm8 w8QOUyU9aQmXb/G0MgnHzwA= =IrRP -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: date in manifest
Thanks, I'll give it another try Julian. The workaround is holding together though and has proven pretty reliable in terms of getting ant properties into the filtering phase :) - Original Message - From: "Julian Wood" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Wednesday, May 31, 2006 5:34 PM Subject: Re: date in manifest It works fine for me. Did you configure it to use a timestamp rather than scm? It won't check scm at all if configured like that. Try this: 1. mvn archetype:create -DgroupId=ca.ucalgary.commons -DartifactId=test 2. Add this to your pom: tlc-snapshots TLC Snapshot Development Repository http://commons.ucalgary.ca/pub/m2-snapshots tlc-snapshots TLC Snapshot Development Repository http://commons.ucalgary.ca/pub/m2-snapshots org.codehaus.mojo maven-buildnumber-plugin 0.9.2-SNAPSHOT {0,date,-MM-dd HH:mm:ss} timestamp org.apache.maven.plugins maven-jar-plugin ${buildNumber} 3. mvn buildnumber:create package 4. Check out the Implementation-Build property in META-INF/ MANIFEST.MF inside of test-1.0-SNAPSHOT.jar J On 31-May-06, at 1:17 AM, Kieran Brady wrote: I tried te build number plugins without any success as it didn't seem happy to create a timestamp independently of SCM? I'm using CVS and it wasn't happy with it.. Instead I have this horrible hack! Our Maven setup seems to be an ever expanding collection of horrible hacks :-/ [...] maven-antrun-plugin create-timestamp-file generate-resources run append="false" message="timestamp=${timestamp}" /> delete-timestamp-file clean run [...] and [...] [...] .build.timestamp.properties - Original Message - From: "Julian Wood" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Tuesday, May 30, 2006 10:43 PM Subject: Re: date in manifest You can use the maven-buildNumber-plugin. http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ howto.html Near the bottom it tells you how to use a timestamp. There was some talk of making the build date a more globally available property (negating the need for this plugin), but I don't know what it is, or if it was done. J On 30-May-06, at 2:03 PM, [EMAIL PROTECTED] wrote: Hi All If i want to make entry of build date to mani-fest files how do i do that? i know how to make entry to mani-fest but don't know what maven variable has the value for date ?? Anyone knows it , please advise? Thanks, Raghu -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca - 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] -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca - 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: date in manifest
I tried te build number plugins without any success as it didn't seem happy to create a timestamp independently of SCM? I'm using CVS and it wasn't happy with it.. Instead I have this horrible hack! Our Maven setup seems to be an ever expanding collection of horrible hacks :-/ [...] maven-antrun-plugin create-timestamp-file generate-resources run locale="en" /> /> message="timestamp=${timestamp}" /> delete-timestamp-file clean run [...] and [...] [...] .build.timestamp.properties - Original Message - From: "Julian Wood" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Tuesday, May 30, 2006 10:43 PM Subject: Re: date in manifest You can use the maven-buildNumber-plugin. http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html Near the bottom it tells you how to use a timestamp. There was some talk of making the build date a more globally available property (negating the need for this plugin), but I don't know what it is, or if it was done. J On 30-May-06, at 2:03 PM, [EMAIL PROTECTED] wrote: Hi All If i want to make entry of build date to mani-fest files how do i do that? i know how to make entry to mani-fest but don't know what maven variable has the value for date ?? Anyone knows it , please advise? Thanks, Raghu -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca - 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] Packaging without sources *.java
This is what's putting your sources on the classpath: src Resources are elements that are to be placed on the classpath. HTH! - Original Message - From: "Leo L" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, May 25, 2006 3:11 PM Subject: [M2] Packaging without sources *.java Hi! When i packaging my ejb or my components which is a .jar, Maven put all together, .class and sources. What can i do to packaging only compiled classes and not the sources *.java Here is my pom.xml configuration snippet: ... src target/classes src org.apache.maven.plugins maven-compiler-plugin 1.5 1.5 ... Any clue Regards, Leo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Continuum or CruiseControl as a CI server ?
We're using the latest CruiseControl with Maven 2 successfully - no problem configuring it. At the time I neeeded to implement a CI system back in October, Continuum wasn't mature enough and I couldn't realistically put it forward as an option as I couldn't get it to work :) I haven't tried Continuum since as CruiseControl has been happily doing multi-module builds, single projects, profiled builds, nightly builds running all reports, on demand builds and so on and so I've no reason to migrate. A couple of links: http://cruisecontrol.sourceforge.net/main/configxml.html http://jira.public.thoughtworks.org/browse/CC-363 http://confluence.public.thoughtworks.org/display/CC/Home - Original Message - From: "Alexandre Poitras" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Thursday, May 04, 2006 3:52 AM Subject: Re: [m2] Continuum or CruiseControl as a CI server ? Well Continuum does the job for me, never thought about switching. What I like about continuum is that you can customize the goals invoked during a build (for instance, clean site:deploy deploy). I have never used cruise control but I heard it's hard to configure. On 5/3/06, Sebastien Arbogast <[EMAIL PROTECTED]> wrote: I'm trying to find the best CI tool for a brand new Maven2-built project and I'd like to have your experience feedback about which one to choose between Continuum and CruiseControl. I know that, as Continuum is a spin-off of Maven project it should be better integrated with it. But on the other hand, CruiseControl seems more mature to me, even if, to be honnest, I haven't tried any of them in a real situation yet. That's why I need something more concrete. Is there any Maven 2 cruisecontrol plugin somewhere as there was one for Maven 1 ? What do you think ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - 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: Re: deploy works, but release:perform fails to deploy
> >You might want to take a gander at this page, which walks you through >the release process: > >http://wiki.ucalgary.ca/page/LearningCommons/Documentation/ >Project_Versioning_-_Best_Practices > >J > Great document! Bookmarked :) Cheers, Kieran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [2.0.3] Download maven-archetype-quickstart error
That version isn't in Ibiblio; http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/ 1.0-alpha-3 looks to be the latest one in there, try that instead. Hope this helps. Kieran - Original Message - From: "Vitaly Berdinskikh" <[EMAIL PROTECTED]> To: "'Maven Users List'" Sent: Friday, March 31, 2006 3:06 PM Subject: [2.0.3] Download maven-archetype-quickstart error Hi! From log: = Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/0.1-alpha/maven-archetype-quickstart-0.1-alpha.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: 0.1-alpha Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-quickstart \ -Dversion=0.1-alpha -Dpackaging=jar -Dfile=/path/to/file org.apache.maven.archetypes:maven-archetype-quickstart:jar:0.1-alpha from the specified remote repositories: central (http://repo1.maven.org/maven2) = %( - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to generate html test reports with maven-surefire-plugin
You don't have this in your pom, as suggested by Boris: org.codehaus.mojo surefire-report-maven-plugin surefire-report-maven-plugin != maven-surefire-plugin Hope this helps, Kieran - Original Message - From: "Venkatagopalaraju" <[EMAIL PROTECTED]> To: "Maven Users List" ; <[EMAIL PROTECTED]> Sent: Friday, March 24, 2006 11:23 AM Subject: Re: how to generate html test reports with maven-surefire-plugin In my pom.xml, already added the surfire plugin in the reporting section. But I didnt get any html report in my surefire-reports folder or javadoc folder. My pom.xml is as shown below. 4.0.0 citistreet.id.util cs-util jar 1.0 Maven Quick Start Archetype http://maven.apache.org classes classes ${artifactId}-${version} src test org.apache.maven.plugins maven-compiler-plugin 1.5 1.5 org.apache.maven.plugins maven-surefire-plugin pertest true commons-logging commons-logging 1.0 junit junit 4.0 test jaxen jaxen 1.0-FCS saxpath saxpath 1.0-FCS citistreet.id.util cs-util org.apache.maven.plugins maven-project-info-reports-plugin target/site maven-junit-report-plugin Please help me Thanks & Regards Gopal - Original Message - From: "Boris Lenzinger" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Friday, March 24, 2006 3:55 PM Subject: Re: how to generate html test reports with maven-surefire-plugin You don't find the html files or you don't see them in the site ? I had the problem that the reports were not visible in the site but the html report was in the folder. My section for the reporting looks like: org.codehaus.mojo surefire-report-maven-plugin Venkatagopalaraju a écrit : > Dear Maven Users, > > I am using maven-surefire-plugin in my pom.xml. When I am trying > to generate test reports in the form of html, it is generating in Plain Text and Xml format. Could you please let me know, what I need to do for generating html reports? > > > Thanks & Regards > Gopal > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [m2] Database/SQL plugin? Generating DB from schema?
We use the ant sql task to do this in the build section of the pom, in conjunction with DBUnit tests: maven-antrun-plugin mysql mysql-connector-java 3.0.10 sql-test-compile test-compile drop database my_db; create database my_db; run ...etc Hope this helps. Kieran > >no, they're just databases (SQL) (by schema i mean definitions of tables >and stored procedures) > >andrew > >Piéroni Raphaël wrote: >> Do your database schema use Torque oà r hibernate ? >> >> Raphaël >> >> 2006/2/21, andrew cooke <[EMAIL PROTECTED]>: >>> >>> >>> Hi, >>> >>> I have a DB schema that defines a database. I'd like Maven to manage >>> this >>> (so that I can delete/re0create the database before tests, for example). >>> How do I do this? >>> >>> Thanks, >>> Andrew >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Help with getting up and running
>Hey everyone, > Hi. > > >Anyways, could someone point me in the direction of which plug-in to use to >do continuous integration? > >Thanks, >Christian > > I'm using a version of the following successfully with the latest CruiseControl against multiprojects and also simple projects, build profiles and so on, its great :) http://jira.public.thoughtworks.org/browse/CC-363 You can use Continuum too, I haven't tried it recently. http://maven.apache.org/continuum/ Hope this helps, Kieran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] XMLBeans Plugin and Surefire Reports
Hello list :) We've recently moved from using XMLBeans 1 via the antrun plugin to using the codehaus xmlbeans plugin for m2 and it has introduced a small problem inside our JUnit XML reports in that they have two 'xml' declarations at the top of the file: [EMAIL PROTECTED]:surefire-reports]$ head -2 TEST-org.excelsior4gov.common.profile.consents.persistence.DataConsentsDAOTest.xml Its not a showstopper so we have stopped trying to fix for now it but it causes problems for CruiseControl when aggregating test reports as its obviously not well formed XML. I suspect a parser on the test classpath has been introduced with XMLBeans 2. Has anyone else seen this before I raise an issue in jira? Thanks, Kieran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]