Re: M2 Eclipse Plugin
John, You can add an "m2 build" configuration to your list of builders. Kees On 2/2/06, John Fallows <[EMAIL PROTECTED]> wrote: > Folks, > > I've recently started playing around with the M2 Eclipse plugin - very cool > stuff! > > Just wondering, apart from managing the libraries and neat repository > searching, does M2 Eclipse plugin also implement an Eclipse Builder that > would make sure all sources and resources are generated before compilation? > > Kind Regards, > John Fallows. > -- > http://apress.com/book/bookDisplay.html?bID=10044 > Author: Pro JSF and Ajax: Building Rich Internet Components, Apress > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2 Eclipse Plugin
Folks, I've recently started playing around with the M2 Eclipse plugin - very cool stuff! Just wondering, apart from managing the libraries and neat repository searching, does M2 Eclipse plugin also implement an Eclipse Builder that would make sure all sources and resources are generated before compilation? Kind Regards, John Fallows. -- http://apress.com/book/bookDisplay.html?bID=10044 Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
need to build a SAR file not a JAR file
Hey there, I'm need to build a SAR file for JBoss deployment, which is essentially the same as a JAR file, with a different extension (.sar rather than .jar). Can someone tell me how this can be accomplished? Thanks! Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] site.xml schema
AFAIK not yet Cheers, Vincent 2006/2/1, Thomas Van de Velde <[EMAIL PROTECTED]>: > Hi, > > I am having an error in the generation of my site. > > [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 > [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 > [ERROR] RHS of #set statement is null. Context will not be modified. > org/apache/ > maven/plugins/site/maven-site.vm [line 2, column 1] > [ERROR] Method calculateLink threw exception for reference $PathTool in > template > org/apache/maven/plugins/site/maven-site.vm at [3,29] > [INFO] > - > --- > [ERROR] BUILD ERROR > > Is there any schema I can use to validate my site.xml? > > Thomas > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [***SPAM*** Score/Req: 10.4/5.0] Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
Kind of, My Windows username and SVN username are the same, so I suspect SVN just takes your Windows username and searches for cached credentials. I think you could do the trick with specifying another username on the SVN's url, but without the password. Providing that the password for this username is cached by SVN it should work too. Regards Maciej > -Original Message- > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 10:11 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: [***SPAM*** Score/Req: > 10.4/5.0] Re: SVN url password > > Are you using the Windows username as the SVN username? > > On 2/1/06, Maciej Mastalarczuk <[EMAIL PROTECTED]> wrote: > > Hi Alejandro, > > > > The way I got it working is through connecting to SVN using command-line > > tool under the user account that is later used for builds. The username > and > > password is then cached somewhere (???). On Windows box it goes into > > something like that: > > > > C:\Documents and Settings\maven\Application Data\Subversion > > > > (sorry, in my previous post I wrote it went to home directory; my > mistake). > > > > I've no idea where it would go on Linux, but I am sure it can cache it. > > > > After this SVN will just use cached passwords providing you use the same > > user account (or do it for all accounts). > > > > There may be a better way of doing it, but I don't know it :-). This > whole > > SVN authentication could probably do with a couple of good howto's. > > > > Hope this helps > > > > Maciej > > > > > -Original Message- > > > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, 1 February 2006 5:04 PM > > > To: Maven Users List > > > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > > > > > > I am speaking about the password to connect Subversion SCM, not the > Maven > > > organization repository. On the URL you can specify the user but not > the > > > password (and probably you won't like to do so), but on the > > > settings.xmlfile as far as I know it is only possible to specify Maven > > > component > > > repository passwords. > > > > > > Alex > > > > > > On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > > > > > > > > Hi Alejandro! > > > > > > > > I don't know if u ment this when u mentioned the > > > > settings.xml > > > > But i think u have to use a section there. > > > > This is mostly common for all username/password > > > > thingies like tomcat:deploy and so on. > > > > > > > > Try to edit your ~/.m2/settings.xml and insert your > > > > settings according to the following configuration for > > > > tomcat. The svn configuration should be nearly the > > > > same: > > > > > > > > > > > > ... > > > > > > > > > > > >tomcat > > > >myTomcatUser > > > >myTomcatPassword > > > > > > > > > > > > ... > > > > > > > > > > > > you then have to reference the server-id in your > > > > pom.xml: > > > > > > > > ... > > > > > > > > > > > > > > > > org.codehaus.mojo > > > > > > > > tomcat-maven-plugin > > > > > > > > 1.0-SNAPSHOT > > > > > > > > > > > > tomcat > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > best regards, > > > > strub > > > > > > > > > > > > --- Alejandro Nicolas Mascarell > > > > <[EMAIL PROTECTED]> schrieb: > > > > > > > > > Does anyone know where is the SCM user password > > > > > provided when using SCM url? > > > > > As from the specification (and checked on > > > > > svnScmProviderRepository class) > > > > > the password is not gathered for the URL, as in the > > > > > case on CVS. I have > > > > > checked whether the password was taken from > > > > > settings.xml file but it seems > > > > > it is not the case. > > > > > > > > > > Thanks! > > > > > > > > > > Alex > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ___ > > > > Telefonate ohne weitere Kosten vom PC zum PC: > http://messenger.yahoo.de > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Forking with Surefire
Ben Gidley wrote: I am having issues with Maven running the unit tests on my project. The main error is http://maven.apache.org/plugins/maven-surefire-plugin/howto.html For forkMode you can specify "once" or "pertest" which really means per test case. I've added: http://jira.codehaus.org/browse/MSUREFIRE-55 and http://jira.codehaus.org/browse/MSUREFIRE-56 Sorry about the confusion. java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.( RuntimeBuiltinLeafInfoImpl.java:779) Looking at this list I can see a number of people have hit this and the solution is to fork the JVM for the unit tests. Looking at the surefire plugin documentation I have added the following to my POM org.apache.maven.plugins maven-surefire-plugin each However this make no difference. I then suspected it may be not in the released version of the plugin - so I tried using the snapshot by adding Snapshots Snapshots http://snapshots.maven.codehaus.org/maven2/ and forcing the plugin version. This also appears to make no different. Looking at the code for the plugin in Subversion for surefire it does appear it supports forking and this is the way to turn in on. Am I doing something wrong to make it use the plugin? Has anyone got any ideas of how to get round this issue? Thanks Ben -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org First, the taking in of scattered particulars under one Idea, so that everyone understands what is being talked about ... Second, the separation of the Idea into parts, by dividing it at the joints, as nature directs, not breaking any limb in half as a bad carver might. -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn: Error resolving case of
I wrote some docs on this, outlining how you can use SCM in concert with maven builds and releases. Maybe there's something in there of interest. http://wiki.ucalgary.ca/page/LearningCommons/Documentation/ Project_Versioning_-_Best_Practices The SCM password is actually in your .svn folder in your working copy (for subversion), and in your ~/.cvspass for CVS. So once your project is successfully checked out, you don't need to specify your password anywhere else, AFAIK. J On 31-Jan-06, at 7:13 AM, Alejandro Nicolas Mascarell wrote: Don't worry. I would like to prepare some docs about the subject (Maven 2 and Subversion) for beginners. I'll make you know if I finally complete it. Another question... where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Alex On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: I don't think some docs exists somewhere about it, sorry. Emmanuel Alejandro Nicolas Mascarell a écrit : Thanks for your quick answer! ;) Regarding the space before "-DtabBase", you know... issues of copy & paste from command line. :$ Do you know whether best practices information about Maven 2 integration with SCM exist somewhere? Regards, Alex On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: 1- you need a space before "-DtagBase" ;-) 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase with svn://localhost/CVS/maven-deployment/tags You can use Nabble to search in ML archives ( http://www.nabble.com/forum/Search.jtp?query=maven) Emmanuel Alejandro Nicolas Mascarell a écrit : I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven- deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven- deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm:svn:svn://localhost/CVS/maven- deployment/trunk maven-release-plugin scm:svn:svn://localhost/CVS/maven-deployment/tagstagBase> Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Julian Wood <[EMAIL PROTECTED]> Programmer/Analyst University of Calgary http://commons.ucalgary.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Packaging dependent jars within a jar project
Thanks, Richard, I'll definitely try this plugin out. -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 2:16 PM To: Maven Users List Subject: Re: Packaging dependent jars within a jar project You could also try using the dependency-maven-plugin (http://mojo.codehaus.org/dependency-maven-plugin/) to copy or unpack your dependent JARs into your target folder before the package phase. For instance: org.codehaus.mojo dependency-maven-plugin unpack process-resources unpack big-project local-model 1.0-SNAPSHOT jar ${project.build.directory} Good luck, Richard Allen Dov Wasserman wrote: >I have been trying to find a way to get Maven to produce a jar artifact >that includes (some of) its dependent artifacts, without much luck. I >have seen a few ways that promise this, but none panned out in the ways >that we need. If anyone can suggest a way to do this, I'd be much >obliged. I included my POM and assembly files below. > >I did get this to work somewhat using assembly descriptors, but I also >need the manifest to have certain project-specific values which get >inserted using the standard jar plugin under . They >don't get inserted into the *-jar-with-dependencies that the assembly >plugin produces. > >There's also talk about the Classworld's Uberjar plugin, but I cannot >figure out how to invoke it. The artifact id is not found to download, >and I don't know to configure it, despite all the documentation on it. >It might be specific to Maven 1.x, I am using Maven 2.0.2. > >Thanks to all in advance, > >-Dov Wasserman > > > > >Project POM: > >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";> >4.0.0 > >big-project >client-components >1.0-SNAPSHOT > >big-project-component >component-search >jar >My Special Web Component >http://maven.apache.org >1.0-SNAPSHOT > > >... >... >1.0-SNAPSHOT >provided > > > > >big-project >local-model >1.0-SNAPSHOT >compile > > > >sun >servlet-api >2.4 >provided > > >junit >junit >3.8.1 >test > > > > > > >org.apache.maven.plugins >maven-jar-plugin > > > > > >com.foo.client.component.SearchComponent > >CS ><.../> > > > > > >maven-assembly-plugin > > >src/main/assembly/dep.xml > > > > > > > > > > > > > > > > >Assembly descriptor: > > >jar-with-dependencies > >jar > >false > > >target/classes >/ > > > > >/lib/ >false >runtime > > > > > > > > > - 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]
[m2] Release a version of the maven-one-plugin?
Any chance that a version of the maven-one-plugin will be released any time soon?Even just as an alpha or beta, I don't care much what it's called. :) It'd be /very/ useful for me, and probably for others too. Right now it can only be found in the snapshots repository, which I'd really rather not enable in general --Matthew Beermann - Do you Yahoo!? With a free 1 GB, there's more in store with Yahoo! Mail.
[m2] internal plugin repository
I have deployed my own Maven plugins to an internal plugin repository and listed that repository as a plugin repository in my settings.xml. Now Maven tries to download other plugins (not my own) from this repository, fails, and blacklists my internal repo. I want Maven to only download my plugins from my internal repository and not blacklist it for not having other plugins. Is this possible? If so, how do I set that up? Thanks, Richard Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Packaging dependent jars within a jar project
You could also try using the dependency-maven-plugin (http://mojo.codehaus.org/dependency-maven-plugin/) to copy or unpack your dependent JARs into your target folder before the package phase. For instance: org.codehaus.mojo dependency-maven-plugin unpack process-resources unpack big-project local-model 1.0-SNAPSHOT jar ${project.build.directory} Good luck, Richard Allen Dov Wasserman wrote: I have been trying to find a way to get Maven to produce a jar artifact that includes (some of) its dependent artifacts, without much luck. I have seen a few ways that promise this, but none panned out in the ways that we need. If anyone can suggest a way to do this, I'd be much obliged. I included my POM and assembly files below. I did get this to work somewhat using assembly descriptors, but I also need the manifest to have certain project-specific values which get inserted using the standard jar plugin under . They don't get inserted into the *-jar-with-dependencies that the assembly plugin produces. There's also talk about the Classworld's Uberjar plugin, but I cannot figure out how to invoke it. The artifact id is not found to download, and I don't know to configure it, despite all the documentation on it. It might be specific to Maven 1.x, I am using Maven 2.0.2. Thanks to all in advance, -Dov Wasserman Project POM: 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";> 4.0.0 big-project client-components 1.0-SNAPSHOT big-project-component component-search jar My Special Web Component http://maven.apache.org 1.0-SNAPSHOT ... ... 1.0-SNAPSHOT provided big-project local-model 1.0-SNAPSHOT compile sun servlet-api 2.4 provided junit junit 3.8.1 test org.apache.maven.plugins maven-jar-plugin com.foo.client.component.SearchComponent CS <.../> maven-assembly-plugin src/main/assembly/dep.xml Assembly descriptor: jar-with-dependencies jar false target/classes / /lib/ false runtime - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing plug-ins manually
You could download the plugins' source code and execute: $ mvn install Or you could build Cewolf with Maven on a computer that does have access to the Internet, then copy the local repository (~/.m2/repository by default) to the computer that doesn't have Internet access, then execute a maven build on that computer using maven's offline (-o) option. Richard Allen [EMAIL PROTECTED] wrote: I have a server that is NOT connected to the outside world. It is completely internal use only. I have a software package that I am trying to install (Cewolf). Cewolf uses maven in its install. However when I try to run the install Maven tries to connect to the outside world to download the resources plug-in. But since there is not connection to the outside world, this download fails, and thus so does the install. Is there any way to manually install this (and possibly others) plug-in? Thanks. --Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1] Findbugs 1.1 plugin's dependencies not in repository
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html On 2/1/06, jason r tibbetts <[EMAIL PROTECTED]> wrote: > Version 1.1 of the Findbugs plugin was posted to iBiblio on January 3rd, > but two of its dependencies, findbugs-ant-0.9.4.jar and > coreplugin-0.9.4.jar are missing. Whom do I ask to have these uploaded? > > - > 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: Setting up a proxy with maven-proxy
http://maven-proxy.codehaus.org/Installation On 2/1/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to set up a remote repository that acts as a proxy to > iBiblio. I have obtained the Codehaus maven-proxy webapp and wanted > to experiment with it, but I cannot seem to find any references to > where to put the configuration file, and what needs to be in the > configuration file. > > Can anyone help me out? > > Brad > > - > 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]
Setting up a proxy with maven-proxy
Hello, I would like to set up a remote repository that acts as a proxy to iBiblio. I have obtained the Codehaus maven-proxy webapp and wanted to experiment with it, but I cannot seem to find any references to where to put the configuration file, and what needs to be in the configuration file. Can anyone help me out? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing plug-ins manually
I have a server that is NOT connected to the outside world. It is completely internal use only. I have a software package that I am trying to install (Cewolf). Cewolf uses maven in its install. However when I try to run the install Maven tries to connect to the outside world to download the resources plug-in. But since there is not connection to the outside world, this download fails, and thus so does the install. Is there any way to manually install this (and possibly others) plug-in? Thanks. --Alex
[m2] maven-deploy-plugin: Can give deploy goal repositoryId like deploy-file goal?
Is there a way to feed the deploy:deploy goal the repository that you want the artifact deployed to like you can deploy:deploy-file? If not, then I think that would be a useful feature to have. Thanks, Richard Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant task
Hi, You need to set a dependency within the plugin, as in org.apache.maven.plugins maven-antrun-plugin ant ant-trax 1.6.5 . Martin. Will Heger wrote: I've crisscrossed the archives regarding the ant xslt task. At onetime it was necessary to use... ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apac he.xalan.processor.TransformerFactoryImpl')} ...there was even an FAQ entry about it. But I cannot get my xslt tasks running in M2 and I'm wondering if anyone has a pom.xml example. I've begun to pile-in ant dependencies: ant-trax, ant-xslp, etc. Is this a dependency issue? Current error (with trax set as processor): Embedded error: The following error occurred while executing this line: C:\development\decoder\src\main\resources\build.xml:6:java.lang.ClassNotFoun dException:org.apache.tools.ant.taskdefs.optional.TraXLiaison Error w/o trax set as processor: [xslt] DEPRECATED - xalan processor is deprecated. Use trax instead. [xslt] DEPRECATED - xslp processor is deprecated. Use trax instead. build bit from pom.xml: maven-antrun-plugin generate-sources run build file: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Groeten, Martin mailto:[EMAIL PROTECTED] tel: +31 (0) 20-7988464 mob: +31 (0) 6-21551921 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] Findbugs 1.1 plugin's dependencies not in repository
Version 1.1 of the Findbugs plugin was posted to iBiblio on January 3rd, but two of its dependencies, findbugs-ant-0.9.4.jar and coreplugin-0.9.4.jar are missing. Whom do I ask to have these uploaded? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Diagnose changes in the jars of repository on basis of Timestamp
In other words, if you're still making changes to a project with a given version, you should name it's version x-SNAPSHOT, as in 1.0-SNAPSHOT, in which case the depending projects will always check the repository for a more recent (by timestamp) instance of the project, which seems like what you want. -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 8:04 AM To: Maven Users List Subject: RE: Diagnose changes in the jars of repository on basis of Timestamp Parveen Beniwal wrote on Wednesday, February 01, 2006 1:12 PM: > Hi all > I am working in a multiproject environment. Suppose i am working > on project A ver 1.0 and B 1.0 which is dependent on A. I am making > some changes in the A and deploying it in the remote repository > without changing the version number. This is a no-no. NEVER do this! If Maven looks for a dependency not available in the local repository, it will download it from a remote repo - but this will be done only once. So if you republish the original version, Maven will not update it anymore ever. That's what snapshots are for. > Is there any way to diagnose the changes of project A jar of same > version in the repository while compiling the project B i mean on > basis of timeStamp etc. Read the docs for proper Maven usage. - Jörg - 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: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
Thanks. I'll take a look to those On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > maven-scm and scm providers don't know settings.xml. It's the job of plugins > to read it and pass > info to maven-scm, so you should look at maven scm plugin or maven release > plugin > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > I've checked StarteamScmProviderRepository class and it seems StarTeam > > gets the password from the URL as well: > > > > public String getFullUrl() > > { > > String fullUrl = getUser() + ":"; > > > > if ( getPassword() != null ) > > { > > fullUrl += getPassword(); > > } > > > > fullUrl += "@" + getUrl(); > > > > return fullUrl; > > } > > > > Could you tell what class/classes look after regarding user/pass > > resolution on SCM providers based on settings.xml file? > > > > On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > > >>I'm not sure, perhaps in some plugins > >> > >>Emmanuel > >> > >>Alejandro Nicolas Mascarell a écrit : > >> > >>>Do you mean that user/password configuration it is not allowed for > >>>Subversion on settings.xml in the current version? > >>> > >>>On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > >>> > >>> > if your scm url is : scm:provider:...scm_host:scm_port... > > > scm_host:scm_port > your_username > your_password > > > if your scm url is : scm:provider:...scm_host... > > > scm_host > your_username > your_password > > > > is generally used for artifact repositories uploads, but it can > be used for all features > that require a server. > > I think starteam scm provider is the only one that support it. We'll > allow it for all scm providers > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > > >Where on the settings.xml is it possible to define the user/pass for a > >SCM > >provider? I know about the section. But is it not this for Maven > >artifacts repositories? Is it not the element used as the > >reference from element? > > > >I'm using maven-release-plugin. Is there a way to know MOJO's paramenters > >without browsing source code? Thanks for all! ;) > > > >On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > > > > > > >>We don't allow password in scm svn url for security reason. It's allowed > >>in scm cvs url for backward > >>compatibility. > >> > >>What is the plugin you want to use with scm url? > >>Actually, some scm providers can read password from settings.xml, but > >>not > >>all. We need to > >>standardize it. > >> > >>If you can't define svn password by a mojo property (I'm pretty sure you > >>can), you must register it > >>by running a svn command from command line like this : > >> > >>svn --username your_username --password your_password command_to_execute > >> > >>Emmanuel > >> > >>Maciej Mastalarczuk a écrit : > >> > >> > >> > >>>Hi Alejandro, > >>> > >>>The way I got it working is through connecting to SVN using > >>>command-line > >>>tool under the user account that is later used for builds. The username > >> > >>and > >> > >> > >> > >>>password is then cached somewhere (???). On Windows box it goes into > >>>something like that: > >>> > >>>C:\Documents and Settings\maven\Application Data\Subversion > >>> > >>>(sorry, in my previous post I wrote it went to home directory; my > >> > >>mistake). > >> > >> > >> > >>>I've no idea where it would go on Linux, but I am sure it can cache it. > >>> > >>>After this SVN will just use cached passwords providing you use the > >>>same > >>>user account (or do it for all accounts). > >>> > >>>There may be a better way of doing it, but I don't know it :-). This > >> > >>whole > >> > >> > >> > >>>SVN authentication could probably do with a couple of good howto's. > >>> > >>>Hope this helps > >>> > >>>Maciej > >>> > >>> > >>> > >>> > >>> > -Original Message- > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 5:04 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > > I am speaking about the password to connect Subversion SCM, not the > >> > >>Maven > >> > >> > >> > organization repository. On the URL you can specify the user but not > the > password (and probably you won't like to do so), but on the > settings.xmlfile as far as I know it is only possible to specify Maven > component > repository passwords. > > >
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
maven-scm and scm providers don't know settings.xml. It's the job of plugins to read it and pass info to maven-scm, so you should look at maven scm plugin or maven release plugin Emmanuel Alejandro Nicolas Mascarell a écrit : I've checked StarteamScmProviderRepository class and it seems StarTeam gets the password from the URL as well: public String getFullUrl() { String fullUrl = getUser() + ":"; if ( getPassword() != null ) { fullUrl += getPassword(); } fullUrl += "@" + getUrl(); return fullUrl; } Could you tell what class/classes look after regarding user/pass resolution on SCM providers based on settings.xml file? On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: I'm not sure, perhaps in some plugins Emmanuel Alejandro Nicolas Mascarell a écrit : Do you mean that user/password configuration it is not allowed for Subversion on settings.xml in the current version? On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: if your scm url is : scm:provider:...scm_host:scm_port... scm_host:scm_port your_username your_password if your scm url is : scm:provider:...scm_host... scm_host your_username your_password is generally used for artifact repositories uploads, but it can be used for all features that require a server. I think starteam scm provider is the only one that support it. We'll allow it for all scm providers Emmanuel Alejandro Nicolas Mascarell a écrit : Where on the settings.xml is it possible to define the user/pass for a SCM provider? I know about the section. But is it not this for Maven artifacts repositories? Is it not the element used as the reference from element? I'm using maven-release-plugin. Is there a way to know MOJO's paramenters without browsing source code? Thanks for all! ;) On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: We don't allow password in scm svn url for security reason. It's allowed in scm cvs url for backward compatibility. What is the plugin you want to use with scm url? Actually, some scm providers can read password from settings.xml, but not all. We need to standardize it. If you can't define svn password by a mojo property (I'm pretty sure you can), you must register it by running a svn command from command line like this : svn --username your_username --password your_password command_to_execute Emmanuel Maciej Mastalarczuk a écrit : Hi Alejandro, The way I got it working is through connecting to SVN using command-line tool under the user account that is later used for builds. The username and password is then cached somewhere (???). On Windows box it goes into something like that: C:\Documents and Settings\maven\Application Data\Subversion (sorry, in my previous post I wrote it went to home directory; my mistake). I've no idea where it would go on Linux, but I am sure it can cache it. After this SVN will just use cached passwords providing you use the same user account (or do it for all accounts). There may be a better way of doing it, but I don't know it :-). This whole SVN authentication could probably do with a couple of good howto's. Hope this helps Maciej -Original Message- From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 5:04 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password I am speaking about the password to connect Subversion SCM, not the Maven organization repository. On the URL you can specify the user but not the password (and probably you won't like to do so), but on the settings.xmlfile as far as I know it is only possible to specify Maven component repository passwords. Alex On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: Hi Alejandro! I don't know if u ment this when u mentioned the settings.xml But i think u have to use a section there. This is mostly common for all username/password thingies like tomcat:deploy and so on. Try to edit your ~/.m2/settings.xml and insert your settings according to the following configuration for tomcat. The svn configuration should be nearly the same: ... tomcat myTomcatUser myTomcatPassword ... you then have to reference the server-id in your pom.xml: ... org.codehaus.mojo tomcat-maven-plugin 1.0-SNAPSHOT tomcat ... best regards, strub --- Alejandro Nicolas Mascarell <[EMAIL PROTECTED]> schrieb: Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ---
Re: [m2] Forking with Surefire
On 2/1/06, Ben Gidley <[EMAIL PROTECTED]> wrote: > I am having issues with Maven running the unit tests on my project. The main > error is > > java.lang.LinkageError: loader constraints violated when linking > javax/xml/namespace/QName class > at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.( > RuntimeBuiltinLeafInfoImpl.java:779) > > Looking at this list I can see a number of people have hit this and the > solution is to fork the JVM for the unit tests. Looking at the surefire > plugin documentation I have added the following to my POM > > org.apache.maven.plugins > maven-surefire-plugin > > each > > > > However this make no difference. I then suspected it may be not in the > released version of the plugin - so I tried using the snapshot by adding > > Snapshots > Snapshots > http://snapshots.maven.codehaus.org/maven2/ > > > and forcing the plugin version. This also appears to make no different. > > Looking at the code for the plugin in Subversion for surefire it does appear > it supports forking and this is the way to turn in on. Am I doing something > wrong to make it use the plugin? I am using the forkMode successfully with mvn 2.0.2 and the only diff I seem to have with your config is that I specify the execution test Not sure if that will solve your issue. > Has anyone got any ideas of how to get round this issue? Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multi-module maven 2 project
Emmanuel, I was hoping that Continuum would preserve the parent-child relationship of a parent and child poms. It would be nice to force a build on either a child or the parent. Forcing a build on the parent pom would build its child modules. As it stands now I can use the parent pom.xml to load all the sub-modules in Continuum, then I can remove the parent project since it is not necessary. This is confusing. As it stands now if you try to run the parent project it just reports a success without doing anything. I would expect an error saying it can't build the sub-modules or it builds the sub-modules. If you are saying that the parent pom.xml is not needed then shouldn't Continuum just add the child modules and not the parent. Also, What if you add three parent pom.xml to Continuum. The flat list of modules looses the project groupings. Perhaps adding a tree or grouping concept for the Continuum Projects list would be a helpful addition. - Jonathan -Original Message- From: Stevenson, Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 6:27 AM To: 'continuum-users@maven.apache.org' Subject: RE: multi-module maven 2 project Thanks for your responses gents. I was under wrong the impression that continuum didn't support multi module builds. Now I know it does I will definitely be using them more. Cheers, Chris -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 31 January 2006 08:46 To: continuum-users@maven.apache.org Subject: Re: multi-module maven 2 project a "command line project" is a Shell project. If you want to build all sub-modules when you build the parent, you have several solution. 1- You want all projects are independant in Continuum, so you add a Maven project. The default goal of a maven parent project isclean install with -N parameter that means that mvn doesn't run recursivly in all modules. You can remove -N parameter in build definition but all your submodules will be built twice (with parent pom and with independant project) 2- You don't need independant projects for submodules in Continuum. Add a Shell project instead of Maven project and set up the command line to run. Emmanuel Johnson, Jonathan a écrit : > I submitted the parent pom to continuum. Its very nicely found all the sub-modules and set those up as well. I did not have to set up a command line project (not sure what that is either). > > One thing that could be enhanced for continuum is a tree structure instead of a flat list. The tree structure would indicate while module is the parent module. Currently there is not indicator which is you parent module. Of course that begs the question of a hierarchical, multi-project tree in maven and continuum. > > The other thing I noticed is forcing a build on the parent module in continuum does not execute the build on the all children. For me it quickly executes with a success yet the sub-module builds are not invoked. > > This is the build report on the parent module named "Java Modules". > > > [INFO] Scanning for projects... > [INFO] > -- > -- > [INFO] Building Java Modules > [INFO]task-segment: [clean, install] > [INFO] > -- > -- > [INFO] [clean:clean] > [INFO] Skipping missing optional mojo: > org.apache.maven.plugins:maven-site-plugin:attach-descriptor > [INFO] [install:install] > [INFO] Installing /home/builder/454/AppJava/modules/66/pom.xml to > /home/builder/.m2/repository/com/fourfivefour/AppJavaModules/1.0/AppJa > vaModules-1.0.pom [INFO] > -- > -- > [INFO] BUILD SUCCESSFUL > [INFO] > -- > -- > [INFO] Total time: 2 seconds > [INFO] Finished at: Mon Jan 30 14:02:38 EST 2006 [INFO] Final Memory: > 2M/5M [INFO] > -- > -- > > -Original Message- > From: Stevenson, Chris [mailto:[EMAIL PROTECTED] > Sent: Monday, January 30, 2006 1:04 PM > To: 'continuum-users@maven.apache.org' > Subject: RE: multi-module maven 2 project > > Gents, > > Can I just check, did you setup your mvn multi module project by > submitting the parent pom and continuum working it out? Or did you > have to create a command line project? > > I remember a while back that continuum couldn't build multi module > projects, except as a command line project. Or am I going nuts.. > > Chris > > -Original Message- > From: Johnson, Jonathan [mailto:[EMAIL PROTECTED] > Sent: 27 January 2006 15:26 > To: continuum-users@maven.apache.org > Subject: RE: multi-module maven 2 project > > Thanks Emmanuel - comments below. > > -Original Message- > From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] > Sent: Friday, January 27, 2006 9:37 A
[m2] Forking with Surefire
I am having issues with Maven running the unit tests on my project. The main error is java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.( RuntimeBuiltinLeafInfoImpl.java:779) Looking at this list I can see a number of people have hit this and the solution is to fork the JVM for the unit tests. Looking at the surefire plugin documentation I have added the following to my POM org.apache.maven.plugins maven-surefire-plugin each However this make no difference. I then suspected it may be not in the released version of the plugin - so I tried using the snapshot by adding Snapshots Snapshots http://snapshots.maven.codehaus.org/maven2/ and forcing the plugin version. This also appears to make no different. Looking at the code for the plugin in Subversion for surefire it does appear it supports forking and this is the way to turn in on. Am I doing something wrong to make it use the plugin? Has anyone got any ideas of how to get round this issue? Thanks Ben
RE: maven-proxy: Does proxying internal repositories make any sen se?
It's also usefull when you have multiple offices within the same organization. -Original Message- From: Edwin Punzalan [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 9:46 PM To: Maven Users List Subject: Re: maven-proxy: Does proxying internal repositories make any sen se? No, I don't change their pom. ;) Say you want to use a project from codehaus, you can put the codehaus repository in your pom.xml so maven can download jars from it. Its not documented? Hmmm... Have you tried these: http://maven.apache.org/guides/introduction/introduction-to-repositories .html http://maven.apache.org/guides/mini/guide-multiple-repositories.html Anyway repositories tell maven where to get artifacts aside from central or ibiblio. ^_^ Treloar, Barrie (SAPOL) wrote: >>-Original Message- >>From: Edwin Punzalan [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, 31 January 2006 12:18 PM >>To: Maven Users List >>Subject: Re: maven-proxy: Does proxying internal repositories make any >>sen se? >> >> >>For deploying, yes. you need only the dsitributionManagement and the >>settings.xml configuration. >> >>But when other projects wants to use your artifacts ( which is of >>course not in ibiblio ), they need to know where to download it. So >>you put in their pom.xml. >> >> > >You change their pom? > >The pom.xml documentation doesn't explain what the purpose of the > section. > >>From my limited knowledge of m2 I have noticed that unknown artifacts >contact all the repositories defined in settings.xml, in the order >specified, to find the artifact to download. > >I'm assuming the section defines the id of the >repository so that it can be specified in settings.xml. > >Thanks for your response. >Barrie > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
I've checked StarteamScmProviderRepository class and it seems StarTeam gets the password from the URL as well: public String getFullUrl() { String fullUrl = getUser() + ":"; if ( getPassword() != null ) { fullUrl += getPassword(); } fullUrl += "@" + getUrl(); return fullUrl; } Could you tell what class/classes look after regarding user/pass resolution on SCM providers based on settings.xml file? On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > I'm not sure, perhaps in some plugins > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > Do you mean that user/password configuration it is not allowed for > > Subversion on settings.xml in the current version? > > > > On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > > >>if your scm url is : scm:provider:...scm_host:scm_port... > >> > >> > >> scm_host:scm_port > >> your_username > >> your_password > >> > >> > >>if your scm url is : scm:provider:...scm_host... > >> > >> > >> scm_host > >> your_username > >> your_password > >> > >> > >> > >> is generally used for artifact repositories uploads, but it can be > >>used for all features > >>that require a server. > >> > >>I think starteam scm provider is the only one that support it. We'll allow > >>it for all scm providers > >> > >>Emmanuel > >> > >>Alejandro Nicolas Mascarell a écrit : > >> > >>>Where on the settings.xml is it possible to define the user/pass for a SCM > >>>provider? I know about the section. But is it not this for Maven > >>>artifacts repositories? Is it not the element used as the > >>>reference from element? > >>> > >>>I'm using maven-release-plugin. Is there a way to know MOJO's paramenters > >>>without browsing source code? Thanks for all! ;) > >>> > >>>On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > >>> > >>> > We don't allow password in scm svn url for security reason. It's allowed > in scm cvs url for backward > compatibility. > > What is the plugin you want to use with scm url? > Actually, some scm providers can read password from settings.xml, but not > all. We need to > standardize it. > > If you can't define svn password by a mojo property (I'm pretty sure you > can), you must register it > by running a svn command from command line like this : > > svn --username your_username --password your_password command_to_execute > > Emmanuel > > Maciej Mastalarczuk a écrit : > > > >Hi Alejandro, > > > >The way I got it working is through connecting to SVN using command-line > >tool under the user account that is later used for builds. The username > > and > > > >password is then cached somewhere (???). On Windows box it goes into > >something like that: > > > >C:\Documents and Settings\maven\Application Data\Subversion > > > >(sorry, in my previous post I wrote it went to home directory; my > > mistake). > > > >I've no idea where it would go on Linux, but I am sure it can cache it. > > > >After this SVN will just use cached passwords providing you use the same > >user account (or do it for all accounts). > > > >There may be a better way of doing it, but I don't know it :-). This > > whole > > > >SVN authentication could probably do with a couple of good howto's. > > > >Hope this helps > > > >Maciej > > > > > > > > > >>-Original Message- > >>From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, 1 February 2006 5:04 PM > >>To: Maven Users List > >>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > >> > >>I am speaking about the password to connect Subversion SCM, not the > > Maven > > > >>organization repository. On the URL you can specify the user but not the > >>password (and probably you won't like to do so), but on the > >>settings.xmlfile as far as I know it is only possible to specify Maven > >>component > >>repository passwords. > >> > >>Alex > >> > >>On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > >> > >> > >> > >>>Hi Alejandro! > >>> > >>>I don't know if u ment this when u mentioned the > >>>settings.xml > >>>But i think u have to use a section there. > >>>This is mostly common for all username/password > >>>thingies like tomcat:deploy and so on. > >>> > >>>Try to edit your ~/.m2/settings.xml and insert your > >>>settings according to the following configuration for > >>>tomcat. The svn configuration should be nearly the > >>>same: > >>> > >>> > >>>... > >>> > >>> > >>> tomcat > >>> myTomcatUser > >>> myTomcatPassword > >>> > >>> > >>>... > >>> > >>> > >>>you then have to re
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
Are you using the Windows username as the SVN username? On 2/1/06, Maciej Mastalarczuk <[EMAIL PROTECTED]> wrote: > Hi Alejandro, > > The way I got it working is through connecting to SVN using command-line > tool under the user account that is later used for builds. The username and > password is then cached somewhere (???). On Windows box it goes into > something like that: > > C:\Documents and Settings\maven\Application Data\Subversion > > (sorry, in my previous post I wrote it went to home directory; my mistake). > > I've no idea where it would go on Linux, but I am sure it can cache it. > > After this SVN will just use cached passwords providing you use the same > user account (or do it for all accounts). > > There may be a better way of doing it, but I don't know it :-). This whole > SVN authentication could probably do with a couple of good howto's. > > Hope this helps > > Maciej > > > -Original Message- > > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, 1 February 2006 5:04 PM > > To: Maven Users List > > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > > > > I am speaking about the password to connect Subversion SCM, not the Maven > > organization repository. On the URL you can specify the user but not the > > password (and probably you won't like to do so), but on the > > settings.xmlfile as far as I know it is only possible to specify Maven > > component > > repository passwords. > > > > Alex > > > > On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > > > > > > Hi Alejandro! > > > > > > I don't know if u ment this when u mentioned the > > > settings.xml > > > But i think u have to use a section there. > > > This is mostly common for all username/password > > > thingies like tomcat:deploy and so on. > > > > > > Try to edit your ~/.m2/settings.xml and insert your > > > settings according to the following configuration for > > > tomcat. The svn configuration should be nearly the > > > same: > > > > > > > > > ... > > > > > > > > >tomcat > > >myTomcatUser > > >myTomcatPassword > > > > > > > > > ... > > > > > > > > > you then have to reference the server-id in your > > > pom.xml: > > > > > > ... > > > > > > > > > > > > org.codehaus.mojo > > > > > > tomcat-maven-plugin > > > > > > 1.0-SNAPSHOT > > > > > > > > > tomcat > > > > > > > > > > > > ... > > > > > > > > > > > > > > > best regards, > > > strub > > > > > > > > > --- Alejandro Nicolas Mascarell > > > <[EMAIL PROTECTED]> schrieb: > > > > > > > Does anyone know where is the SCM user password > > > > provided when using SCM url? > > > > As from the specification (and checked on > > > > svnScmProviderRepository class) > > > > the password is not gathered for the URL, as in the > > > > case on CVS. I have > > > > checked whether the password was taken from > > > > settings.xml file but it seems > > > > it is not the case. > > > > > > > > Thanks! > > > > > > > > Alex > > > > > > > > > > > > > > > > > > > > > > > > > > > > ___ > > > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ViewCVS error on Apache
It is required to update the component's site then as the following link is still there: http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-site-plugin The site page: http://maven.apache.org/plugins/maven-release-plugin/source-repository.html Alex On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > all plugins are moved in their own repo few months ago. > > http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-release-plugin/ > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > Are you changing something on the repository? I get the following > > error when accessing it using ViewCVS: > > > > An Exception Has Occurred > > maven/components/trunk/maven-plugins/maven-release-plugin: unknown > > location > > > > HTTP Response Status 404 Not Found > > > > > > Python Traceback Traceback (most recent call last): > > File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3345, in main > > request.run_viewcvs() > > File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 292, in run_viewcvs > > % self.where, '404 Not Found') > > ViewCVSException: 404 Not Found: > > maven/components/trunk/maven-plugins/maven-release-plugin: unknown > > location > > > > > > Alex > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ViewCVS error on Apache
all plugins are moved in their own repo few months ago. http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-release-plugin/ Emmanuel Alejandro Nicolas Mascarell a écrit : Are you changing something on the repository? I get the following error when accessing it using ViewCVS: An Exception Has Occurred maven/components/trunk/maven-plugins/maven-release-plugin: unknown location HTTP Response Status 404 Not Found Python Traceback Traceback (most recent call last): File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3345, in main request.run_viewcvs() File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 292, in run_viewcvs % self.where, '404 Not Found') ViewCVSException: 404 Not Found: maven/components/trunk/maven-plugins/maven-release-plugin: unknown location Alex - 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: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
I'm not sure, perhaps in some plugins Emmanuel Alejandro Nicolas Mascarell a écrit : Do you mean that user/password configuration it is not allowed for Subversion on settings.xml in the current version? On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: if your scm url is : scm:provider:...scm_host:scm_port... scm_host:scm_port your_username your_password if your scm url is : scm:provider:...scm_host... scm_host your_username your_password is generally used for artifact repositories uploads, but it can be used for all features that require a server. I think starteam scm provider is the only one that support it. We'll allow it for all scm providers Emmanuel Alejandro Nicolas Mascarell a écrit : Where on the settings.xml is it possible to define the user/pass for a SCM provider? I know about the section. But is it not this for Maven artifacts repositories? Is it not the element used as the reference from element? I'm using maven-release-plugin. Is there a way to know MOJO's paramenters without browsing source code? Thanks for all! ;) On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: We don't allow password in scm svn url for security reason. It's allowed in scm cvs url for backward compatibility. What is the plugin you want to use with scm url? Actually, some scm providers can read password from settings.xml, but not all. We need to standardize it. If you can't define svn password by a mojo property (I'm pretty sure you can), you must register it by running a svn command from command line like this : svn --username your_username --password your_password command_to_execute Emmanuel Maciej Mastalarczuk a écrit : Hi Alejandro, The way I got it working is through connecting to SVN using command-line tool under the user account that is later used for builds. The username and password is then cached somewhere (???). On Windows box it goes into something like that: C:\Documents and Settings\maven\Application Data\Subversion (sorry, in my previous post I wrote it went to home directory; my mistake). I've no idea where it would go on Linux, but I am sure it can cache it. After this SVN will just use cached passwords providing you use the same user account (or do it for all accounts). There may be a better way of doing it, but I don't know it :-). This whole SVN authentication could probably do with a couple of good howto's. Hope this helps Maciej -Original Message- From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 5:04 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password I am speaking about the password to connect Subversion SCM, not the Maven organization repository. On the URL you can specify the user but not the password (and probably you won't like to do so), but on the settings.xmlfile as far as I know it is only possible to specify Maven component repository passwords. Alex On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: Hi Alejandro! I don't know if u ment this when u mentioned the settings.xml But i think u have to use a section there. This is mostly common for all username/password thingies like tomcat:deploy and so on. Try to edit your ~/.m2/settings.xml and insert your settings according to the following configuration for tomcat. The svn configuration should be nearly the same: ... tomcat myTomcatUser myTomcatPassword ... you then have to reference the server-id in your pom.xml: ... org.codehaus.mojo tomcat-maven-plugin 1.0-SNAPSHOT tomcat ... best regards, strub --- Alejandro Nicolas Mascarell <[EMAIL PROTECTED]> schrieb: Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail:
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
Do you mean that user/password configuration it is not allowed for Subversion on settings.xml in the current version? On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > if your scm url is : scm:provider:...scm_host:scm_port... > > >scm_host:scm_port >your_username >your_password > > > if your scm url is : scm:provider:...scm_host... > > >scm_host >your_username >your_password > > > > is generally used for artifact repositories uploads, but it can be > used for all features > that require a server. > > I think starteam scm provider is the only one that support it. We'll allow it > for all scm providers > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > Where on the settings.xml is it possible to define the user/pass for a SCM > > provider? I know about the section. But is it not this for Maven > > artifacts repositories? Is it not the element used as the > > reference from element? > > > > I'm using maven-release-plugin. Is there a way to know MOJO's paramenters > > without browsing source code? Thanks for all! ;) > > > > On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > > >>We don't allow password in scm svn url for security reason. It's allowed > >>in scm cvs url for backward > >>compatibility. > >> > >>What is the plugin you want to use with scm url? > >>Actually, some scm providers can read password from settings.xml, but not > >>all. We need to > >>standardize it. > >> > >>If you can't define svn password by a mojo property (I'm pretty sure you > >>can), you must register it > >>by running a svn command from command line like this : > >> > >>svn --username your_username --password your_password command_to_execute > >> > >>Emmanuel > >> > >>Maciej Mastalarczuk a écrit : > >> > >>>Hi Alejandro, > >>> > >>>The way I got it working is through connecting to SVN using command-line > >>>tool under the user account that is later used for builds. The username > >> > >>and > >> > >>>password is then cached somewhere (???). On Windows box it goes into > >>>something like that: > >>> > >>>C:\Documents and Settings\maven\Application Data\Subversion > >>> > >>>(sorry, in my previous post I wrote it went to home directory; my > >> > >>mistake). > >> > >>>I've no idea where it would go on Linux, but I am sure it can cache it. > >>> > >>>After this SVN will just use cached passwords providing you use the same > >>>user account (or do it for all accounts). > >>> > >>>There may be a better way of doing it, but I don't know it :-). This > >> > >>whole > >> > >>>SVN authentication could probably do with a couple of good howto's. > >>> > >>>Hope this helps > >>> > >>>Maciej > >>> > >>> > >>> > -Original Message- > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 5:04 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > > I am speaking about the password to connect Subversion SCM, not the > >> > >>Maven > >> > organization repository. On the URL you can specify the user but not the > password (and probably you won't like to do so), but on the > settings.xmlfile as far as I know it is only possible to specify Maven > component > repository passwords. > > Alex > > On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > > > >Hi Alejandro! > > > >I don't know if u ment this when u mentioned the > >settings.xml > >But i think u have to use a section there. > >This is mostly common for all username/password > >thingies like tomcat:deploy and so on. > > > >Try to edit your ~/.m2/settings.xml and insert your > >settings according to the following configuration for > >tomcat. The svn configuration should be nearly the > >same: > > > > > >... > > > > > > tomcat > > myTomcatUser > > myTomcatPassword > > > > > >... > > > > > >you then have to reference the server-id in your > >pom.xml: > > > >... > > > > > > > > org.codehaus.mojo > > > > tomcat-maven-plugin > > > >1.0-SNAPSHOT > > > > > > tomcat > > > > > > > >... > > > > > > > > > >best regards, > >strub > > > > > >--- Alejandro Nicolas Mascarell > ><[EMAIL PROTECTED]> schrieb: > > > > > > > >>Does anyone know where is the SCM user password > >>provided when using SCM url? > >>As from the specification (and checked on > >>svnScmProviderRepository class) > >>the password is not gathered for the URL, as in the > >>case on CVS. I have > >>checked whether the password was taken from > >>settings.xml file but it seems > >>it is not the case. > >> > >>Thanks! > >> > >>Alex > >> > > > > > > > > > > > >
ViewCVS error on Apache
Are you changing something on the repository? I get the following error when accessing it using ViewCVS: An Exception Has Occurred maven/components/trunk/maven-plugins/maven-release-plugin: unknown location HTTP Response Status 404 Not Found Python Traceback Traceback (most recent call last): File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3345, in main request.run_viewcvs() File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 292, in run_viewcvs % self.where, '404 Not Found') ViewCVSException: 404 Not Found: maven/components/trunk/maven-plugins/maven-release-plugin: unknown location Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m202] Strange behaviour for deploy
Hello to all, I am experiencing really strange behavior for goals "deploy" and "site:deploy". When running maven with these goals, the transfer get stuck and after some times, we get the following build error : [INFO] [site:deploy] Using private key: id scpexe://my.server.fr/var/www/projects/my-proj/my-subproj/ - Session: Opened Executing command: ssh -i id -o "BatchMode yes" [EMAIL PROTECTED] "mkdir -p /var/www/projects/my-project/my-subproj/." Disconnecting: Timeout, server not responding. scpexe://srvue.norsys.fr/var/www/projects/my-project/my-subproj/ - Session: Disconnecting scpexe://srvue.norsys.fr/var/www/projects/my-project/my-subproj/ - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code -1 - Disconnecting: Timeout, server not responding. [INFO] This behavior happends haphazardly : some subprojects are OK ! We tried the wagon extension to use external ssh, at version alpha-5 and alpha-6 and it does not work either. Thanks in advance, -- Arnaud Bailly, Dr. - Ingénieur de Recherche NORSYS 1, rue de la Cense des Raines ZAC du Moulin 59710 ENNEVELIN Tel : (33) 3 28 76 56 76 Mob : (33) 6 17 12 19 78 Fax : (33) 3 28 76 57 00 Web : http://www.norsys.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Diagnose changes in the jars of repository on basis of Timestamp
Parveen Beniwal wrote on Wednesday, February 01, 2006 1:12 PM: > Hi all > I am working in a multiproject environment. Suppose i > am working on > project A ver 1.0 and B 1.0 which is dependent on A. I am making some > changes in the A and deploying it in the remote repository > without changing > the version number. This is a no-no. NEVER do this! If Maven looks for a dependency not available in the local repository, it will download it from a remote repo - but this will be done only once. So if you republish the original version, Maven will not update it anymore ever. That's what snapshots are for. > Is there any way to diagnose the changes > of project A > jar of same version in the repository while compiling the > project B i mean > on basis of timeStamp etc. Read the docs for proper Maven usage. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] site.xml schema
Hi, I am having an error in the generation of my site. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/ maven/plugins/site/maven-site.vm [line 2, column 1] [ERROR] Method calculateLink threw exception for reference $PathTool in template org/apache/maven/plugins/site/maven-site.vm at [3,29] [INFO] - --- [ERROR] BUILD ERROR Is there any schema I can use to validate my site.xml? Thomas
Re: [m2] Using the pom version in JavaCode
Maven adds the pom.xml of war/jar artifacts to the archived file. You can retreive it on a running system by using somthing like getClass().getResourceAsStream("/META-INF/maven///pom.xml"); Ørjan Fredy wrote: Hi all, is there a library to access the pom Content from Java? For example when I should show the actuall Version in the titleboard ore something else. Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] war plugin and warSourceExcludes not working for dependencies
Is it a bug in the maven-war-plugin? From plugin sources: for ( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); // TODO: utilise appropriate methods from project builder ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME ); if ( !artifact.isOptional() && filter.include( artifact ) ) { String type = artifact.getType(); if ( "tld".equals( type ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), tldDirectory ); } /* ### */ else if ( "jar".equals( type ) || "ejb".equals( type ) || "ejb-client".equals( type ) ) { FileUtils.copyFileToDirectory( artifact.getFile(), libDirectory ); } /* ### */ It seems that all dependencies are copied to the WEB-INF/lib - excludes filter is not used here. Is this a bug or the plugin should work this way? If this behavior is intended maybe there should be some flag or other excludes filter for project dependencies? I tried to make all dependencies provided but then they don't appear in the manifest.mf Classpath :( Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Diagnose changes in the jars of repository on basis of Timestamp
Hi all I am working in a multiproject environment. Suppose i am working on project A ver 1.0 and B 1.0 which is dependent on A. I am making some changes in the A and deploying it in the remote repository without changing the version number. Is there any way to diagnose the changes of project A jar of same version in the repository while compiling the project B i mean on basis of timeStamp etc. Parveen Beniwal
Re: [m2] Problems with release:perform and cvs (no such repository)
Ok, do it in the Directory where already a checkout was executed it works ;-)) Fredy "Maven Users List" schrieb am 01.02.06 12:55:31: Hi, the output of the goal: [DEBUG] (f) urlScm = scm:cvs:pserver::@:/opt/cvs/cvsroot:kdg_common [DEBUG] -- end configuration -- [INFO] [release:prepare] [INFO] Verifying there are no local modifications ... Provider message: The cvs command failed. Command output: /opt/cvs/cvsroot : no such repository I've configured the scm in pom: scm:cvs:pserver::@:/opt/cvs/cvsroot:kdg_common scm:cvs:pserver::@:/opt/cvs/cvsroot:kdg_common kdg_common If I execute "cvs -d:pserver::@:/opt/cvs/cvsroot checkout kdg_common" on windows commandLine it works fine! Where is the problem? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Fred Robert Hauschel http://www.Hauschel.de Mobil:0179 - 6917092 Telefon: 07427 - 91179 Fax: 07427 - 91178 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] war plugin and warSourceExcludes not working for dependencies
I tried to follow instructions from: http://www.nabble.com/Maven-2-EAR%2C-WAR%2C-EJB-Common-Dependencies-t1013415.html and http://www.nabble.com/RE%3A-Best-Practice---Maven-with-WSAD-or-RAD6-p2509735.html and http://www.nabble.com/RE%3A-m2-war-dependencies-in-ear-p054.html using following code in my war project's pom.xml: org.apache.maven.plugins maven-war-plugin WEB-INF/lib/*.jar true lib/ but it seems that it is not working for me. What I want to get is war without its dependencies in the WEB-INF/lib, because I want to have them in the EAR. What am I doing wrong? Is it a bug in the maven-war-plugin? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Problems with release:perform and cvs (no such repository)
Hi, the output of the goal: [DEBUG] (f) urlScm = scm:cvs:pserver::@:/opt/cvs/cvsroot:kdg_common [DEBUG] -- end configuration -- [INFO] [release:prepare] [INFO] Verifying there are no local modifications ... Provider message: The cvs command failed. Command output: /opt/cvs/cvsroot : no such repository I've configured the scm in pom: scm:cvs:pserver::@:/opt/cvs/cvsroot:kdg_common scm:cvs:pserver::@:/opt/cvs/cvsroot:kdg_common kdg_common If I execute "cvs -d:pserver::@:/opt/cvs/cvsroot checkout kdg_common" on windows commandLine it works fine! Where is the problem? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly of source jars
Hi all is there any way to make assemly of the source jars from the repository. Parveen Beniwal
looking at the maven site via continuum
Hi all, I have another question. Is it possible to present the site generated by maven next to the build? It would be nice to be able to check the site from the continuum website. greetz Jettro
RE: multi-module maven 2 project
Thanks for your responses gents. I was under wrong the impression that continuum didn't support multi module builds. Now I know it does I will definitely be using them more. Cheers, Chris -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 31 January 2006 08:46 To: continuum-users@maven.apache.org Subject: Re: multi-module maven 2 project a "command line project" is a Shell project. If you want to build all sub-modules when you build the parent, you have several solution. 1- You want all projects are independant in Continuum, so you add a Maven project. The default goal of a maven parent project isclean install with -N parameter that means that mvn doesn't run recursivly in all modules. You can remove -N parameter in build definition but all your submodules will be built twice (with parent pom and with independant project) 2- You don't need independant projects for submodules in Continuum. Add a Shell project instead of Maven project and set up the command line to run. Emmanuel Johnson, Jonathan a écrit : > I submitted the parent pom to continuum. Its very nicely found all the sub-modules and set those up as well. I did not have to set up a command line project (not sure what that is either). > > One thing that could be enhanced for continuum is a tree structure instead of a flat list. The tree structure would indicate while module is the parent module. Currently there is not indicator which is you parent module. Of course that begs the question of a hierarchical, multi-project tree in maven and continuum. > > The other thing I noticed is forcing a build on the parent module in continuum does not execute the build on the all children. For me it quickly executes with a success yet the sub-module builds are not invoked. > > This is the build report on the parent module named "Java Modules". > > > [INFO] Scanning for projects... > [INFO] > -- > -- > [INFO] Building Java Modules > [INFO]task-segment: [clean, install] > [INFO] > -- > -- > [INFO] [clean:clean] > [INFO] Skipping missing optional mojo: > org.apache.maven.plugins:maven-site-plugin:attach-descriptor > [INFO] [install:install] > [INFO] Installing /home/builder/454/AppJava/modules/66/pom.xml to > /home/builder/.m2/repository/com/fourfivefour/AppJavaModules/1.0/AppJa > vaModules-1.0.pom [INFO] > -- > -- > [INFO] BUILD SUCCESSFUL > [INFO] > -- > -- > [INFO] Total time: 2 seconds > [INFO] Finished at: Mon Jan 30 14:02:38 EST 2006 [INFO] Final Memory: > 2M/5M [INFO] > -- > -- > > -Original Message- > From: Stevenson, Chris [mailto:[EMAIL PROTECTED] > Sent: Monday, January 30, 2006 1:04 PM > To: 'continuum-users@maven.apache.org' > Subject: RE: multi-module maven 2 project > > Gents, > > Can I just check, did you setup your mvn multi module project by > submitting the parent pom and continuum working it out? Or did you > have to create a command line project? > > I remember a while back that continuum couldn't build multi module > projects, except as a command line project. Or am I going nuts.. > > Chris > > -Original Message- > From: Johnson, Jonathan [mailto:[EMAIL PROTECTED] > Sent: 27 January 2006 15:26 > To: continuum-users@maven.apache.org > Subject: RE: multi-module maven 2 project > > Thanks Emmanuel - comments below. > > -Original Message- > From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] > Sent: Friday, January 27, 2006 9:37 AM > To: continuum-users@maven.apache.org > Subject: Re: multi-module maven 2 project > > Johnson, Jonathan a écrit : > >>I'm using maven 2.0.2, Continuum 1.0.2 and java 1.5. My project is a >>multi-module that is laid out in the recommended maven 2 manner and is >>building my projects (phew). I have a couple questions about my >>experiences so far. >> >> >> >>1.When I change some information in my parent pom.xml (such as the >>developer list.) do I have to readd the pom again. Is there a >>refresh option? > > >>>Normally, the pom will be refresh automatically by continuum, but it >>> >>>doens't to do it. File an issue about it. >>> >>>So actually, if your pom isn't updated in continuum, delete your >>>project and readd it. > > > I will file the issue. > > >>2.If I add my parent pom.xsl it adds all the child modules again >>and there are duplicate modules in the continuum projects list. I >>then have to remove my old modules and readjust the local continuum >>settings such as the schedule and targets. When I apply and updated >>pom, I wish it just updated them and kept my local continuum settings. > > >>>File an issue, i'll look at it.
Re: Re: SVN url password
we'll perhaps have a element in settings for 2.1, but not for maven 2.0.3 isn't specific to repositories Emmanuel Alejandro Nicolas Mascarell a écrit : It think it would be more consistent to add an element within the element, to link from, as in the case of Maven repositories, don't you? For repositories the it is explicit but in this case it is not for . On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: if your scm url is : scm:provider:...scm_host:scm_port... scm_host:scm_port your_username your_password if your scm url is : scm:provider:...scm_host... scm_host your_username your_password is generally used for artifact repositories uploads, but it can be used for all features that require a server. I think starteam scm provider is the only one that support it. We'll allow it for all scm providers Emmanuel Alejandro Nicolas Mascarell a écrit : Where on the settings.xml is it possible to define the user/pass for a SCM provider? I know about the section. But is it not this for Maven artifacts repositories? Is it not the element used as the reference from element? I'm using maven-release-plugin. Is there a way to know MOJO's paramenters without browsing source code? Thanks for all! ;) On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: We don't allow password in scm svn url for security reason. It's allowed in scm cvs url for backward compatibility. What is the plugin you want to use with scm url? Actually, some scm providers can read password from settings.xml, but not all. We need to standardize it. If you can't define svn password by a mojo property (I'm pretty sure you can), you must register it by running a svn command from command line like this : svn --username your_username --password your_password command_to_execute Emmanuel Maciej Mastalarczuk a écrit : Hi Alejandro, The way I got it working is through connecting to SVN using command-line tool under the user account that is later used for builds. The username and password is then cached somewhere (???). On Windows box it goes into something like that: C:\Documents and Settings\maven\Application Data\Subversion (sorry, in my previous post I wrote it went to home directory; my mistake). I've no idea where it would go on Linux, but I am sure it can cache it. After this SVN will just use cached passwords providing you use the same user account (or do it for all accounts). There may be a better way of doing it, but I don't know it :-). This whole SVN authentication could probably do with a couple of good howto's. Hope this helps Maciej -Original Message- From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 5:04 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password I am speaking about the password to connect Subversion SCM, not the Maven organization repository. On the URL you can specify the user but not the password (and probably you won't like to do so), but on the settings.xmlfile as far as I know it is only possible to specify Maven component repository passwords. Alex On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: Hi Alejandro! I don't know if u ment this when u mentioned the settings.xml But i think u have to use a section there. This is mostly common for all username/password thingies like tomcat:deploy and so on. Try to edit your ~/.m2/settings.xml and insert your settings according to the following configuration for tomcat. The svn configuration should be nearly the same: ... tomcat myTomcatUser myTomcatPassword ... you then have to reference the server-id in your pom.xml: ... org.codehaus.mojo tomcat-maven-plugin 1.0-SNAPSHOT tomcat ... best regards, strub --- Alejandro Nicolas Mascarell <[EMAIL PROTECTED]> schrieb: Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
It think it would be more consistent to add an element within the element, to link from, as in the case of Maven repositories, don't you? For repositories the it is explicit but in this case it is not for . On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > if your scm url is : scm:provider:...scm_host:scm_port... > > >scm_host:scm_port >your_username >your_password > > > if your scm url is : scm:provider:...scm_host... > > >scm_host >your_username >your_password > > > > is generally used for artifact repositories uploads, but it can > be used for all features > that require a server. > > I think starteam scm provider is the only one that support it. We'll allow > it for all scm providers > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > Where on the settings.xml is it possible to define the user/pass for a > SCM > > provider? I know about the section. But is it not this for > Maven > > artifacts repositories? Is it not the element used as the > > reference from element? > > > > I'm using maven-release-plugin. Is there a way to know MOJO's > paramenters > > without browsing source code? Thanks for all! ;) > > > > On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > > >>We don't allow password in scm svn url for security reason. It's allowed > >>in scm cvs url for backward > >>compatibility. > >> > >>What is the plugin you want to use with scm url? > >>Actually, some scm providers can read password from settings.xml, but > not > >>all. We need to > >>standardize it. > >> > >>If you can't define svn password by a mojo property (I'm pretty sure you > >>can), you must register it > >>by running a svn command from command line like this : > >> > >>svn --username your_username --password your_password command_to_execute > >> > >>Emmanuel > >> > >>Maciej Mastalarczuk a écrit : > >> > >>>Hi Alejandro, > >>> > >>>The way I got it working is through connecting to SVN using > command-line > >>>tool under the user account that is later used for builds. The username > >> > >>and > >> > >>>password is then cached somewhere (???). On Windows box it goes into > >>>something like that: > >>> > >>>C:\Documents and Settings\maven\Application Data\Subversion > >>> > >>>(sorry, in my previous post I wrote it went to home directory; my > >> > >>mistake). > >> > >>>I've no idea where it would go on Linux, but I am sure it can cache it. > >>> > >>>After this SVN will just use cached passwords providing you use the > same > >>>user account (or do it for all accounts). > >>> > >>>There may be a better way of doing it, but I don't know it :-). This > >> > >>whole > >> > >>>SVN authentication could probably do with a couple of good howto's. > >>> > >>>Hope this helps > >>> > >>>Maciej > >>> > >>> > >>> > -Original Message- > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 5:04 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > > I am speaking about the password to connect Subversion SCM, not the > >> > >>Maven > >> > organization repository. On the URL you can specify the user but not > the > password (and probably you won't like to do so), but on the > settings.xmlfile as far as I know it is only possible to specify Maven > component > repository passwords. > > Alex > > On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > > > >Hi Alejandro! > > > >I don't know if u ment this when u mentioned the > >settings.xml > >But i think u have to use a section there. > >This is mostly common for all username/password > >thingies like tomcat:deploy and so on. > > > >Try to edit your ~/.m2/settings.xml and insert your > >settings according to the following configuration for > >tomcat. The svn configuration should be nearly the > >same: > > > > > >... > > > > > > tomcat > > myTomcatUser > > myTomcatPassword > > > > > >... > > > > > >you then have to reference the server-id in your > >pom.xml: > > > >... > > > > > > > > org.codehaus.mojo > > > > tomcat-maven-plugin > > > >1.0-SNAPSHOT > > > > > > tomcat > > > > > > > >... > > > > > > > > > >best regards, > >strub > > > > > >--- Alejandro Nicolas Mascarell > ><[EMAIL PROTECTED]> schrieb: > > > > > > > >>Does anyone know where is the SCM user password > >>provided when using SCM url? > >>As from the specification (and checked on > >>svnScmProviderRepository class) > >>the password is not gathered for the URL, as in the > >>case on CVS. I have > >>checked whether the password was taken from > >>settings.xml file but it seems > >>it is not the cas
Re: Project dependencies with ANT projects
not yet. It will be available in 1.1 Emmanuel Richard C. L. Li a écrit : Hi, Is there any way to define project dependencies between ANT projects? Regards, Richard Li
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
if your scm url is : scm:provider:...scm_host:scm_port... scm_host:scm_port your_username your_password if your scm url is : scm:provider:...scm_host... scm_host your_username your_password is generally used for artifact repositories uploads, but it can be used for all features that require a server. I think starteam scm provider is the only one that support it. We'll allow it for all scm providers Emmanuel Alejandro Nicolas Mascarell a écrit : Where on the settings.xml is it possible to define the user/pass for a SCM provider? I know about the section. But is it not this for Maven artifacts repositories? Is it not the element used as the reference from element? I'm using maven-release-plugin. Is there a way to know MOJO's paramenters without browsing source code? Thanks for all! ;) On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: We don't allow password in scm svn url for security reason. It's allowed in scm cvs url for backward compatibility. What is the plugin you want to use with scm url? Actually, some scm providers can read password from settings.xml, but not all. We need to standardize it. If you can't define svn password by a mojo property (I'm pretty sure you can), you must register it by running a svn command from command line like this : svn --username your_username --password your_password command_to_execute Emmanuel Maciej Mastalarczuk a écrit : Hi Alejandro, The way I got it working is through connecting to SVN using command-line tool under the user account that is later used for builds. The username and password is then cached somewhere (???). On Windows box it goes into something like that: C:\Documents and Settings\maven\Application Data\Subversion (sorry, in my previous post I wrote it went to home directory; my mistake). I've no idea where it would go on Linux, but I am sure it can cache it. After this SVN will just use cached passwords providing you use the same user account (or do it for all accounts). There may be a better way of doing it, but I don't know it :-). This whole SVN authentication could probably do with a couple of good howto's. Hope this helps Maciej -Original Message- From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 5:04 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password I am speaking about the password to connect Subversion SCM, not the Maven organization repository. On the URL you can specify the user but not the password (and probably you won't like to do so), but on the settings.xmlfile as far as I know it is only possible to specify Maven component repository passwords. Alex On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: Hi Alejandro! I don't know if u ment this when u mentioned the settings.xml But i think u have to use a section there. This is mostly common for all username/password thingies like tomcat:deploy and so on. Try to edit your ~/.m2/settings.xml and insert your settings according to the following configuration for tomcat. The svn configuration should be nearly the same: ... tomcat myTomcatUser myTomcatPassword ... you then have to reference the server-id in your pom.xml: ... org.codehaus.mojo tomcat-maven-plugin 1.0-SNAPSHOT tomcat ... best regards, strub --- Alejandro Nicolas Mascarell <[EMAIL PROTECTED]> schrieb: Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 1.1 and inherited properties
Copy paste error : please read [http://jira.codehaus.org/browse/MAVEN-1741] Nicolas De Loof a écrit : I was first thinking about "org.apache.commons.attributes.enable" not beeing correctly set, but I've was wrong. I've created http://jira.codehaus.org/browse/MAVEN-1691 I've attached a minimalist multiproject to demonstrate the bug. (war) maven war:install generates the attributes classes (jar) maven jar:install generates the attributes classes (head) maven multiproject:install generates the attributes classes ONLY for jar project. Arnaud HERITIER a écrit : Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a "maven war:install" on my web sub-project, attributes classes are generated by plugin. When I run a "multiproject:install", everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-release-plugin
Should this be considered a bug? When using maven-release-plugin the POM gets its version updated (for instance from 0.2-SNAPSHOT to 0.2, when releasing version 0.2 of the artifact) even if the scm provider fails to tag the release onto a Subversion repository, because of a wrong URL string or invalid user for instance. What do you think? Alex
Project dependencies with ANT projects
Hi, Is there any way to define project dependencies between ANT projects? Regards, Richard Li
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
Where on the settings.xml is it possible to define the user/pass for a SCM provider? I know about the section. But is it not this for Maven artifacts repositories? Is it not the element used as the reference from element? I'm using maven-release-plugin. Is there a way to know MOJO's paramenters without browsing source code? Thanks for all! ;) On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > We don't allow password in scm svn url for security reason. It's allowed > in scm cvs url for backward > compatibility. > > What is the plugin you want to use with scm url? > Actually, some scm providers can read password from settings.xml, but not > all. We need to > standardize it. > > If you can't define svn password by a mojo property (I'm pretty sure you > can), you must register it > by running a svn command from command line like this : > > svn --username your_username --password your_password command_to_execute > > Emmanuel > > Maciej Mastalarczuk a écrit : > > Hi Alejandro, > > > > The way I got it working is through connecting to SVN using command-line > > tool under the user account that is later used for builds. The username > and > > password is then cached somewhere (???). On Windows box it goes into > > something like that: > > > > C:\Documents and Settings\maven\Application Data\Subversion > > > > (sorry, in my previous post I wrote it went to home directory; my > mistake). > > > > I've no idea where it would go on Linux, but I am sure it can cache it. > > > > After this SVN will just use cached passwords providing you use the same > > user account (or do it for all accounts). > > > > There may be a better way of doing it, but I don't know it :-). This > whole > > SVN authentication could probably do with a couple of good howto's. > > > > Hope this helps > > > > Maciej > > > > > >>-Original Message- > >>From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, 1 February 2006 5:04 PM > >>To: Maven Users List > >>Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > >> > >>I am speaking about the password to connect Subversion SCM, not the > Maven > >>organization repository. On the URL you can specify the user but not the > >>password (and probably you won't like to do so), but on the > >>settings.xmlfile as far as I know it is only possible to specify Maven > >>component > >>repository passwords. > >> > >>Alex > >> > >>On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > >> > >>>Hi Alejandro! > >>> > >>>I don't know if u ment this when u mentioned the > >>>settings.xml > >>>But i think u have to use a section there. > >>>This is mostly common for all username/password > >>>thingies like tomcat:deploy and so on. > >>> > >>>Try to edit your ~/.m2/settings.xml and insert your > >>>settings according to the following configuration for > >>>tomcat. The svn configuration should be nearly the > >>>same: > >>> > >>> > >>>... > >>> > >>> > >>> tomcat > >>> myTomcatUser > >>> myTomcatPassword > >>> > >>> > >>>... > >>> > >>> > >>>you then have to reference the server-id in your > >>>pom.xml: > >>> > >>>... > >>> > >>> > >>> > >>>org.codehaus.mojo > >>> > >>>tomcat-maven-plugin > >>> > >>> 1.0-SNAPSHOT > >>> > >>> > >>> tomcat > >>> > >>> > >>> > >>>... > >>> > >>> > >>> > >>> > >>>best regards, > >>>strub > >>> > >>> > >>>--- Alejandro Nicolas Mascarell > >>><[EMAIL PROTECTED]> schrieb: > >>> > >>> > Does anyone know where is the SCM user password > provided when using SCM url? > As from the specification (and checked on > svnScmProviderRepository class) > the password is not gathered for the URL, as in the > case on CVS. I have > checked whether the password was taken from > settings.xml file but it seems > it is not the case. > > Thanks! > > Alex > > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>>___ > >>>Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > >>> > >>>- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [m2] Using the pom version in JavaCode
On 2/1/06, Fredy <[EMAIL PROTECTED]> wrote: > Hi all, > is there a library to access the pom Content from Java? > For example when I should show the actuall Version in the titleboard ore > something else. within a plugin you should get the org.apache.maven.model.Model instance that represent your pom. This instance is hold within a MavenProject instance, and you can retrieve it in your mojo by adding the following property: /** * @parameter expression="${project.model}" */ private Model pom; This property will be filled up dynamically at run time. Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Using the pom version in JavaCode
Hi all, is there a library to access the pom Content from Java? For example when I should show the actuall Version in the titleboard ore something else. Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m202] Cobertura plugin
Hello, What is the status of the cobertura plugin for m2 ? I had problems trying to include it in the pom through central and there was some discussion on the list some days ago, but I didn't find how to get the latest and greatest version. Thanks, -- Arnaud Bailly, Dr. - Ingénieur de Recherche NORSYS 1, rue de la Cense des Raines ZAC du Moulin 59710 ENNEVELIN Tel : (33) 3 28 76 56 76 Mob : (33) 6 17 12 19 78 Fax : (33) 3 28 76 57 00 Web : http://www.norsys.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
We don't allow password in scm svn url for security reason. It's allowed in scm cvs url for backward compatibility. What is the plugin you want to use with scm url? Actually, some scm providers can read password from settings.xml, but not all. We need to standardize it. If you can't define svn password by a mojo property (I'm pretty sure you can), you must register it by running a svn command from command line like this : svn --username your_username --password your_password command_to_execute Emmanuel Maciej Mastalarczuk a écrit : Hi Alejandro, The way I got it working is through connecting to SVN using command-line tool under the user account that is later used for builds. The username and password is then cached somewhere (???). On Windows box it goes into something like that: C:\Documents and Settings\maven\Application Data\Subversion (sorry, in my previous post I wrote it went to home directory; my mistake). I've no idea where it would go on Linux, but I am sure it can cache it. After this SVN will just use cached passwords providing you use the same user account (or do it for all accounts). There may be a better way of doing it, but I don't know it :-). This whole SVN authentication could probably do with a couple of good howto's. Hope this helps Maciej -Original Message- From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 5:04 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password I am speaking about the password to connect Subversion SCM, not the Maven organization repository. On the URL you can specify the user but not the password (and probably you won't like to do so), but on the settings.xmlfile as far as I know it is only possible to specify Maven component repository passwords. Alex On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: Hi Alejandro! I don't know if u ment this when u mentioned the settings.xml But i think u have to use a section there. This is mostly common for all username/password thingies like tomcat:deploy and so on. Try to edit your ~/.m2/settings.xml and insert your settings according to the following configuration for tomcat. The svn configuration should be nearly the same: ... tomcat myTomcatUser myTomcatPassword ... you then have to reference the server-id in your pom.xml: ... org.codehaus.mojo tomcat-maven-plugin 1.0-SNAPSHOT tomcat ... best regards, strub --- Alejandro Nicolas Mascarell <[EMAIL PROTECTED]> schrieb: Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I can't get cobertura to work with maven 2.0.2
Thanks Carolos but if you'd followed this thread you'd see that Brett has released the latest build as a snapshot, and that's the version I am useing - 2.0-SNAPSHOT. If you know of an even more recent version please let me know. I have until friday to get this to work or it's back to using ant for me. Kind regards, Dave Sag [EMAIL PROTECTED] wrote on 31-01-2006 18:35:26: > You need latest cobertura built from sources > > > On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > > > > Okay I have changed my build so that the checkstyle etc all happen > on the verify phase, and have updated to use the latest snapshot > version of cobertura plugin. > > > > [mvn install] works fine - all is as expected. > > > > but [mvn site] continues to break as follows: > > > > (disco-davesag) [15:59:16] ~/checkouts/EPO/cassius_service_Sis$ mvn site > > [INFO] Scanning for projects... > > [INFO] > > > [INFO] Building Search Information Service (redux) > > [INFO] task-segment: [site] > > [INFO] > > > [INFO] Preparing cobertura:cobertura > > [INFO] [resources:resources] > > [INFO] [compiler:compile] > > [INFO] Nothing to compile - all classes are up to date > > [INFO] [cobertura:instrument {execution: instrument-classes}] > > [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file > > Cobertura: Loaded information on 4 classes. > > Instrumenting 6 classes to > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated- > classes/cobertura > > Cobertura: Saved information on 4 classes. > > Instrument time: 244ms > > > > [INFO] Instrumentation was successful. > > [INFO] [cobertura:instrument] > > [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file > > Cobertura: Loaded information on 4 classes. > > Instrumenting 6 classes to > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated- > classes/cobertura > > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main > - Unable to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated- > classes/cobertura/org/epo/cassius/csp/DossierTranslationService.class > > java.lang.ArrayIndexOutOfBoundsException: 8 > > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentationToSingleClass(Main.java:286) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentation(Main.java:364) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentation(Main.java:382) > > at net.sourceforge.cobertura.instrument.Main. > parseArguments(Main.java:440) > > at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) > > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main > - Unable to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated- > classes/cobertura/org/epo/cassius/csp/SearchInformationService.class > > java.lang.ArrayIndexOutOfBoundsException: 8 > > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentationToSingleClass(Main.java:286) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentation(Main.java:364) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentation(Main.java:382) > > at net.sourceforge.cobertura.instrument.Main. > parseArguments(Main.java:440) > > at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) > > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main > - Unable to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated- > classes/cobertura/org/epo/cassius/csp/SearchInformationServiceDelegate.class > > java.lang.ArrayIndexOutOfBoundsException: 8 > > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at org.objectweb.asm.ClassReader.(Unknown Source) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentationToSingleClass(Main.java:286) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentation(Main.java:364) > > at net.sourceforge.cobertura.instrument.Main. > addInstrumentation(Main.java:382) > > at net.sourceforge.cobertura.instrument.Main. > pars
Re: I can't get cobertura to work with maven 2.0.2
Brett Porter <[EMAIL PROTECTED]> wrote on 31-01-2006 18:46:42: > On 2/1/06, David Sag <[EMAIL PROTECTED]> wrote: > > > > > > Okay I have changed my build so that the checkstyle etc all happen on the > > verify phase, and have updated to use the latest snapshot version of > > cobertura plugin. > > > > [mvn install] works fine - all is as expected. > > > > but [mvn site] continues to break as follows: > > > Do you have zero-length classes, or is this something else? I recall seeing > AIOOBE as a bug back in jcoverage some time back, but I'm not sure this is > the same. > yes that's exactly what is happening. the second (redundent) instrumentation generates 0 length classes. I am not sure what AIOOBE means. > I stress that this all used to work fine with maven 2.0 and the old > > cobertura plugin. I suspected a bug in the surefire reporting rather than > > in cobertura, and so removed any references to surefire from my reporting > > but i get pretty much the exact same result. > > > The cobertura plugin was changed around mid-Dec to better use the facilities > provided by Maven 2.0.1 for defining the lifecycle. > shame it broke eh. > Does anyone out there have a working example of maven 2.0.2 using cobertura > > to instrument classes and generate a report? If so please would you care to > > share your wisdom? Or would you recommend rolling back to maven 2.0 until > > these issues are fixed? > > > > We use it for: > https://svn.apache.org/repos/asf/maven/repository-manager/trunk > I see no reference at all to cobertura in https://svn.apache.org/repos/asf/maven/repository-manager/trunk/pom.xml dave
Re: problem configuring a maven 2 project
You must use the "as plain text" link in web page: http://gridshoresample.tigris.org/source/browse/*checkout*/gridshoresample/trunk/sources/studentregistrations/pom.xml?content-type=text%2Fplain without the revision at the end. Emmanuel Jettro Coenradie a écrit : The problem is that the pom.xml is not a real xml document. Is is a html presentation of the xml file. Therefore the pom is not valid. I get this if I use the browse code function of javaforge and for tigris. If I use the url that tortoisesvn uses, continuum sais it is not a valid url. http://gridshoresample.tigris.org/source/browse/gridshoresample/trunk/sources/studentregistrations/pom.xml does not give a real xml file but an html page showing the xml (error - Cannot build maven project from D:\DOCUME~1\JETTRO~1.COE\LOCALS~1\Temp\continuum-25232.tmp.) http://gridshoresample.tigris.org/svn/gridshoresample/trunk/sources/studentregistrations/pom.xml response is : not a valid url This is all finding place when trying to install a new maven 2 project. thanks for the help On 2/1/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: What is your problems? http://maven.apache.org/continuum/guides/getting-started/index.html Emmanuel Jettro Coenradie a écrit : Hi all, I am trying continuum. I am having problems getting it to work with a project under tigris. Does anyone have experience with this? thanks is advance
RE: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password
Hi Alejandro, The way I got it working is through connecting to SVN using command-line tool under the user account that is later used for builds. The username and password is then cached somewhere (???). On Windows box it goes into something like that: C:\Documents and Settings\maven\Application Data\Subversion (sorry, in my previous post I wrote it went to home directory; my mistake). I've no idea where it would go on Linux, but I am sure it can cache it. After this SVN will just use cached passwords providing you use the same user account (or do it for all accounts). There may be a better way of doing it, but I don't know it :-). This whole SVN authentication could probably do with a couple of good howto's. Hope this helps Maciej > -Original Message- > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 5:04 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: SVN url password > > I am speaking about the password to connect Subversion SCM, not the Maven > organization repository. On the URL you can specify the user but not the > password (and probably you won't like to do so), but on the > settings.xmlfile as far as I know it is only possible to specify Maven > component > repository passwords. > > Alex > > On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > > > > Hi Alejandro! > > > > I don't know if u ment this when u mentioned the > > settings.xml > > But i think u have to use a section there. > > This is mostly common for all username/password > > thingies like tomcat:deploy and so on. > > > > Try to edit your ~/.m2/settings.xml and insert your > > settings according to the following configuration for > > tomcat. The svn configuration should be nearly the > > same: > > > > > > ... > > > > > >tomcat > >myTomcatUser > >myTomcatPassword > > > > > > ... > > > > > > you then have to reference the server-id in your > > pom.xml: > > > > ... > > > > > > > > org.codehaus.mojo > > > > tomcat-maven-plugin > > > > 1.0-SNAPSHOT > > > > > > tomcat > > > > > > > > ... > > > > > > > > > > best regards, > > strub > > > > > > --- Alejandro Nicolas Mascarell > > <[EMAIL PROTECTED]> schrieb: > > > > > Does anyone know where is the SCM user password > > > provided when using SCM url? > > > As from the specification (and checked on > > > svnScmProviderRepository class) > > > the password is not gathered for the URL, as in the > > > case on CVS. I have > > > checked whether the password was taken from > > > settings.xml file but it seems > > > it is not the case. > > > > > > Thanks! > > > > > > Alex > > > > > > > > > > > > > > > > > > > ___ > > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] ant copy before maven -> urgent !!
checkout maven-antrun-plugin from svn, it has plenty of example in src/it -D On 2/1/06, Fredy <[EMAIL PROTECTED]> wrote: > > Hi, > all is urgent ,-) > > Now I have a pom for almost the hole modules/artifacts in our project. > But there are in a separate folder on before I execute Maven i have to > execute an ant copy task, that copies the Classes/Resources etc. to my > "virtual" Maven Projekt. > Now I should exectute that ant task in maven. But i want to call the > existing build.xml and not define the task in maven's pom! > > This is just a workarround! The Project Structure will be adapted in > medium-term. But not now, and I need the original ANT Build as fallback! > > Can anybody please send me an example for calling an external ant target > fom maven, that will be exectuet very soon (at first) in the maven process? > > Thanks Fredy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: SVN url password
I am speaking about the password to connect Subversion SCM, not the Maven organization repository. On the URL you can specify the user but not the password (and probably you won't like to do so), but on the settings.xmlfile as far as I know it is only possible to specify Maven component repository passwords. Alex On 2/1/06, Mark Struberg < [EMAIL PROTECTED]> wrote: > > Hi Alejandro! > > I don't know if u ment this when u mentioned the > settings.xml > But i think u have to use a section there. > This is mostly common for all username/password > thingies like tomcat:deploy and so on. > > Try to edit your ~/.m2/settings.xml and insert your > settings according to the following configuration for > tomcat. The svn configuration should be nearly the > same: > > > ... > > >tomcat >myTomcatUser >myTomcatPassword > > > ... > > > you then have to reference the server-id in your > pom.xml: > > ... > > > > org.codehaus.mojo > > tomcat-maven-plugin > > 1.0-SNAPSHOT > > > tomcat > > > > ... > > > > > best regards, > strub > > > --- Alejandro Nicolas Mascarell > <[EMAIL PROTECTED]> schrieb: > > > Does anyone know where is the SCM user password > > provided when using SCM url? > > As from the specification (and checked on > > svnScmProviderRepository class) > > the password is not gathered for the URL, as in the > > case on CVS. I have > > checked whether the password was taken from > > settings.xml file but it seems > > it is not the case. > > > > Thanks! > > > > Alex > > > > > > > > > > ___ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
[m2] ant copy before maven -> urgent !!
Hi, all is urgent ,-) Now I have a pom for almost the hole modules/artifacts in our project. But there are in a separate folder on before I execute Maven i have to execute an ant copy task, that copies the Classes/Resources etc. to my "virtual" Maven Projekt. Now I should exectute that ant task in maven. But i want to call the existing build.xml and not define the task in maven's pom! This is just a workarround! The Project Structure will be adapted in medium-term. But not now, and I need the original ANT Build as fallback! Can anybody please send me an example for calling an external ant target fom maven, that will be exectuet very soon (at first) in the maven process? Thanks Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] war plugin and warSourceExcludes not working for dependencies
Hello, I tried to follow instructions from: http://www.nabble.com/Maven-2-EAR%2C-WAR%2C-EJB-Common-Dependencies-t1013415.html and http://www.nabble.com/RE%3A-Best-Practice---Maven-with-WSAD-or-RAD6-p2509735.html and http://www.nabble.com/RE%3A-m2-war-dependencies-in-ear-p054.html using following code in my war project's pom.xml: org.apache.maven.plugins maven-war-plugin WEB-INF/lib/*.jar true lib/ but it seems that it is not working for me. What I want to get is war without its dependencies in the WEB-INF/lib, because I want to have them in the EAR. What am I doing wrong? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] phases and goals
Try also http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html WF> Can someone point me to some doco that explains a phase, goal and mojo WF> and lists the available phases. I thought I vaguely understood, but have WF> become confused by the thread on "binding mojos to lifecycle". WF> William WF> - WF> To unsubscribe, e-mail: [EMAIL PROTECTED] WF> For additional commands, e-mail: [EMAIL PROTECTED] -- Pozdrowienia, Marcin Cetnarski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
errisn't that the only way? :P On 2/1/06, dan tran <[EMAIL PROTECTED]> wrote: > It only works if you run the mojo on command line ;-) > > > > -D > > > > > On 1/31/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > > > > What's more, when I add @execute phase="compile" it still doesn't work... > > > > On 2/1/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > > > I see...but I still don't understand then, how I can bind my mojo to a > > > specific phase in the lifecycle, without triggering a parallel > > > lifecycle run (which is "@execute", right?). If I bind to the > > > 'process-classes', and specifiy "@execute phase=compile" I wouldn't > > > want to cause maven to initiate another run and recompile the project > > > since it already did that. > > > > > > My second objective is to spare the plugin users from specifying the > > > element because it seems to me it's a decision my plugin > > > should make - not the users. > > > > > > Thanks for your kind help... > > > > > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > > A mojo is a goal, yes. What's to stop you from having two mojos, each > > > > with the same default phase? > > > > > > > > -Original Message- > > > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, January 31, 2006 6:02 PM > > > > To: Maven Users List > > > > Subject: Re: [m2] binding mojos to lifecycle > > > > > > > > Hi Mike, > > > > > > > > I'm not sure I follow - I specify the "@phase" inside my mojo (which > > is > > > > basically a goal, right?) so as-far-as-I-understand maven should know > > > > which goal to invoke... > > > > > > > > > > > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > > > Look at it the other way. You've told maven that you are interested > > > > > in having this plugin execute at some point during your lifecycle > > but > > > > > you haven't defined which GOAL to execute. Remember a plugin can > > have > > > > > > > > > N goals. Maven should use the goal's default phase if you don't > > > > > specify the element of the execution. > > > > > > > > > > > > > > > -Original Message- > > > > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > > > > Sent: Tuesday, January 31, 2006 5:39 PM > > > > > To: Maven Users List > > > > > Subject: [m2] binding mojos to lifecycle > > > > > > > > > > Hi, > > > > > > > > > > I have a small mojo which I want to bind to the 'process-classes' > > > > > phase. I've read > > > > > http://maven.apache.org/developers/mojo-api-specification.html which > > > > > indicates I should add a "@phase process-classes" to the class > > > > > comment, and I did: > > > > > > > > > > /** > > > > > * > > > > > * @goal generate > > > > > * @phase process-classes > > > > > * @author arik > > > > > */ > > > > > public class { > > > > > ... > > > > > } > > > > > > > > > > In the project that uses this plugin I declared: > > > > > > > > > > > > > > > > > > > > > > > > > myGroupId > > > > > myPluginArtifactId > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > But the mojo isn't activated. > > > > > > > > > > If, however, I add this to the invoking POM (inside the above > > > > > > > section): > > > > > > > > > > > > > > > process-classes > > > > > > > > > > generate > > > > > > > > > > > > > > > > > > > > > > > > > everything works. > > > > > > > > > > It looks like I'm missing something but I can't figure out what...I > > > > > went through all of the guides in the M2 site, but couldn't find a > > > > > reason for this. Isn't M2 supposed to bind my mojo automatically > > (due > > > > > to the @phase tag)? > > > > > > > > > > > > > > > -- > > > > > Regards, > > > > > _ > > > > > Arik Kfir[EMAIL PROTECTED] > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > -- > > > > Regards, > > > > _ > > > > Arik Kfir[EMAIL PROTECTED] > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Regards, > > > _ > > > Arik Kfir[EMAIL PROTECTED] > > > > > > > > > -- > > Regards, > >_ > >Arik Kfir[EMAIL PROTECTED] > > > > -- Regards, _ Arik Kfir[EMAIL PROTECTED]
RE: SVN url password
Hi Alejandro! I don't know if u ment this when u mentioned the settings.xml But i think u have to use a section there. This is mostly common for all username/password thingies like tomcat:deploy and so on. Try to edit your ~/.m2/settings.xml and insert your settings according to the following configuration for tomcat. The svn configuration should be nearly the same: ... tomcat myTomcatUser myTomcatPassword ... you then have to reference the server-id in your pom.xml: ... org.codehaus.mojo tomcat-maven-plugin 1.0-SNAPSHOT tomcat ... best regards, strub --- Alejandro Nicolas Mascarell <[EMAIL PROTECTED]> schrieb: > Does anyone know where is the SCM user password > provided when using SCM url? > As from the specification (and checked on > svnScmProviderRepository class) > the password is not gathered for the URL, as in the > case on CVS. I have > checked whether the password was taken from > settings.xml file but it seems > it is not the case. > > Thanks! > > Alex > ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]