Re: Re : Maven and Sourceforge (Change report and issue tracking)
Thank you! I've updated the wiki with your information, I'm sure this will help a lot of people. regards, Wim 2006/11/28, Julien HENRY [EMAIL PROTECTED]: Here is how I configure changes report and issue tracking section with sourceforge: In the pom.xml: issueManagement systemsourceforge/system!--don't care-- url http://sourceforge.net/tracker/?atid=497982amp;group_id=61302 /url /issueManagement (Note the amp; instead of ) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId inheritedfalse/inherited reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets configuration issueLinkTemplate %URL%/index.php?func=detailamp;aid=%ISSUE%amp;group_id=61302amp;atid=497982 /issueLinkTemplate /configuration /plugin You need to customize atid, group_id, aid for your project. group_id refers to your project atid refers to the section (bugs, feature request or patch) aid refers to the issue number Now in your change.xml, you can put: action type=fix dev=Julien Henry due-to=Pete Bull issue=1554148 bla bla /action This will generate a link for your issue like this: %URL% = http://sourceforge.net/tracker/?atid=497982amp;group_id=61302 %ISSUE% = 1554148 The only problem I have with this configuration is I can't add a link for feature requests or patches (only bugs) Hope it helps. ++ Julien - Message d'origine De : Wim Deblauwe [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Mardi, 28 Novembre 2006, 16h18mn 23s Objet : Re: Maven and Sourceforge Thanks for the input, I've updated the wiki page with it. This is unix notation for file permissions: r = 4 (read permission) w = 2 (write permission) x = 1 (execute permission) The first number is for user The second number is for group The third is for what's left ;-) So 7 = 4 + 2 + 1 = rwx 5 = 4 + 1 = r-x 775: means owning user can do anything, all users of the owning group can do anything, anybody else can read and execute. For more infos on unix file permissions : http://www.freeos.com/articles/3127/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re : Assembly and multi-module project
I tried with mvn package assembly:assembly and I got exactly the same behavior. I also tried to build Maven 2.1 from SVN, and both mvn assembly:assembly and mvn package assembly:assembly failed with the same message. - Message d'origine De : Wendy Smoak [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Mercredi, 29 Novembre 2006, 1h21mn 50s Objet : Re: Assembly and multi-module project On 11/28/06, Julien HENRY [EMAIL PROTECTED] wrote: I think my xml file is well configured, but when I run mvn assembly:assembly, the plugin complains: [INFO] Failed to create assembly: Artifact: [moduleC] (included by module) does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated. The documentation on the site claims that package phase is automatically run by assembly goal, so it should work. Any Idea ? On http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html under moduleSet, it says, NOTE: When using moduleSets from the command-line, it is required to pass first the package phase by doing: mvn package assembly:assembly. This bug/issue is scheduled to be addressed by Maven 2.1. However, the docs were published on Nov 7th, so there may be some documentation there on as-yet-unreleased features. More examples of multi-module assemblies would be great. I'm currently having trouble getting assembly to do what I want. :( -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Unable to deploy site to dav:https
Hi, I am trying to deploy a plugin site to the Mojo repository, which has an URL like dav:https:.. Unfortunately I get an error PKIX path building failed. I assume, that the site is using a self certified certificate or something like that and that I have to tell Maven to accept the certificate. But how? Thanks, Jochen [EMAIL PROTECTED] ~/builds/xml-maven-plugin]$ mvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building Maven XML Plugin [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] WAGON_VERSION: 1.0-beta-1 https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Opened https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Disconnecting https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Failed to create remote directory: /mojo/xml-maven-plugin/. : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Wed Nov 29 08:20:40 GMT 2006 [INFO] Final Memory: 6M/117M [INFO] -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Wagon in my component
Hi maven users, I would like to develop a Calendar component (iCal for the moment). Because my component will publish itself, I would like to know if it is possible to use wagon? If yes, how to use Wagon as a simple component? Thanks, Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy sources
Hi Can anyone point me to a description on how to install/deploy the sources-jar to my repositories Thx Roald Bankras Software Engineer JTeam b.v. The HYPERLINK http://legal.jteam.nl/JTeamGeneralConditions.pdfGeneral Conditions JTeam B.V. apply to all proposals and deliveries made by JTeam B.V. The General Conditions JTeam B.V. are filed at the Chamber of Commerce in Amsterdam under number 204/2002 as well as with the clerk of the court's office of the district court in Amsterdam under number 204/2002 and will be sent upon request. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 11/28/2006
Maven and jira report
Hi I am having trouble getting the issues from jira using the maven-changes-report-plugin. We have Jira Professional, and require an authenticated user to see the issues. I have tried to add webUser and webPasword to the plguin, but i still do not get any issues. I know this has to do with the authentication, because it I access the URL that the plugin uses (as displayed in the output) I do not get any issues, but if I log in to jira and access the same url, I do get the issues. Has anybody run into this and have a workaround? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to deploy site to dav:https
this may help http://docs.codehaus.org/display/HAUSMATES/WebDAV On 11/29/06, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, I am trying to deploy a plugin site to the Mojo repository, which has an URL like dav:https:.. Unfortunately I get an error PKIX path building failed. I assume, that the site is using a self certified certificate or something like that and that I have to tell Maven to accept the certificate. But how? Thanks, Jochen [EMAIL PROTECTED] ~/builds/xml-maven-plugin]$ mvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building Maven XML Plugin [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] WAGON_VERSION: 1.0-beta-1 https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Opened https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Disconnecting https://dav.codehaus.org/mojo/xml-maven-plugin - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Failed to create remote directory: /mojo/xml-maven-plugin/. : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Wed Nov 29 08:20:40 GMT 2006 [INFO] Final Memory: 6M/117M [INFO] -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Adding a pre-process stage to the maven build
Hi, Is it a way I can specify the order of what should be build? If I have a root pom with two trees, lets say one is the dev-tools and the other is my business artifacts. I want to specify that the dev-tools should be build (and installed) _before_ the business artifacts because the business artifacts are dependent on the dev-tools. In other words: What I am looking for is a way to create multiple build stages in maven, without having a shell script that do that for me. :) Thanks in advance, Rohnny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : Re : Maven and Sourceforge (Change report and issue tracking)
Finally, I found a much better way to generate issue URL (wich will work with bugs, patchs, feature requests and support requests). I will update the wiki directly. ++ Julien - Message d'origine De : Wim Deblauwe [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Mercredi, 29 Novembre 2006, 9h00mn 46s Objet : Re: Re : Maven and Sourceforge (Change report and issue tracking) Thank you! I've updated the wiki with your information, I'm sure this will help a lot of people. regards, Wim 2006/11/28, Julien HENRY [EMAIL PROTECTED]: Here is how I configure changes report and issue tracking section with sourceforge: In the pom.xml: issueManagement systemsourceforge/system!--don't care-- url http://sourceforge.net/tracker/?atid=497982amp;group_id=61302 /url /issueManagement (Note the amp; instead of ) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId inheritedfalse/inherited reportSets reportSet reports reportchanges-report/report /reports /reportSet /reportSets configuration issueLinkTemplate %URL%/index.php?func=detailamp;aid=%ISSUE%amp;group_id=61302amp;atid=497982 /issueLinkTemplate /configuration /plugin You need to customize atid, group_id, aid for your project. group_id refers to your project atid refers to the section (bugs, feature request or patch) aid refers to the issue number Now in your change.xml, you can put: action type=fix dev=Julien Henry due-to=Pete Bull issue=1554148 bla bla /action This will generate a link for your issue like this: %URL% = http://sourceforge.net/tracker/?atid=497982amp;group_id=61302 %ISSUE% = 1554148 The only problem I have with this configuration is I can't add a link for feature requests or patches (only bugs) Hope it helps. ++ Julien - Message d'origine De : Wim Deblauwe [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Mardi, 28 Novembre 2006, 16h18mn 23s Objet : Re: Maven and Sourceforge Thanks for the input, I've updated the wiki page with it. This is unix notation for file permissions: r = 4 (read permission) w = 2 (write permission) x = 1 (execute permission) The first number is for user The second number is for group The third is for what's left ;-) So 7 = 4 + 2 + 1 = rwx 5 = 4 + 1 = r-x 775: means owning user can do anything, all users of the owning group can do anything, anybody else can read and execute. For more infos on unix file permissions : http://www.freeos.com/articles/3127/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
[M2] license plugin?
Hi, Is there any maven functionality that helps with licensing e.g. Inserting the license into src files prior to distribution. Checking which files don't contain license? cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ejb-jar.xml erroneously generated by EjbDoclet ?
You've summed up everything. I have nothing to add. Thank you very much. I'm changing for 2.0. 2006/11/28, Stephen Coy [EMAIL PROTECTED]: Hi, Your ejbDoclet setup has a bit of an identity crisis. You've specified ejbSpec=2.1 in one place and a deployment descriptor schema pointing at http://java.sun.com/dtd/ejb-jar_2_0.dtd. So, there's a couple of things wrong here, and the correct solution depends upon which version of weblogic that you're using. WL 8.1 is an EJB 2.0 container, so you just need to specify ejbSpec=2.0 and forget about the schema attribute in the deploymentdescriptor tag. The schema attribute expects a pointer to an additional XML schema, not a DTD, and only applies in the 2.1 case. In any event, a correct ejb-jar.xml with a DOCTYPE element will be generated WL 9.x is an EJB 2.1 container so use ejbSpec=2.1 and still forget about the schema attribute in the deploymentdescriptor tag. In this case there will be no DOCTYPE, Instead, the ejb-jar element will contain xmlns attributes defining the schema. The schema attribute in the deploymentdescriptor tag can be used to add an additional xmlns attribute. Of course, WL 8.1 will barf on any of this. Cheers, Steve Coy On 28/11/2006, at 3:22 AM, Manu wrote: Hi, Thanks for the tip, but it doesn't seem to work in my case. I always had it, and the generated ejb-jar.xml does not include DOCTYPE. Do YOU have it generated in your case ? By the way, I use the following piece of Pom : ejbdoclet ejbSpec=2.1 ejbClassNameSuffix=Impl force=true destDir=${basedir}/src/generated/java fileset dir=${basedir}/src/main/java includes=**/*Impl.java/ entitypk/ deploymentdescriptor schema=http://java.sun.com/dtd/ejb-jar_2_0.dtd; xmlencoding=ISO-8859-1 validateXML=true destDir=${basedir}/src/generated/resources/META-INF useIDs=true/ packageSubstitution packages=impl substituteWith=interfaces / weblogic version=8.1 createtables=Disabled destDir=${basedir}/src/generated/resources/META-INF/ /ejbdoclet Any more suggestions ? Manu :-Þ 2006/11/27, Marco Mistroni [EMAIL PROTECTED]: hi, wild guess... have you specified the ejb version you are using? here's what i m using ejbdoclet destDir=${project.build.directory}/generated-sources/ xdoclet excludedTags=@author,@version ejbSpec=2.1 deploymentdescriptor destDir=${project.build.outputDirectory }/META-INF useIDs=true/ websphere destDir=${project.build.outputDirectory}/META-INF/ jboss version=4.0 destDir=${project.build.outputDirectory }/META-INF dataSource=${mw.dataSource} datasourceMapping=Hypersonic SQL createTable=true removeTable=true/ hth marco On 11/27/06, Manu [EMAIL PROTECTED] wrote: Hi, I'm experiencing trouble with the generation of ejb-jar.xml by ejbdoclet (xdoclet). It does not seem to include at the top of the file a DOCTYPE directive. I don't know if this is strictly required by the standard, but my Weblogic server tells me it is not valid for that reason. Any idea of how to make ejbdoclet (subtag deploymentdescriptor/) generate it for me ? Or tell Weblo bypass this validation ? Thanks for your help. -- Manu (:-Þ) -- Manu (:-Þ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Manu (:-Þ)
Re: deploy sources
Hi, The following link may help you, http://www.nabble.com/Re%3A-mvn-install-with-sources--p5178508s177.html a cup of Java, cheers! Sha Jiang Roald Bankras wrote: Hi Can anyone point me to a description on how to install/deploy the sources-jar to my repositories Thx Roald Bankras Software Engineer JTeam b.v. The HYPERLINK http://legal.jteam.nl/JTeamGeneralConditions.pdfGeneral Conditions JTeam B.V. apply to all proposals and deliveries made by JTeam B.V. The General Conditions JTeam B.V. are filed at the Chamber of Commerce in Amsterdam under number 204/2002 as well as with the clerk of the court's office of the district court in Amsterdam under number 204/2002 and will be sent upon request. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 11/28/2006 -- View this message in context: http://www.nabble.com/deploy-sources-tf2723599s177.html#a7596216 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: Unable to deploy site to dav:https
On 11/29/06, Dan Tran [EMAIL PROTECTED] wrote: this may help http://docs.codehaus.org/display/HAUSMATES/WebDAV Thanks, it did! -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-install-plugin: checksum case sensitivity
Hi, the maven-install-plugin can generate checksum files when the property createChecksum=true is set. In my environment (a continuum server) the checksum contains upper case letters. When such a dependency is downloaded (e.g. during the compile phase of another project) the checksum is checked. On my local machine (not the continuum server) the checksum contains lower case letters and the check fails although the checksum is generally the same. Now my questions: 1. is this a bug or a configuration issue? 2. how can the checksum algorithm be changed (MD5, SHA1)? Best regards Achim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] license plugin?
To check if there is a license, you can use checkstyle I think. To insert licenses into your source files, you can use the copyright plugin of IntelliJ. Check the archives on nabble.com for some more options. I posted this question not to long ago. regards, Wim 2006/11/29, Nathan Coast [EMAIL PROTECTED]: Hi, Is there any maven functionality that helps with licensing e.g. Inserting the license into src files prior to distribution. Checking which files don't contain license? cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] StatSVN 0.2.0 released as well as a Maven 2 plugin for it.
Very good news and very nice ! Thanks. I I could not wait to test it. I followed the plugin instruction (cf. http://stat-scm.sourceforge.net/usage.html) and I have this exception [INFO] Generate StatSCM report. [INFO] StatSCM Generating Source Code Management Metrics. [INFO] svn log E:\Mes documents\test -v --xml E:\Mes documents\test\target\scm.log [INFO] svn log E:\Mes documents\test -v --xml; exitValue: 1 [ERROR] Error parsing Log file. Make sure the log fie is in XML format. (svn log -v --xml E:\Mes documents\test/target/scm.log) net.sf.statsvn.input.LogSyntaxException: Premature end of file. at net.sf.statsvn.input.SvnLogfileParser.parseSvnLog( SvnLogfileParser.java:393) at net.sf.statsvn.input.SvnLogfileParser.parse(SvnLogfileParser.java :190) at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:224) at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:187) at net.sf.statscm.StatScmMojo.doSvnStats(StatScmMojo.java:182) at net.sf.statscm.StatScmMojo.executeReport(StatScmMojo.java:162) at org.apache.maven.reporting.AbstractMavenReport.generate( AbstractMavenReport.java:101) ... In fact, the target/scm.log is empty What's wrong ? Rémy
Username in release commit
Hi, I'm trying to do a release of my sourceforge project. I did a mvn release:prepare, but I get an error that the autorization has failed. When I look at the output I see that the wrong username is used, the svn command uses my windows login username, but it should use my sourceforge username. Where can I set this username? regards, Wim
Re: deploy sources
Hi, If you want to install source-jar to repositories use following command maven jar:install Thanks Santosh Irlapalle On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, The following link may help you, http://www.nabble.com/Re%3A-mvn-install-with-sources--p5178508s177.html a cup of Java, cheers! Sha Jiang Roald Bankras wrote: Hi Can anyone point me to a description on how to install/deploy the sources-jar to my repositories Thx Roald Bankras Software Engineer JTeam b.v. The HYPERLINK http://legal.jteam.nl/JTeamGeneralConditions.pdf General Conditions JTeam B.V. apply to all proposals and deliveries made by JTeam B.V. The General Conditions JTeam B.V. are filed at the Chamber of Commerce in Amsterdam under number 204/2002 as well as with the clerk of the court's office of the district court in Amsterdam under number 204/2002 and will be sent upon request. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 11/28/2006 -- View this message in context: http://www.nabble.com/deploy-sources-tf2723599s177.html#a7596216 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: Username in release commit
Ok, never mind. Putting 2.0-beta-4 as version for the release plugin makes it work. 2006/11/29, Wim Deblauwe [EMAIL PROTECTED]: Seems like -Dusername=wim should do the trick[1], but this gets ignored. Does this work for anybody on windows? regards, Wim [1]http://maven.apache.org/plugins/maven-release-plugin/howto.html 2006/11/29, Wim Deblauwe [EMAIL PROTECTED]: Hi, I'm trying to do a release of my sourceforge project. I did a mvn release:prepare, but I get an error that the autorization has failed. When I look at the output I see that the wrong username is used, the svn command uses my windows login username, but it should use my sourceforge username. Where can I set this username? regards, Wim
how to exclude plugin dependencies?
hello everyone, using tomcat-maven-plugin i noticed that it imports older versions of servlet and jsp-api (2.4 and 2.0). My app requires newer versions: how can I exclude those dependencies and force to use newer ones? thanks, valerio -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
aggregate javadoc missing generated sources
Hi, when executing site on a single project, the javadoc report correctly includes the generated src directories. src/java target/src However, when running site from the parent aggregator project, only the sources found in build.SourceDirectory for each aggregated project is included. I.e. the generated sources are missing. I have tried explicitly adding the generated src using build-helper add-sources but doesn't help. The workaround I have is to specify all the dirs in the javadoc plugin. reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version2.1/version configuration aggregatetrue/aggregate sourcepath${project.basedir}/../i18n-model/target/src;${project.basedir}/../i18n-model/src/java;${project.basedir}/../i18n-client-jar/src/java/sourcepath /configuration /plugin /plugins /reporting Feels to me that the javadoc plugin should work this out by collating all the source dirs of the aggregated projects. cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Username in release commit
Seems like -Dusername=wim should do the trick[1], but this gets ignored. Does this work for anybody on windows? regards, Wim [1]http://maven.apache.org/plugins/maven-release-plugin/howto.html 2006/11/29, Wim Deblauwe [EMAIL PROTECTED]: Hi, I'm trying to do a release of my sourceforge project. I did a mvn release:prepare, but I get an error that the autorization has failed. When I look at the output I see that the wrong username is used, the svn command uses my windows login username, but it should use my sourceforge username. Where can I set this username? regards, Wim
Re: how to exclude plugin dependencies?
On 29/11/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: using tomcat-maven-plugin i noticed that it imports older versions of servlet and jsp-api (2.4 and 2.0). My app requires newer versions: how can I exclude those dependencies and force to use newer ones? I believe you can override them in the build/plugins/plugin/dependency block. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] StatSVN 0.2.0 released as well as a Maven 2 plugin for it.
I know why it doesn't work. It's because of the space in the path svn log E:\Mes documents\test -v --xml E:\Mes documents\test\target\scm.log In fact, this command works well : svn log E:\Mes documents\test -v --xml E:\Mes documents\test\target\scm.log I filled an issue for this cf. http://sourceforge.net/tracker/index.php?func=detailaid=1605221group_id=182522atid=901553 Rémy
Site generation: poweredBy
Hi, I'm trying to configure my site and I want to add some poweredBy icons and links. I have modified my site.xml adding : poweredBy item name=Netbeans 5.5 href=http://www.netbeans.org/downloads/index.html; img=images/logos/created-with-nb.gif / item name=Maven 2.0 href=http://maven.apache.org/; img=images/logos/maven-feather.png / /poweredBy but I just get the maven logo, and according to Velocity it looks like $description.poweredBy is not null but is empty :(. My site generation uses doxia-1.0-alpha-7. To broaden my question, does the modello desciption.mdo define all the accessible elements in velocity template ? Thanks, Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SCM example
Hi, I want to work with a CVS in order to create a version according to it. As I could see, when creating a version maven takes the sources from the src directory (in the same directory as pom.xml exists). What happen when using CVS or other version control? Can you explain it a little bit and give me an example of how to configure my pom.xml to use the CVS. BTW, I want that according to a property (let's say -DuseSCM=true) I will build according to SCM else build it from the sources. Can you tell me what to write in my pom.xml? Thanks in advanced! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Username in release commit
I am using release on Windows and I have no problems. I think you might need to use svn from command line first before you use the release goal. SVN stores user credentials locally and then later will not ask you again. Andreas -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 2:57 AM To: Maven Users List Subject: Re: Username in release commit Seems like -Dusername=wim should do the trick[1], but this gets ignored. Does this work for anybody on windows? regards, Wim [1]http://maven.apache.org/plugins/maven-release-plugin/howto.html 2006/11/29, Wim Deblauwe [EMAIL PROTECTED]: Hi, I'm trying to do a release of my sourceforge project. I did a mvn release:prepare, but I get an error that the autorization has failed. When I look at the output I see that the wrong username is used, the svn command uses my windows login username, but it should use my sourceforge username. Where can I set this username? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deploy sources
The mvn release goal generates three jars during the perform sub-goal: 1) the packaged artifact, 2) a jar with sources, 3) a jar with javadoc. Andreas -Original Message- From: Santosh Iralapalle [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 2:59 AM To: Maven Users List Subject: Re: deploy sources Hi, If you want to install source-jar to repositories use following command maven jar:install Thanks Santosh Irlapalle On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, The following link may help you, http://www.nabble.com/Re%3A-mvn-install-with-sources--p5178508s177.html a cup of Java, cheers! Sha Jiang Roald Bankras wrote: Hi Can anyone point me to a description on how to install/deploy the sources-jar to my repositories Thx Roald Bankras Software Engineer JTeam b.v. The HYPERLINK http://legal.jteam.nl/JTeamGeneralConditions.pdf General Conditions JTeam B.V. apply to all proposals and deliveries made by JTeam B.V. The General Conditions JTeam B.V. are filed at the Chamber of Commerce in Amsterdam under number 204/2002 as well as with the clerk of the court's office of the district court in Amsterdam under number 204/2002 and will be sent upon request. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 11/28/2006 -- View this message in context: http://www.nabble.com/deploy-sources-tf2723599s177.html#a7596216 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]
Deploying several third party JARs to with one pom
Hello, I have a fairly complex set of JARs (three) which belong together. I know how to deploy them to my site repository with a module project (one pom per JAR) but I was wondering if I could get away with just one pom.xml? Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site generation: poweredBy
zze- HUGONNET E ext RD-BIZZ a écrit : Hi, I'm trying to configure my site and I want to add some poweredBy icons and links. I have modified my site.xml adding : poweredBy item name=Netbeans 5.5 href=http://www.netbeans.org/downloads/index.html; img=images/logos/created-with-nb.gif / item name=Maven 2.0 href=http://maven.apache.org/; img=images/logos/maven-feather.png / /poweredBy but I just get the maven logo, and according to Velocity it looks like $description.poweredBy is not null but is empty :(. My site generation uses doxia-1.0-alpha-7. To broaden my question, does the modello desciption.mdo define all the accessible elements in velocity template ? Thanks, Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It should be : poweredBy logo name=Netbeans 5.5 href=http://maven.apache.org/; img=images/logos/created-with-nb.gif / logo name=Maven2.0 href=http://maven.apache.org/; img=images/logos/maven-feather.png / /poweredBy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] license plugin?
thanks Wim, here's the link if anyone else is looking http://www.nabble.com/Apply-license-to-all-java-files--tf2678214s177.html#a7469532 cheers Nathan Wim Deblauwe wrote: To check if there is a license, you can use checkstyle I think. To insert licenses into your source files, you can use the copyright plugin of IntelliJ. Check the archives on nabble.com for some more options. I posted this question not to long ago. regards, Wim 2006/11/29, Nathan Coast [EMAIL PROTECTED]: Hi, Is there any maven functionality that helps with licensing e.g. Inserting the license into src files prior to distribution. Checking which files don't contain license? cheers Nathan - 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]
Using snapshot deploy version tag for scm
I am using Cruise Control for continuous integration and I run nightly snapshot builds using the deploy goal. I would like to use the same tag (UTC + build number) that is applied to the deployed jars to tag the source in subversion. That way I would always be able to check out the source that was used to build a given jar file. It's not clear to me how to obtain the tag assigned during the deployment nor how to pass this tag to the scm:tag goal using Cruise Control. Has anyone attempted this before, and, if so, how did you manage it?
Re: Customizing Checkstyle Plugin for M2
Hi, I've got the same problem : My custom check is not reconized as a valid [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Failed during checkstyle configuration TreeWalker is not allowed as a parent of fr.gouv.impots.chartedev.outil.java.DoWhileCheck [INFO] However, my custom check ( basicly log HELLO everytime is called) works perfectly fines in standalone ( with ANT task) and with Maven 1. Maven 1 plugin uses Checkstyle 4.1 ( just as Maven 2 plugin), so i'm quite bewildered Laetitia, did you solve your problem ? Was it your check or something else ? Hi Laetitia, Have you try your rules with Checkstyle only ? Your error seems to be an error on your rules and not an error on the maven plugins configuration. Christophe DENEUX Capgemini Sud - Nice Laetitia Juers wrote: Oops sorry, you're right ... = I need to customize the Checkstyle plugin with some new rules. They are written in a package and defined in a configuration XML file. I have follow the M2 recommendations http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html. When i use the mvn checkstyle:checkstyle, i have this M2 error : [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error has occurred in Checkstyle report generation. Embedded error: Failed during checkstyle configuration TreeWalker is not allowed as a parent of CheckNJ2EE203 [INFO] Thanks for advices. Selon Rolf Strijdhorst [EMAIL PROTECTED]: Sorry, but what error this is just a link, I think there went something wrong with your copy-past action -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying several third party JARs to with one pom
No, unless you package the three Jars together as a single Jar (unjar all 3 into one directory which you then re-Jar). Wayne On 11/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I have a fairly complex set of JARs (three) which belong together. I know how to deploy them to my site repository with a module project (one pom per JAR) but I was wondering if I could get away with just one pom.xml? Regards, -- Aaron Digulla - 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]
Problems building. Out of space.
Hi all, I'm having a problem with continuum 1.0.3 and maven projects. When I try to make a build of any kind (site, compile, install, test...) I get the following error: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. and the test failed. In the other hand, If I make the build directly from maven, it works. Please help. My continuum has 62 Java projects with A LOT of classes in total. I don't know if the continuum server has a limit for it Thanks for your help
Re: Problems building. Out of space.
You can try to set MAVEN_OPTS environment var for the user that run continuum Emmanuel Carlos Henriquez a écrit : Hi all, I'm having a problem with continuum 1.0.3 and maven projects. When I try to make a build of any kind (site, compile, install, test...) I get the following error: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. and the test failed. In the other hand, If I make the build directly from maven, it works. Please help. My continuum has 62 Java projects with A LOT of classes in total. I don't know if the continuum server has a limit for it Thanks for your help
Re: Deploying several third party JARs to with one pom
Are those jars 3-rd party tools or selfmade jars? Anyway, i recommend using 3 poms. This is the only way of detecting/get rid of things like cyclic dependencies etc. lg, strub --- Wayne Fay [EMAIL PROTECTED] schrieb: No, unless you package the three Jars together as a single Jar (unjar all 3 into one directory which you then re-Jar). Wayne On 11/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I have a fairly complex set of JARs (three) which belong together. I know how to deploy them to my site repository with a module project (one pom per JAR) but I was wondering if I could get away with just one pom.xml? Regards, -- Aaron Digulla - 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] ___ 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: Continuum and multimodule setup
yes, it's supported, but your parent pom must be in a repository accessible by continuum. How do you have define the remote repositories list? Emmanuel [EMAIL PROTECTED] a écrit : Hi I have a Maven multimodule project that has a flat Eclipse structure. It seems that Continuum has problems with this (not finding the parent). Does Continuum support this type of project? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
How to include other files in plugin jar
Hi, I'm creating a Maven plugin for a testing framework written in Perl and would like to include the Perl files in the Jar file in addition to the Maven files. Is this possible? My POM: project modelVersion4.0.0/modelVersion groupIdcom.company.plugins/groupId artifactIdperltestrunner-maven-plugin/artifactId version1.0-SNAPSHOT/version packagingmaven-plugin/packaging namePerl Test Runner Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-script-ant/artifactId version2.0.1/version /dependency dependency groupIdant-contrib/groupId artifactIdant-contrib/artifactId version1.0b2/version /dependency dependency groupIdorg.codehaus.plexus/groupId artifactIdplexus-ant-factory/artifactId version1.0-alpha-2/version /dependency dependency groupIdjakarta-regexp/groupId artifactIdjakarta-regexp/artifactId version1.4/version scoperuntime/scope /dependency dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.2/version /dependency dependency groupIdant/groupId artifactIdant-junit/artifactId version1.6.2/version /dependency /dependencies build plugins plugin artifactIdmaven-plugin-plugin/artifactId dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-tools-ant/artifactId version2.0.1/version /dependency /dependencies configuration goalPrefixperltestrunner/goalPrefix /configuration /plugin /plugins /build /project Thanks for your time, Scarlet -- View this message in context: http://www.nabble.com/How-to-include-other-files-in-plugin-jar-tf2725989s177.html#a7601887 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: Problems building. Out of space.
Could you be more specific about the jdk that you are using to run continuum ? Mvgr, Martin Carlos Henriquez wrote: Hi all, I'm having a problem with continuum 1.0.3 and maven projects. When I try to make a build of any kind (site, compile, install, test...) I get the following error: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. and the test failed. In the other hand, If I make the build directly from maven, it works. Please help. My continuum has 62 Java projects with A LOT of classes in total. I don't know if the continuum server has a limit for it Thanks for your help
Re: Problems building. Out of space.
JDK 1.4.2 but the suggestion made by Emmanuel worked. Thank you all On 11/29/06, Martin van den Bemt [EMAIL PROTECTED] wrote: Could you be more specific about the jdk that you are using to run continuum ? Mvgr, Martin Carlos Henriquez wrote: Hi all, I'm having a problem with continuum 1.0.3 and maven projects. When I try to make a build of any kind (site, compile, install, test...) I get the following error: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. and the test failed. In the other hand, If I make the build directly from maven, it works. Please help. My continuum has 62 Java projects with A LOT of classes in total. I don't know if the continuum server has a limit for it Thanks for your help -- Carlos Henriquez Wincor-Nixdorf +58-416-839.94.28
Cobertura report with Maven 2?
Hello, I am upgrading our projects from M1 to M2 and would like to continue to use the Cobertura plugin. With M2, the Cobertura generated pages only cover classes which are tested. Is there an option to include all the classes to see what hasn't been tested? Yes, a better approach would be to write all the test cases; however that is not practical as we inherited a large amount of code from a previous developer team which did not see the value in JUnit (and yes, that team is gone!). TIA --G
Findbugs source cross reference?
How do I hook up Findbugs to the source cross reference? I am also using PMD and it is linked to the source cross reference no problem. TIA --G
Changelog plugin?
What's the scoop on the changelog plugin? Where can this plugin be downloaded from? TIA --G
RE: Cobertura report with Maven 2?
Hoi George, We use the cobertura plugin and it lets me navigate the sources of ALL classes and shows their coverage, also when 0%. If that is what you want. So it must be a configuration issue. the configuration however is trivial, so I cannot imagine what went wrong: [...] plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin /plugins /reporting Kay Van: George Stragand [mailto:[EMAIL PROTECTED] Verzonden: wo 29-11-2006 17:26 Aan: users@maven.apache.org Onderwerp: Cobertura report with Maven 2? Hello, I am upgrading our projects from M1 to M2 and would like to continue to use the Cobertura plugin. With M2, the Cobertura generated pages only cover classes which are tested. Is there an option to include all the classes to see what hasn't been tested? Yes, a better approach would be to write all the test cases; however that is not practical as we inherited a large amount of code from a previous developer team which did not see the value in JUnit (and yes, that team is gone!). TIA --G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cobertura report with Maven 2?
Thanks, that's the same config I have. It should be a no-brainer. What version are you using? I let M2 download what it wanted and ended up with 2.0. --G On 11/29/06, Grosskop, Kay [EMAIL PROTECTED] wrote: Hoi George, We use the cobertura plugin and it lets me navigate the sources of ALL classes and shows their coverage, also when 0%. If that is what you want. So it must be a configuration issue. the configuration however is trivial, so I cannot imagine what went wrong: [...] plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin /plugins /reporting Kay Van: George Stragand [mailto:[EMAIL PROTECTED] Verzonden: wo 29-11-2006 17:26 Aan: users@maven.apache.org Onderwerp: Cobertura report with Maven 2? Hello, I am upgrading our projects from M1 to M2 and would like to continue to use the Cobertura plugin. With M2, the Cobertura generated pages only cover classes which are tested. Is there an option to include all the classes to see what hasn't been tested? Yes, a better approach would be to write all the test cases; however that is not practical as we inherited a large amount of code from a previous developer team which did not see the value in JUnit (and yes, that team is gone!). TIA --G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Findbugs source cross reference?
I also use Findbugs and PMD and both are hook up to the source cross reference. Here is my configuration: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId configuration javadocDir${project.build.directory }/site/apidocs/javadocDir outputDirectory${project.build.directory }/site/outputDirectory /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration targetjdk1.5/targetjdk rulesets ruleset${basedir}/src/main/pmd/erreur.xml/ruleset ruleset${basedir}/src/main/pmd/pmd.xml/ruleset /rulesets formatxml/format linkXreftrue/linkXref sourceEncodingiso-8859-1/sourceEncoding minimumTokens100/minimumTokens /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-SNAPSHOT/version /plugin /plugins /reporting HTH, Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: How do I hook up Findbugs to the source cross reference? I am also using PMD and it is linked to the source cross reference no problem. TIA --G
Re: Maven sIte generation from cruisecontrol
Does anyone know about this problem??? On 27/11/06, emerson cargnin [EMAIL PROTECTED] wrote: Hi there I'm generating the maven site from cruisecontrol. When i try to generate manually i get the error: ... ... ... xdoc:generate-from-pom: [echo] Generating xdocs from POM ... BUILD FAILED File.. /subversion/users/svnclient/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly Element... velocity:merge Line.. 492 Column 13 Invocation of method 'getText' in class org.apache.velocity.anakia.Escape threw exception class java.lang.NullPointerException : null Total time: 8 minutes 56 seconds Finished at: Mon Nov 27 16:24:05 GMT 2006 I found in a list that I should configure the issue traker property in project.xml. But I still get the same error. But when I generate through cruisecontrol it works. Really weird... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changelog plugin?
You will find the changelog plugin here http://maven.apache.org/plugins/maven-changelog-plugin/index.html But I found the StatSCM better. http://www.nabble.com/-ANN--StatSVN-0.2.0-released-as-well-as-a-Maven-2-plugin-for-it.-tf272s177.html You can try both et tell us your opinion. Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: What's the scoop on the changelog plugin? Where can this plugin be downloaded from? TIA --G
Re: Cobertura report with Maven 2?
If you want to see all classes, you have to use the 2.0 version plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.0/version /plugin With the 2.1-SNAPSHOT, I also just have the tested classes. plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.1-SNAPSHOT/version /plugin It would be nice to can see all the classes with the 2.1 version Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: Thanks, that's the same config I have. It should be a no-brainer. What version are you using? I let M2 download what it wanted and ended up with 2.0. --G On 11/29/06, Grosskop, Kay [EMAIL PROTECTED] wrote: Hoi George, We use the cobertura plugin and it lets me navigate the sources of ALL classes and shows their coverage, also when 0%. If that is what you want. So it must be a configuration issue. the configuration however is trivial, so I cannot imagine what went wrong: [...] plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin /plugins /reporting Kay Van: George Stragand [mailto:[EMAIL PROTECTED] Verzonden: wo 29-11-2006 17:26 Aan: users@maven.apache.org Onderwerp: Cobertura report with Maven 2? Hello, I am upgrading our projects from M1 to M2 and would like to continue to use the Cobertura plugin. With M2, the Cobertura generated pages only cover classes which are tested. Is there an option to include all the classes to see what hasn't been tested? Yes, a better approach would be to write all the test cases; however that is not practical as we inherited a large amount of code from a previous developer team which did not see the value in JUnit (and yes, that team is gone!). TIA --G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven and .NET
Is there a version of Maven for .NET? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Changelog plugin?
I see the pages for changelog, however when I attempt to add it to my reports and run a site, I get The plugin ' org.apache.maven.plugins:maven-changelog-plugin' does not exist or no valid version could be found. Is there a different plugin repo I need to pull from? I'd really like to go to subversion in the future, right now I am stuck as I interited a bunch of code so installing a new version control system is not a priority. On 11/29/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: You will find the changelog plugin here http://maven.apache.org/plugins/maven-changelog-plugin/index.html But I found the StatSCM better. http://www.nabble.com/-ANN--StatSVN-0.2.0-released-as-well-as-a-Maven-2-plugin-for-it.-tf272s177.html You can try both et tell us your opinion. Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: What's the scoop on the changelog plugin? Where can this plugin be downloaded from? TIA --G
Re: Cobertura report with Maven 2?
That did it. I had downloaded 2.1 and thought it was 2.0. Thanks. On 11/29/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: If you want to see all classes, you have to use the 2.0 version plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.0/version /plugin With the 2.1-SNAPSHOT, I also just have the tested classes. plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.1-SNAPSHOT/version /plugin It would be nice to can see all the classes with the 2.1 version Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: Thanks, that's the same config I have. It should be a no-brainer. What version are you using? I let M2 download what it wanted and ended up with 2.0. --G On 11/29/06, Grosskop, Kay [EMAIL PROTECTED] wrote: Hoi George, We use the cobertura plugin and it lets me navigate the sources of ALL classes and shows their coverage, also when 0%. If that is what you want. So it must be a configuration issue. the configuration however is trivial, so I cannot imagine what went wrong: [...] plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId /plugin /plugins /reporting Kay Van: George Stragand [mailto:[EMAIL PROTECTED] Verzonden: wo 29-11-2006 17:26 Aan: users@maven.apache.org Onderwerp: Cobertura report with Maven 2? Hello, I am upgrading our projects from M1 to M2 and would like to continue to use the Cobertura plugin. With M2, the Cobertura generated pages only cover classes which are tested. Is there an option to include all the classes to see what hasn't been tested? Yes, a better approach would be to write all the test cases; however that is not practical as we inherited a large amount of code from a previous developer team which did not see the value in JUnit (and yes, that team is gone!). TIA --G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Findbugs source cross reference?
Sweet, I had a different version of findbugs. 1.0-SNAPSHOT works for what I need right now. Thanks. On 11/29/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: I also use Findbugs and PMD and both are hook up to the source cross reference. Here is my configuration: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId configuration javadocDir${project.build.directory }/site/apidocs/javadocDir outputDirectory${project.build.directory }/site/outputDirectory /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration targetjdk1.5/targetjdk rulesets ruleset${basedir}/src/main/pmd/erreur.xml/ruleset ruleset${basedir}/src/main/pmd/pmd.xml/ruleset /rulesets formatxml/format linkXreftrue/linkXref sourceEncodingiso-8859-1/sourceEncoding minimumTokens100/minimumTokens /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-SNAPSHOT/version /plugin /plugins /reporting HTH, Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: How do I hook up Findbugs to the source cross reference? I am also using PMD and it is linked to the source cross reference no problem. TIA --G
Re: Changelog plugin?
Here is my changelog configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version configuration typedate/type dates date implementation=java.lang.String 2006-06-01/date date implementation=java.lang.String 2006-09-01/date /dates dateFormat-MM-dd/dateFormat /configuration /plugin But you also have to add the Maven Snapshot plugin repository in your pom.xml or setting.xml pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/maven-snapshot-repository//url /pluginRepository /pluginRepositories Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: I see the pages for changelog, however when I attempt to add it to my reports and run a site, I get The plugin ' org.apache.maven.plugins:maven-changelog-plugin' does not exist or no valid version could be found. Is there a different plugin repo I need to pull from? I'd really like to go to subversion in the future, right now I am stuck as I interited a bunch of code so installing a new version control system is not a priority.
Offtopic: Re: Maven and .NET
Hi. Morgovsky, Alexander (US - Glen Mills) wrote: Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] I LOVE these legal statements in emails. :) Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changelog plugin?
Excellent! I needed that plugin repository, that was what I was missing. Thanks! On 11/29/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: Here is my changelog configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version configuration typedate/type dates date implementation=java.lang.String 2006-06-01/date date implementation=java.lang.String 2006-09-01/date /dates dateFormat-MM-dd/dateFormat /configuration /plugin But you also have to add the Maven Snapshot plugin repository in your pom.xml or setting.xml pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/maven-snapshot-repository//url /pluginRepository /pluginRepositories Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: I see the pages for changelog, however when I attempt to add it to my reports and run a site, I get The plugin ' org.apache.maven.plugins:maven-changelog-plugin' does not exist or no valid version could be found. Is there a different plugin repo I need to pull from? I'd really like to go to subversion in the future, right now I am stuck as I interited a bunch of code so installing a new version control system is not a priority.
Re: Offtopic: Re: Maven and .NET
lol! On 11/29/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. Morgovsky, Alexander (US - Glen Mills) wrote: Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] I LOVE these legal statements in emails. :) Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Offtopic: Re: Maven and .NET
Aleksei Valikov wrote: Morgovsky, Alexander (US - Glen Mills) wrote: Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] I LOVE these legal statements in emails. :) Especially in messages sent to public mailing lists, that also get automatically archived in public websites... Cheers Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly plugin with modules
Hello there, Im using the assembly plugin with some modules and want to create a fat zip with all module jars and its dependencies. The problem is, I only need the RUNTIME dependencies of my submodules... looking at http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html it says I can do: binaries outputDirectorysrc/main/webapp/WEB-INF/lib/outputDirectory includeDependenciesfalse/includeDependencies dependencySets/dependencySets unpackfalse/unpack But if I add such a tag (dependency sets), in order to set its scope, I get an: Embedded error: Unrecognised tag: 'dependencySets' (position: START_TAG seen .../includeDependencies\ndependencySets... @19:25) Looks like the binaries tag doesnt really accept the dependencySets tag. Im using the latest (?) release from assembly: 2.1 Any tips on it? Guilherme -- Guilherme Silveira -- [EMAIL PROTECTED] Caelum - Ensino e Solucoes em Java www.caelum.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: assembly plugin with modules
Sorry... correcting: outputDirectorysrc/main/webapp/WEB-INF/lib/outputDirectory includeDependenciestrue/includeDependencies dependencySets/dependencySets unpackfalse/unpack On 11/29/06, Guilherme Silveira [EMAIL PROTECTED] wrote: Hello there, Im using the assembly plugin with some modules and want to create a fat zip with all module jars and its dependencies. The problem is, I only need the RUNTIME dependencies of my submodules... looking at http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html it says I can do: binaries outputDirectorysrc/main/webapp/WEB-INF/lib/outputDirectory includeDependenciesfalse/includeDependencies dependencySets/dependencySets unpackfalse/unpack But if I add such a tag (dependency sets), in order to set its scope, I get an: Embedded error: Unrecognised tag: 'dependencySets' (position: START_TAG seen .../includeDependencies\ndependencySets... @19:25) Looks like the binaries tag doesnt really accept the dependencySets tag. Im using the latest (?) release from assembly: 2.1 Any tips on it? Guilherme -- Guilherme Silveira -- [EMAIL PROTECTED] Caelum - Ensino e Solucoes em Java www.caelum.com.br -- Guilherme Silveira -- [EMAIL PROTECTED] Caelum - Ensino e Solucoes em Java www.caelum.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and jira report
Hi Have you tried running mvn with the -X flag? There are some debug statements surrounding the authentication mechanism that might help. [EMAIL PROTECTED] wrote: Hi I am having trouble getting the issues from jira using the maven-changes-report-plugin. We have Jira Professional, and require an authenticated user to see the issues. I have tried to add webUser and webPasword to the plguin, but i still do not get any issues. I know this has to do with the authentication, because it I access the URL that the plugin uses (as displayed in the output) I do not get any issues, but if I log in to jira and access the same url, I do get the issues. Has anybody run into this and have a workaround? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly plugin for multi module project
Hello, I hit that error once! It is very confusing, but it means that the resulting tarball (or whatever) would be empty. In other words, Maven isn't finding any files to include in the assembly. I guess there is something wrong with your moduleSet, but I don't know; I haven't used this plugin on multi-module projects. Paul -- View this message in context: http://www.nabble.com/Assembly-plugin-for-multi-module-project-tf2685658s177.html#a7606167 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: Changelog plugin?
The reason why you need the extra repo is that the changelog has not yet been released. It is my intention to call a release vote for it soon, but there is some other work regarding licenses that needs to be done first. George Stragand wrote: Excellent! I needed that plugin repository, that was what I was missing. Thanks! On 11/29/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: Here is my changelog configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version configuration typedate/type dates date implementation=java.lang.String 2006-06-01/date date implementation=java.lang.String 2006-09-01/date /dates dateFormat-MM-dd/dateFormat /configuration /plugin But you also have to add the Maven Snapshot plugin repository in your pom.xml or setting.xml pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/maven-snapshot-repository//url /pluginRepository /pluginRepositories Rémy 2006/11/29, George Stragand [EMAIL PROTECTED]: I see the pages for changelog, however when I attempt to add it to my reports and run a site, I get The plugin ' org.apache.maven.plugins:maven-changelog-plugin' does not exist or no valid version could be found. Is there a different plugin repo I need to pull from? I'd really like to go to subversion in the future, right now I am stuck as I interited a bunch of code so installing a new version control system is not a priority. -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and .NET
there is som work in progress to make Maven build .NET stuff On 11/29/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Is there a version of Maven for .NET? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- 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: Maven and .NET
http://nmaven.sf.net (this is about to join the project through the incubator) Also, we have some things in the Maven sandbox. - Brett On 30/11/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Is there a version of Maven for .NET? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archiva: 507 Insufficient Storage
Every now and then, I get the error 507 Insufficient Storage during mvn deploy. Is this a known error? I'd like to debug this. Where in the server code is this error generated? Are you deploying to a windows machine? Yes. maybe the path is too long? I can upload the JAR and POM without problem but as soon as the maven-metadata.xml is uploaded, I get this error. Just to be sure: I tried on two machines. One had 130GB free, the other 7.5GB. [INFO] Uploading repository metadata for: 'artifact statcvs:maven-statcvs-plugin' Connecting to http://.../archiva/repository/... 28.11.2006 14:13:41 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error installing artifact's metadata: Error while deploying metadata: Failed to transfer file: http://.../archiva/repository/.../statcvs/maven-statcvs-plugin/ maven-metadata.xml. Return code is: 507 Insufficient Storage Regards, -- Aaron Digulla
Maven properties in apt files
Is it possible to reference maven properties in apt files? Tx, François - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Migrating site.xml from Maven 1 to Maven 2
Hi, the site.xml in Maven 1 used to contain entries like external-refs ant.apache.org href=http://ant.apache.org/; ant href=/ which I could use in xdocs for references like a hrefkey='link.ant' Is this feature available in Doxia? If so, how do I configure the link list? Thanks, Jochen -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2 profiles: pom with os specific (and native) dependencies
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I am using SWT in my maven project. Now I have two major problems: 1. There are different JARs required depending on the OS: swt-win32 for Windows and swt-linux-gtk for linux, etc. Now I tried to definie these using profiles: profiles profile idlinux/id activation os familyLinux/family /os /activation dependencies dependency groupIdswt/groupId artifactIdswt-linux-gtk/artifactId version3.2.1/version scopecompile/scope /dependency /dependencies /profile profile idwindows/id activation os familyWindows/family /os /activation dependencies dependency groupIdswt/groupId artifactIdswt-win32/artifactId version3.2.1/version scopecompile/scope /dependency /dependencies /profile /profiles when I do mvn eclipse:eclipse then both win32 and linux-gtk JARs are added to the classpath. Is this a bug or did I get something wrong? 2. SWT also requires native libraries (dll/so files). Is there a proper way how to put native libs into a repository and define them as dependency? Thank you very much... Regards Jörg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFFbf7GmPuec2Dcv/8RAo/0AJ9+ccQZPUvDdPwStNnX8SoMqqlErgCfVQdA 7zBeKSLQKMsjWFRvu0AxlvQ= =JN8X -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using ant and alternative local repositories with Maven
Hello, Maven experts. First, let me say I have attempted to search the documentation and the mailing list archives for the answer to this question. The documentation seems to say I can't do what I'm trying to do, and there seems to be no search facility for the mailing list archives. The requirement: 1. We have a build that uses Maven, and uses the Maven ant tasks in antlib. 2. One of the tasks copies things out of the local repository into a release area. 2. We have huge build machines that are capable of running several builds at a time. We want to make use of that capacity. 3. We have one generic user account for doing daily/nightly builds, and want that user be the one that does all the daily/nightly builds. 4. We want each build to use its own local repository, so that builds run in parallel will not interfere with one another. The problem: 1. The ant tasks in antlib look only in the settings.xml file at ~/.m2/settings.xml for settings. That's where you specify the location of the local repository. 2. There is no other place besides the settings.xml file to specify the location of a localRepository/ (at least, not that I have found, and I have searched diligently). 3. The localRepository is not one of the things that can be specified in a profile/. 4. The property/ tag is not permitted in settings/. 4. Therefore, as far as I can determine, all builds by a given user have to use the same local repository on the same machine, either taking the default repository location or the location specified in ~/.m2/settings.xml. If we were not using the Maven ant tasks, there are several ways to address this matter. There is the -s parameter to Maven, there is the $M2_HOME/conf/settings.xml, where we could vary the value of $M2_HOME according to which build we are doing. These mechanisms do not work for the Maven ant tasks, as those tasks ignore $M2_HOME/conf and have no access to a -s argument. Can anyone suggest what to do? Someone here suggested filing a JIRA request for enhancement to Maven Antlib. That will take quite awhile, so I'm hoping there actually is already a way to do this and I just haven't found it yet. Thanks, --Marilyn Sander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] [packaging] Maven reacts undeterministically ;-) For today my story is this...
Hello, thanks for Maven! All of you, but It really brings me down all the time. I am wasting days by days. I don't really understand how it works. Nevertheless, I won't give up. Unresolve problem today: If i do mvn install on the sub-module-project which is my Webclient (i.e.packging = war, servlet-alike project), maven allways puts a library into my war-file that is neiter defined in the sub-module's pom as 'dependency', nor in the parent-pom's dependency-management area. Same happens, if I run mvn install on the parent-project (, which generates all deployment-units of the submodules). Situation: Multi-module-project with M2 I consider myself as Maven User, not Maven Developer. I am a lonesome M2 user at work, I only use a local repository on my machines for my stuff. My efforts for today: To solve the problem I have looked into every manifest of the 20 dependendies I use. No manifest references the library I don't want to have. -- So, I thought, well, lets generate a dependency-report: It might indicate where the problem might be. -- So I ran mvn site on the submodule to get a dependency report. Without success. It fails because of a checkstyle error. -- I thought no problem ;-) I removed the checkstyle report in the sub-module's pom, as well as in the main-project-pom. -- I ran mvn clean mvn install and mvn site but it still fails because of checkstyle, althought there is no checkstyle at any pom. Finally I got the mvn:site running on the main-pom, which generated a dependency report on the submodule-poms either. -That's luck - But it does not list the library I do not want to have, it is just portraying what's defined in the poms. For today I am asking myself, where the heck does the library I reference nowhere come from? Any ideas where to look at without grep? Postnotes: You might ask. Why do you care for libraries in your deployment-unit, as long as your application is running? Good question! I was using mvn jetty6:run to develop my webclient. That's so cool and so fast to work with! Unfortualy the generated war-file comes with runtime-error, if deployed into Tomcat 5.5.9, Tomcat 5.5.15, Geronimo 1.1.1(with TC) and JBoss 4.0.3 SP1 (with TC). I thought it was a good idea to look at my dependencies first. Regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using ant and alternative local repositories with Maven
If we were not using the Maven ant tasks, there are several ways to address this matter. There is the -s parameter to Maven, there is the $M2_HOME/conf/settings.xml, where we could vary the value of $M2_HOME according to which build we are doing. These mechanisms do not work for the Maven ant tasks, as those tasks ignore $M2_HOME/conf and have no access to a -s argument. Can anyone suggest what to do? Someone here suggested filing a JIRA request for enhancement to Maven Antlib. That will take quite awhile, so I'm hoping there actually is already a way to do this and I just haven't found it yet. The way I solve the repository problem is to generate a settings.xml file to my taste, then invoke maven with -Dorg.apache.maven.global-settings=path-to-my-settings.xml-file -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Empty index.html from statcvs?
Hello, I have the statcvs plugin producing all the pages except the index.html. I'm using version 3.0 or statcvs. Any suggestions? TIA. --G
Re: [M2] [packaging] Maven reacts undeterministically ;-) For today my story is this...
mvn -X package will tell you more about the dependencies, and where they're coming from for transitive ones. The manifests will not necessarily tell you what you're looking for -- instead check the poms for the 20 deps... Wayne On 11/29/06, Christian Kölle [EMAIL PROTECTED] wrote: Hello, thanks for Maven! All of you, but It really brings me down all the time. I am wasting days by days. I don't really understand how it works. Nevertheless, I won't give up. Unresolve problem today: If i do mvn install on the sub-module-project which is my Webclient (i.e.packging = war, servlet-alike project), maven allways puts a library into my war-file that is neiter defined in the sub-module's pom as 'dependency', nor in the parent-pom's dependency-management area. Same happens, if I run mvn install on the parent-project (, which generates all deployment-units of the submodules). Situation: Multi-module-project with M2 I consider myself as Maven User, not Maven Developer. I am a lonesome M2 user at work, I only use a local repository on my machines for my stuff. My efforts for today: To solve the problem I have looked into every manifest of the 20 dependendies I use. No manifest references the library I don't want to have. -- So, I thought, well, lets generate a dependency-report: It might indicate where the problem might be. -- So I ran mvn site on the submodule to get a dependency report. Without success. It fails because of a checkstyle error. -- I thought no problem ;-) I removed the checkstyle report in the sub-module's pom, as well as in the main-project-pom. -- I ran mvn clean mvn install and mvn site but it still fails because of checkstyle, althought there is no checkstyle at any pom. Finally I got the mvn:site running on the main-pom, which generated a dependency report on the submodule-poms either. -That's luck - But it does not list the library I do not want to have, it is just portraying what's defined in the poms. For today I am asking myself, where the heck does the library I reference nowhere come from? Any ideas where to look at without grep? Postnotes: You might ask. Why do you care for libraries in your deployment-unit, as long as your application is running? Good question! I was using mvn jetty6:run to develop my webclient. That's so cool and so fast to work with! Unfortualy the generated war-file comes with runtime-error, if deployed into Tomcat 5.5.9, Tomcat 5.5.15, Geronimo 1.1.1(with TC) and JBoss 4.0.3 SP1 (with TC). I thought it was a good idea to look at my dependencies first. Regards Chris - 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] [packaging] Maven reacts undeterministically ;-) For today my story is this...
Thanks for your quick response! mvn -X package is nice but didn't help me for this specific thing. But I finally found the the problem: Somehow all libraries have been copied to the source webapp-folder (/src/main/webapp/WEB-INF/lib). Those files were outdated. The problematic library was in there. I never would have thought about that. Might have been during testing deployment-plugins. Thanks again Regards, Christian Ursprüngliche Nachricht Von: Wayne Fay [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. November 2006 02:07 An: Maven Users List Betreff: Re: [M2] [packaging] Maven reacts undeterministically ;-) For today my story is this... | mvn -X package will tell you more about the dependencies, and where | they're coming from for transitive ones. | | The manifests will not necessarily tell you what you're looking for | -- instead check the poms for the 20 deps... | | Wayne | | On 11/29/06, Christian Kölle [EMAIL PROTECTED] wrote: || Hello, || || thanks for Maven! All of you, but It really brings me down all the || time. I am wasting days by days. I don't really understand how it || works. Nevertheless, I won't give up. || || Unresolve problem today: || If i do mvn install on the sub-module-project which is my Webclient || (i.e.packging = war, servlet-alike project), maven allways puts a || library into my war-file that is neiter defined in the sub-module's || pom as 'dependency', nor in the parent-pom's dependency-management || area. Same happens, if I run mvn install on the parent-project (, || which generates all deployment-units of the submodules). || || Situation: || Multi-module-project with M2 || I consider myself as Maven User, not Maven Developer. || I am a lonesome M2 user at work, I only use a local repository on my || machines for my stuff. || || My efforts for today: || To solve the problem I have looked into every manifest of the 20 || dependendies I use. No manifest references the library I don't want || to have. -- So, I thought, well, lets generate a dependency-report: || It might indicate where the problem might be. -- So I ran mvn site || on the submodule to get a dependency report. Without success. It || fails because of a checkstyle error. -- I thought no problem ;-) I || removed the checkstyle report in the sub-module's pom, as well as in || the main-project-pom. -- I ran mvn clean mvn install and mvn || site but it still fails because of checkstyle, althought there is || no checkstyle at any pom. Finally I got the mvn:site running on the || main-pom, which generated a dependency report on the submodule-poms || either. -That's luck - But it does not list the library I do not || want to have, it is just portraying what's defined in the poms. For || today I am asking myself, where the heck does the library I || reference nowhere come from? Any ideas where to look at without || grep? || || Postnotes: || You might ask. Why do you care for libraries in your deployment-unit, || as long as your application is running? Good question! I was using || mvn jetty6:run to develop my webclient. That's so cool and so fast || to work with! Unfortualy the generated war-file comes with || runtime-error, if deployed into Tomcat 5.5.9, Tomcat 5.5.15, Geronimo || 1.1.1(with TC) and JBoss 4.0.3 SP1 (with TC). I thought it was a good || idea to look at my dependencies first. || || Regards || Chris || || || || - || 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: Using ant and alternative local repositories with Maven
Thanks, Christian, I tried to adapt your suggestion for my situation, but that solution does not seem to apply in this case. I thought maybe properties might get passed thru ant to the Maven ant task. In the ant script, I set org.apache.maven.global-settings to the path to my settings file. The settings file did not get used by the Maven ant task. So I guess the properties don't get passed down. Unfortunately, there is no access to the mvn command line when you use antlib, so I can't pass the property that way. It all happens under the covers. Also, I can't find any specific documentation about the copy task in antlib. I do find on http://maven.apache.org/ant-tasks.html a section titled Type Reference. I can't tell whether this is just advisory about the contents of a settings file or whether it means there is some way to specify a localRepository as a type somewhere in the invocation of an ant task. Can someone advise? Does anyone have another idea? Thanks, --Marilyn -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 3:25 PM To: Maven Users List Subject: Re: Using ant and alternative local repositories with Maven If we were not using the Maven ant tasks, there are several ways to address this matter. There is the -s parameter to Maven, there is the $M2_HOME/conf/settings.xml, where we could vary the value of $M2_HOME according to which build we are doing. These mechanisms do not work for the Maven ant tasks, as those tasks ignore $M2_HOME/conf and have no access to a -s argument. Can anyone suggest what to do? Someone here suggested filing a JIRA request for enhancement to Maven Antlib. That will take quite awhile, so I'm hoping there actually is already a way to do this and I just haven't found it yet. The way I solve the repository problem is to generate a settings.xml file to my taste, then invoke maven with -Dorg.apache.maven.global-settings=path-to-my-settings.xml-file -- cg - 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]
adds same artifacts(different version)?
Hi, I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? More strangely, I changed the POM of artifact acegi-security-1.0.2.jar, and made it to use ehcache-1.2.3.jar, But ehcache-1.1.jar still was in WEB-INF/lib. May ehcache-1.1.jar is other (direct or indirect) dependencies' transitive denpendency, but I can't find all. How to resolve the problem? Thanks in advance. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613187 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: adds same artifacts(different version)?
On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adds same artifacts(different version)?
Hi Wendy, You are right. My declaration, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.2.3/version /dependency But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the following, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613512 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: adds same artifacts(different version)?
Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, You are right. My declaration, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.2.3/version /dependency But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the following, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552 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: adds same artifacts(different version)?
There is no shortcut per se. You need to find each such situation and explicitly exclude the old/invalid artifact and explicitly add the proper/new artifact to your dependency list. Alternatively since it sounds like you are already changing poms in your repo (not generally a good idea imo), you could just change the dependency directly in the associated project pom files. Then when you simply refer to acegi, it will pull in the newer ehcache directly. Wayne On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, You are right. My declaration, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.2.3/version /dependency But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the following, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552 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: adds same artifacts(different version)?
Hello, The more I use Maven, the more I think Maven central repository(artifacts) blocks the work of adding transitive dependencies Automatically. Dependency and transitive dependency may don't have good hierarchy. On the aspect, can any body give me some experience? Thanks in advance! a cup of Java, cheers! Sha Jiang jiangshachina wrote: Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, You are right. My declaration, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.2.3/version /dependency But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the following, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7614442 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: adds same artifacts(different version)?
Hi Wayne, This time, I used plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludesWEB-INF/lib/some.jar/warSourceExcludes /configuration /plugin to excludes the jar files by hard way. Alternatively since it sounds like you are already changing poms in your repo (not generally a good idea imo) I agree with you, so finally, I don't use the approach. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There is no shortcut per se. You need to find each such situation and explicitly exclude the old/invalid artifact and explicitly add the proper/new artifact to your dependency list. Alternatively since it sounds like you are already changing poms in your repo (not generally a good idea imo), you could just change the dependency directly in the associated project pom files. Then when you simply refer to acegi, it will pull in the newer ehcache directly. Wayne On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, You are right. My declaration, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.2.3/version /dependency But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the following, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552 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/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7614503 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: adds same artifacts(different version)?
You can certainly use warSourceExcludes but I was actually suggesting that you use the /dependencies/dependency/exclusions/exclusion node. This is how I handle these types of issues. Wayne On 11/30/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Wayne, This time, I used plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludesWEB-INF/lib/some.jar/warSourceExcludes /configuration /plugin to excludes the jar files by hard way. Alternatively since it sounds like you are already changing poms in your repo (not generally a good idea imo) I agree with you, so finally, I don't use the approach. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: There is no shortcut per se. You need to find each such situation and explicitly exclude the old/invalid artifact and explicitly add the proper/new artifact to your dependency list. Alternatively since it sounds like you are already changing poms in your repo (not generally a good idea imo), you could just change the dependency directly in the associated project pom files. Then when you simply refer to acegi, it will pull in the newer ehcache directly. Wayne On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, You are right. My declaration, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.2.3/version /dependency But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the following, dependency groupIdnet.sf.ehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? When you say you declare a dependency, we need to see the whole thing: groupId, artifactId, and version. My guess is that your EHCache jars are coming from two different groupIds, so Maven can't figure out that they are the same. http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/ http://repo1.maven.org/maven2/ehcache/ehcache/ The output of mvn clean install -X should help you figure out where each one is coming from. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552 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/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7614503 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]