Re: archiva and nexus indexer
On 19/03/2008, Brett Porter [EMAIL PROTECTED] wrote: Assuming it's a Lucene index, it should be straightforward to create this format - we actually previously had in place a generator for very old versions of m2eclipse. I haven't looked at the index myself. After a quick look with Luke, it appears the format is the same as it has always been, with a couple of additions that appear to be unused on the central repository. So the old code from Archiva 0.9 could just be re-added to serve this. Cheers, Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/
RE: archiva-1.0.2 eta?
Currently, I have the following enbled: * create-missing-checksums * index-content * repository-purge * repository-purge * validate-checksums -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 9:24 PM To: archiva-users@maven.apache.org Subject: Re: archiva-1.0.2 eta? Jason, I took a look at this - the only way I could reproduce it was by adding maven-metadata.xml to the list of artifacts in the repository scanning tab - can you confirm whether that is the case for you? Cheers, Brett On 14/03/2008, Jason Chaffee [EMAIL PROTECTED] wrote: Here is a snippet from the log file: 431177909 [pool-2-thread-1] ERROR org.apache.maven.archiva.repository.scanner.RepositoryScanner:default - Consumer [repository-purge] had an error when processing file [/proxy/maven2/org/apache/cxf/cxf-rt-bindings-soap/2.0.3-incubator/maven -metadata.xml]: Invalid path to Artifact: filename format is invalid, -- Brett Porter Blog: http://blogs.exist.com/bporter/
Re: archiva-1.0.2 eta?
Thanks. Do you have maven-metadata.xml or *.xml in the artifacts list at the top of that page? - Brett On 20/03/2008, Jason Chaffee [EMAIL PROTECTED] wrote: Currently, I have the following enbled: * create-missing-checksums * index-content * repository-purge * repository-purge * validate-checksums -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 9:24 PM To: archiva-users@maven.apache.org Subject: Re: archiva-1.0.2 eta? Jason, I took a look at this - the only way I could reproduce it was by adding maven-metadata.xml to the list of artifacts in the repository scanning tab - can you confirm whether that is the case for you? Cheers, Brett On 14/03/2008, Jason Chaffee [EMAIL PROTECTED] wrote: Here is a snippet from the log file: 431177909 [pool-2-thread-1] ERROR org.apache.maven.archiva.repository.scanner.RepositoryScanner:default - Consumer [repository-purge] had an error when processing file [/proxy/maven2/org/apache/cxf/cxf-rt-bindings-soap/2.0.3-incubator/maven -metadata.xml]: Invalid path to Artifact: filename format is invalid, -- Brett Porter Blog: http://blogs.exist.com/bporter/ -- Brett Porter Blog: http://blogs.exist.com/bporter/
RE: archiva-1.0.2 eta?
Here is my archiva.xml, in case it provides any other info. -Original Message- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 9:33 PM To: archiva-users@maven.apache.org Subject: RE: archiva-1.0.2 eta? I was using the metdata-updater at one time, but we started to see stange issues with the buld number being reset when we do a deploy, even though the build number should have been 35, it became 1. I thought this consumer might be the cause. -Original Message- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 9:29 PM To: archiva-users@maven.apache.org Subject: RE: archiva-1.0.2 eta? Currently, I have the following enbled: * create-missing-checksums * index-content * repository-purge * repository-purge * validate-checksums -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 9:24 PM To: archiva-users@maven.apache.org Subject: Re: archiva-1.0.2 eta? Jason, I took a look at this - the only way I could reproduce it was by adding maven-metadata.xml to the list of artifacts in the repository scanning tab - can you confirm whether that is the case for you? Cheers, Brett On 14/03/2008, Jason Chaffee [EMAIL PROTECTED] wrote: Here is a snippet from the log file: 431177909 [pool-2-thread-1] ERROR org.apache.maven.archiva.repository.scanner.RepositoryScanner:default - Consumer [repository-purge] had an error when processing file [/proxy/maven2/org/apache/cxf/cxf-rt-bindings-soap/2.0.3-incubator/maven -metadata.xml]: Invalid path to Artifact: filename format is invalid, -- Brett Porter Blog: http://blogs.exist.com/bporter/ ?xml version=1.0 encoding=UTF-8? configuration version2/version repositoryScanning fileTypes fileType idartifacts/id patterns pattern**/*.bin/pattern pattern**/*.car/pattern pattern**/*.dtd/pattern pattern**/*.ear/pattern pattern**/*.jar/pattern pattern**/*.mar/pattern pattern**/*.nar/pattern pattern**/*.pom/pattern pattern**/*.rar/pattern pattern**/*.rpm/pattern pattern**/*.sar/pattern pattern**/*.tar.bz2/pattern pattern**/*.tar.gz/pattern pattern**/*.tld/pattern pattern**/*.war/pattern pattern**/*.xml/pattern pattern**/*.zip/pattern /patterns /fileType fileType idauto-remove/id patterns pattern**/*-/pattern pattern**/*.bak/pattern pattern**/*~/pattern /patterns /fileType fileType idignored/id patterns pattern**/*.rb/pattern pattern**/*.sh/pattern pattern**/.DAV/**/pattern pattern**/.htaccess/pattern pattern**/.svn/**/pattern pattern**/KEYS/pattern /patterns /fileType fileType idindexable-content/id patterns pattern**/*.block/pattern pattern**/*.config/pattern pattern**/*.dtd/pattern pattern**/*.pom/pattern pattern**/*.tld/pattern pattern**/*.txt/pattern pattern**/*.TXT/pattern pattern**/*.xml/pattern pattern**/*.xsd/pattern /patterns /fileType /fileTypes knownContentConsumers knownContentConsumercreate-missing-checksums/knownContentConsumer knownContentConsumerindex-content/knownContentConsumer knownContentConsumerrepository-purge/knownContentConsumer knownContentConsumerupdate-db-artifact/knownContentConsumer knownContentConsumervalidate-checksums/knownContentConsumer /knownContentConsumers invalidContentConsumers invalidContentConsumerupdate-db-bad-content/invalidContentConsumer /invalidContentConsumers /repositoryScanning databaseScanning cronExpression0 15 * * * ?/cronExpression unprocessedConsumers unprocessedConsumerindex-archive-toc/unprocessedConsumer unprocessedConsumerindex-artifact/unprocessedConsumer unprocessedConsumerindex-public-methods/unprocessedConsumer unprocessedConsumerupdate-db-bytecode-stats/unprocessedConsumer unprocessedConsumerupdate-db-project/unprocessedConsumer unprocessedConsumervalidate-repository-metadata/unprocessedConsumer /unprocessedConsumers cleanupConsumers cleanupConsumernot-present-remove-db-artifact/cleanupConsumer cleanupConsumernot-present-remove-db-project/cleanupConsumer cleanupConsumernot-present-remove-indexed/cleanupConsumer /cleanupConsumers /databaseScanning managedRepositories managedRepository location/disk1/html/maven2-client/location snapshotstrue/snapshots refreshCronExpression0 0 4 * * ?/refreshCronExpression daysOlder0/daysOlder
Re: archiva-1.0.2 eta?
On 20/03/2008, Jason Chaffee [EMAIL PROTECTED] wrote: I just sent my archiva.xml, which should give you a complete picture. Ok, so I will file a new issue, but removing *.xml from your artifacts list temporarily will fix the exception problems you were having with the latest code (since it's picking up metadata files). As for the wrong build numbers, you were probably seeing this: http://jira.codehaus.org/browse/MNG-3441 Cheers, Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/
RE: archiva-1.0.2 eta?
I can probably change that to be more specific to only pick up the specific xml files. This might fix my build number issue as well. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 9:42 PM To: archiva-users@maven.apache.org Subject: Re: archiva-1.0.2 eta? On 20/03/2008, Jason Chaffee [EMAIL PROTECTED] wrote: I just sent my archiva.xml, which should give you a complete picture. Ok, so I will file a new issue, but removing *.xml from your artifacts list temporarily will fix the exception problems you were having with the latest code (since it's picking up metadata files). As for the wrong build numbers, you were probably seeing this: http://jira.codehaus.org/browse/MNG-3441 Cheers, Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/
Release plugin overwrite scm config
I use a config like this to be able to deploy from different repositories: scm connectionscm:svn:${scm.path}/trunk/alpha2/connection developerConnectionscm:svn:${scm.path}/trunk/alpha2/developerConnection url${scm.path}/trunk/alpha2/url /scm And this get overwritten by the release plugin's prepare goal. I don't think it's necessary to overwrite this config information. Why is that so? Is there anyway to avoid this? I don't see any option allowing to do this. --nodje -- View this message in context: http://www.nabble.com/Release-plugin-overwrite-%3Cscm%3E-config-tp16138025s177p16138025.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pde-maven-plugin calls wrong ant target
The last remark I made can safely be ignored. I can now build both Eclipse plugins and RCP app with the 'hacked' mojo. Good luck to all Eclipse with maven builders. Jeroen. Jeroen Lankheet wrote: Hi Amit, The problem was detected reviously and filed under http://jira.codehaus.org/browse/MOJO-738 I solved the problem as follows: 1. I checked out version 6085 of the trunk of the pde-maven-plugin. I used this specific version because I'm using Eclipse 3.3 with maven 2.0.8 on Windows. 2. I changed zip in EclipsePDEAttachMojo.java to jar 3. I changed the .zip in line 226 of EclipsePDEMojo.java to .jar and line 236 to clean build.update.jar 4. I built the 'damn' thing: mvn clean install 5. I ignored the build error because of test failures 6. I grabbed the class files and updated the pde-maven-plugin jar with these class files. When I build my Eclipse plugin I now have a jar archive installed in my project directory and in the local repository. This is not a proper way of working. To my opinion, building the type of archive should be configurable in the POM, and not fixed in the code as it is now, but at least it's working for me now. One more thing. The PDE plugin may also be used to build an RCP application. The fix I mention here will not work for RCP, but the alpha-2-SNAPSHOT version will. Regards, Jeroen amit kumar-18 wrote: Hi Jeroren, I spent almost a week on avoiding that src.zip in the plugin.zip. I did not find any help on that and ultimately I had to resolve to a workaround which is that I now build a feature(dummy) which includes the plug in I actually want to build. When I get the feature.zip, I find my plug in inside that without src.zip. I know its not something I should have resolved to, but that was the only thing that I could find to fix the src.zip problem. If you find something on how to correct the ant calls, please let me know as well. Thanks and regards, Amit Kumar On Mon, Mar 17, 2008 at 6:40 PM, JeroenL [EMAIL PROTECTED] wrote: Hi all, I'm trying to build an Eclipse plugin with maven. Problems are that 1) the archive is zipped and 2) a directory is added and 3) a sr.zip is added. After investigating the calls to Ant I discovered that maven calls the targets clean build.jars zip.plugin. According my belief this should be clean build.update.jar Does anyone have an idea how to call the proper targets? Regards, Jeroen -- View this message in context: http://www.nabble.com/pde-maven-plugin-calls-wrong-ant-target-tp16092576s177p16092576.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/pde-maven-plugin-calls-wrong-ant-target-tp16092576s177p16138073.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert SNAPSHOT timestamps from utc to local time
Just a stupid suggestion: Wouldn't it be much easier to either 1) Setup the local clock on snapshots generating server to french time and have that server says that is utc time? That's a quick and dirty, but it's not like you would have to change or 3) Have people look, when they explore snapshot repository using their web browser, at the time column that appear next to file list, which is expressed in server local time afaik. or even better 2) Take 10 minute to teach your team members what UTC mean (substract one hour from local time in winter, 2 hours in summer)? It's not like it is difficult calculation to know utc time. I work with a belgian time, we are all in same building, so, i think, we are in same timezone, and we have no difficulties to cope with UTC time :) Heck, all our company servers anyway speaks only utc ^^. And on linux stations, the simple date commands tells me the UTC shift am at: $ date mercredi 19 mars 2008, 08:30:38 (UTC+0100) regards En l'instant précis du 18/03/08 17:04, MATHUS Baptiste s'exprimait en ces termes: My company is french, we sell to frenchies and have almost no chance to ever sell to another country ;). In fact, we work in the healthcare area and there's lots and lots of administrative rules that even make it difficult to follow only for the french market :-). So, I'll hack the code and propose a patch with some additional parameter to tune this behaviour, hoping it finds a way into the trunk one day. Cheers. -Message d'origine- De : Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 mars 2008 16:32 À : Maven Users List Objet : Re: Convert SNAPSHOT timestamps from utc to local time Not that I'm aware of, at least, not today. If you really must have this feature, you could add a configuration and hack the code, but as with any user-provided patch, there's no guarantee it would be accepted into the core if you contributed it via Jira. Maven uses UTC on purpose so that timestamps are gloabally unique and incrementing. Then when I'm working in CA and the rest of my team is in NJ, and we're both deploying to the same corporate repo, my 11am (PT) builds are properly considered newer than your 1pm (ET) builds. If you're all in the same timezone, this seems like less of a problem, but how common is that in today's corporate climate? I know my small team of 5 people is in 3 timezones. Wayne On 3/18/08, MATHUS Baptiste [EMAIL PROTECTED] wrote: Hi all, We're having a small problem with deployment: UTC is being used for replacing SNAPSHOT with timestamp. For us, UTC is one hour behind local time. In some days, it will be 2 hours. It's a bit annoying because people are sometimes wondering which snapshot is corresponding to their commit. We'd prefer being able to deploy using local time (at the moment, for example utc is something like 11h47, and our local time is 12h47). I looked at the code and found that the code is in the org.apache.maven.artifact.transform.SnapshotTransformation class. Is there a way to define some global variable (used by the timezone or something like that) to shift generated timestamps? Thanks in advance. Cheers. - 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] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Convert SNAPSHOT timestamps from utc to local time
-Message d'origine- De : David Delbecq [mailto:[EMAIL PROTECTED] Envoyé : mercredi 19 mars 2008 08:36 À : Maven Users List Objet : Re: Convert SNAPSHOT timestamps from utc to local time Just a stupid suggestion: Wouldn't it be much easier to either 1) Setup the local clock on snapshots generating server to french time and have that server says that is utc time? That's a quick and dirty, but it's not like you would have to change I'm not admin on this server and it is used by lots of other people. So changing server time isn't an option :). or 3) Have people look, when they explore snapshot repository using their web browser, at the time column that appear next to file list, which is expressed in server local time afaik. There's no column for this. However, it might be a feature request for Archiva, granted. or even better 2) Take 10 minute to teach your team members what UTC mean (substract one hour from local time in winter, 2 hours in summer)? It's not like it is difficult calculation to know utc time. Agreed, though there's a lot of things that are not complex. But as I said, nobody here ever use UTC (and there's very little chance we are going to ever need it). This would obviously be possible to teach our developer what UTC is, and how to shift the time by themselves. But I really think this would be useless inside our company. About the patch, I already got there. The last thing I'm unable to find is how to configure plexus to inject some system property. My code already works using the boolean given by Boolean.parseBoolean(System.getProperty(useLocalTime)), apart from this the code is very very simple (maybe 5 or 10 lines of modified code maximum). Btw, do you know what I should do so that plexus would inject the value given in -DuseLocalTime in the SnapshotTransformation class below: component roleorg.apache.maven.artifact.transform.ArtifactTransformation/role role-hintsnapshot/role-hint implementationorg.apache.maven.artifact.transform.SnapshotTransformation/implementation requirements requirement roleorg.apache.maven.artifact.manager.WagonManager/role /requirement requirement roleorg.apache.maven.artifact.repository.metadata.RepositoryMetadataManager/role /requirement /requirements /component I tried adding a configuration.../configuration block, but I guess I'm missing something and I have been unable to find the right documentation inside the plexus doc. Cheers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axistools-maven-plugin, namespace mapping and axis 1.2.1
Hi, For information, I think I found the solution. It seems that it comes from the issue http://jira.codehaus.org/browse/MNG-2972. It is fixed with maven 2.0.9. Rémy
What is the reactor?
Hi, There was recently a question on this list about how to implement an odd build order for submodules in a multi-module project. I said that it wasn't possible, but Brian corrected me and said that in fact it is automatic. So after some pondering, I have come to the following conclusion. Can someone confirm if I have this right? When maven is executed against a pom that has module tags, then maven gathers together the poms for all the referenced modules, and their submodules etc. into a big pool of poms. The dependencies for each pom are checked, and the list of poms is reordered so that they are sorted in the necessary order, regardless of where the modules are in the directory structure. This process is called the reactor. Then whatever command the user requested is applied over this reordered list of poms. Is that correct? And is that all the reactor does? And (back to the original poster's question) can the order be affected by profiles, ie if dependencies are altered depending on what profiles are currently active, does the reactor take that into account? Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overwriting external resources
Hello there, well it seems that i was a little bit to fast to announce my success. So the thing is, when a file X in the WEB-INF/config folder has been changed more recently then the file I want to overwrite the file X with then it just won't do it. The reason why I thought it would work is because my pom is located in tzhe very top folder of the project and so by using warSourceDirectorywebapp/warSourceDirectory a new folder would be created. Any idea someone how to force maven to overwrite the files??? thx in advance. Original-Nachricht Datum: Tue, 18 Mar 2008 14:40:43 +0100 Von: Dominik Heller [EMAIL PROTECTED] An: Maven Users List users@maven.apache.org Betreff: Re: overwriting external resources Hi David, well first of all thanks so much for yours quick response. I have tried your code and it works fine for me. it seems that the warSourceDirectorywebapp/warSourceDirectory is dealing with the timestamps of the files correctly although I thought that the webapp would be the default webSourceDirectory. If the webSourceDirectory is not explicitly specified the file in the config folder of the WEb-Inf folder won't be overwriten if it has a newer timestamp than the file it should be overwritten with. Anyways thanks for your help I really appreciate it. Original-Nachricht Datum: Tue, 18 Mar 2008 13:53:47 +0100 Von: David Delbecq [EMAIL PROTECTED] An: Maven Users List users@maven.apache.org Betreff: Re: overwriting external resources En l'instant précis du 18/03/08 12:43, Dominik Heller s'exprimait en ces termes: Hi i am pretty new to maven and encountered a problem by overwriting some external resources. I am using maven 2.0.7 and the maven-war-plugin 2.0.2. What I want to do is to overwrite a folder config in the WEB-INF containing some files with an other folder config which is stored in an external resource folder until I build the project. In the end it looks pretty much like this: -src/main/ -Customer/config -web.xml -config.xml -... -webapp/WEB-INF -config/... -web.xml when building the project i want to use profiles to replace the web.xml and the config foilder in the WEB-INF. For replacing the web.xml I am using the webXml property but so far I didn't find a way to overwrite the config folder in the WEB-INF. Any ideas someone?? thx in advance Hi, we had similar requirement here. Here is our solution: in build plugins: plugin artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebapp/warSourceDirectory webResources resource !-- this is relative to the pom.xml directory -- directoryconfigSets/${config.configSet}/directory /resource /webResources /configuration /plugin in profiles: profile iduser-x/id activation property nameuser/name valuex/value /property /activation properties config.configSetuserX/config.configSet /properties /profile We make our package using mvn package -Duser=x and it will override, in war, existing files with those found in configSets/userX/ -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A provide mecanism for poms?
Hello maven users, I encountered a curiosity in our maven dependency graph, while trying to find out why our webapp was failing. What is the suggested and most proper solution when a library X and a library Y are providing the same api. Am using myfaces api and myfaces impl. Both are implementation respectively of the jsf-api and jsf-impl of sun. However, a few jsf based library are marked as depending on jsf-api and jsf-impl. Is there some way to tell maven that myfaces-api and myfaces-impl are the same as jsf-api and jsf-impl and, as such, that if it encounter jsf-api or jsf-impl in the dependencies transitivity, it should not take that into consideration cause myfaecs was used higher in the graph? I could use restriction, but since the dependency to jsf can go deep in the graph using several path, with pom will be bloated with restriction ... There are quite a good amount of sun tools that have an equivalent counter-part in apache project i think. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Profiles and Dependencies in Maven ANT Task
Hi Cody, I have forgot to mention that the main build is still done with ant and maven-ant-tasks are used to resolve dependencies. So, unluckily, the example proposed does not really apply... -- View this message in context: http://www.nabble.com/Profiles-and-Dependencies-in-Maven-ANT-Task-tp16125102s177p16142232.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.
Hi Wayne, I am trying to do for CVS not with the remote repository. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED]:/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED]:/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED]:/istcvs/CVSHOME:xtclients/xtTest/url /scm To connect to cvs.But i want to pass username and password to connect cvs in command line .Please provide me the information . Thanks, Sowmya.R On 3/19/08, Wayne Fay [EMAIL PROTECTED] wrote: Take a look at the SCM plugin: http://maven.apache.org/scm/plugins/examples/bootstrapping-with-pom.html Wayne On 3/18/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi, I am working on the maven tool for my project ,where I have to checkout from CVS and I want to ask for CVS user id and password from the user while checkingout the project.This process I want to do dynamically to checkout multiple projects. I am new user of maven ,Pleases help me out to resove this issue. -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Release plugin overwrite scm config
On Wednesday 19 March 2008 nodje wrote: I use a config like this to be able to deploy from different repositories: scm connectionscm:svn:${scm.path}/trunk/alpha2/connection developerConnectionscm:svn:${scm.path}/trunk/alpha2/developerConnectio n url${scm.path}/trunk/alpha2/url /scm And this get overwritten by the release plugin's prepare goal. I don't think it's necessary to overwrite this config information. Why is that so? AFAIKT this is because in a release POM there shouldn't be any properties, just the real values. The release plugin should change the values back after the performed release. However, there is/was a bug related to this: http://jira.codehaus.org/browse/MRELEASE-128 Is there anyway to avoid this? I don't see any option allowing to do this. Not that I know of. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: Convert SNAPSHOT timestamps from utc to local time
Agreed, though there's a lot of things that are not complex. But as I said, nobody here ever use UTC (and there's very little chance we are going to ever need it). This would obviously be possible to teach our developer what UTC is, and how to shift the time by themselves. But I really think this would be useless inside our company. It's just that it's far easier than maintaining a local fork of a plugin, considering your requirement it that developper should be able to find out if their commit are part of a given snapshot :) Generally in project, i don't like to see attempts at using a tool for something it was not designed for, unless there are string reasons behind this. One of the purposes of snapshots numbering it to guarantee their order. If you use localtime you risk to break that, unless you don't forget to include the UTC shift used at build time. If you don't take care, when the time changes from summer to winter, and your snaphsots build make 2 snapshots (for whatever reason) around the time change, you can end up with most recent snapshot having the oldest time... -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the reactor?
On Wed, Mar 19, 2008 at 9:11 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, There was recently a question on this list about how to implement an odd build order for submodules in a multi-module project. I said that it wasn't possible, but Brian corrected me and said that in fact it is automatic. So after some pondering, I have come to the following conclusion. Can someone confirm if I have this right? When maven is executed against a pom that has module tags, then maven gathers together the poms for all the referenced modules, and their submodules etc. into a big pool of poms. The dependencies for each pom are checked, and the list of poms is reordered so that they are sorted in the necessary order, regardless of where the modules are in the directory structure. This process is called the reactor. Then whatever command the user requested is applied over this reordered list of poms. Is that correct? In essence, yes And is that all the reactor does? And (back to the original poster's question) can the order be affected by profiles, ie if dependencies are altered depending on what profiles are currently active, does the reactor take that into account? Yes, if a profile adds dependencies or even additional modules, those will be taken into account. Additionally, the order can also be affected because if a plugin which is an aggregator plugin is bound to a phase that will be executed. An aggregator plugin is supposed to be executed only in the root pom, _after_ all the other plugins have completed execution. However, this is not quite how things work at present, and you can end up with a badly broken build if you carelessly add @aggregator plugin goals to your build. Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archiva and nexus indexer
I've asked about the format of the nexus index but haven't received a response. Archiva stores in what is likely a similar format, but it is not used by m2eclipse. What about adding some nexusindexer task in archiva own tasks ? Other integrations such as MevenIDE (Netbeans) and q4e are making pluggable implementations for repository manager indexes so that they can support any implementation. Yep Cheers, Brett On 19/03/2008, Henri Gomez [EMAIL PROTECTED] wrote: Hi to all, Did there is a way to use Nexus Indexer (http://docs.codehaus.org/display/M2ECLIPSE/Nexus+indexer) with Archiva ? I may use the nexusindexer cli from a batch job but the regular location in under repourl/.index where achiva allreay story its own informations. Regards -- Brett Porter Blog: http://blogs.exist.com/bporter/
Re: Archiva with network drives
Java has poor support for windows UNC (samba) fiel storage. I myself tried to store my managed repository on \\myserver\mybackup but the WebDav support fails due to call to Java File.normalize() method. This is a known java limitation (I don't have the java bug Id but it is reported for long time and never fixed). An option (not tested) would be to mount the network share as a drive (as X:). I didn't tried this myself as it was simplier for me to configure my backup ! Nico. 2008/3/19, PascalTrema [EMAIL PROTECTED]: Archiva Windows XP, Tomcat 6.0 I have archiva under tomcat, and to secure my data, directories for each repository are on networks hard disks . That's pretty good On Windows 2003 server, tomcat 6.0 When I do the same operation, I have the following error when I click on WebDAV URL Etat HTTP 404 - [enterprise-releases] Not Found (Likely Unconfigured). type Rapport d'état message [enterprise-releases] Not Found (Likely Unconfigured). description La ressource demandée ([enterprise-releases] Not Found (Likely Unconfigured).) n'est pas disponible. Apache Tomcat/6.0.14 is a probleme with 2003 server or -- View this message in context: http://www.nabble.com/Archiva-with-network-drives-tp16141644p16141644.html Sent from the archiva-users mailing list archive at Nabble.com.
Re: A provide mecanism for poms?
well I would have jsf-api as scope=provided I would not depend on jsf-impl You will be deploying this application to a container that provides the api and it's impl. You should not be depending on any of the impl classes, so that would be my logic. If you then have customers that want to deploy to a container that does not supply a JSF impl, you could have assembler produce two distributions for these customers: 1. with the JSF-api and JSF-impl 2. with the myfaces-api and myfaces-impl On Wed, Mar 19, 2008 at 9:32 AM, David Delbecq [EMAIL PROTECTED] wrote: Hello maven users, I encountered a curiosity in our maven dependency graph, while trying to find out why our webapp was failing. What is the suggested and most proper solution when a library X and a library Y are providing the same api. The suggested and most proper solution is to have only one api.jar and have multiple impl.jar's Depending on the container rules for your api you would either have the api as scope=compile or scope=provided. The impl.jar's should all have a scope=compile dependency on the standard api.jar I would not have any dependency on the impl.jar (unless I needed it for unit tests, in which case scope=test) Am using myfaces api and myfaces impl. Both are implementation respectively of the jsf-api and jsf-impl of sun. However, a few jsf based library are marked as depending on jsf-api and jsf-impl. Is there some way to tell maven that myfaces-api and myfaces-impl are the same as jsf-api and jsf-impl and, as such, that if it encounter jsf-api or jsf-impl in the dependencies transitivity, it should not take that into consideration cause myfaecs was used higher in the graph? I could use restriction, but since the dependency to jsf can go deep in the graph using several path, with pom will be bloated with restriction ... There are quite a good amount of sun tools that have an equivalent counter-part in apache project i think. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleanup after failed integration-test phase?
Isn't there any way of executing some actions after a phase has failed? -- View this message in context: http://www.nabble.com/Cleanup-after-failed-integration-test-phase--tp16002531s177p16142888.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A provide mecanism for poms?
On Wednesday 19 March 2008 Stephen Connolly wrote: well I would have jsf-api as scope=provided That's not possible if you develop your own JSF component. You would need it at compile time. - martin signature.asc Description: This is a digitally signed message part.
Re: A provide mecanism for poms?
En l'instant précis du 19/03/08 11:45, Stephen Connolly s'exprimait en ces termes: well I would have jsf-api as scope=provided I would not depend on jsf-impl Indeed, i could add a provided rule at top of tree for both :) I bet i didn't think enough about it :D Note that it didn't explicitly add jst-api/impl to our tree, it's a transitive dependency that comes at least with richfaces ^^, maybe with some other jsf components You will be deploying this application to a container that provides the api and it's impl. You should not be depending on any of the impl classes, so that would be my logic. If you then have customers that want to deploy to a container that does not supply a JSF impl, you could have assembler produce two distributions for these customers: 1. with the JSF-api and JSF-impl 2. with the myfaces-api and myfaces-impl Generated artefact is for internal use only, and we need myfaces in it (tomcat does not provide it ;) ). However, am curious. How do you ask maven2 to produce several artefacts with different dependency tree/different resources. I'm interrested in being able to generate artefact for test and production at the same time (you send the war to test, if it's ok, you already have it's corresponding production war, which includes it's production configuration) -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A provide mecanism for poms?
En l'instant précis du 19/03/08 11:53, Martin Höller s'exprimait en ces termes: On Wednesday 19 March 2008 Stephen Connolly wrote: well I would have jsf-api as scope=provided That's not possible if you develop your own JSF component. You would need it at compile time. - martin As far as i know, scope=provided are available at compile time but not bundled in final package -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A provide mecanism for poms?
It looks to me like David's problem is that he needs to depend on other artifacts that declare a compile-scope or runtime-scope dependency on Sun's jsf-api and jsf-impl artifacts. IMO that would be an error in the poms for those other artifacts; they should declare such dependencies as provided-scope only, and then there is no problem. These are artifacts that are expected to be deployed inside a container that will already have one of these libs, so provided is the correct scope. However if there is no chance to fix the other poms then I think the only solution is to use the exclusions mechanism to prevent those dependencies being inherited (when David says restrictions below, I presume this means exclusions?). Note that a more common occurrence of this problem is the commons-logging artifact. A lot of projects declare this as a compile-time dependency - and in this case, using provided scope would not be reasonable. But there are several other projects who provide an artifact that exposes the same api (ie is a complete alternative to commons-logging). However maven provides no way AFAIK to specify that the transitive dependency should be remapped; instead excludes have to be used all over the place. It *would* be really nice for maven to have a provides or relocate functionality in this case. Regards, Simon Stephen Connolly schrieb: well I would have jsf-api as scope=provided I would not depend on jsf-impl You will be deploying this application to a container that provides the api and it's impl. You should not be depending on any of the impl classes, so that would be my logic. If you then have customers that want to deploy to a container that does not supply a JSF impl, you could have assembler produce two distributions for these customers: 1. with the JSF-api and JSF-impl 2. with the myfaces-api and myfaces-impl On Wed, Mar 19, 2008 at 9:32 AM, David Delbecq [EMAIL PROTECTED] wrote: Hello maven users, I encountered a curiosity in our maven dependency graph, while trying to find out why our webapp was failing. What is the suggested and most proper solution when a library X and a library Y are providing the same api. The suggested and most proper solution is to have only one api.jar and have multiple impl.jar's Depending on the container rules for your api you would either have the api as scope=compile or scope=provided. The impl.jar's should all have a scope=compile dependency on the standard api.jar I would not have any dependency on the impl.jar (unless I needed it for unit tests, in which case scope=test) Am using myfaces api and myfaces impl. Both are implementation respectively of the jsf-api and jsf-impl of sun. However, a few jsf based library are marked as depending on jsf-api and jsf-impl. Is there some way to tell maven that myfaces-api and myfaces-impl are the same as jsf-api and jsf-impl and, as such, that if it encounter jsf-api or jsf-impl in the dependencies transitivity, it should not take that into consideration cause myfaecs was used higher in the graph? I could use restriction, but since the dependency to jsf can go deep in the graph using several path, with pom will be bloated with restriction ... There are quite a good amount of sun tools that have an equivalent counter-part in apache project i think. -- David Delbecq Institut Royal Météorologique Ext:557 - 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 -Dplugin=install help:describe
Hello, I guess install is not a plugin but a phase, such ascompile or test the related plugin is described as following : dependency groupIdplugins.org.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.0-alpha-3/version /dependency Hope this helps ;-) Regards, Alexandre 2008/3/18, Agile Aspect [EMAIL PROTECTED]: Hi - I just installed Maven 2.0.8 as per instructions. Running mvn --version yields Maven version: 2.0.8 Java version: 1.6.0_03 OS name: linux version: 2.6.17.13 arch: i386 Family: unix The FAQ indicates that to check the installed plugins I need execute mvn -Dplugin=install help:describe But when I run this command it fails with a build failure Plugin could not be found. I also tried mvn -U -Dplugin=install help:describe but the same result - can't find the plugin. The output is enclosed. There doesn't appear to be a FAQ entry indicating how to upgrade or install a plugin. Any help would be appreciated. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-p lugin/2.0.2/maven-help-plugin-2.0.2.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin s/10/maven-plugins-10.pom 7K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven -parent-7.pom 20K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom 4K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-p lugin/2.0.2/maven-help-plugin-2.0.2.jar 23K downloaded [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [help:describe] (aggregator-style) [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0/ma ven-project-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0. pom 8K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0/ma ven-profile-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/mave n-model-2.0.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0. 4/plexus-utils-1.0.4.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container- /1.0.3/plexus-containers-1.0.3.pom 492b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0/m aven-settings-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-core/2.0/maven -core-2.0.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0 -alpha-5/wagon-file-1.0-alpha-5.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-paramet er-documenter/2.0/maven-plugin-parameter-documenter-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lig htweight/1.0-alpha-5/wagon-http-lightweight-1.0-alpha-5.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting-api/2.0/maven-reporting-api-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting/2.0/maven-reporting-2.0.pom 504b downloaded Downloading: http://repo1.maven.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxi a-sink-api-1.0-alpha-4.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-error-diagnost ics/2.0/maven-error-diagnostics-2.0.pom 812b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-registr y/2.0/maven-plugin-registry-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-c li-1.0.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv ity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.pom 6K downloadedDownloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0/ma ven-monitor-2.0.pom 400b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0- alpha-5/wagon-ssh-1.0-alpha-5.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.23/jsch-0.1.23.po m 485b downloaded Downloading:
Re: mvn -Dplugin=install help:describe
Hello, I guess install is not a plugin but a phase, such ascompile or test the related plugin is described as following : dependency groupIdplugins.org.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.0-alpha-3/version /dependency Maybe, you should try with the canonical name of the plugin Hope this helps ;-) Regards, Alexandre Agile Aspect wrote: Hi - I just installed Maven 2.0.8 as per instructions. Running mvn --version yields Maven version: 2.0.8 Java version: 1.6.0_03 OS name: linux version: 2.6.17.13 arch: i386 Family: unix The FAQ indicates that to check the installed plugins I need execute mvn -Dplugin=install help:describe But when I run this command it fails with a build failure Plugin could not be found. I also tried mvn -U -Dplugin=install help:describe but the same result - can't find the plugin. The output is enclosed. There doesn't appear to be a FAQ entry indicating how to upgrade or install a plugin. Any help would be appreciated. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-p lugin/2.0.2/maven-help-plugin-2.0.2.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin s/10/maven-plugins-10.pom 7K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven -parent-7.pom 20K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom 4K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-help-p lugin/2.0.2/maven-help-plugin-2.0.2.jar 23K downloaded [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [help:describe] (aggregator-style) [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0/ma ven-project-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0. pom 8K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0/ma ven-profile-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/mave n-model-2.0.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0. 4/plexus-utils-1.0.4.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container- /1.0.3/plexus-containers-1.0.3.pom 492b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0/m aven-settings-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-core/2.0/maven -core-2.0.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0 -alpha-5/wagon-file-1.0-alpha-5.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-paramet er-documenter/2.0/maven-plugin-parameter-documenter-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lig htweight/1.0-alpha-5/wagon-http-lightweight-1.0-alpha-5.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting-api/2.0/maven-reporting-api-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting/2.0/maven-reporting-2.0.pom 504b downloaded Downloading: http://repo1.maven.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxi a-sink-api-1.0-alpha-4.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-error-diagnost ics/2.0/maven-error-diagnostics-2.0.pom 812b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-registr y/2.0/maven-plugin-registry-2.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-c li-1.0.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv ity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.pom 6K downloadedDownloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0/ma ven-monitor-2.0.pom 400b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-
inherit execution only for packaging war
Hi folks, Shortly what we wish to have: * we have a pom.xml (packaging: pom): with multiple modules of type war and jar * for all war projects, we wish to run war:inplace after the war:war task. How can we do this? In our root pom.xml we have the maven war plugin defined: plugin artifactIdmaven-war-plugin/artifactId executions execution phaseinstall/phase goals goalinplace/goal /goals configuration /configuration /execution /executions configuration /plugin On mvn package, it will run mvn war:inplace, but not only for war artifacts, but also for jar artifacts. How can we make this execution only applicable for projects with packaging war? Thanks in advance for your time! Best regards, Kees -- Squins IT Solutions Kees van Dieren Oranjestraat 23 2983 HL Ridderkerk Phone: +31 180 41 45 20 Mobile: +31 6 30 41 38 41 www: http://squins.com
Re: inherit execution only for packaging war
On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren [EMAIL PROTECTED] wrote: In our root pom.xml we have the maven war plugin defined: ... On mvn package, it will run mvn war:inplace, but not only for war artifacts, but also for jar artifacts. How can we make this execution only applicable for projects with packaging war? Is it a bug in the war plugin perhaps? Should it somehow know not to run in the jar modules? If you don't get more info here, I'd construct a simple example to demonstrate when it does the wrong thing, and attach it to an issue in JIRA. http://jira.codehaus.org/browse/MWAR -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with site:deploy
Hello all, I'm having issues deploying my site using scp protocol (same issue with sftp as well). I get the following error, which apparently means that maven can't find the URL: Cannot connect. Reason: invalid server's version string Here's the kicker... If I remove my http proxy settings from my settings.xml file, my site:deploy works! If looks like even though my distributionManagement URL is using the scp protocol, and my proxy settings specify the http protocol, that it is still going through my proxy. Here are the snippets from my xml files: settings.xml -- proxy idmyproxy/id activetrue/active protocolhttp/protocol hosthttp-proxy.appl.ge.com/host port8080/port nonProxyHostsserverhostname, *.ge.com/nonProxyHosts /proxy? pom.xml - distributionManagement site idmysite/id urlscp://serverhostname/website/url /site /distributionManagement Obviously, removing my proxy settings for http causes me to not be able to download plugins and dependencies. Also, setting 'active' to false does not seem to work, and setting my server's hostname (both fully qualified and not) in the 'nonProxyHosts' tag does not seem to work. Any suggestions would be greatly appreciated. Thanks in advance, Justin
SV: [ANN] Maven Eclipse Plugin 2.5 Released
Yes, that worked for me as well. Arne. -Opprinnelig melding- Fra: Hoover, William [mailto:[EMAIL PROTECTED] Sendt: 18. mars 2008 19:33 Til: Maven Users List Emne: RE: [ANN] Maven Eclipse Plugin 2.5 Released I found that replacing... localRepository/path/to/repo/localRepository with... localRepositoryC:\path\to\repo/localRepository ... in settings.xml fixes the problem in XP. In 2.4 /path/to/repo worked properly and is more portable than specifying a drive and corresponding backslashes. Can anyone else verify that this fixes their issues as well? -Original Message- From: Hoover, William [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 12:57 PM To: Maven Users List Subject: RE: [ANN] Maven Eclipse Plugin 2.5 Released I tested with packaging as jar or war and still have the issue -Original Message- From: Arne Rivenes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 12:49 PM To: Maven Users List Subject: SV: [ANN] Maven Eclipse Plugin 2.5 Released This error occurs in my projects to after switching to 2.5, but so far only in when packaging are war, not jar or ejb. I'm using wtpversion 2.0. I'm using windows XP, Maven 2.0.8 Arne. -Opprinnelig melding- Fra: Hoover, William [mailto:[EMAIL PROTECTED] Sendt: 18. mars 2008 17:36 Til: Maven Users List Emne: RE: [ANN] Maven Eclipse Plugin 2.5 Released What OS and Maven version are you using? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of nicolas de loof Sent: Tuesday, March 18, 2008 10:10 AM To: Maven Users List Subject: Re: [ANN] Maven Eclipse Plugin 2.5 Released I also use a custom local repository location and get the expected M2_REPO/commons-logging in my .classpath. Nico 2008/3/18, Arnaud HERITIER [EMAIL PROTECTED]: yes please open a bug. I don't use the standard location and didn't notice it. If I can reproduce it, I'll publish a version 2.5.1 in few days. cheers. On Tue, Mar 18, 2008 at 1:56 PM, Hoover, William [EMAIL PROTECTED] wrote: I'm not using the default repository location either. I think you may be right- it may have something to do with that. -Original Message- From: MATHUS Baptiste [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 8:29 AM To: Maven Users List Subject: RE: [ANN] Maven Eclipse Plugin 2.5 Released +1. Same problem here. Just saw the behaviour some minutes ago. Precision: I'm not using the default repository location, this might a cause of this problem. Do you want someone to log a bug in the tracker, Arnaud? Cheers. -Message d'origine- De : Hoover, William [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 mars 2008 13:11 À : Maven Users List Cc : Maven Developers List Objet : RE: [ANN] Maven Eclipse Plugin 2.5 Released Using mvn eclipse:clean eclipse:eclipse with version 2.5. For example, if M2_REPO = /path/to/repo executing the command renders build paths for dependencies for project as M2_REPO/path/to/repo/commons-collections/commons-collections/3.2/commons- collections-3.2.jar If I use version 2.4 M2_REPO is referenced properly (i.e. M2_REPO/commons-collections/commons-collections/3.2/commons- collections-3.2.jar): build plugins plugin groupIdorg.apache.maven.plugins /groupId artifactIdmaven-eclipse-plugin/artifactId version2.4/version /plugin /plugins /build -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Arnaud HERITIER Sent: Tuesday, March 18, 2008 6:33 AM To: [EMAIL PROTECTED]; Maven Users List Cc: Maven Developers List Subject: [ANN] Maven Eclipse Plugin 2.5 Released The Maven team is pleased to announce the release of the Maven Eclipse Plugin, version 2.5 This plugin is used to generate Eclipse IDE files (*.classpath, *.wtpmodules and the .settings folder) for use with a project. http://maven.apache.org/plugins/maven-eclipse-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.5/version /plugin In this release we added the support for myeclipse, WTP 2.0 and the possibility to connect your projects with existing ones in your workspace. We also improved the support for rad 6 7 and fixed many bugs. Thanks a lot for those who helped us by providing patches and/or by testing our snapshots. Release Notes - Maven 2.x Eclipse Plugin - Version 2.5 ** Bug * [MECLIPSE-56] - Generated .project-file misses encoding declaration * [MECLIPSE-102] - sar projects conflict with maven-eclipse-plugin * [MECLIPSE-107] - Dependency
RE: [ANN] Maven Eclipse Plugin 2.5 Released
Make your voice be heard to fix this http://jira.codehaus.org/browse/MECLIPSE-404 :o) -Original Message- From: Arne Rivenes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 11:02 AM To: Maven Users List Subject: SV: [ANN] Maven Eclipse Plugin 2.5 Released Yes, that worked for me as well. Arne. -Opprinnelig melding- Fra: Hoover, William [mailto:[EMAIL PROTECTED] Sendt: 18. mars 2008 19:33 Til: Maven Users List Emne: RE: [ANN] Maven Eclipse Plugin 2.5 Released I found that replacing... localRepository/path/to/repo/localRepository with... localRepositoryC:\path\to\repo/localRepository ... in settings.xml fixes the problem in XP. In 2.4 /path/to/repo worked properly and is more portable than specifying a drive and corresponding backslashes. Can anyone else verify that this fixes their issues as well? -Original Message- From: Hoover, William [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 12:57 PM To: Maven Users List Subject: RE: [ANN] Maven Eclipse Plugin 2.5 Released I tested with packaging as jar or war and still have the issue -Original Message- From: Arne Rivenes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 12:49 PM To: Maven Users List Subject: SV: [ANN] Maven Eclipse Plugin 2.5 Released This error occurs in my projects to after switching to 2.5, but so far only in when packaging are war, not jar or ejb. I'm using wtpversion 2.0. I'm using windows XP, Maven 2.0.8 Arne. -Opprinnelig melding- Fra: Hoover, William [mailto:[EMAIL PROTECTED] Sendt: 18. mars 2008 17:36 Til: Maven Users List Emne: RE: [ANN] Maven Eclipse Plugin 2.5 Released What OS and Maven version are you using? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of nicolas de loof Sent: Tuesday, March 18, 2008 10:10 AM To: Maven Users List Subject: Re: [ANN] Maven Eclipse Plugin 2.5 Released I also use a custom local repository location and get the expected M2_REPO/commons-logging in my .classpath. Nico 2008/3/18, Arnaud HERITIER [EMAIL PROTECTED]: yes please open a bug. I don't use the standard location and didn't notice it. If I can reproduce it, I'll publish a version 2.5.1 in few days. cheers. On Tue, Mar 18, 2008 at 1:56 PM, Hoover, William [EMAIL PROTECTED] wrote: I'm not using the default repository location either. I think you may be right- it may have something to do with that. -Original Message- From: MATHUS Baptiste [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 8:29 AM To: Maven Users List Subject: RE: [ANN] Maven Eclipse Plugin 2.5 Released +1. Same problem here. Just saw the behaviour some minutes ago. Precision: I'm not using the default repository location, this might a cause of this problem. Do you want someone to log a bug in the tracker, Arnaud? Cheers. -Message d'origine- De : Hoover, William [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 mars 2008 13:11 À : Maven Users List Cc : Maven Developers List Objet : RE: [ANN] Maven Eclipse Plugin 2.5 Released Using mvn eclipse:clean eclipse:eclipse with version 2.5. For example, if M2_REPO = /path/to/repo executing the command renders build paths for dependencies for project as M2_REPO/path/to/repo/commons-collections/commons-collections/3.2/commons- collections-3.2.jar If I use version 2.4 M2_REPO is referenced properly (i.e. M2_REPO/commons-collections/commons-collections/3.2/commons- collections-3.2.jar): build plugins plugin groupIdorg.apache.maven.plugins /groupId artifactIdmaven-eclipse-plugin/artifactId version2.4/version /plugin /plugins /build -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Arnaud HERITIER Sent: Tuesday, March 18, 2008 6:33 AM To: [EMAIL PROTECTED]; Maven Users List Cc: Maven Developers List Subject: [ANN] Maven Eclipse Plugin 2.5 Released The Maven team is pleased to announce the release of the Maven Eclipse Plugin, version 2.5 This plugin is used to generate Eclipse IDE files (*.classpath, *.wtpmodules and the .settings folder) for use with a project. http://maven.apache.org/plugins/maven-eclipse-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.5/version /plugin In this release we added the support for myeclipse, WTP 2.0 and the possibility to connect your projects with existing ones in your workspace. We also improved the support for rad 6 7 and fixed many bugs. Thanks a lot for those who helped us by providing patches and/or by testing
Re: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.
You could use: mvn -Dmyname=abc -Dmypass=xyz And then in the pom: ...:pserver:${myname}:[EMAIL PROTECTED] But really, this is not how most people use Maven. Instead you should look at storing these values in settings.xml. Wayne On 3/19/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne, I am trying to do for CVS not with the remote repository. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED]:/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED]:/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED]:/istcvs/CVSHOME:xtclients/xtTest/url /scm To connect to cvs.But i want to pass username and password to connect cvs in command line .Please provide me the information . Thanks, Sowmya.R On 3/19/08, Wayne Fay [EMAIL PROTECTED] wrote: Take a look at the SCM plugin: http://maven.apache.org/scm/plugins/examples/bootstrapping-with-pom.html Wayne On 3/18/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi, I am working on the maven tool for my project ,where I have to checkout from CVS and I want to ask for CVS user id and password from the user while checkingout the project.This process I want to do dynamically to checkout multiple projects. I am new user of maven ,Pleases help me out to resove this issue. -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R - 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: Convert SNAPSHOT timestamps from utc to local time
On 3/19/08, David Delbecq [EMAIL PROTECTED] wrote: to find out if their commit are part of a given snapshot :) Generally in project, i don't like to see attempts at using a tool for something it was not designed for, unless there are string reasons behind this. I think even Mathus would agree this is not a best practice. But that's not really what was asked. ;-) Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: inherit execution only for packaging war
I have no idea if its a bug or not, but a way to fix things would be to simply add another level of parent in the project under which all your war projects are located. Thus: top-parent + war-parent ++ war-project1 ++ war-project2 ++ war-project3 Then tell your war-projects to use war-parent as its parent, and set the configuration inside it. Wayne On 3/19/08, Wendy Smoak [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren [EMAIL PROTECTED] wrote: In our root pom.xml we have the maven war plugin defined: ... On mvn package, it will run mvn war:inplace, but not only for war artifacts, but also for jar artifacts. How can we make this execution only applicable for projects with packaging war? Is it a bug in the war plugin perhaps? Should it somehow know not to run in the jar modules? If you don't get more info here, I'd construct a simple example to demonstrate when it does the wrong thing, and attach it to an issue in JIRA. http://jira.codehaus.org/browse/MWAR -- Wendy - 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: Adding Resources to Jar
When you declare a resource directory, it is considered as a root folder. So if you want to see your resource at another place in your jar, remove some ending parts of your resource directory (src/main/java for example). Jeff MAURY 2008/3/19 Pierre-Alexandre Lacerte [EMAIL PROTECTED]: I tried to create sample project and added an external resource (xml file) to test what you said. mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app Result : The xml is not copied in the same directory in the Jar (src/ main/java/com/mycompany/app/) , but is instead copied in the base directory. Here is my pom.xml: == project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http:// maven.apache.org/maven-v4_0_0.xsd modelVersion4.0.0/modelVersion groupIdcom.mycompany.app/groupId artifactIdmy-app/artifactId packagingjar/packaging version1.0-SNAPSHOT/version namemy-app/name urlhttp://maven.apache.org/url build resources resource directorysrc/main/java/com/mycompany/app//directory filteringfalse/filtering includes include**/*.xml/include /includes /resource /resources /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project === Please help :/ Pierre On 17-Mar-08, at 6:47 PM, Jeff MAURY wrote: You must not define an outputdirectory but multiple resource directories. As soon as you declare resource directories in your pom, the files stored in thoses directories will be included verbatim (or filtered if you want) in your outputdirectory and jar file. Jeff MAURY 2008/3/17 Pierre-Alexandre Lacerte [EMAIL PROTECTED]: The problem is that I can't define multiple outputDirectory in my pom, corresponding to the location of my different files. Ex: With this in my pom : resource directorysrc/dats/common/businessobjects//directory filteringtrue/filtering includes include**/*.xml/include /includes /resource The files are copied in the base directory of my Jar, and not in the dats/common/businessobjects/ directory. I already have 1 value of outputDirectory corresponding to the directory where I want to send my compiled classes. On 17-Mar-08, at 6:22 PM, Jeff MAURY wrote: You must define multiple resource directories in your pom. Jeff MAURY On Mon, Mar 17, 2008 at 10:40 PM, Pierre-Alexandre Lacerte [EMAIL PROTECTED] wrote: Hi, I have many resources (log4j properties, hibernate hbm.xml files, etc.) in different directories in my project. I would like to copy them in the same path in my packaged Jar file. Is it possible? I can't find a way to define multiple outputDirectory values. Thanks Pierre --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com
How change goal PACKAGE
When i use package goal it is build fail. Problem whith test, test fails when test goal runnig. I dont want fix in test problem. How can i use this goal whithout goal test? -- View this message in context: http://www.nabble.com/How-change-goal-PACKAGE-tp16145136s177p16145136.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How change goal PACKAGE
mvn -DskipTests package Cheers. -Message d'origine- De : author [mailto:[EMAIL PROTECTED] Envoyé : mercredi 19 mars 2008 16:44 À : users@maven.apache.org Objet : How change goal PACKAGE When i use package goal it is build fail. Problem whith test, test fails when test goal runnig. I dont want fix in test problem. How can i use this goal whithout goal test? -- View this message in context: http://www.nabble.com/How-change-goal-PACKAGE-tp16145136s177p1 6145136.html Sent from the Maven - Users mailing list archive 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: What is the reactor?
The reactor looks at all the POMs involved in an invocation, creates a directed graph from the relationships between the dependencies, and then performs a topological sort using a standard depth first search (DFS). On 19-Mar-08, at 2:11 AM, [EMAIL PROTECTED] wrote: Hi, There was recently a question on this list about how to implement an odd build order for submodules in a multi-module project. I said that it wasn't possible, but Brian corrected me and said that in fact it is automatic. So after some pondering, I have come to the following conclusion. Can someone confirm if I have this right? When maven is executed against a pom that has module tags, then maven gathers together the poms for all the referenced modules, and their submodules etc. into a big pool of poms. The dependencies for each pom are checked, and the list of poms is reordered so that they are sorted in the necessary order, regardless of where the modules are in the directory structure. This process is called the reactor. Then whatever command the user requested is applied over this reordered list of poms. Is that correct? And is that all the reactor does? And (back to the original poster's question) can the order be affected by profiles, ie if dependencies are altered depending on what profiles are currently active, does the reactor take that into account? Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it is going to rise tomorrow. When people are fanatically dedicated to political or religious faiths or any other kind of dogmas or goals, it's always because these dogmas or goals are in doubt. -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[site plugin] problem for deploying site
Hi all, I have a strange behavior when I try to deploy my site. I have a multi module project something like that : project |-- module1 '-- module2 In my parent pom.xml I defined the site distributionManagement like that : distributionManagement site idmy_id/id namemy name/name urlscp://server/var/www/project/url /site /distributionManagement First I launch a mvn clean site:stage -DstagingDirectory=E:\test and the generated site was ok. But when I launch mvn clean site-deploy my generated site is bad. In fact the module link is broken. I use maven-2.0.8 with maven-site-plugin:2.0-beta-6 Can you help me please ? Guillaume
RE: [site plugin] problem for deploying site
I've seen the same behavior with the enforcer site. I haven't had time to check it out, but I suspect a bug in the site plugin. -Original Message- From: Guillaume Boucherie [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 12:55 PM To: Maven Users List Subject: [site plugin] problem for deploying site Hi all, I have a strange behavior when I try to deploy my site. I have a multi module project something like that : project |-- module1 '-- module2 In my parent pom.xml I defined the site distributionManagement like that : distributionManagement site idmy_id/id namemy name/name urlscp://server/var/www/project/url /site /distributionManagement First I launch a mvn clean site:stage -DstagingDirectory=E:\test and the generated site was ok. But when I launch mvn clean site-deploy my generated site is bad. In fact the module link is broken. I use maven-2.0.8 with maven-site-plugin:2.0-beta-6 Can you help me please ? Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven tests grr argh!
Hi All, I'm trying to move a big decrepit ant build over to maven but have hit a bit of a stumbling block with running the tests. We have a standard directory structure with some tests in src/test/java but we also have a large number of the tests (~2000) in public-static-classes of the class they test in src/main/java, e.g.: public class SimpleClass { public int returnOne { return 1; } public static class Test extends junit.framework.TestCase { public void testReturnOne() { assertEquals(1, new SimpleClass().returnOne()); } } } If I run mvn test, it only picks up the tests in the test directory and not the tests in the src directory. If I set the testDirectory in the build section of my pom to the src/main/java/ directory mvn test then picks up these tests but not those in the src/test/java/ directory. There are good reasons why some of the tests should be within the file they are testing (testing of private methods) so I can't rip them all out. So, my question is: How can I make maven run all tests in both the src/main/java/ and src/main/test/ directories? Thanks, Paul. -- View this message in context: http://www.nabble.com/Maven-tests-grr-argh%21-tp16146764s177p16146764.html Sent from the Maven - Users mailing list archive at Nabble.com.
Getting Maven and BEA Workshop to play nice...
Hello all - Perhaps this has already been addressed - if so, just please point me in the right direction: We're starting a new J2EE project, which will have a Web module and an EJB module under an EAR deployment umbrella, so this is the perfect opportunity to use Maven to set the project up correctly with the proper structure. I can setup the maven structure ok, but I'm having trouble getting BEA Workshop 10 (based on Eclipse) to recognize this project as a web project when I import it... Here is the steps I followed: I have run the following mvn statements to create my Web module, which is the first in a series: 1) -- Create WAR PROJECT MODULE mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-webapp \ -DarchetypeVersion=1.0 \ -DgroupId=com.ibm.client.diamond.web \ -DartifactId=diamond-web \ -Dversion=2.0-SNAPSHOT The mvn run is successful, producing the familiar structure, with the path: src\main\webapp housing the WEB-INF sub-directory, and sample jsp resource. 2) I proceed to prepare the new web project to be used with Eclipse, so I run: mvn eclipse:eclipse - which produces the .class and .project files as a result. 3) My next step is to import the newly created project into Webshop using regular Import... use Existing Project - it imports properly, but it has an appearance of a Java project, not a DynamicWeb project at that point... I think that's my problem. 4) Finally, I creat an EnterpriseApplicationProject (EAR proj) to house my diamond-web Web applicaiton. I follow the wizzard and can add the web project to the Ear project OK, but somehow the web module does NOT get added to the application.xml config file in the EAR project - the BEA Workshop seems to completely ignore the fact that this is a Web project we're adding... thus it does not add it to the application.xml file and I can't seem to convince it to treat my maven-created project as a Web project. I even tried this same approach with Eclipse 3.3 (Europa), but had same exact experience. Of course creating a dynamic web project directl inside the workshop produces desired results, but the dir structure that results is of course not in line with the maven structure... and so it goes... :( So, please help - how can I get Maven and BEAWebShop to play nice together? Thanks, James
Re: mvn -Dplugin=install help:describe
Maven does not know the short name of the install plugin because this plugin is missing in the metadata file on central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml The workaround is to use the full plugin name: mvn help:describe -Dplugin=org.apache.maven.plugins:maven-install-plugin - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
limit size of local repository, limit number of snapshots
hi, is it possible to limit the size of local repository? especially keeping all snapshots of a version in my view often is not neccessary. so a setting, where the maximum number of snapshots can be set (others would then be discarded) would be nice. currently we sometimes get very annoying problems that roaming-win xp profiles get crashed because maven local repository takes too much space. the workaround to regularly delete local repository does not seem a good solution to me do others face similar problems? - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with site:deploy
This is known as MSITE-211 http://jira.codehaus.org/browse/MSITE-211 I committed a fix for this and deployed a new 2.0-beta-7-SNAPSHOT. Could you please give that a try, to see if it solves the problem for you? Marose, Justin (GE EntSol, Security) wrote: Hello all, I'm having issues deploying my site using scp protocol (same issue with sftp as well). I get the following error, which apparently means that maven can't find the URL: Cannot connect. Reason: invalid server's version string Here's the kicker... If I remove my http proxy settings from my settings.xml file, my site:deploy works! If looks like even though my distributionManagement URL is using the scp protocol, and my proxy settings specify the http protocol, that it is still going through my proxy. Here are the snippets from my xml files: settings.xml -- proxy idmyproxy/id activetrue/active protocolhttp/protocol hosthttp-proxy.appl.ge.com/host port8080/port nonProxyHostsserverhostname, *.ge.com/nonProxyHosts /proxy? pom.xml - distributionManagement site idmysite/id urlscp://serverhostname/website/url /site /distributionManagement Obviously, removing my proxy settings for http causes me to not be able to download plugins and dependencies. Also, setting 'active' to false does not seem to work, and setting my server's hostname (both fully qualified and not) in the 'nonProxyHosts' tag does not seem to work. Any suggestions would be greatly appreciated. Thanks in advance, Justin -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in updating SNAPSHOT from remote repo
Hello All, I see a weird situation with regards to updating the SNAPSHOT version of our internal library from our remote repo. I have three versions of SNAPSHOTS in the remote repository, when it is downloading onto the local repository it downloads the lower version instead of getting the latest version. When I execute 'mvn -X clean install', I could see in the log that the lower version of SNAPSHOT for the application is only being fetched up instead of the latest one. I'm using Maven-2.0.4 and am wondering if there are any bugs with this version which got updated in any of the later versions. Please help me in resolving this issue. // In Remote Repository internal_app-20070920.200433-1.jar 48.8 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom 0.2 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT internal_app-20080118.162518-2.jar 35.4 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.jar.md5 0.1 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.jar.sha10.1 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.pom 0.2 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.pom.md5 0.1 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.pom.sha10.1 kb Fri, 18 Jan 2008 16:25:18 GMT internal_app-20080215.192313-3.jar 236.5 kbFri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.jar.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.jar.sha10.1 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.pom 0.2 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.pom.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.pom.sha10.1 kb Fri, 15 Feb 2008 19:23:13 GMT maven-metadata.xml 0.3 kb Fri, 15 Feb 2008 19:23:13 GMT maven-metadata.xml.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT maven-metadata.xml.sha1 // In the Build Log Downloading: http://remote-repo:16888/internal-snapshots/component/internal_app/SNAPSHOT/internal_app-20070920.200433-1.pom 297/297b 297b downloaded Downloading: http://remote-repo:16888/internal-snapshots/component/internal_app/SNAPSHOT/internal_app-20070920.200433-1.jar 4/48K 8/48K . . 48/48K 48K downloaded //In Local Repository after execution mvn -X clean install command internal_app-20070920.200433-1.jar48.8 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom 0.2 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT Thanks Regards, Logu Rajamanickam Phone: 713-483-1638 - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
Re: Maven tests grr argh!
keteracel a écrit : Hi All, I'm trying to move a big decrepit ant build over to maven but have hit a bit of a stumbling block with running the tests. We have a standard directory structure with some tests in src/test/java but we also have a large number of the tests (~2000) in public-static-classes of the class they test in src/main/java, e.g.: public class SimpleClass { public int returnOne { return 1; } public static class Test extends junit.framework.TestCase { public void testReturnOne() { assertEquals(1, new SimpleClass().returnOne()); } } } If I run mvn test, it only picks up the tests in the test directory and not the tests in the src directory. If I set the testDirectory in the build section of my pom to the src/main/java/ directory mvn test then picks up these tests but not those in the src/test/java/ directory. There are good reasons why some of the tests should be within the file they are testing (testing of private methods) so I can't rip them all out. So, my question is: How can I make maven run all tests in both the src/main/java/ and src/main/test/ directories? Thanks, Paul. No need to grr Argh in mail subject, won't make people answer you faster :) To add additional sources folder to your test, use the build-helper-maven-plugin:add-test-source goal. http://mojo.codehaus.org/build-helper-maven-plugin/usage.html Regards, David Delbecq - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TestNG Listeners
Hello, I am attempting to add a listener to the testng run for my project. It is the JUnitXMLReporter by the ReportNG project. I added ReportNG as a dependency in the test scope (they don't have a pom so I created one and deployed it to our private repository ) and added the listener to the properties: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration parallelfalse/parallel argLine-DstartAll=${startAll} -Xmx768m -Xms256m -XX:PermSize=128m -XX:MaxPermSize=384m/argLine excludeGroupsdisabledTests,generateTestFile/excludeGroups excludes exclude**/Test*.java/exclude exclude**/JBossAndPersistentTwoPhaseCacheManagerTestCase.java/exclude /excludes properties listenerorg.uncommons.reportng.JUnitXMLReporter/listener /properties /configuration /plugin ... dependency groupIdorg.uncommons/groupId artifactIdreportng/artifactId version0.9.4/version scopetest/scope /dependency But when I run the tests I get no output from the JUnitXMLReporter. There are no errors and the tests complete successfully. When I run 'mvn help:describe -Dplugin=surefire' I get: $ mvn help:describe -Dplugin=surefire [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building commons [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' --- Group Id: org.apache.maven.plugins Artifact Id: maven-surefire-plugin Version: 2.4.2 Goal Prefix: surefire Description: Surefire is a test framework project. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 [INFO] Final Memory: 3M/6M [INFO] BTW, the reason I am doing this is so that I can get a Junit Style report for Hudson to display. If there is a better way to do this, I would appreciate any suggestions. Dana H. P'Simer Dana.P'[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: limit size of local repository, limit number of snapshots
This is not currently configurable. Most people have a corporate repository where they download their artifacts from, and so simply deleting ~/.m2 is less painful than if you are just downloading direct from the Internet. I know people have discussed scripts to clear out their repo (eg find latest snapshot and delete the rest) on this list but I don't have a link to Nabble for one of them. If you search, you can probably find one or more of them. But they may not work on your platform (eg script is bash or korn and you're on Windows). Wayne On 3/19/08, aldana [EMAIL PROTECTED] wrote: hi, is it possible to limit the size of local repository? especially keeping all snapshots of a version in my view often is not neccessary. so a setting, where the maximum number of snapshots can be set (others would then be discarded) would be nice. currently we sometimes get very annoying problems that roaming-win xp profiles get crashed because maven local repository takes too much space. the workaround to regularly delete local repository does not seem a good solution to me do others face similar problems? - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html Sent from the Maven - Users mailing list archive 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 in updating SNAPSHOT from remote repo
There are a lot of bugs in 2.0.4 which have been resolved in later builds. I don't know if anyone can tell you (without browsing release notes and JIRA) if this was a bug that was posted and resolved or not. Why don't you give 2.0.8 a try and see if it does things differently? Or wait for 2.0.9 which should be released soonish? Wayne On 3/19/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello All, I see a weird situation with regards to updating the SNAPSHOT version of our internal library from our remote repo. I have three versions of SNAPSHOTS in the remote repository, when it is downloading onto the local repository it downloads the lower version instead of getting the latest version. When I execute 'mvn -X clean install', I could see in the log that the lower version of SNAPSHOT for the application is only being fetched up instead of the latest one. I'm using Maven-2.0.4 and am wondering if there are any bugs with this version which got updated in any of the later versions. Please help me in resolving this issue. // In Remote Repository internal_app-20070920.200433-1.jar 48.8 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom 0.2 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT internal_app-20080118.162518-2.jar 35.4 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.jar.md5 0.1 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.jar.sha10.1 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.pom 0.2 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.pom.md5 0.1 kb Fri, 18 Jan 2008 16:25:18 GMT ..-20080118.162518-2.pom.sha10.1 kb Fri, 18 Jan 2008 16:25:18 GMT internal_app-20080215.192313-3.jar 236.5 kbFri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.jar.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.jar.sha10.1 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.pom 0.2 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.pom.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT ..-20080215.192313-3.pom.sha10.1 kb Fri, 15 Feb 2008 19:23:13 GMT maven-metadata.xml 0.3 kb Fri, 15 Feb 2008 19:23:13 GMT maven-metadata.xml.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT maven-metadata.xml.sha1 // In the Build Log Downloading: http://remote-repo:16888/internal-snapshots/component/internal_app/SNAPSHOT/internal_app-20070920.200433-1.pom 297/297b 297b downloaded Downloading: http://remote-repo:16888/internal-snapshots/component/internal_app/SNAPSHOT/internal_app-20070920.200433-1.jar 4/48K 8/48K . . 48/48K 48K downloaded //In Local Repository after execution mvn -X clean install command internal_app-20070920.200433-1.jar48.8 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.jar.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom 0.2 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.md5 0.1 kb Thu, 20 Sep 2007 20:04:33 GMT ..-20070920.200433-1.pom.sha10.1 kb Thu, 20 Sep 2007 20:04:33 GMT Thanks Regards, Logu Rajamanickam Phone: 713-483-1638 - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the
RE: Problem with site:deploy
Yup. Looks like this solved the issue. Now I just have to find out why I'm getting a permission error on my server when trying to deploy. That issue is on my side though. Thanks! -Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 1:53 PM To: Maven Users List Subject: Re: Problem with site:deploy This is known as MSITE-211 http://jira.codehaus.org/browse/MSITE-211 I committed a fix for this and deployed a new 2.0-beta-7-SNAPSHOT. Could you please give that a try, to see if it solves the problem for you? Marose, Justin (GE EntSol, Security) wrote: Hello all, I'm having issues deploying my site using scp protocol (same issue with sftp as well). I get the following error, which apparently means that maven can't find the URL: Cannot connect. Reason: invalid server's version string Here's the kicker... If I remove my http proxy settings from my settings.xml file, my site:deploy works! If looks like even though my distributionManagement URL is using the scp protocol, and my proxy settings specify the http protocol, that it is still going through my proxy. Here are the snippets from my xml files: settings.xml -- proxy idmyproxy/id activetrue/active protocolhttp/protocol hosthttp-proxy.appl.ge.com/host port8080/port nonProxyHostsserverhostname, *.ge.com/nonProxyHosts /proxy? pom.xml - distributionManagement site idmysite/id urlscp://serverhostname/website/url /site /distributionManagement Obviously, removing my proxy settings for http causes me to not be able to download plugins and dependencies. Also, setting 'active' to false does not seem to work, and setting my server's hostname (both fully qualified and not) in the 'nonProxyHosts' tag does not seem to work. Any suggestions would be greatly appreciated. Thanks in advance, Justin -- Dennis Lundberg - 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]
Maven tests grr argh!
Hi All, I'm trying to move a big decrepit ant build over to maven but have hit a bit of a stumbling block with running the tests. We have a standard directory structure with some tests in src/test/java but we also have a large number of the tests (~2000) in public-static-classes of the class they test in src/main/java, e.g.: public class SimpleClass { public int returnOne { return 1; } public static class Test extends junit.framework.TestCase { public void testReturnOne() { assertEquals(1, new SimpleClass().returnOne()); } } } If I run *mvn test*, it only picks up the tests in the test directory and not the tests in the src directory. If I set the testDirectory in the build section of my pom to the src/main/java/ directory *mvn test* then picks up these tests but not those in the src/test/java/ directory. There are good reasons why some of the tests should be within the file they are testing (testing of private methods) so I can't rip them all out. So, my question is: How can I make maven run all tests in both the src/main/java/ and src/main/test/ directories? Thanks, Paul.
maven-dependency-plugin
Hi, I'm trying to use the maven-dependency-plugin to dump a list of the project's dependencies out to a text file, but I can not seem to get it to do anything. relevant configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idwrite-dependencies/id phasecompile/phase goals goallist/goal /goals configuration outputFiledependencies.txt/outputFile /configuration /execution /executions /plugin /plugins /build I would expect that if I do mvn compile it would create dependencies.txt but it does not. Anyone have an idea what I'm doing wrong here? Thanks in advance, Davis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Project Errors with M2Eclipse
Greetings, I'm using M2Eclipse 0.0.10 here in my company to develop multi-module projects. I use Import - Existing projects into workspace when I'm implementing my modules. Ok? However I have a raly annoying problem here. Now and then, when I change something in my .java and Eclipse builds it, many things gets broken because Eclipse can't find my dependencies anymore. Then I open my Package Explorer and suddenly the Maven 2 Dependencies container is not there anymore. Then I go to Properties - Java Build Path, and check the Maven2 Container and It is completely empty. Then I have to execute Project - Clean in Eclipse many times to get things back to normal. Sometime I even have to close my Eclipse and open it again. Yesterday I've upgraded M2Eclipse to 0.9.0 and this problem still persists... I'm using: - Eclipse version 3.3.1 Build id: M20070921-1145 - Fedora Core 6 Linux - M2Eclipse 0.9.0 (and some developers 0.0.10) Does this happen to someone too, or am I the lucky one? hehe Thanks guys!
RE: maven-dependency-plugin
I just double checked the code and this should work. Is it displaying the list to the output? If not, then it's going to a file somewhere. It would be better to use ${project.build.directory}/output.txt instead so it goes to /target/output.txt -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:46 PM To: Maven Users List Subject: maven-dependency-plugin Hi, I'm trying to use the maven-dependency-plugin to dump a list of the project's dependencies out to a text file, but I can not seem to get it to do anything. relevant configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idwrite-dependencies/id phasecompile/phase goals goallist/goal /goals configuration outputFiledependencies.txt/outputFile /configuration /execution /executions /plugin /plugins /build I would expect that if I do mvn compile it would create dependencies.txt but it does not. Anyone have an idea what I'm doing wrong here? Thanks in advance, Davis - 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]
Maven version resolution
Hello again, I have a doubt here regarding Version resolution for extensions and plugins. When I omit the version for plugins, Maven resolves it to the Latest version right? And does that happen for Extensions too? Because I have a Pom here that users wagon-ssh-external as an extension and It DOESN'T specifies a version. When I build using the command line (e.g. mvn install) everything work fine. However I tried today the new M2Eclipse plugin and before that the Q4Eclipse plugin. Both of them complains that the version for wagon-ssh-external is missing. So my question is: Does this LATEST resolution exists for extension when I omit the version? Thanks a lot!
RE: Project Errors with M2Eclipse
Sounds odd. Are you sure the upgrade went ok? -Original Message- From: Felipe Kamakura [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:49 PM To: Maven User List Subject: Project Errors with M2Eclipse Greetings, I'm using M2Eclipse 0.0.10 here in my company to develop multi-module projects. I use Import - Existing projects into workspace when I'm implementing my modules. Ok? However I have a raly annoying problem here. Now and then, when I change something in my .java and Eclipse builds it, many things gets broken because Eclipse can't find my dependencies anymore. Then I open my Package Explorer and suddenly the Maven 2 Dependencies container is not there anymore. Then I go to Properties - Java Build Path, and check the Maven2 Container and It is completely empty. Then I have to execute Project - Clean in Eclipse many times to get things back to normal. Sometime I even have to close my Eclipse and open it again. Yesterday I've upgraded M2Eclipse to 0.9.0 and this problem still persists... I'm using: - Eclipse version 3.3.1 Build id: M20070921-1145 - Fedora Core 6 Linux - M2Eclipse 0.9.0 (and some developers 0.0.10) Does this happen to someone too, or am I the lucky one? hehe Thanks guys! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven version resolution
It only applies to plugins. Extensions and dependencies MUST have a version declared somewhere...either in the extension/dependency or dependencyManagement (I'm not sure if this applies to extensions) -Original Message- From: Felipe Kamakura [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:56 PM To: Maven User List Subject: Maven version resolution Hello again, I have a doubt here regarding Version resolution for extensions and plugins. When I omit the version for plugins, Maven resolves it to the Latest version right? And does that happen for Extensions too? Because I have a Pom here that users wagon-ssh-external as an extension and It DOESN'T specifies a version. When I build using the command line (e.g. mvn install) everything work fine. However I tried today the new M2Eclipse plugin and before that the Q4Eclipse plugin. Both of them complains that the version for wagon-ssh-external is missing. So my question is: Does this LATEST resolution exists for extension when I omit the version? Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Project Errors with M2Eclipse
Well, I'm pretty sure the plugin installed ok. Does the plugin use something special in the .project and .settings? Because my projects here have the structure we prepared to use with M2Eclipse 0.0.10 . On Wed, Mar 19, 2008 at 5:55 PM, Brian E. Fox [EMAIL PROTECTED] wrote: Sounds odd. Are you sure the upgrade went ok? -Original Message- From: Felipe Kamakura [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:49 PM To: Maven User List Subject: Project Errors with M2Eclipse Greetings, I'm using M2Eclipse 0.0.10 here in my company to develop multi-module projects. I use Import - Existing projects into workspace when I'm implementing my modules. Ok? However I have a raly annoying problem here. Now and then, when I change something in my .java and Eclipse builds it, many things gets broken because Eclipse can't find my dependencies anymore. Then I open my Package Explorer and suddenly the Maven 2 Dependencies container is not there anymore. Then I go to Properties - Java Build Path, and check the Maven2 Container and It is completely empty. Then I have to execute Project - Clean in Eclipse many times to get things back to normal. Sometime I even have to close my Eclipse and open it again. Yesterday I've upgraded M2Eclipse to 0.9.0 and this problem still persists... I'm using: - Eclipse version 3.3.1 Build id: M20070921-1145 - Fedora Core 6 Linux - M2Eclipse 0.9.0 (and some developers 0.0.10) Does this happen to someone too, or am I the lucky one? hehe Thanks guys! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleanup after failed integration-test phase?
Hi, Whats wrong with mvn clean http://maven.apache.org/plugins/maven-clean-plugin/usage.html 2008/3/19, jimpo [EMAIL PROTECTED]: Isn't there any way of executing some actions after a phase has failed? -- View this message in context: http://www.nabble.com/Cleanup-after-failed-integration-test-phase--tp16002531s177p16142888.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Including dependencies via profile.
Hi folks, I can't quite figure how this should work. I have a project in which there are 4 or 5 modules subordinate to the master POM, two of which have other subordinate modules. In one case, I need to include a subordinate module only when a particular profile is active - it provides a dummy security authorization scheme used for demo purposes, so I don't want it included in any production build. I keep seeing that all of the profile stuff should all be kept in the master POM - centralized. This makes sense to me, but I fail to see how that's going to work in my case. If I add the profile to my master POM to include a specific module, won't that get translated into every subordinate POM? My guess would be that I should only add this to the POM of which that module is a part, but doesn't that then decentralize the profile information? Or, is there some way to define the profile in the master but have it only effective in a particular sub-module? Thanks in advance, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cleanup after failed integration-test phase?
The build will fail if any phase fails so there isn't currently a way to execute a post failure action. -Original Message- From: Alexander Lvov [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 5:16 PM To: Maven Users List Subject: Re: Cleanup after failed integration-test phase? Hi, Whats wrong with mvn clean http://maven.apache.org/plugins/maven-clean-plugin/usage.html 2008/3/19, jimpo [EMAIL PROTECTED]: Isn't there any way of executing some actions after a phase has failed? -- View this message in context: http://www.nabble.com/Cleanup-after-failed-integration-test-phase--tp160 02531s177p16142888.html Sent from the Maven - Users mailing list archive 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: Including dependencies via profile.
Profiles themselves are not inherited, just the results of any changes they make are inherited. -Original Message- From: David C. Hicks [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 5:21 PM To: Maven Users Subject: Including dependencies via profile. Hi folks, I can't quite figure how this should work. I have a project in which there are 4 or 5 modules subordinate to the master POM, two of which have other subordinate modules. In one case, I need to include a subordinate module only when a particular profile is active - it provides a dummy security authorization scheme used for demo purposes, so I don't want it included in any production build. I keep seeing that all of the profile stuff should all be kept in the master POM - centralized. This makes sense to me, but I fail to see how that's going to work in my case. If I add the profile to my master POM to include a specific module, won't that get translated into every subordinate POM? My guess would be that I should only add this to the POM of which that module is a part, but doesn't that then decentralize the profile information? Or, is there some way to define the profile in the master but have it only effective in a particular sub-module? Thanks in advance, David - 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: Cleanup after failed integration-test phase?
This is actually an important problem. We are trying to implement Maven for a situation where we have over 100 CruiseControl projects. We really have to have a solution to this one in order to clean up resources (shutdown war files in pooled Tomcats - not in the same process as the Maven run) after a failed build. Otherwise, the apps load up in a Tomcat until it runs out of memory. I guess we'll need to modify some code somewhere but I'm not sure of the best place. We have no issue with that but we just need some leading on the right place to put it. Mike Corum -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:34 PM To: Maven Users List Subject: RE: Cleanup after failed integration-test phase? The build will fail if any phase fails so there isn't currently a way to execute a post failure action. -Original Message- From: Alexander Lvov [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 5:16 PM To: Maven Users List Subject: Re: Cleanup after failed integration-test phase? Hi, Whats wrong with mvn clean http://maven.apache.org/plugins/maven-clean-plugin/usage.html 2008/3/19, jimpo [EMAIL PROTECTED]: Isn't there any way of executing some actions after a phase has failed? -- View this message in context: http://www.nabble.com/Cleanup-after-failed-integration-test-phase--tp160 02531s177p16142888.html Sent from the Maven - Users mailing list archive 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] - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] upgrading the dependancy versions for a plugin?
I am trying to use the openJPA plugin: http://www.mavenrepository.com/artifact/org.codehaus.mojo/openjpa-maven-plugin/1.0-alpha It states it depends upon org.apache.openjpahttp://www.mavenrepository.com/artifact/org.apache.openjpa: 0.9.6-incubating But I am wanting to use version 1.0.2 How can I force this plugin to use the newer version? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
RE: [m2] upgrading the dependancy versions for a plugin?
You can't until 2.0.9...then you can specify a dependency inside the plugin block and it will override. -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 5:41 PM To: maven Subject: [m2] upgrading the dependancy versions for a plugin? I am trying to use the openJPA plugin: http://www.mavenrepository.com/artifact/org.codehaus.mojo/openjpa-maven- plugin/1.0-alpha It states it depends upon org.apache.openjpahttp://www.mavenrepository.com/artifact/org.apache.op enjpa: 0.9.6-incubating But I am wanting to use version 1.0.2 How can I force this plugin to use the newer version? -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-dependency-plugin
Hi Brian, Indeed -- total goof-up on my part. I had multiple project pom.xml files and was editing the wrong one. It works like a charm. Quick related question...the whole purpose of me dumping this to a text file was because I could not see an easy way to programmatically get a list of all project dependenciesso I figured I'd create the .txt file and parse it myself. The reason I want this list is as part of reporting framework we have. We run a long-running set of quality checks on some data, and I need to be able to store with the final report the list of all things like .jar versions, database versions, etc., etc. Is there somewhere an API that would let me retrieve this same information in the code? Regards, Davis On Wed, Mar 19, 2008 at 4:50 PM, Brian E. Fox [EMAIL PROTECTED] wrote: I just double checked the code and this should work. Is it displaying the list to the output? If not, then it's going to a file somewhere. It would be better to use ${project.build.directory}/output.txt instead so it goes to /target/output.txt -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:46 PM To: Maven Users List Subject: maven-dependency-plugin Hi, I'm trying to use the maven-dependency-plugin to dump a list of the project's dependencies out to a text file, but I can not seem to get it to do anything. relevant configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idwrite-dependencies/id phasecompile/phase goals goallist/goal /goals configuration outputFiledependencies.txt/outputFile /configuration /execution /executions /plugin /plugins /build I would expect that if I do mvn compile it would create dependencies.txt but it does not. Anyone have an idea what I'm doing wrong here? Thanks in advance, Davis - 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] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-dependency-plugin
Actually getting the list via a plugin is trivial. Just set a parameter like this: /** * POM * * @parameter expression=${project} * @readonly * @required */ protected MavenProject project; And then project.getArtifacts() will be all (including transitive) dependencies. You'll also need to specify @requiresDependencyResolution [scope] in the mojo annotations. There is also a tree component that you could use to get the output used to generate dependency:tree -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 5:57 PM To: Maven Users List Subject: Re: maven-dependency-plugin Hi Brian, Indeed -- total goof-up on my part. I had multiple project pom.xml files and was editing the wrong one. It works like a charm. Quick related question...the whole purpose of me dumping this to a text file was because I could not see an easy way to programmatically get a list of all project dependenciesso I figured I'd create the .txt file and parse it myself. The reason I want this list is as part of reporting framework we have. We run a long-running set of quality checks on some data, and I need to be able to store with the final report the list of all things like .jar versions, database versions, etc., etc. Is there somewhere an API that would let me retrieve this same information in the code? Regards, Davis On Wed, Mar 19, 2008 at 4:50 PM, Brian E. Fox [EMAIL PROTECTED] wrote: I just double checked the code and this should work. Is it displaying the list to the output? If not, then it's going to a file somewhere. It would be better to use ${project.build.directory}/output.txt instead so it goes to /target/output.txt -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:46 PM To: Maven Users List Subject: maven-dependency-plugin Hi, I'm trying to use the maven-dependency-plugin to dump a list of the project's dependencies out to a text file, but I can not seem to get it to do anything. relevant configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idwrite-dependencies/id phasecompile/phase goals goallist/goal /goals configuration outputFiledependencies.txt/outputFile /configuration /execution /executions /plugin /plugins /build I would expect that if I do mvn compile it would create dependencies.txt but it does not. Anyone have an idea what I'm doing wrong here? Thanks in advance, Davis - 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] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - 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]
mvn site-deploy using plink / pscp
Using m2.0.8, site plugin v2.0-beta-6, can anyone confirm they can? :-) 'mvn deploy' works as expected, but 'mvn site-deploy' yields the same symptoms as described in the opening comment in MSITE-25 [1]. Fix version on that ticket is the one I'm using. TIA, -Rahul [1] http://jira.codehaus.org/browse/MSITE-25 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TestNG Listeners
pls include the listener configuration from your /WEB-INF/web.xml an example: listener listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class /listener M- - Original Message - From: P'Simer, Dana (Matrix) Dana.P'[EMAIL PROTECTED] To: users@maven.apache.org Sent: Wednesday, March 19, 2008 1:22 PM Subject: TestNG Listeners Hello, I am attempting to add a listener to the testng run for my project. It is the JUnitXMLReporter by the ReportNG project. I added ReportNG as a dependency in the test scope (they don't have a pom so I created one and deployed it to our private repository ) and added the listener to the properties: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration parallelfalse/parallel argLine-DstartAll=${startAll} -Xmx768m -Xms256m -XX:PermSize=128m -XX:MaxPermSize=384m/argLine excludeGroupsdisabledTests,generateTestFile/excludeGroups excludes exclude**/Test*.java/exclude exclude**/JBossAndPersistentTwoPhaseCacheManagerTestCase.java/exclude /excludes properties listenerorg.uncommons.reportng.JUnitXMLReporter/listener /properties /configuration /plugin .. dependency groupIdorg.uncommons/groupId artifactIdreportng/artifactId version0.9.4/version scopetest/scope /dependency But when I run the tests I get no output from the JUnitXMLReporter. There are no errors and the tests complete successfully. When I run 'mvn help:describe -Dplugin=surefire' I get: $ mvn help:describe -Dplugin=surefire [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building commons [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' --- Group Id: org.apache.maven.plugins Artifact Id: maven-surefire-plugin Version: 2.4.2 Goal Prefix: surefire Description: Surefire is a test framework project. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 [INFO] Final Memory: 3M/6M [INFO] BTW, the reason I am doing this is so that I can get a Junit Style report for Hudson to display. If there is a better way to do this, I would appreciate any suggestions. Dana H. P'Simer Dana.P'[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: limit size of local repository, limit number of snapshots
yes, we got a corporate repository with archvia, which cashes dependencies, so it is not such a pain as waiting very long time when deleting .m2/repository without having a repository proxy. never the less i think that all these cleanup-scripts hanging around (cron or similar) are just as always a workaround which do not solve the source of the problem. me, at least as a user would like to have solved this memory-size problem (currently 2GB sized repository is growing larger and larger just because of snapshots) by maven2 itself. i think i will go to open a jira issue for that, so setting the number of snapshots kept in local repository can be configured. Wayne Fay wrote: This is not currently configurable. Most people have a corporate repository where they download their artifacts from, and so simply deleting ~/.m2 is less painful than if you are just downloading direct from the Internet. I know people have discussed scripts to clear out their repo (eg find latest snapshot and delete the rest) on this list but I don't have a link to Nabble for one of them. If you search, you can probably find one or more of them. But they may not work on your platform (eg script is bash or korn and you're on Windows). Wayne On 3/19/08, aldana [EMAIL PROTECTED] wrote: hi, is it possible to limit the size of local repository? especially keeping all snapshots of a version in my view often is not neccessary. so a setting, where the maximum number of snapshots can be set (others would then be discarded) would be nice. currently we sometimes get very annoying problems that roaming-win xp profiles get crashed because maven local repository takes too much space. the workaround to regularly delete local repository does not seem a good solution to me do others face similar problems? - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html Sent from the Maven - Users mailing list archive 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] - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16163260.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TestNG Listeners
You will probably have better luck with this question on the TestNG list. Everyone there uses TestNG and many use Maven, whereas here, we all use Maven and only some use TestNG. Wayne On 3/19/08, P'Simer, Dana (Matrix) Dana.P'[EMAIL PROTECTED] wrote: Hello, I am attempting to add a listener to the testng run for my project. It is the JUnitXMLReporter by the ReportNG project. I added ReportNG as a dependency in the test scope (they don't have a pom so I created one and deployed it to our private repository ) and added the listener to the properties: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration parallelfalse/parallel argLine-DstartAll=${startAll} -Xmx768m -Xms256m -XX:PermSize=128m -XX:MaxPermSize=384m/argLine excludeGroupsdisabledTests,generateTestFile/excludeGroups excludes exclude**/Test*.java/exclude exclude**/JBossAndPersistentTwoPhaseCacheManagerTestCase.java/exclude /excludes properties listenerorg.uncommons.reportng.JUnitXMLReporter/listener /properties /configuration /plugin ... dependency groupIdorg.uncommons/groupId artifactIdreportng/artifactId version0.9.4/version scopetest/scope /dependency But when I run the tests I get no output from the JUnitXMLReporter. There are no errors and the tests complete successfully. When I run 'mvn help:describe -Dplugin=surefire' I get: $ mvn help:describe -Dplugin=surefire [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building commons [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.4.2' --- Group Id: org.apache.maven.plugins Artifact Id: maven-surefire-plugin Version: 2.4.2 Goal Prefix: surefire Description: Surefire is a test framework project. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Mar 19 13:25:45 EDT 2008 [INFO] Final Memory: 3M/6M [INFO] BTW, the reason I am doing this is so that I can get a Junit Style report for Hudson to display. If there is a better way to do this, I would appreciate any suggestions. Dana H. P'Simer Dana.P'[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: limit size of local repository, limit number of snapshots
Please do file a JIRA and reply back with the number. I'll see about implementing a plugin to help with this issue, but no guarantees. ;-) Wayne On 3/19/08, aldana [EMAIL PROTECTED] wrote: yes, we got a corporate repository with archvia, which cashes dependencies, so it is not such a pain as waiting very long time when deleting .m2/repository without having a repository proxy. never the less i think that all these cleanup-scripts hanging around (cron or similar) are just as always a workaround which do not solve the source of the problem. me, at least as a user would like to have solved this memory-size problem (currently 2GB sized repository is growing larger and larger just because of snapshots) by maven2 itself. i think i will go to open a jira issue for that, so setting the number of snapshots kept in local repository can be configured. Wayne Fay wrote: This is not currently configurable. Most people have a corporate repository where they download their artifacts from, and so simply deleting ~/.m2 is less painful than if you are just downloading direct from the Internet. I know people have discussed scripts to clear out their repo (eg find latest snapshot and delete the rest) on this list but I don't have a link to Nabble for one of them. If you search, you can probably find one or more of them. But they may not work on your platform (eg script is bash or korn and you're on Windows). Wayne On 3/19/08, aldana [EMAIL PROTECTED] wrote: hi, is it possible to limit the size of local repository? especially keeping all snapshots of a version in my view often is not neccessary. so a setting, where the maximum number of snapshots can be set (others would then be discarded) would be nice. currently we sometimes get very annoying problems that roaming-win xp profiles get crashed because maven local repository takes too much space. the workaround to regularly delete local repository does not seem a good solution to me do others face similar problems? - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html Sent from the Maven - Users mailing list archive 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] - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16163260.html Sent from the Maven - Users mailing list archive 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]
[ANN] RMIC Maven Plugin 1.0-beta-1 Released
The Mojo team is pleased to announce the release of the RMIC Maven Plugin version 1.0-beta-1. This release contains some minor enhancements and bug fixes. A list of changes is attached at the end of this mail. Enjoy! Paul Gier Release Notes - Maven 2.x RMIC Plugin - Version 1.0-beta-1 ** Bug * [MRMIC-19] - dependencies with scope provided are not considered within rmic * [MRMIC-20] - No stubs are created for remote interfaces in IIOP mode ** Improvement * [MRMIC-13] - Create basic unit tests and/or integration tests. * [MRMIC-18] - Fix some java 1.5 specific code. * [MRMIC-21] - Should have a documented way to put the stubs in the main jar ** New Feature * [MRMIC-12] - Add support for running rmic against the test classes directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: limit size of local repository, limit number of snapshots
On Wed, Mar 19, 2008 at 4:52 PM, Wayne Fay [EMAIL PROTECTED] wrote: Please do file a JIRA and reply back with the number. I'll see about implementing a plugin to help with this issue, but no guarantees. ;-) That would be great! We're also getting requests for cleaning up the local repository on CI servers such as Continuum: http://jira.codehaus.org/browse/CONTINUUM-1693 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How change goal PACKAGE
Dear Mathus, your mind that it will skip test when run package? which commond skip compile when run site? 2008/3/19, MATHUS Baptiste [EMAIL PROTECTED]: mvn -DskipTests package Cheers. -Message d'origine- De : author [mailto:[EMAIL PROTECTED] Envoyé : mercredi 19 mars 2008 16:44 À : users@maven.apache.org Objet : How change goal PACKAGE When i use package goal it is build fail. Problem whith test, test fails when test goal runnig. I dont want fix in test problem. How can i use this goal whithout goal test? -- View this message in context: http://www.nabble.com/How-change-goal-PACKAGE-tp16145136s177p1 6145136.html Sent from the Maven - Users mailing list archive 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: [site plugin] problem for deploying site
what exception? print list: ... 2008/3/20, Guillaume Boucherie [EMAIL PROTECTED]: Hi all, I have a strange behavior when I try to deploy my site. I have a multi module project something like that : project |-- module1 '-- module2 In my parent pom.xml I defined the site distributionManagement like that : distributionManagement site idmy_id/id namemy name/name urlscp://server/var/www/project/url /site /distributionManagement First I launch a mvn clean site:stage -DstagingDirectory=E:\test and the generated site was ok. But when I launch mvn clean site-deploy my generated site is bad. In fact the module link is broken. I use maven-2.0.8 with maven-site-plugin:2.0-beta-6 Can you help me please ? Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn -Dplugin=install help:describe
thanks! it's ok! :) 2008/3/20, Heinrich Nirschl [EMAIL PROTECTED]: Maven does not know the short name of the install plugin because this plugin is missing in the metadata file on central: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml The workaround is to use the full plugin name: mvn help:describe -Dplugin=org.apache.maven.plugins:maven-install-plugin - Henry - 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]
Running two builds of the same branch simultaneously
I'm working on a multi-module reactor project that has a long build. I'd like to be able to sync down two copies of trunk (X and Y), do a little bit of work in X, and start building X. While X builds, I'd like to go over to Y, do a little bit of work in Y, and kick off a build of Y. The problem with this is the local repository: my X changes may incorrectly commingle with my Y changes. Can anyone suggest a way to make this work? If possible, I'd prefer not to have to login to my box as two separate users to make this work. (FYI, I'm on Windows XP.) -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running two builds of the same branch simultaneously
Hi Dan, I see two solutions to this: 1. only run mvn verify, this way nothing gets installed into the local repository, 2. or run the maven command specifying the local repository on the command line. Use separate repositories for each build. I don't remember the property to use on the command line to specify the repository but I believe this is possible. Anyone? Hope this helps, SaM On Thu, Mar 20, 2008 at 2:01 PM, Dan Fabulich [EMAIL PROTECTED] wrote: I'm working on a multi-module reactor project that has a long build. I'd like to be able to sync down two copies of trunk (X and Y), do a little bit of work in X, and start building X. While X builds, I'd like to go over to Y, do a little bit of work in Y, and kick off a build of Y. The problem with this is the local repository: my X changes may incorrectly commingle with my Y changes. Can anyone suggest a way to make this work? If possible, I'd prefer not to have to login to my box as two separate users to make this work. (FYI, I'm on Windows XP.) -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Samuel Le Berrigaud
Re: Running two builds of the same branch simultaneously
On Wed, Mar 19, 2008 at 8:01 PM, Dan Fabulich [EMAIL PROTECTED] wrote: The problem with this is the local repository: my X changes may incorrectly commingle with my Y changes. Can anyone suggest a way to make this work? If possible, I'd prefer not to have to login to my box as two separate users to make this work. (FYI, I'm on Windows XP.) You can use -Dmaven.repo.local=... to specify a different local repository on the command line. (As you've discovered, there is no locking in the local repo, and concurrent builds using the same local repo are not supported.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running two builds of the same branch simultaneously
Wendy Smoak wrote: You can use -Dmaven.repo.local=... to specify a different local repository on the command line. Is there some way to wire up a POM to make that be the default for my project? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running two builds of the same branch simultaneously
On Wed, Mar 19, 2008 at 8:22 PM, Dan Fabulich [EMAIL PROTECTED] wrote: Wendy Smoak wrote: You can use -Dmaven.repo.local=... to specify a different local repository on the command line. Is there some way to wire up a POM to make that be the default for my project? Not really. It's developer-specific, so it goes in settings.xml (or on the command line). It wouldn't make sense in the pom, which needs to work for all developers. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running two builds of the same branch simultaneously
Wendy Smoak wrote: Not really. It's developer-specific, so it goes in settings.xml (or on the command line). Too bad... It wouldn't make sense in the pom, which needs to work for all developers. Sure it would; you'd set the local repo to be ./localrepo. -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running two builds of the same branch simultaneously
Samuel Le Berrigaud wrote: 1. only run mvn verify, this way nothing gets installed into the local repository, This doesn't work in a multi-module reactor build where the modules depend on each other, does it? I've got a project X that depends on project Y; project Y built (without installing anything in my local repo) but project X claimed that it couldn't find project Y. Is this even supposed to work? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running two builds of the same branch simultaneously
No, it will only work if you at least do compile (then a reference to /target/classes is passed instead of the jar) -Original Message- From: Dan Fabulich [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 11:32 PM To: Maven Users List Subject: Re: Running two builds of the same branch simultaneously Samuel Le Berrigaud wrote: 1. only run mvn verify, this way nothing gets installed into the local repository, This doesn't work in a multi-module reactor build where the modules depend on each other, does it? I've got a project X that depends on project Y; project Y built (without installing anything in my local repo) but project X claimed that it couldn't find project Y. Is this even supposed to work? -Dan - 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: Running two builds of the same branch simultaneously
Brian E. Fox wrote: Samuel Le Berrigaud wrote: 1. only run mvn verify, this way nothing gets installed into the local repository, This doesn't work in a multi-module reactor build where the modules depend on each other, does it? No, it will only work if you at least do compile (then a reference to /target/classes is passed instead of the jar) Huh? verify is after compile, right before install. (Actually, I did package, then later tried verify to see if it would work; neither did.) Should that have worked? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]