Re: ip address range blocked to maven infrastructure?
Hello, Brian Fox-3 wrote: You aren't on any block list, and given that your tracert stops way before it even reaches contegix's network let alone central itself, it seems to be an issue internally. I work in the same company and have the same problem as Kelvin. tracert is not a good test, since all our tracert requests fail like this, even to HTTP sites that we can reach. The IP addresses that you see in it are internal. Externally, we exist as 195.212.29.* Is this IP range blocked ? Note that when we issue invalid HTTP request to the server (with telnet repo2.maven.org 80 and typing bad words there), it correctly responds a nicely formatted 400 Bad Request as expected. So, we have the feeling the request is blocked on the server rather than in our internal network. Thank you for your help, Samuel -- View this message in context: http://maven-users.828.n2.nabble.com/ip-address-range-blocked-to-maven-infrastructure-tp5316429p5337267.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ip address range blocked to maven infrastructure?
Hi Samuel, I'll fill you in where I have got to with 1 to 1 discussions off-line as this isn't off-line to save lots of detail on this list. Kelvin. On Mon, Jul 26, 2010 at 10:52 AM, Samuel Langlois samuel.langl...@fr.ibm.com wrote: Hello, Brian Fox-3 wrote: You aren't on any block list, and given that your tracert stops way before it even reaches contegix's network let alone central itself, it seems to be an issue internally. I work in the same company and have the same problem as Kelvin. tracert is not a good test, since all our tracert requests fail like this, even to HTTP sites that we can reach. The IP addresses that you see in it are internal. Externally, we exist as 195.212.29.* Is this IP range blocked ? Note that when we issue invalid HTTP request to the server (with telnet repo2.maven.org 80 and typing bad words there), it correctly responds a nicely formatted 400 Bad Request as expected. So, we have the feeling the request is blocked on the server rather than in our internal network. Thank you for your help, Samuel -- View this message in context: http://maven-users.828.n2.nabble.com/ip-address-range-blocked-to-maven-infrastructure-tp5316429p5337267.html Sent from the maven users mailing list archive at Nabble.com. - 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: Custom resource filter
OK, I've created an issue on Jira : http://jira.codehaus.org/browse/MRESOURCES-128. I've created some Java classes to do the job of filtering PNG chunks (PNG does not actually contain layers, but allow proprietary chunks, which is what the software used to edit them does) so I wouldn't mind having a solution that allows the use of Java filters. Cheers, Laurent 2010/7/24 Olivier Lamy ol...@apache.org Hi, So it can be a nice feature to implements in the resources plugin (filters need to be plexus component). Can you load an issue in jira ? I will have a look.
Re: Custom resource filter
Ok Thanks. I will review this later today (and probably propose some other interface to implements). 2010/7/26 Laurent Martelli martellilaur...@gmail.com: OK, I've created an issue on Jira : http://jira.codehaus.org/browse/MRESOURCES-128. I've created some Java classes to do the job of filtering PNG chunks (PNG does not actually contain layers, but allow proprietary chunks, which is what the software used to edit them does) so I wouldn't mind having a solution that allows the use of Java filters. Cheers, Laurent 2010/7/24 Olivier Lamy ol...@apache.org Hi, So it can be a nice feature to implements in the resources plugin (filters need to be plexus component). Can you load an issue in jira ? I will have a look. -- Olivier http://twitter.com/olamy http://fr.linkedin.com/in/olamy http://www.viadeo.com/fr/profile/olivier.lamy7 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Custom resource filter
OK thanks, the proposed interface is really just a proposition. You probably know Maven better than I do to actually do it right. Cheers, Laurent 2010/7/26 Olivier Lamy ol...@apache.org Ok Thanks. I will review this later today (and probably propose some other interface to implements). 2010/7/26 Laurent Martelli martellilaur...@gmail.com: OK, I've created an issue on Jira : http://jira.codehaus.org/browse/MRESOURCES-128. I've created some Java classes to do the job of filtering PNG chunks (PNG does not actually contain layers, but allow proprietary chunks, which is what the software used to edit them does) so I wouldn't mind having a solution that allows the use of Java filters. Cheers, Laurent 2010/7/24 Olivier Lamy ol...@apache.org Hi, So it can be a nice feature to implements in the resources plugin (filters need to be plexus component). Can you load an issue in jira ? I will have a look. -- Olivier http://twitter.com/olamy http://fr.linkedin.com/in/olamy http://www.viadeo.com/fr/profile/olivier.lamy7 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Configuring Authentication: How to specify scm username/password in settings.xml instead of pom.xml
also, for encryption, read http://maven.apache.org/guides/mini/guide-encryption.html -Marshall Schor On 7/23/2010 3:04 AM, Stefan Cordes wrote: Hi! On http://maven.apache.org/scm/maven-scm-plugin/examples/bootstrapping-with-pom.html it is just stated that username/password can be stored in the pom.xml. How to specify it in the settings.xml? -- RSC Commercial Services OHG Wanheimer Strasse 70, D-40468 Duesseldorf Registergericht: Duesseldorf, HRA 12655 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: adding non-class files to a JAR
RFC 1521 and RFC 1522 Mime types only http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Per-Entry%20Attributes Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 23 Jul 2010 11:26:46 -0700 From: asookaz...@gmail.com To: users@maven.apache.org Subject: adding non-class files to a JAR anybody know how to get Maven to include non-class files into a JAR? i have .jrxml files that I precompile into .jasper files via a custom plugin but maven is not including them in the EAR AFAIK. how does that work and how can i achieve this? thx. -- View this message in context: http://maven.40175.n5.nabble.com/adding-non-class-files-to-a-JAR-tp1850724p1850724.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
RE: mvn site:deploy error
We have testNG reports generated under /${basedir}/test-output, and javadoc generated under /${basedir}/target/apidocs/ that I was trying to upload through SCP to our apache webserver using Maven. I thought that mvn site-deploy might do this, but I guess there is some incompatibilities with maven 3.0 and the maven-site-plugin. I have since wrote some .bat files to handle the SCP, and will probably just use those to update our documentation. Thanks, Chris -Original Message- From: users-return-112877-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-112877-meeusen.christopher=mayo@maven.apache.or g] On Behalf Of Dennis Lundberg Sent: Saturday, July 24, 2010 4:13 PM To: Maven Users List Subject: Re: mvn site:deploy error What is it you are trying to achieve here? It doesn't seem to involve site:deploy like the subject says. What command are you running on the command line? On 2010-07-23 19:53, Meeusen, Christopher W. wrote: Hi, I'm trying to transfer a directory of files to our web server, and I thought that using mvn site:deploy would do what I want, but I'm getting an error when I run the site:deploy command. I'm running from Windows 7 scp'ing to linux 10.04 server edition. The linux system has openSSH already installed. I'm trying to follow the documentation here http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ss h- external.html, but I must be missing something I've already downloaded the plink.exe file and added the directory to my path variable. Thanks! Chris Here is my pom.xml settings: distributionManagement repository idr0210112/id urlscpexe://var/www/wsaxis2M/url /repository /distributionManagement build extensions !-- Enabling the use of FTP -- extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ssh-external/artifactId version1.0-beta-6/version /extension /extensions And my setup in my settings.xml server idr0210112/id usernamemaven/username passwordPASSWORD/password filePermissions644/filePermissions directoryPermissions755/directoryPermissions !-- privateKey/path/to/your/private/key/privateKey not needed if using pageant -- configuration sshExecutableplink/sshExecutable scpExecutablepscp/scpExecutable !-- sshArgsother arguments you may need/sshArgs -- /configuration /server Error message: ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer: Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec ycleExecutor.java:585) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec ycleExecutor.java:324) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157) at org.apache.maven.cli.MavenCli.main(MavenCli.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc he r.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java :2 30) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau nc her.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3 52 ) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Error executing command for transfer at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB ui ldPluginManager.java:105) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec ycleExecutor.java:577)
Re: skin and/or site.xml via parent pom?
Date: Sat, 24 Jul 2010 23:15:16 +0200 From: Dennis Lundberg denn...@apache.org This error usually shows up when there is a problem accessing the central repository, or a corporate repository proxy. Right; we periodically get timeouts from Central; that's why I wanted to set a fixed version for the skin. Inheritance of site.xml from a parent is automatic, as long as the parent pom has its site.xml attached to it when you deploy it to your repository. Thanks. Is this documented somewhere? I searched a lot of places and could not determine how sites and parent poms worked. It was not at all obvious to me that I could run site-deploy on a parent pom project or that this would do something useful. And where exactly is the default skin and version specified - i.e. it not resolved locally when I added maven-default-skin 1.0 to our Artifactory repo - I assume because some default somewhere specifies a different version? On 2010-07-23 17:34, David J. Biesack wrote: I'm seeing maven2 build failures because of the timeouts at central Caused by: org.apache.maven.doxia.tools.SiteToolException: ArtifactNotFoundException: The skin does not exist: Unable to determine the release version [...] -- Dennis Lundberg -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com(919) 531-7771 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn site:deploy error
org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer: Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. Hopefully you realized by now that this means m-deploy-p cannot find ssh installed on the box, right? Fix your path. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn site:deploy error
Well I'm on a windows 7 box, so AFAIK ssh isn't built into windows. You have to use a took like Plink or PSCP to get the maven-site-plugin to deploy to a webserver. I downloaded PLINK and and PSCP and pointed to their executables like so: -Original Message- From: users-return-112896-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-112896-meeusen.christopher=mayo@maven.apache.org] On Behalf Of Wayne Fay Sent: Monday, July 26, 2010 9:12 AM To: Maven Users List Subject: Re: mvn site:deploy error org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer: Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. Hopefully you realized by now that this means m-deploy-p cannot find ssh installed on the box, right? Fix your path. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn site:deploy error
So hit send on accident... Pointed to their exes like so: servers server idr0210112/id usernamemaven/username passwordj...@v@d0c/password filePermissions644/filePermissions directoryPermissions755/directoryPermissions configuration sshExecutableC:\putty\plink/sshExecutable scpExecutableC:\putty\pscp/scpExecutable /configuration /server This is the correct path, this is the exact same path im using in my .bats that are working... Chris -Original Message- From: Meeusen, Christopher W. Sent: Monday, July 26, 2010 9:17 AM To: Maven Users List Subject: RE: mvn site:deploy error Well I'm on a windows 7 box, so AFAIK ssh isn't built into windows. You have to use a took like Plink or PSCP to get the maven-site-plugin to deploy to a webserver. I downloaded PLINK and and PSCP and pointed to their executables like so: -Original Message- From: users-return-112896-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-112896-meeusen.christopher=mayo@maven.apache.org] On Behalf Of Wayne Fay Sent: Monday, July 26, 2010 9:12 AM To: Maven Users List Subject: Re: mvn site:deploy error org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer: Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. Hopefully you realized by now that this means m-deploy-p cannot find ssh installed on the box, right? Fix your path. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven plugin phase binding
Hi, I use a plugin which is attached to the phase validate (I want it to be executed at the very beginning - not first but at the beginning). I can see phasevalidate/phase in the plugin.xml descriptor. In my maven build, it is called a lot of times (e.g. before report goal, findbugs, cobertura, javadocs...) Should I bind the plugin to another phase or is there something else I don't see? Thanks
scp config help needed
Team I can get maven to scp files to a remote repository. However when I config the server entry in the settings file it seems like the directory and file perms are ignored leading me to suspect the server directives are ignored that or I am not sure I understand how the server directive works in distribution Management. Directories should be created with a perm of 2775 and files with perms of 0664. The umask is set to 002 on the account for the remote host. Directories are being created with a 755 perm and files are 644. Its almost like maven is overriding the users umask. Another set of eyes is appreciated here... Thanks! My settings file contains: servers server idragga-release/id privateKey${user.home}/.ssh/id_rsa/privateKey directoryPermissions2775/directoryPermissions filePermissions664/filePermissions /server server idragga-snapshot/id privateKey${user.home}/.ssh/id_rsa/privateKey directoryPermissions2775/directoryPermissions filePermissions664/filePermissions /server /servers profiles profile iddevConfig/id properties !-- Base unc path -- uncPathfile:ragga/reftr/development/uncPath flePathfile///u/refr/development/flePath scpPathscp://r...@ragga:/maven/scpPath !-- Ragga Repositories -- ragga.distributionManagement.site.hostpath${scpPath}/repositories/site /ragga.distributionManagement.site.hostpath ragga.repository.url${scpPath}/repositories/m2repository/ragga.repository.url ragga.snapshotRepository.url${scpPath}/repositories/m2snapshotrepository/ragga.snapshotRepository.url ragga.distributionManagement.repository.url${scpPath}/repositories/dmrepository/ragga.distributionManagement.repository.url ragga.distributionManagement.snapshotRepository.url${scpPath}/repositories/dmsnapshotrepository/ragga.distributionManagement.snapshotRepository.url ragga.distributionManagement.repository.uniqueVersiontrue/ragga.distributionManagement.repository.uniqueVersion ragga.distributionManagement.snapshotRepository.uniqueVersionfalse/ragga.distributionManagement.snapshotRepository.uniqueVersion /properties /profile /profiles activeProfiles activeProfiledevConfig/activeProfile /activeProfiles My pom file contains repositories repository idragga-release/id nameRaga Repository/name url${ragga.repository.url}/url snapshots enabledfalse/enabled /snapshots /repository repository idragga-snapshot/id nameRagga Snapshot Repository/name url${ragga.snapshotRepository.url}/url releases enabledfalse/enabled /releases /repository /repositories
Re: skin and/or site.xml via parent pom?
On 2010-07-26 15:53, David J. Biesack wrote: Date: Sat, 24 Jul 2010 23:15:16 +0200 From: Dennis Lundberg denn...@apache.org This error usually shows up when there is a problem accessing the central repository, or a corporate repository proxy. Right; we periodically get timeouts from Central; that's why I wanted to set a fixed version for the skin. Inheritance of site.xml from a parent is automatic, as long as the parent pom has its site.xml attached to it when you deploy it to your repository. Thanks. Is this documented somewhere? I searched a lot of places and could not determine how sites and parent poms worked. It was not at all obvious to me that I could run site-deploy on a parent pom project or that this would do something useful. I'm not sure if/where it is documented, but I'll make sure to add a note about this in the Site Plugin documentation. And where exactly is the default skin and version specified - i.e. it not resolved locally when I added maven-default-skin 1.0 to our Artifactory repo - I assume because some default somewhere specifies a different version? The default value can be found in Maven Doxia :: Doxia Decoration Model. The default value is groupId = org.apache.maven.skins artifactId = maven-default-skin Unfortunately no version is specified, which might just be the reason for your (and others) problems. We should really specify a version for the default value. I'll open a JIRA issue for that. On 2010-07-23 17:34, David J. Biesack wrote: I'm seeing maven2 build failures because of the timeouts at central Caused by: org.apache.maven.doxia.tools.SiteToolException: ArtifactNotFoundException: The skin does not exist: Unable to determine the release version [...] -- Dennis Lundberg -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn site:deploy error
On 2010-07-26 15:13, Meeusen, Christopher W. wrote: We have testNG reports generated under /${basedir}/test-output, and javadoc generated under /${basedir}/target/apidocs/ that I was trying to upload through SCP to our apache webserver using Maven. I thought that mvn site-deploy might do this, but I guess there is some incompatibilities with maven 3.0 and the maven-site-plugin. I should be able to do that, but Maven 3 and the Site plugin currently requires some extra configuration, see https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+and+site+plugin I have since wrote some .bat files to handle the SCP, and will probably just use those to update our documentation. Thanks, Chris -Original Message- From: users-return-112877-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-112877-meeusen.christopher=mayo@maven.apache.or g] On Behalf Of Dennis Lundberg Sent: Saturday, July 24, 2010 4:13 PM To: Maven Users List Subject: Re: mvn site:deploy error What is it you are trying to achieve here? It doesn't seem to involve site:deploy like the subject says. What command are you running on the command line? On 2010-07-23 19:53, Meeusen, Christopher W. wrote: Hi, I'm trying to transfer a directory of files to our web server, and I thought that using mvn site:deploy would do what I want, but I'm getting an error when I run the site:deploy command. I'm running from Windows 7 scp'ing to linux 10.04 server edition. The linux system has openSSH already installed. I'm trying to follow the documentation here http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ss h- external.html, but I must be missing something I've already downloaded the plink.exe file and added the directory to my path variable. Thanks! Chris Here is my pom.xml settings: distributionManagement repository idr0210112/id urlscpexe://var/www/wsaxis2M/url /repository /distributionManagement build extensions !-- Enabling the use of FTP -- extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ssh-external/artifactId version1.0-beta-6/version /extension /extensions And my setup in my settings.xml server idr0210112/id usernamemaven/username passwordPASSWORD/password filePermissions644/filePermissions directoryPermissions755/directoryPermissions !-- privateKey/path/to/your/private/key/privateKey not needed if using pageant -- configuration sshExecutableplink/sshExecutable scpExecutablepscp/scpExecutable !-- sshArgsother arguments you may need/sshArgs -- /configuration /server Error message: ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer: Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. - [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project wsaxisM: Error deploying artifact: Error executing command for transfer at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec ycleExecutor.java:585) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec ycleExecutor.java:324) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157) at org.apache.maven.cli.MavenCli.main(MavenCli.java:121) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc he r.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java :2 30) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Lau nc her.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3 52 ) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Error executing command for transfer at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195) at
release:prepare issue with Mercurial SCM
I'm trying to deploy my first release build of a project to my nexus server. My scm configuration looks like this: scm connectionscm:hg:ssh://fortis//data/mercurial/projects/JarEncryptor/connection developerConnectionscm:hg:ssh://fortis//data/mercurial/projects/JarEncryptor/developerConnection /scm I need the extra / after fortis since the repository is on the /data partition of the remote filesystem. The problem is that when I use the maven release:prepare plugin, it ALWAYS strips out the extra slash when doing the push command and then I get the following error message: [INFO] Checking in modified POMs... [INFO] EXECUTING: cmd.exe /X /C hg commit --message [maven-release-plugin] prepare release jar-enc ryptor-aggregator-1.0 C:\Development\workspace\MyProject\pom.xml C:\Development\workspace\MyPro ject\nitrolm-encryptx\pom.xml C:\Development\workspace\JarEncryptor\nitrolm-encryptx-maven-plugin\ pom.xml C:\Development\workspace\JarEncryptor\nitrolm-encryptx-ant\pom.xml [INFO] EXECUTING: cmd.exe /X /C hg push ssh://fortis/data/mercurial/projects/JarEncryptor [ERROR] EXECUTION FAILED Execution of cmd : push failed with exit code: -1. Working directory was: C:\Development\workspace\JarEncryptor Your Hg installation seems to be valid and complete. Hg version: 1.5.2 (OK) Any ideas on how to get around this? I already tried putting four slashes in my scm configuration, but it stripped out all but one. -- Andrew Westberg
Re: maven plugin phase binding
Some plugins fork the lifecycle... you could look into MavenSession to see if you can cache the fact that you've run already and therefore skip the subsequent invocations On 26 July 2010 15:51, Em DauPhu emdau...@gmail.com wrote: Hi, I use a plugin which is attached to the phase validate (I want it to be executed at the very beginning - not first but at the beginning). I can see phasevalidate/phase in the plugin.xml descriptor. In my maven build, it is called a lot of times (e.g. before report goal, findbugs, cobertura, javadocs...) Should I bind the plugin to another phase or is there something else I don't see? Thanks
Re: skin and/or site.xml via parent pom?
Thanks, Dennis. I also found that when using a site.xml in the parent pom project, I had to use menu ref=reports inherit=top/ in order for the project's info reports to show up. It was not clear that I had to use the inherit attribute. All of the examples I saw simply show menu ref=reports/ My sites/reports are looking good, now. -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com(919) 531-7771 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problems with Maven Windows network drives
Maven isn't doing anything special with the files, so it's most likely some delay or weird interaction with the shared folders either in Windows, or VirtualBox (or both). Since the local repo is expected to be local, it's not likely we would make any special changes to make remote mounting work officially. On Tue, Jul 20, 2010 at 2:14 PM, Frederic Camblor fcamb...@gmail.com wrote: Hi all ! I'm working under Windows via VirtualBox, and I'd like to not put sensible/weight data on it to preserve image size/loss. So I ended up creating a network drive between my host and guest OS, putting project maven data on it. And ... it looks like maven is acting very strangely with network drives on Windows ! I executed the following scenarii : Scenario 1 : - Don't edited any settings.xml, and launched a mvn clean install on a fresh copy of my project located on my C: (local) drive : no problems ! Scenario 2 : - I edited the settings.xml and set the localRepository property, pointing on a folder located on my network drive. Then, I launched mvn clean install and BLAM! : maven wasn't able to download my project parent pom on remote repositories :( Note: I tried : *** localRepositoryZ:/path/to/localRepo/localRepository *** localRepositoryfile:///Z:/path/to/localRepo/localRepository *** localRepository//VBOXSVR/sharedfoldername/path/to/localRepo/localRepository Scenario 3 : - I removed the localRepository property. mvn clean install re-works fine ! - I moved my project from C: to my Z: network drive and relaunched maven. This time, maven, succeeded in downloading my parent pom. But, this time, org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies didn't succeeded during my build :( I reproduced this behaviour both with mvn 2.0.9 and 2.2.1. Is someone using successfully maven on project and maven repos located on Windows network drives ? Feedback appreciated before adding 2 JIRA ... Thanks in advance.. Frédéric - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Custom resource filter
So I have attached a patch to the issue. Let me know if it's fine with your use case. Basically you have to implements an existing interface used for the current filtering stuff. (have a look at the it test included in the patch). If it's fine I will push this 2010/7/26 Laurent Martelli martellilaur...@gmail.com: OK thanks, the proposed interface is really just a proposition. You probably know Maven better than I do to actually do it right. Cheers, Laurent 2010/7/26 Olivier Lamy ol...@apache.org Ok Thanks. I will review this later today (and probably propose some other interface to implements). 2010/7/26 Laurent Martelli martellilaur...@gmail.com: OK, I've created an issue on Jira : http://jira.codehaus.org/browse/MRESOURCES-128. I've created some Java classes to do the job of filtering PNG chunks (PNG does not actually contain layers, but allow proprietary chunks, which is what the software used to edit them does) so I wouldn't mind having a solution that allows the use of Java filters. Cheers, Laurent 2010/7/24 Olivier Lamy ol...@apache.org Hi, So it can be a nice feature to implements in the resources plugin (filters need to be plexus component). Can you load an issue in jira ? I will have a look. -- Olivier http://twitter.com/olamy http://fr.linkedin.com/in/olamy http://www.viadeo.com/fr/profile/olivier.lamy7 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier http://twitter.com/olamy http://fr.linkedin.com/in/olamy http://www.viadeo.com/fr/profile/olivier.lamy7 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org