Maven Build Error Failed To Resolve Artifact
here for a quick overview of the site Help Center Detailed answers to failed to resolve artifacts from teamcity any questions you might have Meta Discuss the workings and maven repository policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up build error when compiling with maven (failed to resolve artifact) up vote 0 down vote favorite I am doing an application for an assignment. I am a beginner. And I doing this assignment by modified an example that my teacher gives to me. I tried to compile the app with command line by using maven. A build error occured. Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 C:\Users\dell>f: F:\>cd \COIT13235-s0234380-ass1\assignment 1 F:\COIT13235-s0234380-ass1\assignment 1> mvn compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building folder_a [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ [WARNING] POM for 'commons-cli:commons-cli:pom:1.0:runtime' is invalid. Its dependencies (if any) will NOT be available to the current build. [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (GB18030 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource Downloading: http://repo1.maven.org/maven2/org/eclipse/persistence/javax.persist ence/${derby-version}/javax.persistence-${derby-version}.pom [INFO] Unable to find resource 'org.eclipse.persistence:javax.persistence:pom:${ derby-version}' in repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/eclipse/persistence/eclipselink/$ {derby-version}/eclipselink-${derby-version}.pom [INFO] Unable to find resource 'org.eclipse.persistence:eclipselink:pom:${derby- version}' in repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/apache/derby/derbyclient/${derby- version}/derbyclient-${derby-version}.pom [INFO] Unable to find resource 'org.apache.derby:derbyclient:pom:${derby-version }' in repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/apache/derby/derby/${derby-versio n}/derby-${derby-version}.pom
building the Confluence source code failed. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: javax.mail:mail:jar:1.3.3 Cause While running the command with -Dpackaging=jar -Dfile=javamail-1_3_3_01.zip will execute. Maven would happily install (ie. copy across and rename) the file into your local repository and show a BUILD SUCCESSFUL message. However, running the build script will give a Build Error. This is because Java dependencies are jars http://stackoverflow.com/questions/17986852/build-error-when-compiling-with-maven-failed-to-resolve-artifact and the same goes with maven. There is no way for Java or maven to know what to look for in the zip file. changing to -Dpackaging=zip will not work either. When you try to run the build script - maven will be looking for a jar file, while the https://confluence.atlassian.com/confkb/failed-to-resolve-artifact-missing-javax-mail-when-building-the-distribution-source-code-154633090.html mail-1.3.3.jar (or whatever version) in your local repository actually contains more than just a jar file's content (they are actually the original zip files that are renamed, hence contain other files that come together with the zip files which cannot be understood by Maven and JVM). Resolution Unzip javamail-1_3_3_01.zip and use the extracted jar file for your local repository installation. mvn install:install-file -DgroupId=javax.mail -DartifactId=mail -Dversion=1.3.3 -Dpackaging=jar -Dfile=mail.jar Was this helpful? Yes No Thanks for your feedback! Why was this unhelpful? It wasn't accurate It wasn't clear It wasn't relevant Submit feedback Cancel Have a question about this article? See questions about this article Powered by Confluence and Scroll Viewport Atlassian Support Ask the community Provide product feedback Contact technical support Atlassian Privacy Policy Terms of use Security Copyright © 2016 Atlassian Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.
SupportProducteev SupportTrainingMyJive GroupMyJive LicensesAbout UsAboutBlogsCareersJiveWorldProductsLog inRegister0SearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript https://community.jivesoftware.com/thread/78987 back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Jive-n & Jive-x All PlacesJive ProductsJive-n & Jive-x 0 Replies Latest reply on May 11, 2010 failed to 7:28 AM by rommel_m1 Maven build error. Failed to resolve artifact. rommel_m1 May 11, 2010 7:28 AM Hi,I'm trying to build a Jive SBS 4.0.1 war file using Maven on Windows and followed the sections “Maven: Start Here“, “How-To: Install Maven" and“settings.xml - For failed to resolve Licensed Customers and Partners" though I encountered the following errors: [INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR[INFO] ------------------------------------------------------------------------[INFO] Failed to resolve artifact.Missing:----------1) org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:0.9.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.openqa.selenium.client-drivers -DartifactId=selenium-java-client-driver -Dversion=0.9.2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.openqa.selenium.client-drivers -DartifactId=selenium-java-client-driver -Dversion=0.9.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.solutionset.verifone:web:war:1.0-SNAPSHOT 2) org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:0.9.22) com.jivesoftware:jive-sbs-public:war:4.0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.jivesoftware -DartifactId=jive-sbs-public -Dversion=4.0.1 -Dpackaging=war -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.jivesoftware -DartifactId=jive-sbs-public -Dversion=4.0.1 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.solutionset.verifone:web:war:1.0-SNAPSHOT 2) com.jivesoftware:jive-sbs-public:war:4.0.13) com.jivesoftware:jive-sbs-public:jar:4.0.1 Try downloading the file manually