Re: Mvn commands are stalling
I think what Robert mentioned was the root of my problems - I did not think to look inside the pom.xml file, and it was also because I was having others problems and I thought erroneously that they may be interlinked. Also, since my pom.xml was generated by maven itself, it did not occur to me that it may need to be edited. I was subconsciously thinking Maven generated it for me, I need not touch it, it must be good Thanks for all your help. I really appreciate your time and ideas!! On Mon, Jan 9, 2012 at 12:52 PM, Brian Topping topp...@codehaus.org wrote: On Jan 9, 2012, at 12:01 PM, Robert Scholte wrote: Even though I'm not a newbie, I can see 2 potential problems with this sentence: 1. line 84, column 15 of what? It doesn't mention the file. Sure, it always about the poms, but we're talking about unexperienced users here. 2. build.plugins.plugin.version ? This doesn't look like xml, so maybe you're not triggered to look inside the pom. And if you use a pom-editor, you may have never seen the xml. Another observation I might try to append to Robert's list is how to separate the signal from the noise. My personal opinion is that Maven is pretty chatty, which is great for experienced users, but a bit overwhelming for some new users. One option would be to reduce verbosity, but that doesn't really serve experienced users well. Another option would be what Karaf has done and that is to use colorized logs. http://blog.uncommons.org/2006/04/09/colour-coded-console-logging-with-log4j/covers the gist of it. The ANSI colorization characters are kind of ugly in terminals that aren't set up correctly, but it might help improve readability? Brian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Mvn commands are stalling
Hello, I am a relatively new user to Maven. I have Java 1.7 and Maven 3.0.3 installed. I am trying to fix two problems: 1. The first and more critical problem is: No matter what command I try to run, mvn starts the download and then it just stalls. The same thing happens when I try creating a project from an archetype. I tried running mvn help:effective-pom to resolve the warning in the snippet below, and that command also hangs just like the others. I have to use Ctrl-C to kill it and retry it again. It almost seems like it is an internet connectivity problem, but I don't see how it can be, when it can download some jars, but not the remaining ones. 2. I would like to know how I can resolve the warning below. Any help you can give is greatly appreciated. Thanks much!! AR -- C:\development\workspace1\project1dir Volume in drive C has no label. Volume Serial Number is B894-5499 Directory of C:\development\workspace1\project1 12/29/2011 04:12 PMDIR . 12/29/2011 04:12 PMDIR .. 12/29/2011 04:12 PM 2,795 pom.xml 12/29/2011 04:12 PMDIR src 1 File(s) 2,795 bytes 3 Dir(s) 582,170,943,488 bytes free C:\development\RFP\project1mvn eclipse:eclipse [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.dc:project1:war:1.0 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 84, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.2/maven-surefire-plugin-2.7.2.jar Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.2/maven-surefire-plugin-2.7.2.jar(29 KB at 51.4 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom(7 KB at 14.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar 62 KB
Re: Mvn commands are stalling
It almost seems like it is an internet connectivity problem, but I don't see how it can be, when it can download some jars, but not the remaining ones. ... C:\development\workspace1\project1dir This kind of problem is nearly always related to some antivirus software running on your Windows machine or on your network somewhere. Try turning it off or whitelisting the Java.exe process. [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 84, column 15 Well let's do a thought experiment. What do you think (as a new user to Maven) that error message means? As an experienced Maven user, it is super clear to me, but I'd like to hear what you are thinking. Wayne
Re: Mvn commands are stalling
Thanks Wayne for making me think :) I resolved the warning by editing the pom. I looked up the anti-virus I have, and I only have AVG which I am not able to turn off because of insufficient privileges. I am surprised by the fact that re-running the command gets me a bit more further in the downloads each time. If it is an antivirus, should it not always block the same download? Thanks!! C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [WARNING] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:3.0.3 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:3.0.3: Plugin org.apache.maven.plugins:maven-compile r-plugin:3.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin :jar:3.0.3 Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar(202 KB at 210.4 KB/sec) [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 --- Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom !--A big bunch of downloads completed here-- Downloaded: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar(663 KB at 363.9 KB/sec) Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 --- Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 --- Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar(139 KB at 174.3 KB/sec) [INFO] Using Eclipse Workspace: C:\development\Workspace1 [WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\devtools\java7u2 [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5 Downloading: http://repo1.maven.org/maven2/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.pom !-- Another big bunch of downloads completed here -- Downloading: http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1
Re: Mvn commands are stalling
Update: It is working now. Turning off AVG did it! (... I think I may need to figure out why and how AVG affects the mvn downloads, and come up with a long term strategy to have both available at the same time, but for now I am good!) Thanks for your help!!! On Mon, Jan 9, 2012 at 10:20 AM, A R javasp...@gmail.com wrote: Thanks Wayne for making me think :) I resolved the warning by editing the pom. I looked up the anti-virus I have, and I only have AVG which I am not able to turn off because of insufficient privileges. I am surprised by the fact that re-running the command gets me a bit more further in the downloads each time. If it is an antivirus, should it not always block the same download? Thanks!! C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [WARNING] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:3.0.3 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-compiler-plugin:3.0.3: Plugin org.apache.maven.plugins:maven-compile r-plugin:3.0.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin :jar:3.0.3 Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.8/maven-eclipse-plugin-2.8.jar(202 KB at 210.4 KB/sec) [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 --- Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom !--A big bunch of downloads completed here-- Downloaded: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar(663 KB at 363.9 KB/sec) Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 --- Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Struts 2 Starter 1.0 [INFO] [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ project1 --- Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar Downloaded: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar(139 KB at 174.3 KB/sec) [INFO] Using Eclipse Workspace: C:\development\Workspace1 [WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\devtools\java7u2 [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5 Downloading: http://repo1.maven.org/maven2/commons-fileupload/commons-fileupload/1.1.1/commons-fileupload-1.1.1.pom !-- Another big bunch of downloads completed here -- Downloading: http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar Terminate batch job (Y/N)? y C:\development\Workspace1\project1mvn eclipse:eclipse [INFO] Scanning for
Re: Mvn commands are stalling
Update: It is working now. Turning off AVG did it! (... I think I may need to figure out why and how AVG affects the mvn downloads, and come up with a long term strategy to have both available at the same time, but for now I am good!) I ran into this recently while helping some family migrate from an old eMachines running XP to a new Mac Mini with the Migrate to Mac wizard software. They had AVG which I had installed a long time ago and the wizard couldn't get through. If you check your TCP/IP stack, you will see an AVG Miniport Driver or something along those lines. Just click the checkbox to disable it. This is in Networking Properties for your LAN or Wifi device. There are other things in the list like File and Printer Sharing and Client for Microsoft Networks. You may be able to manage this via AVG Control Panel as well. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mvn commands are stalling
Thanks Wayne for making me think :) I resolved the warning by editing the pom. Do you think it is a reasonable/good error message or can be improved somehow (with the understanding that there are limits in what we can practically do)? Since most of us on this list are not Maven newbies, we have trouble looking at things from the newbie perspective sometimes. So any input you can provide would be appreciated. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mvn commands are stalling
Hi, Even though I'm not a newbie, I can see 2 potential problems with this sentence: 1. line 84, column 15 of what? It doesn't mention the file. Sure, it always about the poms, but we're talking about unexperienced users here. 2. build.plugins.plugin.version ? This doesn't look like xml, so maybe you're not triggered to look inside the pom. And if you use a pom-editor, you may have never seen the xml. -Robert On Mon, 09 Jan 2012 15:39:54 +0100, Wayne Fay wayne...@gmail.com wrote: [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 84, column 15 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mvn commands are stalling
+1 Good comments. Might not be a bad idea to add a suggestion Probable cause is missing version in your pom.xml or Probable cause is bad dependency definition for org.apache.maven.plugins:maven-compiler-plugin at line 85. I am not sure how the column number helps. What would be at column 15 of line 85 in this case? Ron On 09/01/2012 12:01 PM, Robert Scholte wrote: Hi, Even though I'm not a newbie, I can see 2 potential problems with this sentence: 1. line 84, column 15 of what? It doesn't mention the file. Sure, it always about the poms, but we're talking about unexperienced users here. 2. build.plugins.plugin.version ? This doesn't look like xml, so maybe you're not triggered to look inside the pom. And if you use a pom-editor, you may have never seen the xml. -Robert On Mon, 09 Jan 2012 15:39:54 +0100, Wayne Fay wayne...@gmail.com wrote: [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 84, column 15 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mvn commands are stalling
On Jan 9, 2012, at 12:01 PM, Robert Scholte wrote: Even though I'm not a newbie, I can see 2 potential problems with this sentence: 1. line 84, column 15 of what? It doesn't mention the file. Sure, it always about the poms, but we're talking about unexperienced users here. 2. build.plugins.plugin.version ? This doesn't look like xml, so maybe you're not triggered to look inside the pom. And if you use a pom-editor, you may have never seen the xml. Another observation I might try to append to Robert's list is how to separate the signal from the noise. My personal opinion is that Maven is pretty chatty, which is great for experienced users, but a bit overwhelming for some new users. One option would be to reduce verbosity, but that doesn't really serve experienced users well. Another option would be what Karaf has done and that is to use colorized logs. http://blog.uncommons.org/2006/04/09/colour-coded-console-logging-with-log4j/ covers the gist of it. The ANSI colorization characters are kind of ugly in terminals that aren't set up correctly, but it might help improve readability? Brian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org