Re: m2eclipse Mailing List
Hi Shelli, I too had the same problem a few weeks back. I tried to raise this via email to the list admin. Regards Brett On Fri, Jun 11, 2010 at 6:34 AM, Shelli Orton wrote: > Hi, > This post isn't Maven related, but I thought someone on this list may > know... is the m2eclipse mailing list being managed? > > I tried to subscribe to the m2eclipse mailing list by sending an email > to user-subscr...@m2eclipse.codehaus.org but it never sent me back any > confirmation email. I sent an email to i...@sonatype.com asking if the > mailing list was still running a couple of weeks ago and haven't > received any response back to that either. > > Then I found another way to subscribe via > http://xircles.codehaus.org/lists/info/search. So I did and am now > receiving emails sent to the list. However, I can't send the list > emails. They get bounced back with a failure notice: > > --- > > Hi. This is the qmail-send program at mail.codehaus.org. > I'm afraid I wasn't able to deliver your message to the following > addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > : > Sorry, only subscribers may post. If you are a subscriber, please > forward this > message to user-ow...@m2eclipse.codehaus.org to get your new address > included. (#5.7.2) > > --- > > I've forwarded this message as instructed twice now without result so > far (it's been a couple days now). > > It sucks to be only able to read messages and not to send them. > > Thanks in advance! > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: gpg:sign and repository:bundle-create produce bad signatures
We'll have to look into this and see what's up. It shouldn't modify the jar if it's already there. On Tue, Jun 8, 2010 at 2:08 PM, Bruno Harbulot wrote: > > > On 08/06/10 16:52, Bruno Harbulot wrote: >> >> >> On 08/06/10 15:24, Bruno Harbulot wrote: >> >>> I'm trying to follow the procedure for manual upload as described on >>> this page: >>> >>> http://www.sonatype.com/people/2010/04/uploading-artifacts-to-the-central-maven-repository-diy/ >>> >>> >>> >>> I've set up my GPG key and it seems to work mostly well, except that the >>> .asc file produced by this is incorrect: >>> >>> $ mvn source:jar javadoc:jar package gpg:sign repository:bundle-create >>> $ cd target >>> $ gpg --verify jar.asc >>> gpg: Signature made Tue 08 Jun 2010 15:17:32 BST using RSA key ID >>> E39C0477 >>> gpg: BAD signature from "..." >>> >>> >>> In contrast, if I don't use repository:bundle-create, it works fine: >>> >>> $ mvn source:jar javadoc:jar package gpg:sign >>> $ cd target >>> $ gpg --verify jar.asc >>> gpg: Signature made Tue 08 Jun 2010 15:19:25 BST using RSA key ID >>> E39C0477 >>> gpg: Good signature from "..." >>> >>> >>> Any idea what I might be doing wrong? I've tried with and without the >>> explicit plugin settings in the POM file as described on this page, but >>> this doesn't change the outcome: >>> >>> http://www.sonatype.com/people/2010/01/how-to-generate-pgp-signatures-with-maven/ >>> >> >> >> I've looked a bit further into this problem. >> It looks like repository:bundle-create modifies the content of the jar >> file it bundles (not the bundle, but the artifact bundled). >> The only modifications I can see in the jar is the change of timestamp >> of this file (and containing directories): >> META-INF/maven///pom.properties >> and >> META-INF/maven/remote-resources.xml >> >> The actual content is unchanged. However insignificant, these changes >> modify the jar file and thus breaks the signature. >> >> It seems to be due to the fact repository:bundle-create runs jar:jar >> again. Is it possible to tell it to skip it when running >> repository:bundle-create? > > I've worked around the problem by putting this in the POM: > > > > > > performRelease > true > > > > > > > org.apache.maven.plugins > > maven-gpg-plugin > > > > package > > > sign > > > > > > > > > > > Then, I've used this, without gpg:sign: > mvn -DperformRelease=true clean source:jar javadoc:jar install > repository:bundle-create > > > After that, the upload to oss.sonatype.org worked just fine! > > > Best wishes, > > Bruno. > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: m2eclipse Mailing List
Hi Shelli, The lists are still at codehaus so it should work via xircles. I guess it's time to proactively migrate to the sonatype.org servers. On Thu, Jun 10, 2010 at 4:34 PM, Shelli Orton wrote: > Hi, > This post isn't Maven related, but I thought someone on this list may > know... is the m2eclipse mailing list being managed? > > I tried to subscribe to the m2eclipse mailing list by sending an email > to user-subscr...@m2eclipse.codehaus.org but it never sent me back any > confirmation email. I sent an email to i...@sonatype.com asking if the > mailing list was still running a couple of weeks ago and haven't > received any response back to that either. > > Then I found another way to subscribe via > http://xircles.codehaus.org/lists/info/search. So I did and am now > receiving emails sent to the list. However, I can't send the list > emails. They get bounced back with a failure notice: > > --- > > Hi. This is the qmail-send program at mail.codehaus.org. > I'm afraid I wasn't able to deliver your message to the following > addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > : > Sorry, only subscribers may post. If you are a subscriber, please > forward this > message to user-ow...@m2eclipse.codehaus.org to get your new address > included. (#5.7.2) > > --- > > I've forwarded this message as instructed twice now without result so > far (it's been a couple days now). > > It sucks to be only able to read messages and not to send them. > > Thanks in advance! > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eclipse:eclipse generating wrong version of dynamic web app
On Fri, Jun 11, 2010 at 6:45 AM, David Sharp wrote: > Does anyone know how to tell the eclipse plugin for maven what webapp > version to use? > > I have a web application that uses version 2.4, but when I generate the > eclipse files, the dynamic web app facet is being set to 2.5. Have you ready http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html Did setting 2.0 in your configuration to 2.4 not work for you? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
multi module scm checkout
Hi - I have a multi module project structured like this Review Manager --- Review Manager JAR --- Review Manager HL7 JAR --- Review Manager WAR The parent's pom.xml has no scm configuration The 3 child pom's use the following scm configuration: scm:cvs:pserver:fakeusern...@fakeserver:/repo/path:${artifac tId} When I run the mvn scm:checkout command at the parent level, I get the following: + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Review Manager [INFO] Review Manager JAR [INFO] Review Manager HL7 JAR [INFO] Review Manager WAR [INFO] Searching repository for plugin with prefix: 'scm'. [INFO] [INFO] Building Review Manager [INFO]task-segment: [scm:checkout] (aggregator-style) [INFO] [INFO] [scm:checkout {execution: default-cli}] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot run checkout command : Embedded error: Can't load the scm provider. You need to define a connectionUrl parameter [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run checkout command : at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot run checkout command : at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:134) at org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider. at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScm Mojo.java:334) at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:112) ... 20 more Caused by: java.lang.NullPointerException: You need to define a connectionUrl parameter at org.apache.maven.scm.plugin.AbstractScmMojo.getConnectionUrl(AbstractScm Mojo.java:222) at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScm Mojo.java:271) ... 21 more [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Thu Jun 10 17:09:03 EDT 2010 [INFO] Final Memory: 8M/254M [INFO] If I remove the parent element from any of the child projects then I can run the same mvn scm:checkout command without any problem. I'd appreciate if somebody could help me figure out what steps need to be taken to make all checkouts occur when the command is run from the parent project. Thanks Tom
m2eclipse Mailing List
Hi, This post isn't Maven related, but I thought someone on this list may know... is the m2eclipse mailing list being managed? I tried to subscribe to the m2eclipse mailing list by sending an email to user-subscr...@m2eclipse.codehaus.org but it never sent me back any confirmation email. I sent an email to i...@sonatype.com asking if the mailing list was still running a couple of weeks ago and haven't received any response back to that either. Then I found another way to subscribe via http://xircles.codehaus.org/lists/info/search. So I did and am now receiving emails sent to the list. However, I can't send the list emails. They get bounced back with a failure notice: --- Hi. This is the qmail-send program at mail.codehaus.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : Sorry, only subscribers may post. If you are a subscriber, please forward this message to user-ow...@m2eclipse.codehaus.org to get your new address included. (#5.7.2) --- I've forwarded this message as instructed twice now without result so far (it's been a couple days now). It sucks to be only able to read messages and not to send them. Thanks in advance! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: wagon-maven-plugin and wagon-scm
This would require that wagon-scm is in the build extensions, which is not possible without a POM file. An alternative is to use dav:http://, and turn on auto-versioning on your subversion server (though it creates a revision per-file...) On 11/06/2010, at 5:49 AM, Jim McCaskey wrote: > Hello all, > > I was wondering if anyone has gotten the wagon-maven-plugin working with > wagon-scm? Specifically, I am trying to issue a command like this: > > mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:merge-maven-repos > -Dwagon.source=file://E:\stage > -Dwagon.target=scm:svn:http://testserver/svn/test/trunk > -Djava.io.tmpdir=deploytemp > > Here is the error: > > [INFO] [wagon:merge-maven-repos] > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Error during performing repository copy > > Embedded error: Unable to create a Wagon instance for > scm:svn:http://testserver/svn/test/trunk > Component descriptor cannot be found in the component repository: > org.apache.maven.wagon.Wagonscm. > [INFO] > > > I'm sure that's telling me exactly what's wrong, I just don't speak that > language. > > If it matters, I'm using Maven 2.1.0. > > Disclaimer: Yes I know I should not use a Subversion server as a Maven repo > but this will solve a problem in the short term. > > Thanks! > > -Jim > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
wagon-maven-plugin and wagon-scm
Hello all, I was wondering if anyone has gotten the wagon-maven-plugin working with wagon-scm? Specifically, I am trying to issue a command like this: mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:merge-maven-repos -Dwagon.source=file://E:\stage -Dwagon.target=scm:svn:http://testserver/svn/test/trunk -Djava.io.tmpdir=deploytemp Here is the error: [INFO] [wagon:merge-maven-repos] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during performing repository copy Embedded error: Unable to create a Wagon instance for scm:svn:http://testserver/svn/test/trunk Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonscm. [INFO] I'm sure that's telling me exactly what's wrong, I just don't speak that language. If it matters, I'm using Maven 2.1.0. Disclaimer: Yes I know I should not use a Subversion server as a Maven repo but this will solve a problem in the short term. Thanks! -Jim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
eclipse:eclipse generating wrong version of dynamic web app
Does anyone know how to tell the eclipse plugin for maven what webapp version to use? I have a web application that uses version 2.4, but when I generate the eclipse files, the dynamic web app facet is being set to 2.5. Thanks, Dave --- There are 10 types of people in the world, those that understand binary, and those that don't.
FW: Glassfish issuses when testing RESTful web services
downloaded the 2.1 glassfish plugin from http://fisheye.ocean.net.au/browse/maven-glassfish-plugin/tags/maven-glassfish-plugin-2.1 i am unable to create a distro as i can view many compiler errors any ideas on who is currently maintaining the maven-glassfish-plugin would be appreciated? bedankt, Martin Gainty __ please do not alter/modify or disrupt this transmission. thank you > Date: Thu, 10 Jun 2010 05:30:11 -0700 > From: glassf...@javadesktop.org > To: us...@glassfish.dev.java.net > Subject: Re: Glassfish issuses when testing RESTful web services > > This is my netbeans web project folder. > [Message sent by forum member 'glesiak'] > > http://forums.java.net/jive/thread.jspa?messageID=473735 > > - > To unsubscribe, e-mail: users-unsubscr...@glassfish.dev.java.net > For additional commands, e-mail: users-h...@glassfish.dev.java.net > _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
Re: optional jars and surefire
Johannes Schneider schrieb: Yes, as Anders told, it is a work around for "bad design" ;-) :) But you could create a test-module. Then move the tests that shall be run *without* optional modules to that module... sounds good, i´ll try, thanks. cu uwe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Adding system property to inherited system property list in surefire?
Hello; one of my projects is inheriting a substantially-sized list of system properties from its parent pom's Surefire configuration. I'd like the project to augment this list by adding in another system property (that only makes sense for unit tests within this particular project). Is that possible? If so, how? Best, Laird - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
antrun appears not to support macrodef
Hi, When using antrun like this: org.apache.maven.plugins maven-antrun-plugin 1.4 code generation generate-sources run if I have this in my build.xml file: ... and a target: Echo works but the generateTypes macro is ignored. Does anyone have any suggestions? Kind regards, Rich --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
Re: optional jars and surefire
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/10/2010 11:28 AM, Uwe Schäfer wrote: > Anders Hammar schrieb: >> You mean like moving that feature to a separate module? :-) >> That's the cleanest way you could do this. The 'optional' option is >> just a >> workaround for a bad design, IMO. > > as the feature is deeply woven into the regular code, this is > unfortunately not possible. Yes, as Anders told, it is a work around for "bad design" ;-) But you could create a test-module. Then move the tests that shall be run *without* optional modules to that module... Johannes > > cu uwe > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - -- Johannes Schneider - blog.cedarsoft.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJMEM0MAAoJEAytD9R7Qv6dAKoIAO8pdes3MEr4Iie+IRpDfj12 6YnNailDyNEr2H50Q1+94dEGyEvSO+el5VfCQh2/ubkffqJc79ccVokf3uHtzasD +J+NQz1ljCADlXpvG2j7ii8nh+sHFa9YuACqvcQ9sZf/10L4y7MXcykXvXnge4fq 7aZs8DfMY81P7ctDc/6tILh7uYadDmsn0myNNppxlPudoLm/MhoiF6uGqyKlKLQ6 8znsbTZng2DMJw+PPXMvoWlW14agwIXwkw7XZ2fKVHql58aVCf4nrrIuTlvf85IJ RA7Rbv9LFVEGJZ6y9wD6c8J1q2MEvhnxlAzcp5iZaLN/GBBfaxUFqVKwhuf27ys= =+RRE -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: tools.jar and upload to central
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/10/2010 11:08 AM, Wayne Fay wrote: >> No, it cannot be added to central. But you can add it to a repo in your own >> repository and it will then be possible to use internally in your corp. If > > I'm not so sure about that, Anders. And I don't think you guys > understand what he's asking. > > Johannes does not want to have Sun's tools.jar uploaded to Central. He > merely wants to publish the artifact(s) from his own project (I assume > open source) which happens to have as its own dependency the tools.jar > artifact from the JRE. Without doing a comprehensive analysis, I think > it is fair to assume there are other artifacts like this in Central > given the com.sun.rt pom artifacts already uploaded. Thanks for clearing that up. You made a very good guess. > I know of no restriction that would explicitly disallow this, > Johannes. You may want to see about using the OSS repository hosting > provided by Sonatype as a stepping-stone into Central and make sure > there is no reason they wouldn't host it. While I really understand (and support) the new rules necessary for artifact upload to Central, it is really hard to get reliable informations about those corner cases... Probably there are still missing some "rules" or best practices for some cases... So I think I will just go the way and try it Regards, Johannes > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - -- Johannes Schneider - blog.cedarsoft.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJMEMymAAoJEAytD9R7Qv6duH8H/09k728xCo/oTz5doYj9/PKe fBDHNMmmsaPfnWLjnkK411OjokZp2NTeSevPZeB7DKn3oyJH4k0ZzrVWHaa3yCUG UBWAgOp+S//HPgxMkzUHfz1aPuoSvin+3WxaeORB+FlyDepX9BysnLhoewSi/ARk uWqZ2LgtKkwiDQTBoWLSUeogibC/c/wB8dQioEQPRMziLn3yIF/xI6tRTGW4bgJp yQU/XEV7T9a83/YSrpMYSAOWwlwPwG4p9rS7+C95zLk7MXJpc6EAZgU1Di45ygWA PiVW0JwXdJFyL33pka6TNrKfsLPXb1C67qpRmb9Ah76o9vdZwQ0PGclHCmeY3xA= =Sdii -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: site-deploy: configured password is ignored
I found the reason: the sshd on the server used "PasswordAuthentication no". After switching to "yes" my maven config works fine. Regards, Lars 2010/6/10 Lars Fischer : > Hello > > i would like to deploy a mvn-site using scp with user/password. > > This is contained the settings.xml: > > site > aUser > myPassword > > > > The pom.xml looks like this: > > [...] > > org.apache.maven.plugins > maven-site-plugin > 2.1.1 > > [...] > > [...] > > site > scp://${scm.host}/srv/www/htdocs/maven/${project.artifactId} > > > > > Running site-deploy, maven asks for the password: > > [INFO] [site:deploy {execution: default-deploy}] > Keyboard interactive required, supplied password is ignored > Password: > > > Why is the configured password ignored? > Where is my mistake? > > Regards, > Lars > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: basic maven lifecycle - howto always last?
Nope, not possible. You can only bind to a specific phase and if you don't execute that phase you will not get the output. The only solution I can think of is some kind of script that executes maven twice, like this: mvn %1 mvn help:active-profiles /Anders On Thu, Jun 10, 2010 at 12:17, Adam Hardy wrote: > I've changed my mind and want the active profile info to appear last, so > that it's still visible on the console when mvn is finished. > > Is that possible? By looking at the lifecycle phases, it seems there is not > a simple way to do it, since I might run any of compile, test, package or > install. > > Or can I bind it to multiple phases? > > Adam Hardy on 07/06/10 14:35, wrote: > >> I want help:active-profiles to be executed once at the start of any run I >> do, so I have put this in my superpom: >> >> >>org.apache.maven.plugins >>maven-help-plugin >> >> >>validate >>active-profiles >> >> active-profiles >> >> >> >> >> >> but sometimes it appears twice, e.g. with mvn install. Is that expected? >> Other times, e.g. mvn compile, is fine. >> >> I also want it to execute first, so I figured the validate phase is the >> one to go for. Is that correct? >> > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: basic maven lifecycle - howto always last?
I've changed my mind and want the active profile info to appear last, so that it's still visible on the console when mvn is finished. Is that possible? By looking at the lifecycle phases, it seems there is not a simple way to do it, since I might run any of compile, test, package or install. Or can I bind it to multiple phases? Adam Hardy on 07/06/10 14:35, wrote: I want help:active-profiles to be executed once at the start of any run I do, so I have put this in my superpom: org.apache.maven.plugins maven-help-plugin validate active-profiles active-profiles but sometimes it appears twice, e.g. with mvn install. Is that expected? Other times, e.g. mvn compile, is fine. I also want it to execute first, so I figured the validate phase is the one to go for. Is that correct? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: optional jars and surefire
Anders Hammar schrieb: You mean like moving that feature to a separate module? :-) That's the cleanest way you could do this. The 'optional' option is just a workaround for a bad design, IMO. as the feature is deeply woven into the regular code, this is unfortunately not possible. cu uwe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
site-deploy: configured password is ignored
Hello i would like to deploy a mvn-site using scp with user/password. This is contained the settings.xml: site aUser myPassword The pom.xml looks like this: [...] org.apache.maven.plugins maven-site-plugin 2.1.1 [...] [...] site scp://${scm.host}/srv/www/htdocs/maven/${project.artifactId} Running site-deploy, maven asks for the password: [INFO] [site:deploy {execution: default-deploy}] Keyboard interactive required, supplied password is ignored Password: Why is the configured password ignored? Where is my mistake? Regards, Lars - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: tools.jar and upload to central
> No, it cannot be added to central. But you can add it to a repo in your own > repository and it will then be possible to use internally in your corp. If I'm not so sure about that, Anders. And I don't think you guys understand what he's asking. Johannes does not want to have Sun's tools.jar uploaded to Central. He merely wants to publish the artifact(s) from his own project (I assume open source) which happens to have as its own dependency the tools.jar artifact from the JRE. Without doing a comprehensive analysis, I think it is fair to assume there are other artifacts like this in Central given the com.sun.rt pom artifacts already uploaded. I know of no restriction that would explicitly disallow this, Johannes. You may want to see about using the OSS repository hosting provided by Sonatype as a stepping-stone into Central and make sure there is no reason they wouldn't host it. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: tools.jar and upload to central
No, it cannot be added to central. But you can add it to a repo in your own repository and it will then be possible to use internally in your corp. If you've set up a group which all users use, just add the repo that contains the tools artifact to that group and the users don't have to reconfigure anything (like adding a new repo). If you haven't already, now you see one of the benefits of using a repo manager. /Anders On Thu, Jun 10, 2010 at 10:06, Johannes Schneider wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 06/09/2010 09:36 PM, Shan Syed wrote: > > this is a Sun jar that's under a license that prevents it from being > > available like that > > > > using system scope is an ok solution, but as stated elsewhere, hosting > your > > own repository is a great solution for this issue as well as others that > you > > will likely encounter as your project grows > > I have my own repository manager up and running. But I want my lib to > be available in Central so that it can be used without any additional > troubles (like adding one more repository). > > So if I understand you correctly, it is possible to deploy an artifact > with such a system dependency? > > > Regards, > > Johannes > > > > > try archiva, nexus, artifactory, etc > > > > On Wed, Jun 9, 2010 at 3:25 PM, Johannes Schneider > > wrote: > > > > Hi guys, > > > > > > at the moment I am creating a project that needs the tools.jar for > > compilation and at runtime. > > Therefore I have added dependency with scope "system" as explained here: > > > > http://maven.apache.org/general.html#tools-jar-dependency > > > > Is it possible to deploy that artifact to the central repository? > > Or do there apply any restrictions? > > > > > > > > Thanks, > > > > Johannes > > > > > >> > - - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > - -- > Johannes Schneider - blog.cedarsoft.com > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBAgAGBQJMEJ0gAAoJEAytD9R7Qv6dw2AH/329FaD3WW35SqvBnjptsK59 > 4Vp0tNeRsVAkvAcSehVR6ezrtT5AWGd/ol4KVHrB0c9aRVwDUuULFmrodORzgRb2 > AsjSfY7TXiBZK7ls92VW31QudDFR+oe1wX19b11k5qgTDLl+pukFlL6cA/C9tGkr > pgFw82mV8wLpxgRCfWBZ+R4/H/uI0mjw9A7gQYVKozcRtTYV6V4dCFpS0riuNB3S > mrzrl/unXrB+VQoU9hlu3Gtv7fIUXYDW4Or9WTRE/kkZpefI4+XXLucroEkcVj8W > UEYFpEGBjaV3u2YzKt8ZU8rO01/pABAGAOpwB0sLV1bD1utmlJ5WjX4lXilf/Hs= > =bv85 > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Maven-assembly-plugin: outputFileNameMapping and ${artifact.*}
Hi all, here's a report of my "progress" on this issue, in case others find it useful: The maven-assembly-plugin uses an ObjectBasedValueSource to evaluate ${artifact.*} expressions with respect to the artifact's MavenProject (among other things). You can thus access the artifact's properties by ${artifact.model.properties}. This, however, gives you a map and the reflection-based ObjectBasedValueSource is stuck; there is no zero-arguments getter to use. At the moment, I don't see a way to accomplish what I am trying to do, even although the documentation hints that this is possible: 3. Match against the project instance associated with the dependency’s Artifact (resolves: mainly POM properties) Are there any chances of extending the capabilities of the maven-assembly-plugin in this respect? Or of at least fixing the documentation -- although this does not solve my problem. :-( Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: tools.jar and upload to central
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/09/2010 09:36 PM, Shan Syed wrote: > this is a Sun jar that's under a license that prevents it from being > available like that > > using system scope is an ok solution, but as stated elsewhere, hosting your > own repository is a great solution for this issue as well as others that you > will likely encounter as your project grows I have my own repository manager up and running. But I want my lib to be available in Central so that it can be used without any additional troubles (like adding one more repository). So if I understand you correctly, it is possible to deploy an artifact with such a system dependency? Regards, Johannes > > try archiva, nexus, artifactory, etc > > On Wed, Jun 9, 2010 at 3:25 PM, Johannes Schneider > wrote: > > Hi guys, > > > at the moment I am creating a project that needs the tools.jar for > compilation and at runtime. > Therefore I have added dependency with scope "system" as explained here: > > http://maven.apache.org/general.html#tools-jar-dependency > > Is it possible to deploy that artifact to the central repository? > Or do there apply any restrictions? > > > > Thanks, > > Johannes > > >> - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org >> >> - -- Johannes Schneider - blog.cedarsoft.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJMEJ0gAAoJEAytD9R7Qv6dw2AH/329FaD3WW35SqvBnjptsK59 4Vp0tNeRsVAkvAcSehVR6ezrtT5AWGd/ol4KVHrB0c9aRVwDUuULFmrodORzgRb2 AsjSfY7TXiBZK7ls92VW31QudDFR+oe1wX19b11k5qgTDLl+pukFlL6cA/C9tGkr pgFw82mV8wLpxgRCfWBZ+R4/H/uI0mjw9A7gQYVKozcRtTYV6V4dCFpS0riuNB3S mrzrl/unXrB+VQoU9hlu3Gtv7fIUXYDW4Or9WTRE/kkZpefI4+XXLucroEkcVj8W UEYFpEGBjaV3u2YzKt8ZU8rO01/pABAGAOpwB0sLV1bD1utmlJ5WjX4lXilf/Hs= =bv85 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: optional jars and surefire
You mean like moving that feature to a separate module? :-) That's the cleanest way you could do this. The 'optional' option is just a workaround for a bad design, IMO. /Anders On Thu, Jun 10, 2010 at 09:18, uwe schaefer wrote: > hi > > i have a project with optional jars. some source files compile against > them. > i do not want to force this dependency onto the user, so he can choose > wether to use a feature requiring these jars. > when i run the surefire tests, the jars are included in the classpath. > > is there a way to rerun the surefire tests WITHOUT these jars? > > that would ensure the mentioned feature is cleanly separated from the rest > of the code. > > thanks, uwe > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
maven downloads snapshots even if they have not changed
Hi everybody We have the same Problems as described in these (unanswered) questions: http://maven.40175.n5.nabble.com/Snapshot-download-frequency-always-is-too-much-td89643.html http://maven.40175.n5.nabble.com/Dependencies-downloading-for-snapshot-in-Maven-2-0-5-and-up-td87906.html http://maven.40175.n5.nabble.com/maven-downloading-SNAPSHOTs-which-have-not-changed-td126870.html http://maven.40175.n5.nabble.com/Snapshot-updates-versus-local-repo-td87299.html Does anybody have more information? This issue is really killing the performance of our maven builds :( Regards Reto Höhener
Re: maven resources
I just noticed some weird spelling. It should be "...already be shipped with the jar OR provide it himself/herself?" On Thu, Jun 10, 2010 at 09:48, maven apache wrote: > 2010/6/10 Anders Hammar > > > Ok, I think you don't understand what I'm saying. Of course the files > are > > required in runtime, but should the user expect it to already be shipped > > with the jar och provide it himself/herself? > > Putting the xml files under test/resource will make them available in > > runtime when testing your server module. This is what you would od if the > > xml files are not to be shipped with the jar, but you still need a way to > > test it. > > > Thanks, I will try it. > > > /Anders > > On Thu, Jun 10, 2010 at 08:42, maven apache > > wrote: > > > > > 2010/6/10 Anders Hammar > > > > > > > First of all, xml files should go under resources/ not java/. > > Regardless > > > if > > > > you have it in the server jar or the webapp war. > > > > > > > > Then, this is how you should think: Think Java! How is the server jar > > > > supposed to be used. Is the user supposed to add the xml files > > themselves > > > > > > > Yes, but these xml filse are not just for tested, then are required in > > the > > > runtime. > > > Also user can add a class(with a xml file together) in the > > WEB-INFO/classes > > > to extend the fuction of my web application. > > > So I do not want them packaged in the server.jar. > > > > > > > (then the xml fiels should not be packaged in the server jar) or are > > the > > > > xml > > > > files part of the server implementation (then they go in the server > > jar)? > > > > If the xml files shouldn't be packaged in the server jar, you most > > likely > > > > you still need a set of them during development/testing. Then you put > > > that > > > > set of xml files in src/test/resources/. They will be used during > unit > > > > testing but not packaged in the server jar. > > > > > > > They are not just for test. > > > > > > Now, I have no choice but put the xmls to the server.jar. > > > > > > > > > > > /Anders > > > > On Thu, Jun 10, 2010 at 07:23, maven apache > > > > wrote: > > > > > > > > > What is going on is that under my package each class need a xml > file. > > > > > If I put these xmls to the webapp/src/resources folder,it is not > > > > convenient > > > > > for development in my IDE. > > > > > > > > > > So I want to put these class and xmls together under the webapp > > module. > > > > At > > > > > last, they should be put under the > > webpp/target/myweb/WEB-INFO/classes. > > > > > > > > > > 2010/6/10 Justin Edelson > > > > > > > > > > > If you don't want them in the server jar, why are they in the > > server > > > > > module > > > > > > source tree? > > > > > > > > > > > > If you can't move the files, see > > > > > > > > > > > > > > > > > > > > > http://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html > > > > > > > > > > > > HTH, > > > > > > Justin > > > > > > > > > > > > On Jun 10, 2010, at 12:29 AM, maven apache < > apachemav...@gmail.com > > > > > > > > wrote: > > > > > > > > > > > > > HI: > > > > > > > I have two maven module:server(jar) and webapp(war). > > > > > > > And the server module is a dependency of webapp. > > > > > > > There are some resources under the server > > > > :/src/main/java/org/kk/*.xml, > > > > > I > > > > > > do > > > > > > > not want these xmls jared to the server.jar. I just want it put > > > under > > > > > the > > > > > > > webapp/target/app/WEB-INFO/classes. > > > > > > > > > > > > > > How to config it? > > > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > >
Re: maven resources
2010/6/10 Anders Hammar > Ok, I think you don't understand what I'm saying. Of course the files are > required in runtime, but should the user expect it to already be shipped > with the jar och provide it himself/herself? > Putting the xml files under test/resource will make them available in > runtime when testing your server module. This is what you would od if the > xml files are not to be shipped with the jar, but you still need a way to > test it. > Thanks, I will try it. > /Anders > On Thu, Jun 10, 2010 at 08:42, maven apache > wrote: > > > 2010/6/10 Anders Hammar > > > > > First of all, xml files should go under resources/ not java/. > Regardless > > if > > > you have it in the server jar or the webapp war. > > > > > > Then, this is how you should think: Think Java! How is the server jar > > > supposed to be used. Is the user supposed to add the xml files > themselves > > > > > Yes, but these xml filse are not just for tested, then are required in > the > > runtime. > > Also user can add a class(with a xml file together) in the > WEB-INFO/classes > > to extend the fuction of my web application. > > So I do not want them packaged in the server.jar. > > > > > (then the xml fiels should not be packaged in the server jar) or are > the > > > xml > > > files part of the server implementation (then they go in the server > jar)? > > > If the xml files shouldn't be packaged in the server jar, you most > likely > > > you still need a set of them during development/testing. Then you put > > that > > > set of xml files in src/test/resources/. They will be used during unit > > > testing but not packaged in the server jar. > > > > > They are not just for test. > > > > Now, I have no choice but put the xmls to the server.jar. > > > > > > > > /Anders > > > On Thu, Jun 10, 2010 at 07:23, maven apache > > > wrote: > > > > > > > What is going on is that under my package each class need a xml file. > > > > If I put these xmls to the webapp/src/resources folder,it is not > > > convenient > > > > for development in my IDE. > > > > > > > > So I want to put these class and xmls together under the webapp > module. > > > At > > > > last, they should be put under the > webpp/target/myweb/WEB-INFO/classes. > > > > > > > > 2010/6/10 Justin Edelson > > > > > > > > > If you don't want them in the server jar, why are they in the > server > > > > module > > > > > source tree? > > > > > > > > > > If you can't move the files, see > > > > > > > > > > > > > > > http://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html > > > > > > > > > > HTH, > > > > > Justin > > > > > > > > > > On Jun 10, 2010, at 12:29 AM, maven apache > > > > > wrote: > > > > > > > > > > > HI: > > > > > > I have two maven module:server(jar) and webapp(war). > > > > > > And the server module is a dependency of webapp. > > > > > > There are some resources under the server > > > :/src/main/java/org/kk/*.xml, > > > > I > > > > > do > > > > > > not want these xmls jared to the server.jar. I just want it put > > under > > > > the > > > > > > webapp/target/app/WEB-INFO/classes. > > > > > > > > > > > > How to config it? > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > > > > > > > > > > > > >
optional jars and surefire
hi i have a project with optional jars. some source files compile against them. i do not want to force this dependency onto the user, so he can choose wether to use a feature requiring these jars. when i run the surefire tests, the jars are included in the classpath. is there a way to rerun the surefire tests WITHOUT these jars? that would ensure the mentioned feature is cleanly separated from the rest of the code. thanks, uwe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven resources
Ok, I think you don't understand what I'm saying. Of course the files are required in runtime, but should the user expect it to already be shipped with the jar och provide it himself/herself? Putting the xml files under test/resource will make them available in runtime when testing your server module. This is what you would od if the xml files are not to be shipped with the jar, but you still need a way to test it. /Anders On Thu, Jun 10, 2010 at 08:42, maven apache wrote: > 2010/6/10 Anders Hammar > > > First of all, xml files should go under resources/ not java/. Regardless > if > > you have it in the server jar or the webapp war. > > > > Then, this is how you should think: Think Java! How is the server jar > > supposed to be used. Is the user supposed to add the xml files themselves > > > Yes, but these xml filse are not just for tested, then are required in the > runtime. > Also user can add a class(with a xml file together) in the WEB-INFO/classes > to extend the fuction of my web application. > So I do not want them packaged in the server.jar. > > > (then the xml fiels should not be packaged in the server jar) or are the > > xml > > files part of the server implementation (then they go in the server jar)? > > If the xml files shouldn't be packaged in the server jar, you most likely > > you still need a set of them during development/testing. Then you put > that > > set of xml files in src/test/resources/. They will be used during unit > > testing but not packaged in the server jar. > > > They are not just for test. > > Now, I have no choice but put the xmls to the server.jar. > > > > > /Anders > > On Thu, Jun 10, 2010 at 07:23, maven apache > > wrote: > > > > > What is going on is that under my package each class need a xml file. > > > If I put these xmls to the webapp/src/resources folder,it is not > > convenient > > > for development in my IDE. > > > > > > So I want to put these class and xmls together under the webapp module. > > At > > > last, they should be put under the webpp/target/myweb/WEB-INFO/classes. > > > > > > 2010/6/10 Justin Edelson > > > > > > > If you don't want them in the server jar, why are they in the server > > > module > > > > source tree? > > > > > > > > If you can't move the files, see > > > > > > > > > > http://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html > > > > > > > > HTH, > > > > Justin > > > > > > > > On Jun 10, 2010, at 12:29 AM, maven apache > > > wrote: > > > > > > > > > HI: > > > > > I have two maven module:server(jar) and webapp(war). > > > > > And the server module is a dependency of webapp. > > > > > There are some resources under the server > > :/src/main/java/org/kk/*.xml, > > > I > > > > do > > > > > not want these xmls jared to the server.jar. I just want it put > under > > > the > > > > > webapp/target/app/WEB-INFO/classes. > > > > > > > > > > How to config it? > > > > > > > > - > > > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > > > > > > > > >