我刚刚签出了这个项目https://github.com/tjeerdnet/onedriveapi
我的目标是运行它。
[INFO] ------------------------------------------------------------------------
[INFO] Building OneDriveAPI 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ OneDriveAPI ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ OneDriveAPI ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 22 source files to C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[3,38] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:3: package com.fasterxml.jackson.databind does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[4,33] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:4: package com.sun.jersey.api.client does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[5,33] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:5: package com.sun.jersey.api.client does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[6,33] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:6: package com.sun.jersey.api.client does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[7,32] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:7: package com.sun.jersey.core.util does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[12,17] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:12: package org.slf4j does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[13,17] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:13: package org.slf4j does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[15,24] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:15: package javax.ws.rs.core does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[16,24] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:16: package javax.ws.rs.core does not exist
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[20,26] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:20: cannot find symbol
symbol : class Logger
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[30,13] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:30: cannot find symbol
symbol : class Client
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[39,25] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:39: cannot find symbol
symbol : class Client
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[54,28] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:54: cannot find symbol
symbol : class MultivaluedMap
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[77,36] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:77: cannot find symbol
symbol : class MultivaluedMap
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[77,12] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:77: cannot find symbol
symbol : class ClientResponse
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[91,12] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:91: cannot find symbol
symbol : class ClientResponse
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[104,29] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:104: cannot find symbol
symbol : class MultivaluedMap
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[124,29] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:124: cannot find symbol
symbol : class MultivaluedMap
location: class net.tjeerd.onedrive.core.OneDriveCore
[ERROR] /C:/Grafica Specifiche/IntegrareOneDrive/OneDriveAPI/trunk/src/main/java/net/tjeerd/onedrive/core/OneDriveCore.java:[147,28] C:\Grafica Specifiche\IntegrareOneDrive\OneDriveAPI\trunk\src\main\java\net\tjeerd\onedrive\core\OneDriveCore.java:147: cannot find symbol
symbol : class MultivaluedMap
location: class net.tjeerd.onedrive.core.OneDriveCore
...
[ERROR] symbol : class MultivaluedMapImpl
[ERROR] location: class net.tjeerd.onedrive.core.OneDrive
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/MojoFailureException
java.lang.UnsupportedClassVersionError: org/eclipse/jetty/server/Handler : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Exception in thread "main"
我的所作所为有什么问题?
我对maven和JEE很陌生,很抱歉noob的问题
我也有过一些类似的事情。问题出在java版本上。确保在编写应用程序的系统中安装了相同的java版本(Major和minor)。
上周,我们的团队决定从Netbean迁移到Eclipse,因为我们开发了一些只能在Eclipse上运行的新插件。 首先,项目开始使用来自pom的my maven插件
null null 的POM: 的POM:http://maven.apache.org/xsd/maven-4.0.0.xsd“>4.0.0 此项目成功地从顶部编译,但运行失败:
这是我的文件: 这是Maven命令输出
我想在我的maven项目中使用Sikulix,但它不起作用,我试图像它所说的那样添加存储库(http://sikulix-2014.readthedocs.org/en/latest/faq/030-java-dev.html#a-comment-on-projects-using-maven),当我进行“MVN安装”时,它说“不能找到工件com.Sikulix:sikulixapi:jar:1.
我有一个多项目的gradle构建。其中一个名为project2的子项目使用war插件。我希望这个子项目同时生成一个war和一个jar,但我只将jar文件上传到maven artifactory。我在父构建中执行了以下操作。gradle文件: 这将正确地生成一个project1 jar和一个project2 war,并上传project1 jar。然而,这也上传了Project2War,这是我不想要
我有一个使用Gradle作为构建工具的项目和第二个使用Maven的POM的子项目。我没有在子项目上更改构建工具的自由。 我想要实现的是将我的项目添加到Maven POM中,作为我的Gradle项目的依赖项。 其中root(当前目录)是我的Gradle项目,并包含,Maven项目位于下,POM文件就在该目录下。 我在我的< code>build.gradle文件中尝试了这些变化: 第一次尝试: 第二