Skip copying resources
How do I skip copying resources? I try in but it does not work. maven-resources-plugin copy-xxx compile copy-resources true ${webapp.dir}/example/resources ${webapp.dir}/resources ** Joncheng Kuo
Re: "Failure to find org.apache.maven.plugins"
I have another look at the build block of my pom file. org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.6 1.6 org.apache.maven.plugins maven-war-plugin 2.3.2 vsm org.apache.maven.plugins maven-dependency-plugin install install sources Replacing the latest version 3.0.3 leads to some other error message. After removing the version tags, those error messages are gone in the window. The 2.0.2 version are downloaded when I run "mvn verify". -- View this message in context: http://maven.40175.n5.nabble.com/Failure-to-find-org-apache-maven-plugins-tp5143506p5147399.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: "Failure to find org.apache.maven.plugins"
Thanks again. My current Nexus configuration comes from the default one. What sort of thing I shall look into? I get all my project dependencies with my current existing setting. If the maven-war-plugin should be there as a part of my project dependencies, where it shall be located inside of Eclipse or my Maven installation directory? -- View this message in context: http://maven.40175.n5.nabble.com/Failure-to-find-org-apache-maven-plugins-tp5143506p5147052.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: "Failure to find org.apache.maven.plugins"
Thanks Ansgar. I have a look at my local Maven repository directory and can't find anything with the name. It is not a dependency for my project. Since I didn't have the problem before I upgraded Eclipse, I am not sure that is a solution to do anything on local Maven repository. -- View this message in context: http://maven.40175.n5.nabble.com/Failure-to-find-org-apache-maven-plugins-tp5143506p5145870.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: "No plugin found for prefix 'war' in the current project ..."
Thanks Barrie. I will try the mailing list then. -- View this message in context: http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5145766.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: "No plugin found for prefix 'war' in the current project ..."
As I already said, the error message shows up on my Eclipse when I open the pom.xml file without running any commands. The whole error stack is the following: Multiple annotations found at this line: - Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.3.2 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced - No plugin found for prefix 'war' in the current project and in the plugin groups [] available from the repositories [local (C:\Documents and Settings \mine\.m2\repository), nexus (http://localhost:8081/nexus/content/groups/public)] When I run a build with the stacktraces on, the output messages are the followings: Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) Maven home: C:\myapp\vsm\EMBEDDED Java version: 1.6.0_29, vendor: Sun Microsystems Inc. Java home: C:\Program Files\Java\jdk1.6.0_29\jre Default locale: en_CA, platform encoding: UTF-8 OS name: "windows xp", version: "5.1", arch: "x86", family: "windows" [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from EMBEDDED\conf\settings.xml [DEBUG] Reading user settings from C:\Documents and Settings\mine\.m2\settings.xml [DEBUG] Using local repository at C:\Documents and Settings\mine\.m2\repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Documents and Settings\mine\.m2\repository [INFO] Scanning for projects... [DEBUG] Extension realms for project com.abc:com.abc.vsm:war:1.0.0: (none) [DEBUG] Looking up lifecyle mappings for packaging war from ClassRealm[plexus.core, parent: null] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.343s [INFO] Finished at: Fri Jan 13 22:54:52 PST 2012 [INFO] Final Memory: 2M/15M [INFO] [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1] org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:104) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR] [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/NoGoalSpecifiedException I shall point out that the version of pom file worked fine before. Those problems occur after an Eclipse upgrading as well as Nexus upgrading. I had changed the dependencies' versions to reflect the most current ones. -- View this message in context: http://maven.40175.n5.nabble.com/No-plugin-found-fo
Re: "No plugin found for prefix 'war' in the current project ..."
Thanks both. Here is my http://pastebin.com/k7LiUs9k pom file and the http://pastebin.com/HZ9gh6wi settings.xml The error messages are shown when I open my pom file in Eclipse. -- View this message in context: http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5144123.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
"No plugin found for prefix 'war' in the current project ..."
Why this error occurs? I commented out the packaging type war and that doesn't help No plugin found for prefix 'war' in the current project and in the plugin groups [] available from the repositories [local (C:\Documents and Settings \mydirectory\.m2\repository), nexus (http://localhost:8081/nexus/content/groups/public)] -- View this message in context: http://maven.40175.n5.nabble.com/No-plugin-found-for-prefix-war-in-the-current-project-tp5143517p5143517.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
"Failure to find org.apache.maven.plugins"
How to resolve the following error? Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.3.2 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -- View this message in context: http://maven.40175.n5.nabble.com/Failure-to-find-org-apache-maven-plugins-tp5143506p5143506.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: Why not all dependencies are pulled?
A strange thing is that a file with a name "itext-2.1.7.pom" will be created in my project target directory when I have the version of itext dependence in my project pom file. -- View this message in context: http://maven.40175.n5.nabble.com/Why-not-all-dependences-are-pulled-tp5139118p5141245.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: Why not all dependencies are pulled?
This problem was resolved last night. It was quite late and I didn't update my this post. It seems to be an old version problem. Based on information on mavenrepository.com, I upgraded to latest versions and resolved all problems with one exception. I can't get the com.lowagie itext 2.1.7 and had to back to the 2.1.5 version. -- View this message in context: http://maven.40175.n5.nabble.com/Why-not-all-dependences-are-pulled-tp5139118p5140822.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
Why not all dependences are pulled?
After upgrading my IDE and Nexus, my development environment gets messed up. I read online (http://stackoverflow.com/questions/7964262/maven-and-indigo-behind-proxy) that I could resolve the problem by deleting all stuff under .m2/repository. After cleaning the project on eclipse, some dependences are pulled, but not all. I thought that might caused by out of date dependences. That situation doesn't seem to be the case. For example, hibernate 3.6.8.Final is one of them and that is still an active hibernate version. -- View this message in context: http://maven.40175.n5.nabble.com/Why-not-all-dependences-are-pulled-tp5139118p5139118.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
Failed to resolve artifact
Hi, I am very new to Maven. I need to generate java classes from the attached WSDL file. I installed Maven and set environment variable. When I run mvn generate-sources command I get following errors. C:\workspace\customerservice>mvn generate-sources [INFO] Scanning for projects... [INFO] [INFO] Building customerservice [INFO]task-segment: [generate-sources] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil er-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom Downloading: http://download.java.net/maven/1//org.apache.maven.plugins/poms/mav en-compiler-plugin-2.0.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil er-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-compiler-plugin Version: 2.0.2 Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), java.net (http://download.java.net/maven/1/) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Jan 21 09:07:00 IST 2009 [INFO] Final Memory: 1M/2M [INFO] Please help me how to resolve this issue. Regards, Varini - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org