Re: [ANN] Maven DOCCK Plugin 1.0-beta-1 for Maven 2 Released
It is very nice to see this after there has been much discussion about the quality of the documentation. It shows that the Maven team is really concerned with this. keep up the good work! regards, Wim 2006/10/25, Dennis Lundberg [EMAIL PROTECTED]: The Maven team is pleased to announce the release of the Maven DOCCK Plugin, version 1.0-beta-1 http://maven.apache.org/plugins/maven-docck-plugin/ You can run mvn -U to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-docck-plugin/artifactId version1.0-beta-1/version /plugin This is the first release of this plugin. Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] site: using variables frrom sub pom in parent pom
Hi, for example my distributionManagement is alway the same: distributionManagement site id${project.groupId}.${project.artifactId}/id url${distributionPrefix}sites/${project.groupId}/${project.artifactId}/${p roject.version}/url /site /distributionManagement so it should be plased in a parent pom and be reused. But the variables like ${project.version} will be replaced with ver values from the parent pom. Anny Idea? Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Symbolic links
Uri, Can you please file this issue at JIRA? http://jira.codehaus.org/browse/CONTINUUM Philippe On Tue, 2006-10-24 at 19:55 -0400, Uri Moszkowicz wrote: It seems that continuum follows symbolic links when deleting a project, which I discovered the hard way. This is very dangerous behavior - a warning should be added on the download page and this problem should be fixed.
Re: Add Directory to Jar Manifest Classpath
SingleShot wrote: Is it possible to add a directory to the classpath of a Maven-generated Manifest? In theory, yes: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClassorg.foo.mainclass/mainClass addClasspathtrue/addClasspath classpathPrefixlib/classpathPrefix /manifest manifestEntries Class-Pathconfig//Class-Path /manifestEntries /archive /configuration /plugin But that doesn't work for me, see: http://jira.codehaus.org/browse/MJAR-60. Another limitation (in java, not in maven) is that you can't access higher level directories, so something like Class-Path../config//Class-Path won't work. -- View this message in context: http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a6987252 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating a common local repository.
Hi, Proximity http://proximity.abstracthorizon.org/ should be the answer to your needs. It acts as a cache/proxy server for common public repositories (ibiblio cie) and for company wide repository. So you could establish a maven architecture internally to store private artifact. For a brief introduction go on : http://proximity.abstracthorizon.org/about-proximity.html Remy -Message d'origine- De : Adam Perry-Pelletier [mailto:[EMAIL PROTECTED] Envoyé : mardi 24 octobre 2006 21:03 À : users@maven.apache.org Objet : Creating a common local repository. While experimenting with Maven2 I experienced the following error: Missing: -- 1) jsr170:jcr:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jsr170 -DartifactId=jcr \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.moesol.bv:BattlespaceVideo:jar:1.0-SNAPSHOT 2) jsr170:jcr:jar:1.0 So I took the error message's advice and did the mvn install:install-file ... That fixed the problem and patched my local repository. However this leads sort an uncomfortable situation. If I have 15 developers on my team I now have to notify them to manually patch their repositories and answer their queries about how I broke the build. Not a tolerable situation. So what I'd like to do is this. I'd like to host a maven repository on our server (linux running apache and ssh). However I don't want it to be a full-blown rsynch'ed repository that mirrors www.ibiblio.org/maven2. I want the repository to be just like my local repository in that it has only the jars that our project needs, but one that I can point all our development team to. So when I come across this problem in the future, I can go out to that one shared, but local and minimal, repository do the mvn install:install-file and all our developers will see the change. Although I can find docs on how to accomplish the rsynch'ed full mirror repository model, I can't find much about how to have a local repository that can be shared. In terms of layout, our developers develop on windows supplemented by cygwin and the available server would be a linux box with apache web server and ssh. Any help would be appreciated. Adam --- Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeterMavenPlugin
My apologies .Please ignore my last message. -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeterMavenPlugin
On 10/24/06, Tom Huybrechts [EMAIL PROTECTED] wrote: Never used it before, but the first things the instructions say is: But on your wiki you say : This is a Maven 2 plugin that allows you to run JMeter tests as part of the build. I am using this with [WWW] JChav and [WWW] Continuum to automate the running of a suite of JMeter load tests, and publish the results to a web page. Sorry this is not more polished. It could use some TLC to make it more user-friendly to actually plug it into a project. I just thought I'd stick the code out there as quickly as possible and see if anyone is interested in it before I went any further with it. :).All I wish to know is how you publish the results to a web page. - Create a local Maven repository, if you don't already have one. - Drop in the attached JMeter I've now done this. Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to put Surefire reports in project-reports.html?
Thanx that's it. ;-) Xavier. Rémy Sanlaville wrote: Hi Xavier, Just try to add the surfire-report plugin in the reporting section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId /plugin HTH, Rémy 2006/10/24, Xavier Outhier [EMAIL PROTECTED]: Hi all, I'm able to put Checkstyle, Xref and Cobertura reports in the target\site\project-reports.html. For this I have in my pom.xml reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin /plugins /reporting Is it possible to do the same for Surefire? Greetings, Xavier. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum Startup error even though JAVA_HOME is set up
I had simulare problems on Solaris. I ended up specifying JAVA_HOME and M2_HOME and updating PATH with M2_HOME\bin inside run.sh As I now JAVA_HOME must exist and maven/ant must exist in path when running continuum. For me it was not enough to specify them in user environment -Ronny -Opprinnelig melding- Fra: datech [mailto:[EMAIL PROTECTED] Sendt: 25. oktober 2006 02:17 Til: continuum-users@maven.apache.org Emne: Continuum Startup error even though JAVA_HOME is set up I did find this problem in forums but the resolution specified didn't work for me. I do have JAVA_HOME set up in my system and also I tried modifying the wrapper.conf to specify the absolute path to my JAVA_HOME instead of it using %JAVA_HOME%, but that didn't work too. I am getting this error while trying to start up Continuum from Win32/run.bat script | Critical error: wait for JVM process failed Press any key to continue . . . Please suggest what else could I change to make it work. -- View this message in context: http://www.nabble.com/Continuum-Startup-error-even-though-JAVA_HOME-is-s et-up-tf2504948.html#a6984052 Sent from the Continuum - Users mailing list archive at Nabble.com. !DSPAM:453ead19231834409620359!
Re: maven-changes-plugin help please
Does maven-changes-plugin work well with M2 and what version should I choose? I tried it a while ago without success. By the way, we use Subversion. -Ronny -Opprinnelig melding- Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sendt: 24. oktober 2006 23:15 Til: Maven Users List; [EMAIL PROTECTED] Emne: Re: maven-changes-plugin help please The Apache-version of the plugin is a reporting-plugin. This means that it will generate its output during site generation. It also means that configuration should be in the reporting section of your pom. Please see: http://maven.apache.org/plugins/maven-changes-plugin/usage.html -- Dennis Lundberg Pete wrote: Help, I'm trying to switch from the old codehaus maven-changes-plugin to the new org.apache.maven.plugins version. Previously I had my pom configured to use the old plugin during the compile phase, so that a changes-report.html could be nested inside the web app's pages. Now with the new plugin it doesn't seem to generate a report at all, is there something about the new plugin which means it will only generate during the 'site' goal ? I've tried with and without a phase, and -X doesn't show any configuration for the plugin happening at all :- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-2-SNAPSHOT/version executions execution idproduce changes html page/id !-- phasecompile/phase-- inheritedfalse/inherited configuration xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /configuration goals goalchanges-report/goal /goals /execution /executions /plugin - 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] !DSPAM:453e87fd64881357017964! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] changes-maven-plugin - announcement-mail
Hi, how can I configure the 'from' ? Do it like this: configuration xmlPath${basedir}/src/changes/xmlPath smtpHostxx.xx.xx.xx/smtpHost smtpPort implementation=java.lang.Integer xx /smtpPort from item implementation=java.lang.String[EMAIL PROTECTED]/item /from toAddresses toAddress implementation=java.lang.String [EMAIL PROTECTED] /toAddress toAddress implementation=java.lang.String [EMAIL PROTECTED] /toAddress /toAddresses /configuration doesn't works ;-( It takes always the first developert from ${project.developers} Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: maven-changes-plugin help please
Hi I use plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId version2.0-beta-1/version reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin works fine! -Ursprüngliche Nachricht- Von: Naess, Ronny [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 10:16 An: Maven Users List Betreff: Re: maven-changes-plugin help please Does maven-changes-plugin work well with M2 and what version should I choose? I tried it a while ago without success. By the way, we use Subversion. -Ronny -Opprinnelig melding- Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sendt: 24. oktober 2006 23:15 Til: Maven Users List; [EMAIL PROTECTED] Emne: Re: maven-changes-plugin help please The Apache-version of the plugin is a reporting-plugin. This means that it will generate its output during site generation. It also means that configuration should be in the reporting section of your pom. Please see: http://maven.apache.org/plugins/maven-changes-plugin/usage.html -- Dennis Lundberg Pete wrote: Help, I'm trying to switch from the old codehaus maven-changes-plugin to the new org.apache.maven.plugins version. Previously I had my pom configured to use the old plugin during the compile phase, so that a changes-report.html could be nested inside the web app's pages. Now with the new plugin it doesn't seem to generate a report at all, is there something about the new plugin which means it will only generate during the 'site' goal ? I've tried with and without a phase, and -X doesn't show any configuration for the plugin happening at all :- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-2-SNAPSHOT/version executions execution idproduce changes html page/id !-- phasecompile/phase-- inheritedfalse/inherited configuration xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /configuration goals goalchanges-report/goal /goals /execution /executions /plugin - 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] !DSPAM:453e87fd64881357017964! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Noobie - How can I just add a directory of jars to my classpat
Hi! If you have a 100-dred jars, then you should really use the declarative dependency mechanism via the pom. Otherwise you don't get all the benefits out of maven. Or as Sigi Goeschl always says: Dirty remains, while quick is long forgotten lg, strub --- goatwuss [EMAIL PROTECTED] schrieb: Hello, Thanks for the reply... the situation is that I am trying to load a project with 100 or so jar files that I need to include in the library... I don't want to have to manually add each one to a repository, and include a separate dependency for each jar... I just need a quick and dirty way to compile this project THX adampp wrote: I'm new too, so just been through this, but no you don't. You create a pom.xml file, or have maven do it for you by using mvn archetype:create args... Then you add dependency xml frags that tell what libs your project depends on. Then when you do a mvn compile or related goal, maven will download all the deps for you. So an example dependency is dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency The big idea of maven is it gets rid of that ./lib directory. You can track down your dependencies at a www.ibiblio.org/maven2 and use google to help you out by googling for site:www.ibiblio.org maven2 junit. It will lead you to a directory with a junit-3.8.1.pom file that will tell you the info needed to craft your dependency rule. Hope this helps. Adam -Original Message- From: goatwuss [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 24, 2006 11:54 AM To: users@maven.apache.org Subject: Maven Noobie - How can I just add a directory of jars to my classpath? Hello - I am getting started with Maven. I am looking at online guides and literature, and I'm trying to not be retarded All I want to do is somehow point to a directory of jar files (./lib) and add these to the classpath so I can compile my code in maven. I can see that there's this idea of the repository in maven... Do I have to manually add each required jar file to the local repository? Do I need to put more lines in my pom.xml for each required jar, or can I just say include this whole directory of jars Thanks, and sorry if this is a dumb question -- View this message in context: http://www.nabble.com/Maven-Noobie---How-can-I-just-add-a-directory-of-jars- to-my-classpath--tf2503345.html#a6979200 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-Noobie---How-can-I-just-add-a-directory-of-jars-to-my-classpath--tf2503345.html#a6979513 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ 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]
Re: m2, surefire console output
I don't use that option. pjungwir wrote: configuration useFilefalse/useFile /configuration Have you done that? If so, then removing it should get you what you want. -- View this message in context: http://www.nabble.com/m2%2C-surefire-console-output-tf2500944.html#a6988112 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: maven-changes-plugin help please
Aha, I am mixing this plugin with the maven-developer-activity-plugin. I tought this the changes-maven-plugin created a report based on filechanges in SCM, but thats ofcourse not the case :-) It is the other one I am interested in. Thx anyway. -Ronny -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 25. oktober 2006 10:20 Til: users@maven.apache.org Emne: AW: maven-changes-plugin help please Hi I use plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId version2.0-beta-1/version reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin works fine! -Ursprüngliche Nachricht- Von: Naess, Ronny [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 10:16 An: Maven Users List Betreff: Re: maven-changes-plugin help please Does maven-changes-plugin work well with M2 and what version should I choose? I tried it a while ago without success. By the way, we use Subversion. -Ronny -Opprinnelig melding- Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sendt: 24. oktober 2006 23:15 Til: Maven Users List; [EMAIL PROTECTED] Emne: Re: maven-changes-plugin help please The Apache-version of the plugin is a reporting-plugin. This means that it will generate its output during site generation. It also means that configuration should be in the reporting section of your pom. Please see: http://maven.apache.org/plugins/maven-changes-plugin/usage.html -- Dennis Lundberg Pete wrote: Help, I'm trying to switch from the old codehaus maven-changes-plugin to the new org.apache.maven.plugins version. Previously I had my pom configured to use the old plugin during the compile phase, so that a changes-report.html could be nested inside the web app's pages. Now with the new plugin it doesn't seem to generate a report at all, is there something about the new plugin which means it will only generate during the 'site' goal ? I've tried with and without a phase, and -X doesn't show any configuration for the plugin happening at all :- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-2-SNAPSHOT/version executions execution idproduce changes html page/id !-- phasecompile/phase-- inheritedfalse/inherited configuration xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /configuration goals goalchanges-report/goal /goals /execution /executions /plugin - 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] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:453f1e7819381367111490! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jorphan 2.2
Anyone know where I can download that the apache jorphan-2.2.jar?I've googled and can't seem to get any leads. -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Snapshot Repository Down?
Hi, i am unable to access people.apache.org for 3 days now. I tried from several machines in several networks to rule out any firewall/proxy issues, but it seems that the host is unreachable (except for a 1 hour period on monday evening CEST). Is there some maintenance going on? Has the URL changed? Any insights would be helpful, as currently our build cannot run because it needs some plugins from the snapshot repository. On second thought - is there a mirror of the snapshot repository which i could access meanwhile? Best regards, Jan Thomä - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to flag successful build
We use continuum to build all server projects (maven) and client projects(Bea Workshop project buildt with Ant). We want to deploy the ear buildt from the workshopproject to out testserver (weblogic). The clue is to deploy only if server projects is successfully buildt. The ant script (workshop) should then check for a flag (SUCCESS) before deployment. How can we flag success full build from maven. I tried to use antrun to create a SUCCESS file after installphase and delete the same file after validatephase, but this does not work since parent-pom is handled as a separate project. This means while parent deletes the SUCCESS file it also creates the file before the modules starts to do the same. Is there a smart way to solve this? -Ronny -Opprinnelig melding- Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] Sendt: 25. oktober 2006 10:40 Til: Maven Users List Emne: SV: maven-changes-plugin help please Aha, I am mixing this plugin with the maven-developer-activity-plugin. I tought this the changes-maven-plugin created a report based on filechanges in SCM, but thats ofcourse not the case :-) It is the other one I am interested in. Thx anyway. -Ronny -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 25. oktober 2006 10:20 Til: users@maven.apache.org Emne: AW: maven-changes-plugin help please Hi I use plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId version2.0-beta-1/version reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin works fine! -Ursprüngliche Nachricht- Von: Naess, Ronny [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 10:16 An: Maven Users List Betreff: Re: maven-changes-plugin help please Does maven-changes-plugin work well with M2 and what version should I choose? I tried it a while ago without success. By the way, we use Subversion. -Ronny -Opprinnelig melding- Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sendt: 24. oktober 2006 23:15 Til: Maven Users List; [EMAIL PROTECTED] Emne: Re: maven-changes-plugin help please The Apache-version of the plugin is a reporting-plugin. This means that it will generate its output during site generation. It also means that configuration should be in the reporting section of your pom. Please see: http://maven.apache.org/plugins/maven-changes-plugin/usage.html -- Dennis Lundberg Pete wrote: Help, I'm trying to switch from the old codehaus maven-changes-plugin to the new org.apache.maven.plugins version. Previously I had my pom configured to use the old plugin during the compile phase, so that a changes-report.html could be nested inside the web app's pages. Now with the new plugin it doesn't seem to generate a report at all, is there something about the new plugin which means it will only generate during the 'site' goal ? I've tried with and without a phase, and -X doesn't show any configuration for the plugin happening at all :- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-2-SNAPSHOT/version executions execution idproduce changes html page/id !-- phasecompile/phase-- inheritedfalse/inherited configuration xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /configuration goals goalchanges-report/goal /goals /execution /executions /plugin - 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] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de
Re: Maven Snapshot Repository Down?
Hi Jan, The people server was moved over the weekend to a diferent location and died yesterday. Our infrastructure team is doing everything it can to get a new box in place. Afaik people snapshot repository is not mirrored anywhere. Mvgr, Martin Jan Thomä wrote: Hi, i am unable to access people.apache.org for 3 days now. I tried from several machines in several networks to rule out any firewall/proxy issues, but it seems that the host is unreachable (except for a 1 hour period on monday evening CEST). Is there some maintenance going on? Has the URL changed? Any insights would be helpful, as currently our build cannot run because it needs some plugins from the snapshot repository. On second thought - is there a mirror of the snapshot repository which i could access meanwhile? Best regards, Jan Thomä - 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] properties from parent-pom expanded wrongly in child-pom
Hi, i use a parent-pom from which my child-poms are derived. and i wonder if i can get rid of entries in my child poms, that only differ in the artifactId. for example, in my parent pom i use: urlhttp://192.168.22.5/projects/base-project//url scm connectionscm:svn:https://myserver/svn/base-project/trunk/connection developerConnectionscm:svn:https://myserver/svn/base-project/trunk/developerConnection urlhttps://myserver/wsvn/base-project/trunk/url /scm while in the child-pom, i use: urlhttp://192.168.22.5/projects/child-project//url scm connectionscm:svn:https://myserver/svn/child-project/trunk/connection developerConnectionscm:svn:https://myserver/svn/child-project/trunk/developerConnection urlhttps://myserver/wsvn/child-project/trunk/url /scm so i tried to use the ${project.artifactId} property instead. urlhttp://192.168.22.5/projects/${project.artifactId}//url scm connectionscm:svn:https://myserver/svn/${project.artifactId}/trunk/connection developerConnectionscm:svn:https://myserver/svn/${project.artifactId}/trunk/developerConnection urlhttps://myserver/wsvn/${project.artifactId}/trunk/url /scm when i use this proerties in the child-pom, everything works fine. but as soon as i use the same properties in the parent-pom, the following happens: urlhttp://192.168.22.5/projects/child-project/child-project/url scm connectionscm:svn:https://myserver/svn/child-project/trunk/child-project/connection developerConnectionscm:svn:https://myserver/svn/child-project/trunk/child-project/develope rConnection urlhttps://myserver/wsvn/child-project/trunk/child-project/url /scm it seems like properties in child-poms are expanded differently, than properties that are derived from a parent-pom. thx 4 any ideas R.C. -- View this message in context: http://www.nabble.com/-M2--properties-from-parent-pom-expanded-wrongly-in-child-pom-tf2506650.html#a6989102 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [M2] properties from parent-pom expanded wrongly in child-pom
Do you define urlhttp://192.168.22.5/projects/${project.artifactId}//url in parent and child pom? -Ursprüngliche Nachricht- Von: CodingPlayer [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 11:47 An: users@maven.apache.org Betreff: [M2] properties from parent-pom expanded wrongly in child-pom Hi, i use a parent-pom from which my child-poms are derived. and i wonder if i can get rid of entries in my child poms, that only differ in the artifactId. for example, in my parent pom i use: urlhttp://192.168.22.5/projects/base-project//url scm connectionscm:svn:https://myserver/svn/base-project/trunk/connection developerConnectionscm:svn:https://myserver/svn/base-project/trunk/developerConnection urlhttps://myserver/wsvn/base-project/trunk/url /scm while in the child-pom, i use: urlhttp://192.168.22.5/projects/child-project//url scm connectionscm:svn:https://myserver/svn/child-project/trunk/connection developerConnectionscm:svn:https://myserver/svn/child-project/trunk/developerConnection urlhttps://myserver/wsvn/child-project/trunk/url /scm so i tried to use the ${project.artifactId} property instead. urlhttp://192.168.22.5/projects/${project.artifactId}//url scm connectionscm:svn:https://myserver/svn/${project.artifactId}/trunk/connection developerConnectionscm:svn:https://myserver/svn/${project.artifactId}/trunk/developerConnection urlhttps://myserver/wsvn/${project.artifactId}/trunk/url /scm when i use this proerties in the child-pom, everything works fine. but as soon as i use the same properties in the parent-pom, the following happens: urlhttp://192.168.22.5/projects/child-project/child-project/url scm connectionscm:svn:https://myserver/svn/child-project/trunk/child-project/connection developerConnectionscm:svn:https://myserver/svn/child-project/trunk/child-project/develope rConnection urlhttps://myserver/wsvn/child-project/trunk/child-project/url /scm it seems like properties in child-poms are expanded differently, than properties that are derived from a parent-pom. thx 4 any ideas R.C. -- View this message in context: http://www.nabble.com/-M2--properties-from-parent-pom-expanded-wrongly-in-child-pom-tf2506650.html#a6989102 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: maven-changes-plugin help please
You should use changes plugin it is newer version of that codehaus plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration xmlPath${basedir}/src/site/changes.xml/xmlPath /configuration reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin [EMAIL PROTECTED] wrote: Hi I use plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId version2.0-beta-1/version reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin works fine! -Ursprüngliche Nachricht- Von: Naess, Ronny [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 10:16 An: Maven Users List Betreff: Re: maven-changes-plugin help please Does maven-changes-plugin work well with M2 and what version should I choose? I tried it a while ago without success. By the way, we use Subversion. -Ronny -Opprinnelig melding- Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sendt: 24. oktober 2006 23:15 Til: Maven Users List; [EMAIL PROTECTED] Emne: Re: maven-changes-plugin help please The Apache-version of the plugin is a reporting-plugin. This means that it will generate its output during site generation. It also means that configuration should be in the reporting section of your pom. Please see: http://maven.apache.org/plugins/maven-changes-plugin/usage.html -- Dennis Lundberg Pete wrote: Help, I'm trying to switch from the old codehaus maven-changes-plugin to the new org.apache.maven.plugins version. Previously I had my pom configured to use the old plugin during the compile phase, so that a changes-report.html could be nested inside the web app's pages. Now with the new plugin it doesn't seem to generate a report at all, is there something about the new plugin which means it will only generate during the 'site' goal ? I've tried with and without a phase, and -X doesn't show any configuration for the plugin happening at all :- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-2-SNAPSHOT/version executions execution idproduce changes html page/id !-- phasecompile/phase-- inheritedfalse/inherited configuration xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /configuration goals goalchanges-report/goal /goals /execution /executions /plugin - 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] !DSPAM:453e87fd64881357017964! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - 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]
AW: AW: maven-changes-plugin help please
thanks! -Ursprüngliche Nachricht- Von: Markku Saarela [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 12:38 An: Maven Users List Betreff: Re: AW: maven-changes-plugin help please You should use changes plugin it is newer version of that codehaus plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration xmlPath${basedir}/src/site/changes.xml/xmlPath /configuration reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin [EMAIL PROTECTED] wrote: Hi I use plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId version2.0-beta-1/version reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /plugin works fine! -Ursprüngliche Nachricht- Von: Naess, Ronny [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 10:16 An: Maven Users List Betreff: Re: maven-changes-plugin help please Does maven-changes-plugin work well with M2 and what version should I choose? I tried it a while ago without success. By the way, we use Subversion. -Ronny -Opprinnelig melding- Fra: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sendt: 24. oktober 2006 23:15 Til: Maven Users List; [EMAIL PROTECTED] Emne: Re: maven-changes-plugin help please The Apache-version of the plugin is a reporting-plugin. This means that it will generate its output during site generation. It also means that configuration should be in the reporting section of your pom. Please see: http://maven.apache.org/plugins/maven-changes-plugin/usage.html -- Dennis Lundberg Pete wrote: Help, I'm trying to switch from the old codehaus maven-changes-plugin to the new org.apache.maven.plugins version. Previously I had my pom configured to use the old plugin during the compile phase, so that a changes-report.html could be nested inside the web app's pages. Now with the new plugin it doesn't seem to generate a report at all, is there something about the new plugin which means it will only generate during the 'site' goal ? I've tried with and without a phase, and -X doesn't show any configuration for the plugin happening at all :- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-2-SNAPSHOT/version executions execution idproduce changes html page/id !-- phasecompile/phase-- inheritedfalse/inherited configuration xmlPath${project.build.outputDirectory}/changes/changes.xml/xmlPath reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets /configuration goals goalchanges-report/goal /goals /execution /executions /plugin - 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] !DSPAM:453e87fd64881357017964! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - 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/ant] How to add jar to Ant root classpath with AntRun plugin ?
Hi, I would like to use mapper regexp with ant but we must add ant-apache-jarkarta.jar and ant-apache-jarkata-oro into the ant classpath. I'v tried to add them to the antrun plugin classpath like this : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idant-install/id phasegenerate-sources/phase configuration tasks ant antfile=${basedir}/build.xml=true target name=ejbdoclet/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.5/version /dependency dependency groupIdant/groupId artifactIdant-apache-oro/artifactId version1.6.5/version /dependency /dependencies /plugin But this doesn't work. When I run I'm get the following ant error no supported regular expression matcher found. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: copying configs from dependencies
If I have 2 modules A and B, and A depends on B, but B has a file config.properties in its conf/ dir. How can I build/package A so that config.properties will be in A also? How can I do it using maven-assembly-plugin? With the plugin maven-assembly-plugin, you can try something like this : assembly idconfig/id formats formatzip/format /formats fileSets fileSet directory../Module_B/src/main/conf/directory outputDirectoryclasses/outputDirectory includes include**/*.*/include /includes /fileSet /fileSets /assembly But I haven't found how to define filtering as with the resources plugin. Any idea ? Rémy
[m2] Unable to change Checkstyle configuration file: path problem
Hi all, I'm using the Checkstyle plug-in and it works perfect with default or predefined. 1) But I would like to try another config file from JJGuidelines. I try to change to checkstyle-jjguidelines.xml by modifying the pom like this: reporting plugins [...] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationcheckstyle-jjguidelines.xml/configLocation /configuration /plugin [...] /plugins /reporting've added the checkstyle-jjguidelines.xml in I put the checkstyle-jjguidelines.xml and checkstyle-jjguidelines.jar in my project directory and it found it but I got the error: [INFO] Generate Checkstyle report. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Failed during checkstyle configuration Unable to instantiate usage.UnusedLocalVariableCheck [INFO] I suppose it comes from that: within the compile scope of the dependencies or build extensions classpath. There is a class with name UnusedLocalVariableCheck in the jar. Where should I put the checkstyle-jjguidelines.jar? What should I add in my pom.xml or settings.xml? 2) I would like also to know where are located the 4 predefined config file listed on the Customization page: http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html Thank you, Xavier. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto Tell maven2 to also download sources
Erick Dovale wrote: For the eclipse plugin you have to pass in -DdownloadSource=true to the plugin and they will get downloaded and linked. The property is -DdownloadSources=true not -DdownloadSource=true -- View this message in context: http://www.nabble.com/Howto-Tell-maven2-to-also-download-sources-tf1344787.html#a6990496 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2/ant] How to add jar to Ant root classpath with AntRun plugin ?
Hi Elid, the message no supported regular expression matcher found is my all time favourite regarding Maven2 ... :-) +) what type of regexp engine your would like to use - JDK, oro or regexp - you probably don't need three of them +) you definitely need ant-nodeps in your dependencies, e.g plugin artifactIdmaven-antrun-plugin/artifactId ... dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency /dependencies /plugin +) Thanks to Mark Struberg for finding that out ... :-) Cheers, Siegfried Goeschl Elid OR wrote: Hi, I would like to use mapper regexp with ant but we must add ant-apache-jarkarta.jar and ant-apache-jarkata-oro into the ant classpath. I'v tried to add them to the antrun plugin classpath like this : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idant-install/id phasegenerate-sources/phase configuration tasks ant antfile=${basedir}/build.xml=true target name=ejbdoclet/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.5/version /dependency dependency groupIdant/groupId artifactIdant-apache-oro/artifactId version1.6.5/version /dependency /dependencies /plugin But this doesn't work. When I run I'm get the following ant error no supported regular expression matcher found. Thanks. - 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] different classpathElements in test phases
How come the Test Classpath (same as maven-surefire-plugin classpathElements?) is different when I run 'mvn test -X' and 'mvn install -X'? The funny thing is the JUnit tests execute correct when running 'mvn test' and NOT when running 'mvn install'. I'm not sure if this is the problem but my tests depend on some resources (Spring bean definition files) where the classpath differ. When running 'mvn test' the classpath looks like: [some other paths], C:\dev\SalesTool\ST2.0_WS2\ST2.0\configuration\target\classes, [some other paths] When running 'mvn install' the classpath looks like: [some other paths], C:\dev\SalesTool\ST2.0_WS2\ST2.0\configuration\target\configuration-0.1.jar, [some other paths] Both paths exists and contains my Spring config, but as far as I can see this is the only difference between the two Maven goals. Can I add a path to the Test Classpath just to make sure? Does anyone else have this problem? thanks -Martin -- View this message in context: http://www.nabble.com/-M2--different-classpathElements-in-test-phases-tf2507245.html#a6990839 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2][javadoc-plugin] currentYear, inceptionYear
Hello, from: http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html I see that the default value for the 'botttom' parameter of the javadoc plugin has the followig value: Copyright copy; {inceptionYear}-{currentYear} {organizationName}. All Rights Reserved. But I can't figure out how these values are replaced: {inceptionYear}, {currentYear}, {organizationName} Why isn't it ${propertyName}? I assume {inceptionYear} is mapped on ${project.inceptionYear} (or ${inceptionYear}) that can be available in the maven POM. What if it is not present? Where does the value come from, is it current year? Same for {currentYear}, is this replaced by maven, or is this part of the javadoc tool itself? And what about organizationName ? Thanks
Antwort: [m2] anybody using ClearQuest as maven issueManagement ?
we use clearquest for issue management and clearcase (base) for versioning, works reasonably ok - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Antwort: [m2] anybody using ClearQuest as maven issueManageme nt ?
how can i add clearQuest as issueManagement to my pom. so that the issue tag in my changes.xml will be linked to clearQuest? Is it possible? thanks Fredy -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 15:00 An: Maven Users List Betreff: Antwort: [m2] anybody using ClearQuest as maven issueManagement ? we use clearquest for issue management and clearcase (base) for versioning, works reasonably ok - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ang: [M2] properties from parent-pom expanded wrongly in child-pom
Hi, I do the following: In my parent pom I define scm connection scm:svn:svn://server/repository/trunc/ /connection developerConnection scm:svn:svn://server/repository/trunc/ /developerConnection /scm and the child poms does NOT define the scm tag. The child poms inherite this property (if you have defined the parent tag in your child poms) and when generating a site the artifactId is automagically added to the URL. Like for child projects myChild1 and myChild2 the URL will be svn://server/repository/trunc/myChild1 and svn://server/repository/trunc/myChild2 -Martin Ursprungligt meddelande Från: [EMAIL PROTECTED] Datum: 2006-10-25 11:47:08 Till: users@maven.apache.org Ärende: [M2] properties from parent-pom expanded wrongly in child-pom Hi, i use a parent-pom from which my child-poms are derived. and i wonder if i can get rid of entries in my child poms, that only differ in the artifactId. for example, in my parent pom i use: urlhttp://192.168.22.5/projects/base-project//url scm connectionscm:svn:https://myserver/svn/base- project/trunk/connection developerConnectionscm:svn:https://myserver/svn/base- project/trunk/developerConnection urlhttps://myserver/wsvn/base-project/trunk/url /scm while in the child-pom, i use: urlhttp://192.168.22.5/projects/child-project//url scm connectionscm:svn:https://myserver/svn/child- project/trunk/connection developerConnectionscm:svn:https://myserver/svn/child- project/trunk/developerConnection urlhttps://myserver/wsvn/child-project/trunk/url /scm so i tried to use the ${project.artifactId} property instead. urlhttp://192.168.22.5/projects/${project.artifactId}//url scm connectionscm:svn:https://myserver/svn/${project.artifactId} /trunk/connection developerConnectionscm:svn:https://myserver/svn/${project. artifactId}/trunk/developerConnection urlhttps://myserver/wsvn/${project.artifactId}/trunk/url /scm when i use this proerties in the child-pom, everything works fine. but as soon as i use the same properties in the parent-pom, the following happens: urlhttp://192.168.22.5/projects/child-project/child-project/url scm connectionscm:svn:https://myserver/svn/child-project/trunk/child- project/connection developerConnectionscm:svn:https://myserver/svn/child- project/trunk/child-project/develope rConnection urlhttps://myserver/wsvn/child-project/trunk/child- project/url /scm it seems like properties in child-poms are expanded differently, than properties that are derived from a parent-pom. thx 4 any ideas R.C. -- View this message in context: http://www.nabble.com/-M2--properties- from-parent-pom-expanded-wrongly-in-child-pom-tf2506650.html#a6989102 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: How to flag successful build
Just to answere my own question. I used maven-antrun-plugin. The verify phase is followed with a delete SUCCESS (a file acting aka our flag) command. The install phase is followed with a create file (ant touch) command. Super POM -- plugin artifactIdmaven-antrun-plugin/artifactId executions execution iddelete/id phasevalidate/phase configuration tasks taskdef resource=net/sf/antcontrib/antcontrib.properties classpath refid=maven.plugin.classpath/ /taskdef if equals arg1=${successPath} arg2=$${successPath} /!--Not set, and additional $ to escape the property-- then !--echo message=The value of property successPath is ${successPath} /-- /then else !--echo message=The value of property successPath is ${successPath} /-- property name=success.file value=${successPath}/SUCCESS/ echo message=Delete file ${success.file}/ delete file=${success.file}/ /else /if /tasks /configuration goals goalrun/goal /goals /execution execution idcreate/id phaseinstall/phase configuration tasks taskdef resource=net/sf/antcontrib/antcontrib.properties classpath refid=maven.plugin.classpath/ /taskdef if equals arg1=${successPath} arg2=$${successPath} /!--Not set, and additional $ to escape the property-- then !--echo message=The value of property successPath is ${successPath} /-- /then else !--echo message=The value of property successPath is ${successPath} /-- property name=success.file value=${successPath}/SUCCESS/ echo message=Create file ${success.file}/ touch file=${success.file}/ /else /if /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant-contrib/groupId artifactIdant-contrib/artifactId version1.0b2/version scoperuntime/scope /dependency /dependencies /plugin To use provide property successPath: mvn install -DsuccessPath=/local/users/continuum/xxx Then check the SUCCESS file from the ant script or whatever that has a dependency to this maven buildt artifacts. If SUCCESS exists the build was successful else there was somthing wrong. The -DsuccessPath will be added to continuum where our SuperPOM is beeing buildt. -Ronny -Opprinnelig melding- Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] Sendt: 25. oktober 2006 11:31 Til: Maven Users List Emne: How to flag successful build We use continuum to build all server projects (maven) and client projects(Bea Workshop project buildt with Ant). We want to deploy the ear buildt from the workshopproject to out testserver (weblogic). The clue is to deploy only if server projects is successfully buildt. The ant script (workshop) should then check for a flag (SUCCESS) before deployment. How can we flag success full build from maven. I tried to use antrun to create a SUCCESS file after installphase and delete the same file after validatephase,
Re: [m2] javadoc:jar + aggregate
I realised that the aggregatetrue/aggregate does not work when you run mvn javadoc:javadoc. The generated jar-files reside under respective child projects target directory. Try to run mvn javadoc:javadoc -Xand look for the output jarOutputDirectory to see exactly where the jar-files are. -Martin ekio wrote: Anyone got an answer to this one? Thanks. ekio wrote: Hi, I am trying to generate a javadoc of all the modules in a multi-module project using aggregate. It works fine if i run mvn javadoc:javadoc. But when I try to run mvn javadoc:jar to bundle the javadoc into a jar, then it doesn't seem to work... Maven will report build successfull but the jar is not generated. Any idea? Thank you very much! plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate /configuration /plugin -- View this message in context: http://www.nabble.com/-m2--javadoc%3Ajar-%2B-aggregate-tf2462158.html#a6991980 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ftp-wagon Unrecognised tag: 'extensions'
extensions are only valid under the main level build, not within a profile's build. Note that the build element under profile is only a subset of the build element under project. Eric On 10/25/06, Jeff Mutonho [EMAIL PROTECTED] wrote: On 10/24/06, pjungwir [EMAIL PROTECTED] wrote: Hi Jeff, Could you please post your whole pom, and also the version of maven you're running? Thanks, Paul The top level pom i.e Maven-Work |-- pom.xml project modelVersion4.0.0/modelVersion groupIdza.co.pragmaticus.portal/groupId artifactIdpragmaticus-portal/artifactId namePragmaticus Portal/name packagingpom/packaging version1.0.0/version descriptionWeb Portal Solution/description inceptionYear2005/inceptionYear developers developer nameJeff Mutonho/name idmutonj/id email[EMAIL PROTECTED]/email organizationpragmaticus/organization roles roleJava Geek/role /roles timezone+2/timezone /developer /developers contributors contributor nameJeff Mutonho/name email[EMAIL PROTECTED]/email organizationpragmaticus/organization roles roleDevelopment Manager/role /roles timezone+2/timezone /contributor /contributors pluginRepositories pluginRepository idapache.snapshots/id nameApache Snapshot Repository/name urlhttp://people.apache.org/repo/m2-snapshot-repository/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories dependencies dependency groupIdorg.apache.log4j/groupId artifactIdlog4j/artifactId version1.2.13/version scopetest/scope /dependency /dependencies build plugins plugin artifactIdmaven-antrun-plugin/artifactId version1.0/version /plugin /plugins /build reporting plugins plugin artifactIdmaven-surefire-report-plugin/artifactId configuration showSuccessfalse/showSuccess /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version2.0/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration links linkhttp://java.sun.com/j2se/1.4.2/docs/api/link linkhttp://plexus.codehaus.org/ref/1.0-alpha-9/apidocs /link /links /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/imports.xml/ruleset ruleset/rulesets/unusedcode.xml/ruleset ruleset/rulesets/finalizers.xml/ruleset /rulesets /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationconfig/sun_checks.xml/configLocation /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId configuration tags tagTODO/tag tag@todo/tag tagFIXME/tag tagXXX/tag /tags /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version /plugin !--plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjdepend-maven-plugin/artifactId /plugin-- /plugins /reporting organization namepragmaticus Limited/name urlhttp://www.pragmaticus.co.za//url /organization modules moduleportal-services/module !--moduleportal-services-junit/module-- moduleportal-messaging/module moduleportal-messaging-support/module moduleportal-webservices/module moduleportal-domain/module moduleportal-exceptions/module moduleportal/module moduleportal-ear/module moduleportal-ejb-ear/module !--moduleportal-webservices-junit-tests/module-- /modules ciManagement systemcontinuum/system urlhttp://localhost:8080/continuum/url notifiers notifier typemail/type configuration address[EMAIL PROTECTED]/address /configuration /notifier /notifiers /ciManagement scm connection scm:cvs:pserver:mutonj:[EMAIL PROTECTED] :/var/lib/cvsroot:pragmaticusportal/dev /connection developerConnection scm:cvs:pserver:mutonj:[EMAIL
Antwort: [m2] anybody using ClearQuest as maven issueManageme nt ?
We don't couple maven and clearquest such close since we don't see the value right now. I'd appreciate any pros and cons anyway. There are some alternatives for a more loosely coupling: 1. In the pom: link to be followed at the project's web site, something like: issueManagement system Rational ClearQuest /system urlhttp://your/companies/qlearquest/login/url /issueManagement 2. In the project website: A menu item or a link that points to a report that queries your project's change requests. Something like: item name=Issues Tracking href=//your.rational.clearquest.web?command=YourCQReport;queryID=12345 target=_blank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Release date for Continuum 1.2?
Can anyone please tell me when is the release date for the next version of Continuum (1.2)? I know it is going to be a major release, but could not exactly tell the date of the release from the website. -- Thanks and best regards, Anoop
Re:Tr : Functional Tests and maven-surefire-report-plugin
You can find a patch to apply on source code here: http://jira.codehaus.org/browse/MSUREFIREREP-28?page=all Please, vote for this issue. _ Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience _ -- Initial Header --- From : Julien HENRY [EMAIL PROTECTED] To : [EMAIL PROTECTED] Cc : Date : Wed, 25 Oct 2006 13:55:01 + (GMT) Subject : Tr : Functional Tests and maven-surefire-report-plugin - Message transféré De : Luis Perea [EMAIL PROTECTED] À : users@maven.apache.org Envoyé le : Mercredi, 18 Octobre 2006, 0h31mn 44s Objet : Re: Functional Tests and maven-surefire-report-plugin Hi, I've got the same problem, when I execute my functional test's with mvn install everything is OK, my tests run fine, but with mvn site neither the tests nor the surefire report are generated. Have you found any solution for this problem? Christophe DENEUX wrote: Hi friends, It seems that the maven-surefire-report-plugin generates the report only if the language of the packaging is java (see in source code: SurefireReportMojo.canGenerateReport). As described in Introduction to the Build Lifecycle (http://maven..apache.org/guides/introduction/introduction-to-the-lifecycle.html), I try to create a new packaging (packagingit-java/packaging) as a build extension: - to map executions of maven-compiler-plugin, maven-resources-plugin, maven-surefire-plugin on the right phases, - to define the language (java). I have updated the POM of my functional tests modules to change the packagin and add the extension. But the maven-surefire-report-plugin does not recognize the language of my new packaging. The executions of maven-compiler-plugin, maven-resources-plugin, maven-surefire-plugin are fine. Where is my mistake ? My extension is only composed of the source file META-INF/plexus/components.xml: component-set components component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintit-java/role-hint implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation configuration typeit-java/type languagejava/language /configuration /component component roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role role-hintit-java/role-hint implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation configuration phases process-test-resourcesorg.apache.maven.plugins:maven-resources-plugin:testResources/process-test-resources test-compileorg.apache.maven.plugins:maven-compiler-plugin:testCompile/test-compile integration-testorg.apache.maven.plugins:maven-surefire-plugin:test/integration-test /phases /configuration /component /components /component-set Thanks for your help. Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Fax: + 33 4 93 21 02 95 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience Christophe DENEUX a écrit : Hi all, I'm trying to use maven-surefire-report-plugin to have a status on my functional tests in the maven generated website. I think that i have used a standard way to implement functional tests: - my functional tests are a module of my project, that is packaged as POM (packagingpom/packaging). - I have defined sources directories as src/it/java and src/it/resources, - I have redefined execution for maven-compiler-plugin, maven-resources-plugin, maven-surefire-plugin. When I launch mvn clean integration-test site site:deploy, the surefire report is not generated during site generation, but my functional tests are executed. Here after, the POM of my functional module and execution traces. Any idea ? Thanks, Christophe DENEUX -- ?xml version=1.0? project xmlns=http://maven.apache.org/POM/4.0.0;; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;; parent
Re:Tr : Functional Tests and maven-surefire-report-plugin
You can find a patch to apply on source code here: http://jira.codehaus.org/browse/MSUREFIREREP-28?page=all Please, vote for this issue. _ Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience _ -- Initial Header --- From : Julien HENRY [EMAIL PROTECTED] To : [EMAIL PROTECTED] Cc : Date : Wed, 25 Oct 2006 13:55:01 + (GMT) Subject : Tr : Functional Tests and maven-surefire-report-plugin - Message transféré De : Luis Perea [EMAIL PROTECTED] À : users@maven.apache.org Envoyé le : Mercredi, 18 Octobre 2006, 0h31mn 44s Objet : Re: Functional Tests and maven-surefire-report-plugin Hi, I've got the same problem, when I execute my functional test's with mvn install everything is OK, my tests run fine, but with mvn site neither the tests nor the surefire report are generated. Have you found any solution for this problem? Christophe DENEUX wrote: Hi friends, It seems that the maven-surefire-report-plugin generates the report only if the language of the packaging is java (see in source code: SurefireReportMojo.canGenerateReport). As described in Introduction to the Build Lifecycle (http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html), I try to create a new packaging (packagingit-java/packaging) as a build extension: - to map executions of maven-compiler-plugin, maven-resources-plugin, maven-surefire-plugin on the right phases, - to define the language (java). I have updated the POM of my functional tests modules to change the packagin and add the extension. But the maven-surefire-report-plugin does not recognize the language of my new packaging. The executions of maven-compiler-plugin, maven-resources-plugin, maven-surefire-plugin are fine. Where is my mistake ? My extension is only composed of the source file META-INF/plexus/components.xml: component-set components component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintit-java/role-hint implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation configuration typeit-java/type languagejava/language /configuration /component component roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role role-hintit-java/role-hint implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation configuration phases process-test-resourcesorg.apache.maven.plugins:maven-resources-plugin:testResources/process-test-resources test-compileorg.apache.maven.plugins:maven-compiler-plugin:testCompile/test-compile integration-testorg.apache.maven.plugins:maven-surefire-plugin:test/integration-test /phases /configuration /component /components /component-set Thanks for your help. Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Fax: + 33 4 93 21 02 95 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience Christophe DENEUX a écrit : Hi all, I'm trying to use maven-surefire-report-plugin to have a status on my functional tests in the maven generated website. I think that i have used a standard way to implement functional tests: - my functional tests are a module of my project, that is packaged as POM (packagingpom/packaging). - I have defined sources directories as src/it/java and src/it/resources, - I have redefined execution for maven-compiler-plugin, maven-resources-plugin, maven-surefire-plugin. When I launch mvn clean integration-test site site:deploy, the surefire report is not generated during site generation, but my functional tests are executed. Here after, the POM of my functional module and execution traces. Any idea ? Thanks, Christophe DENEUX -- ?xml version=1.0? project xmlns=http://maven.apache.org/POM/4.0.0;; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;; parent
EAR dependency best practices
Hello everyone, I'm building an EAR and I having some difficulties dealing with common dependencies among modules. Here are some basic questions: 1) How should JARs shipped within my EAR be treated? (see below) 2) Why does Maven pull in dependencies not listed in any of my pom files? For some reason I'm getting commons-logging, xml-xerces, as well as commons-codec even though they are not listed in any of my pom files? 3) Should common dependencies among modules be listed per pom (repeated) or used at the top level? Architecturally, I thought what I would do is put all the dependencies that ship with my platform in the top level pom file as provided. Which seems to work fine. However, I now have some other dependencies that normally would be under a compile scope but are provided within my EAR (third party libraries). I noticed that I HAVE to put them in the EAR pom of my project for them to be included if I list them under javaModule tag. This causes duplication of dependencies in my project. Any feedback would be much appreciated! Thanks! -aps -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson
Re: Release date for Continuum 1.2?
well, since 1.1 isn't released yet1.2 will be a bit after that :) but a for 1.1 release I would hazard a guess of around the beginning of the new year, there is a thread on here detailing the general things we want to get wrapped up before actually settling 1.1 release. jesse On 10/25/06, Anoop kumar V [EMAIL PROTECTED] wrote: Can anyone please tell me when is the release date for the next version of Continuum (1.2)? I know it is going to be a major release, but could not exactly tell the date of the release from the website. -- Thanks and best regards, Anoop -- jesse mcconnell [EMAIL PROTECTED]
AW: Antwort: [m2] anybody using ClearQuest as maven issueManageme nt ?
Hi, i thougt about: http://maven.apache.org/plugins/maven-changes-plugin/usage.html see the first example How to Generate the Changes Report - Tag 'issue=MPJIRA-11' Fredy -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 16:11 An: Maven Users List Betreff: Antwort: [m2] anybody using ClearQuest as maven issueManageme nt ? We don't couple maven and clearquest such close since we don't see the value right now. I'd appreciate any pros and cons anyway. There are some alternatives for a more loosely coupling: 1. In the pom: link to be followed at the project's web site, something like: issueManagement system Rational ClearQuest /system urlhttp://your/companies/qlearquest/login/url /issueManagement 2. In the project website: A menu item or a link that points to a report that queries your project's change requests. Something like: item name=Issues Tracking href=//your.rational.clearquest.web?command=YourCQReport;queryID=12345 target=_blank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Snapshot Repository Down?
Someone yesterday mentioned running mvn -o to prevent updating snapshots. Of course you must already have them, but this will apparently prevent maven from failing trying to get newer ones. Paul -- View this message in context: http://www.nabble.com/Maven-Snapshot-Repository-Down--tf2506571.html#a6993443 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Snapshot Repository Down?
Aye, indeed, however currently we dont have them on all pcs, so getting this up again would be really helpful - but well they are working on it :) Best regards, Jan On Wednesday, 25. October 2006 16:43, pjungwir wrote: Someone yesterday mentioned running mvn -o to prevent updating snapshots. Of course you must already have them, but this will apparently prevent maven from failing trying to get newer ones. Paul -- Jan Thomä insOMnia - We never sleep... http://www.insomnia-hq.de pgpMTiyP5nKDP.pgp Description: PGP signature
Re: cvs.apache.org connection problems
On 10/24/06, Scott Ryan [EMAIL PROTECTED] wrote: I am having the same issues with my maven 2 repository. I saw a posting last night that some of the apache servers (people and cvs) had gone down but no information on when they were expected back up or any alternative on how to get around the issue. It looks like these servers are embedded in the maven parent pom and I have not been able to find any mirrors to get snapshots off of. I am trying to get the latest commons-vfs so that i can compile the latest copy of Cargo but no luck so far. Any suggestions on mirrors or any idea on when the servers might be back up. Seems like we need a disaster recovery plan for times like these. The server on which the snapshot repository lives was part of some infrastructure work that started on Saturday. The original estimate was to be done on Monday, but things don't always go as planned... they're working on it, and it will be back as soon as possible. At this time, only official releases are mirrored, not snapshots. The alternative is to check the code out of the Subversion repository (which is up) and build it locally. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven DOCCK Plugin 1.0-beta-1 for Maven 2 Released
Is there a better description of this plugin? Sorry, but I am not quite sure what this plugin will do for me. Can someone shed some more light? On 10/24/06, Wim Deblauwe [EMAIL PROTECTED] wrote: It is very nice to see this after there has been much discussion about the quality of the documentation. It shows that the Maven team is really concerned with this. keep up the good work! regards, Wim 2006/10/25, Dennis Lundberg [EMAIL PROTECTED]: The Maven team is pleased to announce the release of the Maven DOCCK Plugin, version 1.0-beta-1 http://maven.apache.org/plugins/maven-docck-plugin/ You can run mvn -U to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-docck-plugin/artifactId version1.0-beta-1/version /plugin This is the first release of this plugin. Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
RE: [m2/ant] How to add jar to Ant root classpath with AntRun plugin ?
Hi Siegfried, In fact I use only regexp mapper. I found a solution by adding these following dependencies : plugin artifactIdmaven-antrun-plugin/artifactId ... dependencies dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.5/version /dependency groupIdjakarta-regexp/groupId artifactIdjakarta-regexp/artifactId version1.4/version /dependency /dependencies /plugin This work correctly. I haven't test your solution yet but if the ant-no-deps artifact has these both jars it will work ! Thank you for your response ! Elid -Original Message- From: Siegfried Goeschl [mailto:[EMAIL PROTECTED] Sent: Wed 10/25/2006 2:07 PM To: Maven Users List Cc: Subject:Re: [m2/ant] How to add jar to Ant root classpath with AntRun plugin ? Hi Elid, the message no supported regular expression matcher found is my all time favourite regarding Maven2 ... :-) +) what type of regexp engine your would like to use - JDK, oro or regexp - you probably don't need three of them +) you definitely need ant-nodeps in your dependencies, e.g plugin artifactIdmaven-antrun-plugin/artifactId ... dependencies dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency /dependencies /plugin +) Thanks to Mark Struberg for finding that out ... :-) Cheers, Siegfried Goeschl Elid OR wrote: Hi, I would like to use mapper regexp with ant but we must add ant-apache-jarkarta.jar and ant-apache-jarkata-oro into the ant classpath. I'v tried to add them to the antrun plugin classpath like this : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idant-install/id phasegenerate-sources/phase configuration tasks ant antfile=${basedir}/build.xml=true target name=ejbdoclet/ /ant /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.5/version /dependency dependency groupIdant/groupId artifactIdant-apache-oro/artifactId version1.6.5/version /dependency /dependencies /plugin But this doesn't work. When I run I'm get the following ant error no supported regular expression matcher found. Thanks. - 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: ftp-wagon Unrecognised tag: 'extensions'
On 10/25/06, Eric Redmond [EMAIL PROTECTED] wrote: extensions are only valid under the main level build, not within a profile's build. Note that the build element under profile is only a subset of the build element under project. Eric Alright.So since I have a profile , how should I do this?Can I enclose profiles inside build?(I can't try it as I'm away from my work machine) Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using ant-tasks inside antrun
Hello, This is kind of a weird question. Suppose I'm writing a tasks block for maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there. For example (to borrow from another poster): tasks delete dir=target/ artifact:pom id=maven.project file=pom.xml/ artifact:dependencies filesetId=dependency.fileset pom refid=maven.project/ /artifact:dependencies mkdir dir=target/deps/ copy todir=target/deps fileset refid=dependency.fileset/ /copy /tasks I'm having trouble with two things. First, I need to include maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this to the beginning of tasks: typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/ /classpath /typedef That didn't work. I also tried this inside my plugin tag (with and without the classifier element): dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-ant/artifactId version2.0.4/version classifierdep/classifier /dependency /dependencies Without the classifier, I just get the regular ant error message about not recognizing artifact:pom. With classifier, I get this perplexing stack trace: java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(AutoConfigurePhase.java:34) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:524) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:390) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) How do I get maven to include the ant-tasks jar in the classpath? Second, where do I put xmlns:artifact=urn:maven-artifact-ant? Right now I'm putting it on maven's project tag, but perhaps it belongs on the tasks tag. Thanks, Paul -- View this message in context: http://www.nabble.com/Using-ant-tasks-inside-antrun-tf2508452.html#a6994761 Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Deploy fails if directory exists using wagon-file
Hi Dave, Is wagon-file even necessary? I used a file-based repository for a while, and I didn't even mention wagon. I just had a urlfile:////url in my /project/distributionManagement/repository section. But maybe wagon-file was used implicitly. I wonder if the problem is related to windows shares. Try deploying to C: and see if that fixes the problem. Paul -- View this message in context: http://www.nabble.com/-m204--deploy-fails-if-directory-exists-using-file-tf2495919.html#a6994821 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preventing sub-dependencies from being included in an EAR
Because I'm using some of the Apache commons libraries, Maven2 is including some of their sub dependencies such as commons-logging which breaks my EAR. Is there a way to prevent this? -aps -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson
Re: ftp-wagon Unrecognised tag: 'extensions'
No, you need to make a build section under the main project element - completely unrelated to profiles. Think of it this way: profiles define how you actually intend to build a project for a specific system, not the mechanism by which you will upload to a remote server. At least, that's the thought. I can see the case where it may be desirable, but, in practice it almost never comes up. If you really need such behavior, I'd log a request in JIRA. Eric On 10/25/06, Jeff Mutonho [EMAIL PROTECTED] wrote: On 10/25/06, Eric Redmond [EMAIL PROTECTED] wrote: extensions are only valid under the main level build, not within a profile's build. Note that the build element under profile is only a subset of the build element under project. Eric Alright.So since I have a profile , how should I do this?Can I enclose profiles inside build?(I can't try it as I'm away from my work machine) Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Bug in maven
hey guys. look at SHALE-319 to see that maven checks only dependencies against *special* repos, when one of the libs has them defined in it (parent) pom file. http://issues.apache.org/struts/browse/SHALE-319 Should I move this bug to maven ? -M -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bug in maven
I'm almost sure it's already logged in jira MNG. We faced it some time ago. The pom in central should be changed On 10/25/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: hey guys. look at SHALE-319 to see that maven checks only dependencies against *special* repos, when one of the libs has them defined in it (parent) pom file. http://issues.apache.org/struts/browse/SHALE-319 Should I move this bug to maven ? -M -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bug in maven
u are talking about the parent pom ? -M On 10/25/06, Carlos Sanchez [EMAIL PROTECTED] wrote: I'm almost sure it's already logged in jira MNG. We faced it some time ago. The pom in central should be changed On 10/25/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: hey guys. look at SHALE-319 to see that maven checks only dependencies against *special* repos, when one of the libs has them defined in it (parent) pom file. http://issues.apache.org/struts/browse/SHALE-319 Should I move this bug to maven ? -M -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ftp-wagon Unrecognised tag: 'extensions'
Hi Jeff, What is the benefit of loading wagon-ftp in a profile? That extensions block doesn't per se do anything; it just makes wagon-ftp available. I guess you're loading it for the sake of the sftp:// repository in the top-level POM? Then why not just put extensions up there, too (with no profile)? Paul -- View this message in context: http://www.nabble.com/ftp-wagon-Unrecognised-tag%3A-%27extensions%27-tf2496953.html#a6995538 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using ant-tasks inside antrun
see if this helps http://www.nabble.com/M2-antrun-plugin-problem-tf1400135.html#a5892203 -D On 10/25/06, pjungwir [EMAIL PROTECTED] wrote: Hello, This is kind of a weird question. Suppose I'm writing a tasks block for maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there. For example (to borrow from another poster): tasks delete dir=target/ artifact:pom id=maven.project file=pom.xml/ artifact:dependencies filesetId=dependency.fileset pom refid=maven.project/ /artifact:dependencies mkdir dir=target/deps/ copy todir=target/deps fileset refid=dependency.fileset/ /copy /tasks I'm having trouble with two things. First, I need to include maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this to the beginning of tasks: typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/ /classpath /typedef That didn't work. I also tried this inside my plugin tag (with and without the classifier element): dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-ant/artifactId version2.0.4/version classifierdep/classifier /dependency /dependencies Without the classifier, I just get the regular ant error message about not recognizing artifact:pom. With classifier, I get this perplexing stack trace: java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute (AutoConfigurePhase.java:34) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start( AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle (AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance (AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent (PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:331) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo( DefaultPluginManager.java:524) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:390) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) How do I get maven to include the ant-tasks jar in the classpath? Second, where do I put xmlns:artifact=urn:maven-artifact-ant? Right now I'm putting it on maven's project tag, but perhaps it belongs on the tasks tag. Thanks, Paul -- View this message in context: http://www.nabble.com/Using-ant-tasks-inside-antrun-tf2508452.html#a6994761 Sent from the Maven -
Re: [ANN] Maven DOCCK Plugin 1.0-beta-1 for Maven 2 Released
DOCCK = Maven Document Check As seen on the page: This plugin checks that a project complies with the Plugin Documentation Standard. Link to Plugin Doc Standard: http://maven.apache.org/guides/development/guide-plugin-documentation.html Link to DOCCK FAQ: http://maven.apache.org/plugins/maven-docck-plugin/faq.html Where did the standard came from? The plugin documentation standard was created to address the frequent complaint of lack of documentation, specifically on the maven plugins. The standard was based on suggestions made on the maven dev mailing list with some refinements. It is a community consensus of what basic documentation a maven plugin should have. [top] Why do we need a documentation standard? The standard is not a set of rules but a guide to help plugin developers document their plugins better, for the benefit of the users of the plugin. The standard also reminds the plugin developers of the important details that needs to be documented, to help speed up the adoption of the plugin. Wayne On 10/25/06, Mick Knutson [EMAIL PROTECTED] wrote: Is there a better description of this plugin? Sorry, but I am not quite sure what this plugin will do for me. Can someone shed some more light? On 10/24/06, Wim Deblauwe [EMAIL PROTECTED] wrote: It is very nice to see this after there has been much discussion about the quality of the documentation. It shows that the Maven team is really concerned with this. keep up the good work! regards, Wim 2006/10/25, Dennis Lundberg [EMAIL PROTECTED]: The Maven team is pleased to announce the release of the Maven DOCCK Plugin, version 1.0-beta-1 http://maven.apache.org/plugins/maven-docck-plugin/ You can run mvn -U to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-docck-plugin/artifactId version1.0-beta-1/version /plugin This is the first release of this plugin. Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Create only .classpath with eclipse:eclipse?
Sounds like a nice work-around. -- James Mitchell 678.910.8017 On Oct 23, 2006, at 5:01 AM, Lewis, Eric wrote: Hi James Thanks for your help! Theoretically, recreating the .project would be a possibility, but of course I don't know what other external tools and builders and whatnot will be in the project files. So overwriting them with a hardcoded setting isn't really an option IMHO. I guess I'll have to do it with a backup copy then. Do you think there's a chance that the plugin authors would change its behavior, adding something like eclipse:classpath? In the meantime, since I'm calling Maven with eclipse:eclipse as an External Tool in Eclipse, I created a batch file which does the copying: echo Making a backup of .project file copy .project .project_backup echo Starting Maven call mvn %* echo Restoring .project file copy .project_backup .project echo Deleting .project backup del .project_backup Best regards, Eric -Ursprüngliche Nachricht- Von: James Mitchell [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 21. Oktober 2006 08:42 An: Maven Users List Betreff: Re: AW: Create only .classpath with eclipse:eclipse? I see. Well, I suppose you could keep a backup copy and just overwrite the incorrectly gen'd one every time, but that would be frustrating I'm sure. I don't know if the current plugin supports this sort of specialized build configuration or some way to inject fragments into the output files, but I did find one interesting work-around. By adding a little configuration to your pom.xml, you can tell Maven to just overwrite the gen'd one with one specify in your pom. Here's how I did it: In the plugins section I added the following... ... ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration additionalConfig file name.project/name content ![CDATA[ ?xml version=1.0 encoding=UTF-8? projectDescription nameejbtest/name comment/comment projects /projects buildSpec buildCommand nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name triggersfull,incremental,/triggers arguments dictionary keyLaunchConfigHandle/key valuelt;projectgt;/.externalToolBuilders/ org.eclipse.jst.j2ee.ejb.annotations.xdoclet.xdocletbuilder.launch/ value /dictionary /arguments /buildCommand buildCommand nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name triggersfull,incremental,/triggers arguments dictionary keyLaunchConfigHandle/key valuelt;projectgt;/.externalToolBuilders/ GenerateSources.launch/value /dictionary /arguments /buildCommand buildCommand nameorg.eclipse.jdt.core.javabuilder/name arguments /arguments /buildCommand buildCommand nameorg.eclipse.wst.common.project.facet.core.builder/name arguments /arguments /buildCommand buildCommand nameorg.eclipse.wst.validation.validationbuilder/name arguments /arguments /buildCommand /buildSpec natures natureorg.eclipse.wst.common.project.facet.core.nature/nature natureorg.eclipse.jdt.core.javanature/nature natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature natureorg.eclipse.jem.workbench.JavaEMFNature/nature /natures /projectDescription ]] /content /file /additionalConfig /configuration /plugin ... ... And Maven will happily write that file (conveniently) after the wrong .project gets written. I doubt that this is the correct way to do it, but it works for now and seems easier than recopying your .project config over the gen'd one. Let me know if there's a better way. Thanks -- James Mitchell 678.910.8017 On Oct 20, 2006, at 3:33 AM, Lewis, Eric wrote: Well, I'm running Callisto (3.2.1) with WTP and I have a very simple EJB Project, which uses Maven as a Builder to generate artefacts with XDoclet. Now, when I run eclipse:eclipse (within Eclipse, as an External Tool, refreshing the project afterwards), I get the error
Re: Maven Snapshot Repository Down?
I have encounterred a similar situation. What if my testcase/project needs to download a snapshot jar from the repository for EVERY SINGLE build? If the repository is not avaiable, Does that mean all Apache AXIS2 open source) user will have wait 3 or more days before running the builds? Sincerely, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [EMAIL PROTECTED] Jan Thomä [EMAIL PROTECTED] Jan Thomä [EMAIL PROTECTED] 10/25/2006 10:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Maven Snapshot Repository Down? Aye, indeed, however currently we dont have them on all pcs, so getting this up again would be really helpful - but well they are working on it :) Best regards, Jan On Wednesday, 25. October 2006 16:43, pjungwir wrote: Someone yesterday mentioned running mvn -o to prevent updating snapshots. Of course you must already have them, but this will apparently prevent maven from failing trying to get newer ones. Paul -- Jan Thomä insOMnia - We never sleep... http://www.insomnia-hq.de (See attached file: att4le1y.dat) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Snapshot Repository Down?
On 10/25/06, Ming Cheung [EMAIL PROTECTED] wrote: What if my testcase/project needs to download a snapshot jar from the repository for EVERY SINGLE build? If the repository is not avaiable, Does that mean all Apache AXIS2 open source) user will have wait 3 or more days before running the builds? The ASF Subversion repository is up, so you do have the option of building it yourself, locally. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
settings.xml ignored
Hi there, I have installed Continuum 1.0.3. I have a multi module project. It uses subversion as scm. When I run 'build now' from the web-interface I get the following error: Cannot checkout sources.${scm.base.url}/commons/trunk/ url isn't a valid svn URL. The scm url is invalid. The ${scm.base.url} is setup in the settings xml which is in the continuum user/.m2/settings.xml . When loading continuum I can see this in the log file: Building Maven user-level settings from: '/.m2/settings.xml' (i am running as root). It seems it finds the file. Yet it does not replace the value. Any suggestions? I tried to find the error in the logs but could not find anything on it. It just says, sending mail. thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: settings.xml ignored
Make sure you activate the profile in the serttingx.xml. activeProfiles activeProfileyour_profile_id/activeProfile /activeProfiles Thanks. LJ On 10/25/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: Hi there, I have installed Continuum 1.0.3. I have a multi module project. It uses subversion as scm. When I run 'build now' from the web-interface I get the following error: Cannot checkout sources.${scm.base.url}/commons/trunk/ url isn't a valid svn URL. The scm url is invalid. The ${scm.base.url} is setup in the settings xml which is in the continuum user/.m2/settings.xml . When loading continuum I can see this in the log file: Building Maven user-level settings from: '/.m2/settings.xml' (i am running as root). It seems it finds the file. Yet it does not replace the value. Any suggestions? I tried to find the error in the logs but could not find anything on it. It just says, sending mail. thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
maven war plugin
---BeginMessage--- Hi, I'm new to maven and would like to know if it is possible to customize the maven war plugin in sort that the java files are copied in WEB-INF/classes instead of root of war. Where are all these steps configured? Had a look to .m2/repository/org/apache/maven/plugins/maven-war-plugin/2.0.1/maven-war-plugin-2.0.1.jar but found nothing intersting... Something to change in WarMojo class..hmmm don't think so... I would be grateful for any help, Regards, ---End Message--- Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si nécessaire. L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Let us mind the environment : let's print our mails only when necessary The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
basedir
Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant?
Re: Maven Snapshot Repository Down?
I am very familiar with ASF repository. I guess most of the AXIS2 developers are the same. Could you please point me to some docs/FAQ which can tell us how to find the plugins for build? how to build them after downloaded? how/where to put the jar to the sandbox? Especially, there are an older version of the same jar in the sandbox. How do make sure that the new jar(s) will overwrite the old ones? Thank you, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [EMAIL PROTECTED] Wendy Smoak [EMAIL PROTECTED] Wendy Smoak [EMAIL PROTECTED] 10/25/2006 12:11 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Maven Snapshot Repository Down? On 10/25/06, Ming Cheung [EMAIL PROTECTED] wrote: What if my testcase/project needs to download a snapshot jar from the repository for EVERY SINGLE build? If the repository is not avaiable, Does that mean all Apache AXIS2 open source) user will have wait 3 or more days before running the builds? The ASF Subversion repository is up, so you do have the option of building it yourself, locally. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: basedir
${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependcy vs one lib of jars
I was reading a lot about how one of maven's best features is the dependency handling: there is no need for a directory of jar files. Everything is specified in the dependency management and the repository has the needed jars. Sounds good. One of my coworkers raised however an issue the other day which I couldn't answer. Any ideas welcome. Here is the story: building with ant, our project had one directory with all the jar files. On our production server the contents of this dir was in the tomcat/shared library (we have several apps running on the servers and they share a lot of the dependencies). Keeping it up to date with new jars was as easy as synching with our ext_libs folder. Now, we use maven. There is no more ext libs folder. The dependencies however are not included in the wars (scope: provided). They are already in the shared lib of tomcat. Question is: how are we supposed to generate the contents of the tomcat ext libs folder at this point? Looking up 100 dependencies from several pom files and extracting the jars from the repository doesn't seem so great. It seems as with the dependency managament suddenly we lost the ease of keeping our production server shared library up to date. I wonder if there is some solution to this. Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependcy vs one lib of jars
If it doesn't make sense for your process, just don't use it, stick with Ant or your existing (working) system. No one here is forcing you to use Maven. ;-) Arguably for these shared libraries you can use scopeprovided/scope and continue to update your server shared library up to date as an external process. You will of course need to add all of these dependencies to your pom in order to compile and package your project in Maven. Wayne On 10/25/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I was reading a lot about how one of maven's best features is the dependency handling: there is no need for a directory of jar files. Everything is specified in the dependency management and the repository has the needed jars. Sounds good. One of my coworkers raised however an issue the other day which I couldn't answer. Any ideas welcome. Here is the story: building with ant, our project had one directory with all the jar files. On our production server the contents of this dir was in the tomcat/shared library (we have several apps running on the servers and they share a lot of the dependencies). Keeping it up to date with new jars was as easy as synching with our ext_libs folder. Now, we use maven. There is no more ext libs folder. The dependencies however are not included in the wars (scope: provided). They are already in the shared lib of tomcat. Question is: how are we supposed to generate the contents of the tomcat ext libs folder at this point? Looking up 100 dependencies from several pom files and extracting the jars from the repository doesn't seem so great. It seems as with the dependency managament suddenly we lost the ease of keeping our production server shared library up to date. I wonder if there is some solution to this. Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basedir
I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Running Emma: how to get HTML report?
There's an emma-maven-plugin in the Codehaus sandbox and available at the Codehaus snapshots repository you might want to use. http://mojo.codehaus.org/using-sandbox-plugins.html You'll need to specify something like this for the build configuration: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdemma-maven-plugin/artifactId version1.0-SNAPSHOT/version inheritedtrue/inherited executions execution goals goalinstr/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId inheritedtrue/inherited configuration forkModeonce/forkMode reportFormatxml/reportFormat classesDirectory${project.build.directory}/emma-classes/classesDirect ory /configuration /plugin /plugins /build And then something like this in the reporting section: reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdemma-maven-plugin/artifactId version1.0-SNAPSHOT/version inheritedtrue/inherited /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdsurefire-report-maven-plugin/artifactId inheritedtrue/inherited /plugin /plugins /reporting Chris -Original Message- From: Xavier Outhier [mailto:[EMAIL PROTECTED] Sent: Monday, 23 October, 2006 06:56 To: Maven Users List Subject: [m2] Running Emma: how to get HTML report? Hi all, I'm trying to use Emma. I've seen a relatively old post: http://www.mail-archive.com/users@maven.apache.org/msg42682.html I also have instrumented classes. Well at least, I see there is a file target\emma\metadata.emma. How could I have an HTML report built in the site? Greetings, Xavier. - 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: basedir
Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basedir
Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2/ant] ClassCastException jwsc
I'm running the maven-antrun plugin currently to execute various pieces of an older build script. This script uses some taskdefs, such as weblogic's jwsc, to accomplish most of its tasks. The build script for the original ant file executes all these correctly, however, when ported to the plugin for maven, I receive the following error: [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: java.lang.ClassCastException: com.bea.xbean.values.XmlTokenImpl This error appears when the build gets to the jwsc function (weblogic.wsee.tools.anttasks.JwscTask). This error did occur using the original ant file, but by adding bea jars to the classpath, it was fixed. However, when this was done for the Maven build it did not fix the problem. I'm not sure what I need to alter within Maven itself to allow it to see the same classpath, but I believe that the internal classpath has something to do with it. This is the portion of code at which the build fails: jwsc srcdir=${dir.src} destdir=${dir.ear} tempdir=${dir.temp} classpathref=ext.build.class.path fork=true memoryinitialsize=256m memorymaximumsize=512m verbose=on keepGenerated=yes debuglevel=9 debug=on deprecation=on source=${compiler-source} module name=${ws.module.name} explode=false contextpath=ws jws file=${file.path.ws.portImpl}.java compiledWsdl=${dir.dist}/${file.name.wsdl.sc.jar}/ /module /jwsc I've been caught on this for quite a while. Haven't been able to find any issues about this, so I'm not sure what might be conflicting to cause this. -- View this message in context: http://www.nabble.com/-m2-ant--ClassCastException-jwsc-tf2509682.html#a6998898 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basedir
I wind up with this: [INFO] Error copying resources Embedded error: E:\work\LTY-P39\frontoffice\memberApp\target\classes\E:\work\LTY-P00 0039\frontoffice\memberApp\scripts\startApp.sh (The filename, directory name, or volume label syn tax is incorrect) When I have this: resource directorysrc/main/scripts/directory targetPath${basedir}/scripts/targetPath filteringtrue/filtering /resource -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:36 PM To: Maven Users List Subject: RE: basedir Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basedir
Oh, okay. By default, all paths are relative to basedir already, so I'm not sure why you'd need it. But in my setup, this still works: resource directory${basedir}/foo/directory /resource Again, I'm not sure what it means with multiple modules, but it should at least get resolved. What does you pom look like, and what results are you seeing? Paul EJ Ciramella-2 wrote: Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998978 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basedir
Oh sorry, I missed this post. So you're using it in targetPath. That is actually relative to the target/classes directory, not the pom's directory. Apparently maven's code doesn't check whether you've given it an absolute path; that is a bug and you should file a jira. I have a project where I put some resources in target/scripts. I use this: targetDirectory../scripts/targetDirectory So you I guess you could just do this: targetDirectory../../scripts/targetDirectory Paul EJ Ciramella-2 wrote: I wind up with this: [INFO] Error copying resources Embedded error: E:\work\LTY-P39\frontoffice\memberApp\target\classes\E:\work\LTY-P00 0039\frontoffice\memberApp\scripts\startApp.sh (The filename, directory name, or volume label syn tax is incorrect) When I have this: resource directorysrc/main/scripts/directory targetPath${basedir}/scripts/targetPath filteringtrue/filtering /resource -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:36 PM To: Maven Users List Subject: RE: basedir Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6999103 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2/ant] ClassCastException jwsc
I'm not sure how to fix your problem, but if you're really stuck, you could go back to your build.xml script and call it from maven by using the antrun plugin with just tasksant antfile=build.xml//tasks. That might be give you more control over your classpath by letting you handle taskdefing manually. Paul ihowle wrote: I'm running the maven-antrun plugin currently to execute various pieces of an older build script. This script uses some taskdefs, such as weblogic's jwsc, to accomplish most of its tasks. The build script for the original ant file executes all these correctly, however, when ported to the plugin for maven, I receive the following error: [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: java.lang.ClassCastException: com.bea.xbean.values.XmlTokenImpl This error appears when the build gets to the jwsc function (weblogic.wsee.tools.anttasks.JwscTask). This error did occur using the original ant file, but by adding bea jars to the classpath, it was fixed. However, when this was done for the Maven build it did not fix the problem. I'm not sure what I need to alter within Maven itself to allow it to see the same classpath, but I believe that the internal classpath has something to do with it. This is the portion of code at which the build fails: jwsc srcdir=${dir.src} destdir=${dir.ear} tempdir=${dir.temp} classpathref=ext.build.class.path fork=true memoryinitialsize=256m memorymaximumsize=512m verbose=on keepGenerated=yes debuglevel=9 debug=on deprecation=on source=${compiler-source} module name=${ws.module.name} explode=false contextpath=ws jws file=${file.path.ws.portImpl}.java compiledWsdl=${dir.dist}/${file.name.wsdl.sc.jar}/ /module /jwsc I've been caught on this for quite a while. Haven't been able to find any issues about this, so I'm not sure what might be conflicting to cause this. -- View this message in context: http://www.nabble.com/-m2-ant--ClassCastException-jwsc-tf2509682.html#a6999170 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basedir
So what I'm attempting to do is pull in a resource from another modules target directory. So if basedir was /toplevel and not /toplevel/project/module1, that would help. Instead we'll continue to use relative paths. Bummer... -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:51 PM To: users@maven.apache.org Subject: RE: basedir Oh, okay. By default, all paths are relative to basedir already, so I'm not sure why you'd need it. But in my setup, this still works: resource directory${basedir}/foo/directory /resource Again, I'm not sure what it means with multiple modules, but it should at least get resolved. What does you pom look like, and what results are you seeing? Paul EJ Ciramella-2 wrote: Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998978 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependcy vs one lib of jars
That's a great use case to bring up. Sounds like the beginnings of a new plugin. It could parse a project's pom for provided dependencies and retrieve those from maven repository and put them all in a specified dir. Or it could go even further and have a new project type of tomcat-manager that specifies which projects should be deployed in this instance of tomcat. It could retrieve those wars from maven, plus parse for their provided dependencies and populate the shared directory. Maven may not do everything you want out of the box, but I've been impressed with the foundations it is laying and the possibilities. YMMV. Greg Vaughn [EMAIL PROTECTED] Attila Mezei-Horvati [EMAIL PROTECTED] 10/25/2006 01:41 PM Please respond to Maven Users List users@maven.apache.org To users@maven.apache.org cc Subject dependcy vs one lib of jars I was reading a lot about how one of maven's best features is the dependency handling: there is no need for a directory of jar files. Everything is specified in the dependency management and the repository has the needed jars. Sounds good. One of my coworkers raised however an issue the other day which I couldn't answer. Any ideas welcome. Here is the story: building with ant, our project had one directory with all the jar files. On our production server the contents of this dir was in the tomcat/shared library (we have several apps running on the servers and they share a lot of the dependencies). Keeping it up to date with new jars was as easy as synching with our ext_libs folder. Now, we use maven. There is no more ext libs folder. The dependencies however are not included in the wars (scope: provided). They are already in the shared lib of tomcat. Question is: how are we supposed to generate the contents of the tomcat ext libs folder at this point? Looking up 100 dependencies from several pom files and extracting the jars from the repository doesn't seem so great. It seems as with the dependency managament suddenly we lost the ease of keeping our production server shared library up to date. I wonder if there is some solution to this. Attila == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. ==
Re: basedir
Basedir depends entirely on where you are executing Maven from... Instead of pulling files directly out of other modules (using relative paths), I would suggest packaging those shared modules by themselves and adding a dependency on them in both modules, or perhaps use the assembly plugin to unpack the files you need out of the other module. Wayne On 10/25/06, EJ Ciramella [EMAIL PROTECTED] wrote: So what I'm attempting to do is pull in a resource from another modules target directory. So if basedir was /toplevel and not /toplevel/project/module1, that would help. Instead we'll continue to use relative paths. Bummer... -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:51 PM To: users@maven.apache.org Subject: RE: basedir Oh, okay. By default, all paths are relative to basedir already, so I'm not sure why you'd need it. But in my setup, this still works: resource directory${basedir}/foo/directory /resource Again, I'm not sure what it means with multiple modules, but it should at least get resolved. What does you pom look like, and what results are you seeing? Paul EJ Ciramella-2 wrote: Ahh - I'm not talking about having it IN a resource, I'm talking about having it in the resource mapping in the POM file. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 3:31 PM To: users@maven.apache.org Subject: RE: basedir Hmm. It works for me in a plain, single-module setup. You may need to say filteringtrue/filtering; I don't know if it's the default. I'm not sure what ${basedir} means with many modules. Are you getting weird results, or is it just not getting replaced at all? Paul EJ Ciramella-2 wrote: I haven't been able to get that kind of thing to work when running process-resources. Additionally, if I have three levels, (parent pom.xml - parent pom.xml - module pom.xml) and the resource processing happens at the module level, would the basedir be of the parent pom or of the module pom? -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 2:35 PM To: users@maven.apache.org Subject: Re: basedir ${basedir} :-) Technically, this gives the directory where the pom is located, not the directory from which you run mvn. Paul EJ Ciramella-2 wrote: Is there some property readily available that represents the directory from which maven was run from? Something like ${basedir} in ant? -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6997723 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a6998978 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2/ant] ClassCastException jwsc
This error appears when the build gets to the jwsc function (weblogic.wsee.tools.anttasks.JwscTask). This error did occur using the original ant file, but by adding bea jars to the classpath, it was fixed. However, when this was done for the Maven build it did not fix the problem. What specifically did you do to your pom in an attempt to fix the problem? Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using ant-tasks inside antrun
Thanks Dan, that got me what I need. The missing link in my mind was using maven.dependency.classpath to connect the plugin's deps to the taskdef. I never even thought about that, but I guess that's what it's there for! :-) Here is the final, working xml: plugin artifactIdmaven-antrun-plugin/artifactId executions execution idcopy-tree/id phaseinitialize/phase goalsgoalrun/goal/goals configuration tasks typedef resource=org/apache/maven/artifact/ant/antlib.xml classpath refid=maven.dependency.classpath/ /typedef delete dir=target/ pom id=maven.project file=pom.xml/ dependencies filesetId=dependency.fileset pom refid=maven.project/ /dependencies mkdir dir=target/deps/ copy todir=target/deps fileset refid=dependency.fileset/ /copy /tasks /configuration /execution /executions dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-ant/artifactId version2.0.4/version /dependency /dependencies /plugin Note there is no classifier on the dependency, and I did away with the artifact: namespace entirely. Paul dan tran wrote: see if this helps http://www.nabble.com/M2-antrun-plugin-problem-tf1400135.html#a5892203 -D On 10/25/06, pjungwir [EMAIL PROTECTED] wrote: Hello, This is kind of a weird question. Suppose I'm writing a tasks block for maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there. For example (to borrow from another poster): tasks delete dir=target/ artifact:pom id=maven.project file=pom.xml/ artifact:dependencies filesetId=dependency.fileset pom refid=maven.project/ /artifact:dependencies mkdir dir=target/deps/ copy todir=target/deps fileset refid=dependency.fileset/ /copy /tasks I'm having trouble with two things. First, I need to include maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this to the beginning of tasks: typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/ /classpath /typedef That didn't work. I also tried this inside my plugin tag (with and without the classifier element): dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-ant/artifactId version2.0.4/version classifierdep/classifier /dependency /dependencies Without the classifier, I just get the regular ant error message about not recognizing artifact:pom. With classifier, I get this perplexing stack trace: java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute (AutoConfigurePhase.java:34) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start( AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle (AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance (AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent (PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:331) at org.codehaus.plexus.DefaultPlexusContainer.lookup( DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo( DefaultPluginManager.java:524) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
Re: Release date for Continuum 1.2?
Ohh yes - my bad - I meant 1.1!! I was not even thinking of 1.2 (yet!!) ;-) Thanks... So somewhere in Jan... that is good. best, -Anoop On 10/25/06, Jesse McConnell [EMAIL PROTECTED] wrote: well, since 1.1 isn't released yet1.2 will be a bit after that :) but a for 1.1 release I would hazard a guess of around the beginning of the new year, there is a thread on here detailing the general things we want to get wrapped up before actually settling 1.1 release. jesse On 10/25/06, Anoop kumar V [EMAIL PROTECTED] wrote: Can anyone please tell me when is the release date for the next version of Continuum (1.2)? I know it is going to be a major release, but could not exactly tell the date of the release from the website. -- Thanks and best regards, Anoop -- jesse mcconnell [EMAIL PROTECTED] -- Thanks and best regards, Anoop
Re: Using ant-tasks inside antrun
Actually, I don't need the classpath refid=maven.dependency.classpath/ at all. It works if I just omit it entirely. I tried printing the various classpaths as in that post from Margaret Martin. I get weird results for maven.dependency.classpath. Here it is with just the default junit dependency listed: [echo] maven.dependency.classpath = /home/pjungwir/src/ant-test/junit:/home/pjungwir/src/ant-test/jar:/home/pjungwir/src/ant-test/3.8.1:/home/pjungwir/src/ant-test/test That can't be right. The other four maven.*.classpath refids come out correct. I looked through MANTRUN on jira and didn't see a bug listed for this. Is that the right project? Thanks, Paul pjungwir wrote: Thanks Dan, that got me what I need. The missing link in my mind was using maven.dependency.classpath to connect the plugin's deps to the taskdef. I never even thought about that, but I guess that's what it's there for! :-) Here is the final, working xml: plugin artifactIdmaven-antrun-plugin/artifactId executions execution idcopy-tree/id phaseinitialize/phase goalsgoalrun/goal/goals configuration tasks typedef resource=org/apache/maven/artifact/ant/antlib.xml classpath refid=maven.dependency.classpath/ /typedef delete dir=target/ pom id=maven.project file=pom.xml/ dependencies filesetId=dependency.fileset pom refid=maven.project/ /dependencies mkdir dir=target/deps/ copy todir=target/deps fileset refid=dependency.fileset/ /copy /tasks /configuration /execution /executions dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-ant/artifactId version2.0.4/version /dependency /dependencies /plugin Note there is no classifier on the dependency, and I did away with the artifact: namespace entirely. Paul dan tran wrote: see if this helps http://www.nabble.com/M2-antrun-plugin-problem-tf1400135.html#a5892203 -D On 10/25/06, pjungwir [EMAIL PROTECTED] wrote: Hello, This is kind of a weird question. Suppose I'm writing a tasks block for maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there. For example (to borrow from another poster): tasks delete dir=target/ artifact:pom id=maven.project file=pom.xml/ artifact:dependencies filesetId=dependency.fileset pom refid=maven.project/ /artifact:dependencies mkdir dir=target/deps/ copy todir=target/deps fileset refid=dependency.fileset/ /copy /tasks I'm having trouble with two things. First, I need to include maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this to the beginning of tasks: typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath pathelement location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/ /classpath /typedef That didn't work. I also tried this inside my plugin tag (with and without the classifier element): dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-ant/artifactId version2.0.4/version classifierdep/classifier /dependency /dependencies Without the classifier, I just get the regular ant error message about not recognizing artifact:pom. With classifier, I get this perplexing stack trace: java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute (AutoConfigurePhase.java:34) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start( AbstractLifecycleHandler.java:101) at
Re: basedir
I just noticed that the resources plugin supports an outputDirectory configuration element. So you could try a relative targetPath and an absolute outputDirectory. Note that the former is on the resource itself; the latter, on the plugin's configuration. Paul -- View this message in context: http://www.nabble.com/basedir-tf2509183.html#a7001106 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependcy vs one lib of jars
A few ideas... You could write a plugin (or perhaps leverage maven-dependency-plugin and/or maven-assembly-plugin) to produce a zip file containing all the jars, and deliver that with the releases of your webapp(s). Perhaps you would tell the plugin about each of the war projects, and it would add all of their dependencies into the jars zip. This assumes that you are using Maven to build all the wars, so that Maven can look at the pom.xml files for each to determine their dependencies. You may also consider moving some or all of the jars out of the server classpath and into the webapps. This may end up being easier to manage since each webapp could depend on whichever version it needs, and not be forced to use the version from the server classpath. Have you ever experienced such issues with your current process? Maven has excellent support for packaging dependent jars into the war's WEB-INF/lib dir. -Max Attila Mezei-Horvati wrote: I was reading a lot about how one of maven's best features is the dependency handling: there is no need for a directory of jar files. Everything is specified in the dependency management and the repository has the needed jars. Sounds good. One of my coworkers raised however an issue the other day which I couldn't answer. Any ideas welcome. Here is the story: building with ant, our project had one directory with all the jar files. On our production server the contents of this dir was in the tomcat/shared library (we have several apps running on the servers and they share a lot of the dependencies). Keeping it up to date with new jars was as easy as synching with our ext_libs folder. Now, we use maven. There is no more ext libs folder. The dependencies however are not included in the wars (scope: provided). They are already in the shared lib of tomcat. Question is: how are we supposed to generate the contents of the tomcat ext libs folder at this point? Looking up 100 dependencies from several pom files and extracting the jars from the repository doesn't seem so great. It seems as with the dependency managament suddenly we lost the ease of keeping our production server shared library up to date. I wonder if there is some solution to this. Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scp a war to remote location
How do you scp a war to a remote location in maven2? I have a webapp project that produces a war. I'd like to deploy it to a remote server running jboss. I think all I need is to scp the war and let jboss hot deploy. But I can't figure out what to do in maven to make it happen. I already have continuum doing builds. Ideally I'd like to have continuum do the remote deploy each day at 1am. I think I either need the scp action to happen because of a profile or a specific plugin goal. But, again, I can't figure it out. Seems like wagon or cargo ... ?? help? sincerely, ,chris (I, dummy esq.)
Re: Malformed manifest classpath entry
Hello, Could you please post your MANIFEST.MF file so we can see what royally screwed up means? Thanks, Paul Alexander Sack-3 wrote: Hi Everybody, I did check the email archives on this one and I'm not sure what's what... If I specify a manifest entry such as: archive manifestEntries Class-Pathlib/some1.jar lib/some2.jar lib/some3.jar lib/some4.jar lib/some5.jar/Class-Path /manifestEntries /archive -- The actual manifest entry is royally screwed up in terms of formatting. I'm porting projects so I realize I need to play around with dependencies so I can just use the addClassPath entry, but shouldn't this work regardless? Also, can someone tell me the difference between compile, runtime, and provided with respect to the addClassPath tag? Its not very obvious from the doc (or I'm looking at the wrong doc). Thanks! -aps -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson -- View this message in context: http://www.nabble.com/Malformed-manifest-classpath-entry-tf2497595.html#a7001669 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add Directory to Jar Manifest Classpath
Syvalta wrote: But that doesn't work for me, see: http://jira.codehaus.org/browse/MJAR-60. I didn't get any error with a trailing slash inside Class-Path. JIRA says this is fixed against 2.2. I'm not sure why the bug is still open in that case. . . . Paul -- View this message in context: http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a7001786 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Malformed manifest classpath entry
Hi Paul, Sorry, yea, I've been a little frustrated dealing with manifest entries and transitive dependencies (last post). I've solved my problems for the most part. For the below issue what was happening is Maven2 (Plexutils I think) is generating the manifest file and not copying the EXACT string between my tags. It is formatting it which I found very odd, I would get: Class-Path: lib/mylib1.jar .. lib/mylib 1.jar lib/mylib2.jar... lib/mylib3. jar etc. it actually works during runtime, its looks ugly as sin. I'm using addClassPath now so I don't have the generated manifest to post (again sorry) which led me to my other post about transitive dependencies and best practices (I now have a duplicate dependency entries in the parent and transitive dependencies explicilty listed in order to give them a scope of provided so they don't appear in my EAR). FYI, I really think the transitive dependencies should be completely optional. In my case I had like 4-5 that crept in which would royally screw up a JBoss deploy (like log4j, commons-logging, xerces, etc.). Thanks! -aps On 10/25/06, pjungwir [EMAIL PROTECTED] wrote: Hello, Could you please post your MANIFEST.MF file so we can see what royally screwed up means? Thanks, Paul Alexander Sack-3 wrote: Hi Everybody, I did check the email archives on this one and I'm not sure what's what... If I specify a manifest entry such as: archive manifestEntries Class-Pathlib/some1.jar lib/some2.jar lib/some3.jar lib/some4.jar lib/some5.jar/Class-Path /manifestEntries /archive -- The actual manifest entry is royally screwed up in terms of formatting. I'm porting projects so I realize I need to play around with dependencies so I can just use the addClassPath entry, but shouldn't this work regardless? Also, can someone tell me the difference between compile, runtime, and provided with respect to the addClassPath tag? Its not very obvious from the doc (or I'm looking at the wrong doc). Thanks! -aps -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson -- View this message in context: http://www.nabble.com/Malformed-manifest-classpath-entry-tf2497595.html#a7001669 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson
Re: [M2] Changelog Plugin and CVS Tags [SOLVED]
OK, I've tried using the command line cvs client from CVSNT 2.0.51 connecting to a cvs 1.11.20 server. I switched my client a couple of times (couldn't find that exact client version) and finally was successful withCVSNT 2.5.03 Build 2382 Thank you for taking the time to help me solve this problem. -Nate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Malformed manifest classpath entry
Yeah, I wish maven wouldn't wrap the Class-Path entry, too. I'm pretty new to maven myself, so I haven't tried out multi-module builds or J2EE builds. But I think you have the right idea. Marking things provided is the surest way I know to keep transitive dependencies out of your artifacts. There is also the exclusions tag, but then you have to catch every path from which the dependency is coming. A lot of people seem to get bit by your problem, so perhaps a flag to exclude transitive dependencies would be a good idea. You could override it on a per-dependency basis. Paul -- View this message in context: http://www.nabble.com/Malformed-manifest-classpath-entry-tf2497595.html#a7002290 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Malformed manifest classpath entry
Yeah, I did a lot of mail-archive.com searching and its a common issue. Transitive dependency tracking can be fantastic (especially for Java applications building), but for EARs its VERY dangerous since you are left with runtime exceptions to debug (treaded cast class exceptions etc.) instead of a compile time errors which defeats the whole purpose of Maven2! :D -aps On 10/25/06, pjungwir [EMAIL PROTECTED] wrote: Yeah, I wish maven wouldn't wrap the Class-Path entry, too. I'm pretty new to maven myself, so I haven't tried out multi-module builds or J2EE builds. But I think you have the right idea. Marking things provided is the surest way I know to keep transitive dependencies out of your artifacts. There is also the exclusions tag, but then you have to catch every path from which the dependency is coming. A lot of people seem to get bit by your problem, so perhaps a flag to exclude transitive dependencies would be a good idea. You could override it on a per-dependency basis. Paul -- View this message in context: http://www.nabble.com/Malformed-manifest-classpath-entry-tf2497595.html#a7002290 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson
[M2] Changelog plugin report unknown range
When I generate the changelog plugin using the tag type with CVS, I get the following string at the top of the page: Changes from an unknown range. Here is part of my POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version reportSets reportSet idsingle-report/id configuration typetag/type tags tag implementation=java.lang.StringMyApp_0_7_rc1/tag tag implementation=java.lang.StringMyApp_0_7_rc2/tag /tags /configuration ... /reportSet /reportSets /plugin If I use the date or range type, that field is filled in correctly with the date range. I looked at the changelog.xml file that is generated for both the tag type and a date type, and the start and end dates attributes were not filled in for the tag output. I believe these start and end attributes are was is being read in by the report generator and used for the range. Generated changelog.xml from tag type: changelog changeset datePattern=MMdd HH:mm:ss z changelog-entry ... Generated changelog.xml from date type: changelog changeset datePattern=MMdd HH:mm:ss z start=20061018 00:00:00 CDT end=20061025 00:00:00 CDT changelog-entry ... I looked into the changelog plugin source, and found that the changeset element and attributes are generated by an SCM plugin object. I tried to go into that source code, but I was unsuccessful in tracking down the exact location where those fields are filled in. Is it possible to get the tag range displayed instead of an unknown date range? Thanks, -Nate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Malformed manifest classpath entry
I agree that it is ugly, but the Jar Specification requires the wrapping, see Line length in this section: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files The plugin is doing the right thing. -Max pjungwir wrote: Yeah, I wish maven wouldn't wrap the Class-Path entry, too. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scp a war to remote location
On 10/25/06, Christofer Jennings [EMAIL PROTECTED] wrote: How do you scp a war to a remote location in maven2? I have a webapp project that produces a war. I'd like to deploy it to a remote server running jboss. I think all I need is to scp the war and let jboss hot deploy. But I can't figure out what to do in maven to make it happen. Definitely take a look at Cargo, which claims support for remote deployment to JBoss. (I use Cargo with Tomcat.) Alternately... it seems like I saw 'run a script' on the Continuum menu, so that might well be easier if you know that's all it will take. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Malformed manifest classpath entry
Glassfish's application verifier (SJAS 9.1) actually complains about any Class-Path entry in your EAR MANIFEST... Apparently the most recent J2EE spec disallows this, haven't looked into it much myself, we're finally targeting JEE5 for our next release so I'm sure I'll learn a lot of new things. Test Name : tests.app.EARFileUsesClassPath Test Assertion : Manifest file of an EAR file should not contain Class-Path entries. Wayne On 10/25/06, Max Cooper [EMAIL PROTECTED] wrote: I agree that it is ugly, but the Jar Specification requires the wrapping, see Line length in this section: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files The plugin is doing the right thing. -Max pjungwir wrote: Yeah, I wish maven wouldn't wrap the Class-Path entry, too. - 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: Malformed manifest classpath entry
Wayne, that seems like a different error. You shouldn't have Class-Path entries in the EAR's manifest (including Java EE 1.4) These entries belong in the modules within the ear, i.e. the EJB JAR's, etc. Though Max is technically right, its still ugly!!! :D! Alex On 10/25/06, Wayne Fay [EMAIL PROTECTED] wrote: Glassfish's application verifier (SJAS 9.1) actually complains about any Class-Path entry in your EAR MANIFEST... Apparently the most recent J2EE spec disallows this, haven't looked into it much myself, we're finally targeting JEE5 for our next release so I'm sure I'll learn a lot of new things. Test Name : tests.app.EARFileUsesClassPath Test Assertion : Manifest file of an EAR file should not contain Class-Path entries. Wayne On 10/25/06, Max Cooper [EMAIL PROTECTED] wrote: I agree that it is ugly, but the Jar Specification requires the wrapping, see Line length in this section: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files The plugin is doing the right thing. -Max pjungwir wrote: Yeah, I wish maven wouldn't wrap the Class-Path entry, too. - 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] -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson