newbie question
Hi, I'm brand new to maven, read through a few books, and built a simple maven project to produce a .jar. I've installed the m2ecplipse pugin and have got it to work properly on a few simple projects. Now I'm having an issue when I try to build a more complex project, which requires at least java 1.5 (because it uses enums and other things). When I build my project I get a clean build, however when I try to do Run As > Maven package I get the following errors in the console: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project wsaxisM: Compilation failure: Compilation failure: C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web Service\wsaxis2_m\src\main\java\edu\mayo\util\VTInfoType.java:[10,7] enums are not supported in -source 1.3 (use -source 5 or higher to enable enums) public enum VTInfoType I get similar errors for annotations and generics. Anyone know what might be going on? Please help a maven newb! Thanks, Chris
RE: newbie question
Yes, that did the trick, now new errors though. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project wsaxisM: Compilation failure: Compilation failure: C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web Service\wsaxis2_m\src\main\java\com\gehc\ce\ws\GEHCUtils.java:[5,31] package org.apache.axis2.context does not exist C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web Service\wsaxis2_m\src\main\java\com\gehc\ce\ws\GEHCUtils.java:[7,33] package com.idx.carecast.ca.common does not exist Getting a bunch of these. Do I have to configure the compiler plugin and explicitly tell it to use the .jars referenced in my build path? Thanks, Chris -Original Message- From: users-return-111617-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-111617-meeusen.christopher=mayo@maven.apache.org] On Behalf Of fradj zayen Sent: Wednesday, May 26, 2010 12:37 PM To: Maven Users List Subject: Re: newbie question hi Chris, I think you didnt't properly configured the compiler plugin. below an extract pom.xml file ... .. maven-compiler-plugin 1.5 1.5 Regards 2010/5/26 Meeusen, Christopher W. > Hi, > > > > I'm brand new to maven, read through a few books, and built a simple > maven project to produce a .jar. I've installed the m2ecplipse pugin > and have got it to work properly on a few simple projects. Now I'm > having an issue when I try to build a more complex project, which > requires at least java 1.5 (because it uses enums and other things). > When I build my project I get a clean build, however when I try to do > Run As > Maven package I get the following errors in the console: > > > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > (default-compile) on project wsaxisM: Compilation failure: Compilation > failure: > > C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web > Service\wsaxis2_m\src\main\java\edu\mayo\util\VTInfoType.java:[10,7] > enums are not supported in -source 1.3 > > (use -source 5 or higher to enable enums) > > public enum VTInfoType > > > > I get similar errors for annotations and generics. Anyone know what > might be going on? Please help a maven newb! > > > > Thanks, > > Chris > > -- Zayen Fradj Ingénieur Informaticien Sun Certified Programmer - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: newbie question
I guess I miss understood the concept of dependencies. I thought that it was used only for .jars that were in a repository say commons-lang-2.4, but if you have some api from a vendor, say vendor.jar, that you didn't have to configure a decency for that. -Original Message- From: users-return-111621-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-111621-meeusen.christopher=mayo@maven.apache.org] On Behalf Of Wayne Fay Sent: Wednesday, May 26, 2010 12:50 PM To: Maven Users List Subject: Re: newbie question > Getting a bunch of these. Do I have to configure the compiler plugin > and explicitly tell it to use the .jars referenced in my build path? No configuration of the compiler plugin should be necessary. You simply need to properly configure your list. Most likely you are simply missing one or more dependencies -- looks like axis2 is the first, but I don't recognize the com.idx one and assume it is an internal artifact that you're working on. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: newbie question
Thanks for the advice, I've already installed it and began uploading my artifacts. Thanks! On May 26, 2010, at 19:57, "Ron Wheeler" software.com> wrote: Save yourself a lot of grief and needless screwing about. Install the free version of Nexus. 1) Solves one of your immediate problems - It gives you a good place to put third party libraries. 2) Gives you a lot more visibility into the "Maven way" 3) Forces you to come to grips with Releases and Snapshots early in the process - add clarity to your development process. 4) Encourages you to build proper utility libraries and sharable artifacts. Everyone is pulling their stuff from the same place. 5) Reduces the jar equivalent of DLL hell. You can see what versions are available. YOu don't have to search all over the place for libraries. and more. I wish we had done this when we first started with Maven. Would have saved us months of time guessing our way through Maven and various project structures, dependency issues, library version nonsense, etc. Ron On 26/05/2010 2:06 PM, Shan Syed wrote: you need to specify a dependencies for everything; in the case you depend on a jar that's not publicly available (3rd party vendor, in-house jar, etc), you have a few options: -maintain a repository for these sorts of things, using a tool like archiva, nexus, or artifactory (ideal for teams of more than 1) -install it locally http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html -specify a local location for the JAR, by using "system scope" (not the greatest solution) On Wed, May 26, 2010 at 2:00 PM, Meeusen, Christopher W.< meeusen.christop...@mayo.edu> wrote: I guess I miss understood the concept of dependencies. I thought that it was used only for .jars that were in a repository say commons- lang-2.4, but if you have some api from a vendor, say vendor.jar, that you didn't have to configure a decency for that. -Original Message- From: users-return-111621-meeusen.christopher=mayo@maven.apache.org [mailto: users-return-111621-meeusen.christopher=mayo@maven.apache.org] On Behalf Of Wayne Fay Sent: Wednesday, May 26, 2010 12:50 PM To: Maven Users List Subject: Re: newbie question Getting a bunch of these. Do I have to configure the compiler plugin and explicitly tell it to use the .jars referenced in my build path? No configuration of the compiler plugin should be necessary. You simply need to properly configure your list. Most likely you are simply missing one or more dependencies -- looks like axis2 is the first, but I don't recognize the com.idx one and assume it is an internal artifact that you're working on. Wayne --- -- 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
m2eclipse mailing list?
Is there a separate list for m2eclipse questions? Got m2eclipse properly building my aar services, but I get an annoying error on startup. An internal error occurred during: "Repository registry initialization". The repositoryId cannot be null when creating new repository! Here is my settings.xml. Maven sees my nexus repository and pulls in all my artifacts from it properly so Im confused as to where this error is coming from. Thanks, Chris ./repository mayo_rep http://MYSERVERHOST:PORT/nexus/content/repositories/mayo_rep 12345 http://mayoweb/ mayo_plugin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: MAVEN DOES NOT WORK PROPERLY IN WINDOWS 7
I'm running maven (and m2eclipse) on Windows 7, with no issues. I would double check your dependencies in your pom.xml file. Try installing these artifacts to your local repository and try this again. Chris -Original Message- From: users-return-111719-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-111719-meeusen.christopher=mayo@maven.apache.or g] On Behalf Of oonwuzu Sent: Tuesday, June 01, 2010 8:24 AM To: users@maven.apache.org Subject: MAVEN DOES NOT WORK PROPERLY IN WINDOWS 7 Hi, I set up apache-maven-2.2.1 with the settings.xml as shown below. After running mvn clean -o on my project, mvn package -o would produce this message. I'll be very grateful if I get an answer.The OS i use is windows 7: [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: C:\DISK E\J2EECODES\SOURCE\codes\College\server\common\target\college-common-1.0 -SNAPSHOT.jar [INFO] [INFO] Building College Core Business Tier [INFO]task-segment: [package] [INFO] [INFO] Reloading plugin container for: org.apache.maven.plugins:maven-surefire-plugin:2.4.3. The plugin artifact has changed. [INFO] Reloading plugin container for: org.andromda.maven.plugins:andromda-multi-source-plugin:3.3-SNAPSHOT. The plugin artifact has changed. [INFO] Reloading plugin container for: org.andromda.maven.plugins:andromdapp-maven-plugin:3.3-SNAPSHOT. The plugin artifact has changed. [INFO] Reloading plugin container for: org.apache.maven.plugins:maven-surefire-plugin:2.4.3. The plugin artifact has changed. [INFO] [andromda-multi-source:add-source {execution: default}] [INFO] [resources:resources {execution: default-resources}] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 103 source files to C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[15,7] com.sf.college.timetable.servi ce.TimeTableServiceBeanImpl is not abstract and does not override abstract method isIdentical(javax.ejb.EJBLocalObject) in javax.ejb.EJBLocalObject C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[74,73] cannot find symbol symbol : method loadAll(org.hibernate.Session) location: class com.sf.college.timetable.entity.dayoftheweek.DayOfTheWeekFactory C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[80,73] cannot find symbol symbol : method loadAllInRange(org.hibernate.Session,int,int) location: class com.sf.college.timetable.entity.dayoftheweek.DayOfTheWeekFactory C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[121,67] cannot find symbol symbol : method loadAll(org.hibernate.Session) location: class com.sf.college.timetable.entity.timetable.TimeTableFactory C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[127,67] cannot find symbol symbol : method loadAllInRange(org.hibernate.Session,int,int) location: class com.sf.college.timetable.entity.timetable.TimeTableFactory C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[168,67] cannot find symbol symbol : method loadAll(org.hibernate.Session) location: class com.sf.college.timetable.entity.timeframe.TimeFrameFactory C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\timetable\service\TimeTableServiceBeanImpl.java:[174,67] cannot find symbol symbol : method loadAllInRange(org.hibernate.Session,int,int) location: class com.sf.college.timetable.entity.timeframe.TimeFrameFactory C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\hostel\service\HostelServiceBeanImpl.java:[21,7] com.sf.college.hostel.service.Hostel ServiceBeanImpl is not abstract and does not override abstract method isIdentical(javax.ejb.EJBLocalObject) in javax.ejb.EJBLocalObject C:\DISK E\J2EECODES\SOURCE\codes\College\server\core\src\main\java\com\sf\colleg e\hostel\service\HostelServiceBeanImpl.java:[100,92] cannot find symbol symbol : method loadAll(org.hibernate.Session) location: class com.sf.college.hostel.entity.accomodationapplication.AccomodationApplica tion
RE: Internal Repository Advice
I agree, Nexus is super easy to get up and run. Took me only a few hours to install and upload all our artifacts to it. -Original Message- From: users-return-111737-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-111737-meeusen.christopher=mayo@maven.apache.or g] On Behalf Of Ron Wheeler Sent: Tuesday, June 01, 2010 10:38 AM To: users@maven.apache.org Subject: Re: Internal Repository Advice I got the Nexus free version. It is the only way to use maven effectively. We used maven for 2 years without a repository and in retrospect it was the one of the worst things we did. I do not know Artifactory and it may be as good as Nexus but Nexus is great. Very intuitive, easy to use. Not to hard to configure and works really well. You are doing the right thing with the repository idea. It adds a level of control and transparency that makes using Maven much better. Other free advice: 1) Resist the temptation to bend Maven. The "Maven way" is pretty clean and tidy. People do the strangest things (and get into the oddest problems) trying to take old work habits into Maven. 2) Use SNAPSHOTs and releases the way God intended. 3) RTFM. We are bad at that one but are learning how to read. Good luck. You are an the right track. Ron On 01/06/2010 10:18 AM, Greg Akins wrote: > I'm moving my companies projects to Maven and need an internal repository. > > I hesitated to use something like Artifactory because I thought a > simple directory structure, under Apache, would be sufficient (did it > that way back in the Maven1 days). > > However, I'm having trouble deploying projects (possibly a problem > with my lack of knowledge around scp/ssh and trying to use Wagon with > scp for the deploys). > > Before I get too far down this rabbit hole, I'd like some advice on > the best way to proceed (using a free, open-source repository is a > MUST.. my company will never pay for a commercial one). > > Any help is much appreciated. > > - 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: placing third party installation under maven
Look into nexus, its free, and easy. I'm also a Maven newb and took less than 4 hours to setup and upload all our 3rd party artifacts. Good luck, Chris -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Tuesday, June 08, 2010 1:35 PM To: Maven Users List Subject: Re: placing third party installation under maven The correct Maven way to solve this is to set up an internal remote repo, in which you deploy these libs (artifacts). The easiest way to do this is to use a repo manager such as Nexus or Artifactory. You will have this up and running in less than a day. The benefit of doing this is that you solve the problem for all your developers. And you do it the correct Maven way which makes you learn correct Maven procedures. And when you do have a repo manager already set up, a whole new world of possibilities opens up. Such as deployment of your own artifacts for instance. Any other way is just a work-around. Please learn from other people going down that path and some time later regretting it. /Anders On Tue, Jun 8, 2010 at 16:38, John Harrison wrote: > In my project I use a third party library that I would like to put > into a remote maven repository. The lib is distributed as a zip file. > To use the lib outside of maven you unzip the archive to a directory, > set your classpath to various locations in that directory, and set an > environment variable pointing to the directory itself. The library is > proprietary and there are various licensing issues but these would be > handled outside of maven. > > What I'd like to be able to do is place a dependency on the third > party lib in my project and have maven do as much of the above as > possible. I'm looking at the assembly plugin and the dependency plugin > but basically I'm a maven newbie and I'm horribly confused. > > Thanks, John > > > > Confidentiality Notice: This electronic message transmission, > including any attachment(s), may contain confidential, proprietary, or > privileged information from Chemical Abstracts Service ("CAS"), a > division of the American Chemical Society ("ACS"). If you have > received this transmission in error, be advised that any disclosure, > copying, distribution, or use of the contents of this information is > strictly prohibited. Please destroy all copies of the message and > contact the sender immediately by either replying to this message or calling 614-447-3600. > > > - > 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
maven-javadoc-plugin
I'm trying to modify my pom.xml so that it creates two different versions of javadoc for my 1 project. I want an internal version (has everything in it ) and an external version for the same project (only public modifier visible). I've spent some time reading through the instructions here: http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html but whenever I run a javadoc:javadoc it generates 1 version of the javadoc in the default location ../apidocs. Here is how this plugin is configured in my pom.xml org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/apidocs/internal/ private true org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/apidocs/external/ public false I'm not getting an error in the javadoc:javadoc run, and it generates the javadoc in the default location instead of where I specify in the outputDirectory tag. Am I missing something? Thanks, Chris - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven-javadoc-plugin
I got it halfway working. I changed my plugin settings to look like this: org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/docs/internal/ private true org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/docs/external/ public false Now it is generating 1 set of javadoc for the second instance of my plugin, but nothing for the first instance. This leads me to the question, can you have multiple instances of a plugin in the same pom.xml? Thanks, Chris -Original Message- From: users-return-112178-meeusen.christopher=mayo@maven.apache.org [mailto:users-return-112178-meeusen.christopher=mayo@maven.apache.or g] On Behalf Of Meeusen, Christopher W. Sent: Monday, June 21, 2010 1:24 PM To: Maven Users List Subject: maven-javadoc-plugin I'm trying to modify my pom.xml so that it creates two different versions of javadoc for my 1 project. I want an internal version (has everything in it ) and an external version for the same project (only public modifier visible). I've spent some time reading through the instructions here: http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html but whenever I run a javadoc:javadoc it generates 1 version of the javadoc in the default location ../apidocs. Here is how this plugin is configured in my pom.xml org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/apidocs/internal/ private true org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/apidocs/external/ public false I'm not getting an error in the javadoc:javadoc run, and it generates the javadoc in the default location instead of where I specify in the outputDirectory tag. Am I missing something? Thanks, Chris - 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
SCP javadoc to web server?
Hi, I'm using the maven-javadoc-plugin to generate javadoc it works fine, but I'd like to know how to SCP the javadoc to our webserver. I have a server setup with apache2 and openSSH. Can I configure the javadoc plugin to SCP the files to my web server or do I need another plugin to deploy these documents? I've been looking through the maven-javadoc-plugin configuration stuff here: http://maven.apache.org/plugins/maven-javadoc-plugin/usage.html but don't see a setting to SCP. Here is my current maven-javadoc-plugin configuration in my pom.xml: org.apache.maven.plugins maven-javadoc-plugin 2.7 ${basedir}/target/docs/external/ public false true comment a Comment: description a Description: Thanks! Chris
mvn site:deploy error
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-ssh- 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: r0210112 scpexe://var/www/wsaxis2M org.apache.maven.wagon wagon-ssh-external 1.0-beta-6 And my setup in my settings.xml r0210112 maven PASSWORD 644 755 plink pscp 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(DefaultLifec ycleExecutor.java:585) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec 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.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche r.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2 30) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc her.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352 ) 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(DefaultBui ldPluginManager.java:105) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:577) ... 14 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error executing command for transfer at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul tArtifactDeployer.java:92) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) ... 16 more Caused by: org.apache.maven.wagon.TransferFailedException: Error executing command for transfer at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpEx ternalWagon.java:395) at org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(Def aultWagonManager.java:498) at org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(Defau ltWagonManager.java:450) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul tArtifactDeployer.java:82) ... 17 more Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 1 - 'ssh' is not recognized as an internal or external command, operable program or batch file. at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCo mmand(ScpExternalWagon.java:209) at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCo mmand(ScpExternalWagon.java:149) at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpEx ternalWagon.java:389) ... 20 more [ERROR]
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: > > > > > > > > r0210112 > > scpexe://var/www/wsaxis2M > > > > > > > > > > > > > > > > > > org.apache.maven.wagon > > wagon-ssh-external > > 1.0-beta-6 > > > > > > > > > > > > > > And my setup in my settings.xml > > > > r0210112 > > maven > > PASSWORD > > 644 > > 755 > > > > > > plink > > pscp > > > > > > > > > > > > > > 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.ap
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: r0210112 maven j...@v@d0c 644 755 C:\putty\plink C:\putty\pscp 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
wagon-webdav
Hi, I'm trying to use maven-site-plugin and the wagon-webdav artifact. I get this error when I do mvn site-deploy. But according to http://maven.apache.org/wagon/wagon-providers/wagon-webdav/ it says it does support directory copying... anyone know what could produce this error? Thanks, Chris [INFO] --- maven-site-plugin:2.1.1:deploy (default-deploy) @ wsaxisM --- [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 5.287s [INFO] Finished at: Fri Jul 30 13:41:59 CDT 2010 [INFO] Final Memory: 6M/15M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.1.1:deploy (default-deploy) on project wsaxisM: Wagon protocol 'dav' doesn't support directory copying -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.1.1:deploy (default-deploy) on project wsaxisM: Wagon protocol 'dav' doesn't support directory copying at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:585) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec 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.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche r.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2 30) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc her.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352 ) Caused by: org.apache.maven.plugin.MojoExecutionException: Wagon protocol 'dav' doesn't support directory copying at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java :193) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui ldPluginManager.java:105) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:577) ... 14 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
maven-changelog-plugin
Hi, Just wondering if anyone has found a nice write up on integrating the maven-changelog-plugin with clear case? Thanks, Chris
Re: Questions about axistools-maven-plugin
No, not personally. But I know of a team that uses that plugin to generate adb stubs, they say it work well. Chris On Aug 10, 2010, at 18:22, "Greg Akins" wrote: Thanks Wayne.. Looks like another option might be to use axis2-wsdl2code-maven-plugin Does anyone have any experience with that plugin? On Tue, Aug 10, 2010 at 6:21 PM, Wayne Fay wrote: Any thoughts on what it would take to adapt the plugin so it could do Axis2? If not, any thoughts on the "Maven" way to do Axis2 generation? Writing a Maven plugin is pretty simple. I'd pull the source down for the current axistools-m-p and see how it works, then figure out how to add Axis2 functionality. Wayne -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre - 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: Maven SCM plugin and CCRC
I tried to get this to work but have up after getting no where for a few days. Chris On Oct 20, 2010, at 12:59, "Lucas, Jeffrey A." wrote: I'm having an issue getting the Maven SCM Plugin configured to use CCRC (ClearCase Remote Client v7.1.1). 1. What should the clearcase-settings.xml for Clear Case and location 2. What are the SCM setting settings 3. Is there anything in the POM that is needed for configuration of the SCM plugin Thanks, Jeff CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
ws-zones-proxy issue
Sorry, I know this is a question for apache or nexus lists (or both), but I need some resolution so trying here as well. I have a proxy repository to the apache ws-zones-proxy repository. It stopped indexing correctly and now when I do a build I cannot download a woden.jar artifact that must be a transitive dependency to my project. Does anyone out there know if this repository has moved to another location? I used to proxy this url: http://ws.zones.apache.org/repository2/ I can browse remote and see the artifact is there but get errors when my nexus instance tries to update the index on this repo, and I haven't changed any config on my nexus server in ~1year. Thanks, Chris
RE: Kudos
I wouldn't say maven is difficult to setup. I'm certainly a maven newb but was able to get our projects building with maven and our in house nexus repository within 2 weeks. And I had 0 ant/ivy experience as well. I only wish our company had our own build engineers to setup and manage the environment, I'm guessing most big shops do this and don't let the devs admin their own artifact repository server. Chris -Original Message- From: users-return-122692-Meeusen.Christopher=mayo@maven.apache.org [mailto:users-return-122692-Meeusen.Christopher=mayo@maven.apache.or g] On Behalf Of Brian Topping Sent: Wednesday, August 17, 2011 2:21 PM To: Maven Users List Subject: Re: Kudos Yah, I'd have to agree with this sentiment. Maven isn't the easiest thing to learn, but documentation has improved remarkably over the years and the "network effect" of having more people familiar with Maven means that there's Maven experts that are closer to more people in real life. More thanks to all the folks that made this happen! On Aug 17, 2011, at 12:16 PM, Laird Nelson wrote: > Mailing lists are often overrun with people complaining and reporting > bugs and squabbles and whatnot. I wanted to take a brief moment to > simply say thanks to all for what has finally evolved into a really useful product. > > I love the fact that I can pull down most open source projects these > days, and, without really thinking too hard about it, pull up their > pom.xml file and at least have a rough idea of what they're trying to accomplish. > > I love that building and installing such a project has become as > simple as mvn clean install. > > I love that I don't have to get in the head of whichever > build-engineer-of-the-moment crafted a hand-rolled Ant or Gradle > build. I love that as bulky and annoying as it can be, at least XML > is declarative and easily read. > > Anyhow, thanks. Maven is not an easy system to learn, but once you do > it pays off. > > Best, > Laird - 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: Is Maven only for Java?
That list seems pretty old. We've been using Nuget for dotnet stuff. Works pretty well but it doesn't seem as feature rich as maven. Pretty cookie cutter IMO. Chris -Original Message- From: users-return-128148-Meeusen.Christopher=mayo@maven.apache.org [mailto:users-return-128148-Meeusen.Christopher=mayo@maven.apache.or g] On Behalf Of Martin Eisengardt Sent: Monday, July 09, 2012 11:02 AM To: Maven Users List Subject: Re: Is Maven only for Java? On Stackoverflow there is a small list: http://stackoverflow.com/questions/1168960/maven-for-other-languages Maybe incomplete. And maybe some support is not as you need it. However it should be better to start with a whitelist or features/languages and not declaring "all languages" and "all operating systems". Anyhow there are several exotic or old languages, for example I do not know of any cobol plugin. But maybe you won't ever need cobol support. On Mon, Jul 9, 2012 at 5:55 PM, hujirong wrote: > Hi > > I am about to start a new project to setup enterprise SCM for all open > systems, Windows, Unix, etc, in all languages, not only Java. We use > IBM Rational ClearCase, ClearQuest and BuildForge. > > I am wondering if I can introduce Maven. > > Thanks > Jirong > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Is-Maven-only-for-Java-tp5713445.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