- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 windows 8.1
中使用 Jfrog Artifactory
。我通过 Artifactory
deploy
选项部署了 hibernate jars
。但是当我尝试使用 maven
clean install
选项时,我最终出现了以下错误。
[ERROR] Failed to execute goal on project hibernate: Could not resolve dependencies for project com.bala.exercises.hibernate:hibernate:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:3.8.1 (test), com.fasterxml:classmate:jar:1.0.0 (compile), dom4j:dom4j:jar:1.6.1 (compile), hibernate-core:hibernate-core:jar:4.3.5.Final (compile), hibernate-commons-annotations:hibernate-commons-annotations:jar:4.0.4.Final (compile), hibernate-jpa:hibernate-jpa:jar:1.0.0.Final:2.1-api (compile), org.jboss:jandex:jar:1.1.0.Final (compile), org.javassist:javassist:jar:3.18.1-GA (compile), org.jboss.logging:jboss-logging:jar:3.1.3.GA (compile), mysql-connector-java:mysql-connector-java:jar:bin:5.1.31 (compile)]: Failed to read artifact descriptor for hibernate-core:hibernate-core:jar:4.3.5.Final: Could not transfer artifact hibernate-core:hibernate-core:pom:4.3.5.Final from/to balahome server (http://localhost:8080/artifactory/ bala-libs-mandatories): Illegal character in path at index 34: http://localhost:8080/artifactory/ bala-libs-mandatories/hibernate-core/hibernate-core/4.3.5.Final/hibernate-core-4.3.5.Final.pom -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project hibernate: Could not resolve dependencies for project com.bala.exercises.hibernate:hibernate:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:3.8.1 (test), com.fasterxml:classmate:jar:1.0.0 (compile), dom4j:dom4j:jar:1.6.1 (compile), hibernate-core:hibernate-core:jar:4.3.5.Final (compile), hibernate-commons-annotations:hibernate-commons-annotations:jar:4.0.4.Final (compile), hibernate-jpa:hibernate-jpa:jar:1.0.0.Final:2.1-api (compile), org.jboss:jandex:jar:1.1.0.Final (compile), org.javassist:javassist:jar:3.18.1-GA (compile), org.jboss.logging:jboss-logging:jar:3.1.3.GA (compile), mysql-connector-java:mysql-connector-java:jar:bin:5.1.31 (compile)]
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.bala.exercises.hibernate:hibernate:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:3.8.1 (test), com.fasterxml:classmate:jar:1.0.0 (compile), dom4j:dom4j:jar:1.6.1 (compile), hibernate-core:hibernate-core:jar:4.3.5.Final (compile), hibernate-commons-annotations:hibernate-commons-annotations:jar:4.0.4.Final (compile), hibernate-jpa:hibernate-jpa:jar:1.0.0.Final:2.1-api (compile), org.jboss:jandex:jar:1.1.0.Final (compile), org.javassist:javassist:jar:3.18.1-GA (compile), org.jboss.logging:jboss-logging:jar:3.1.3.GA (compile), mysql-connector-java:mysql-connector-java:jar:bin:5.1.31 (compile)]
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [junit:junit:jar:3.8.1 (test), com.fasterxml:classmate:jar:1.0.0 (compile), dom4j:dom4j:jar:1.6.1 (compile), hibernate-core:hibernate-core:jar:4.3.5.Final (compile), hibernate-commons-annotations:hibernate-commons-annotations:jar:4.0.4.Final (compile), hibernate-jpa:hibernate-jpa:jar:1.0.0.Final:2.1-api (compile), org.jboss:jandex:jar:1.1.0.Final (compile), org.javassist:javassist:jar:3.18.1-GA (compile), org.jboss.logging:jboss-logging:jar:3.1.3.GA (compile), mysql-connector-java:mysql-connector-java:jar:bin:5.1.31 (compile)]
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for hibernate-core:hibernate-core:jar:4.3.5.Final
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
... 25 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact hibernate-core:hibernate-core:pom:4.3.5.Final from/to balahome server (http://localhost:8080/artifactory/ bala-libs-mandatories): Illegal character in path at index 34: http://localhost:8080/artifactory/ bachan-libs-mandatories/hibernate-core/hibernate-core/4.3.5.Final/hibernate-core-4.3.5.Final.pom
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
... 28 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact hibernate-core:hibernate-core:pom:4.3.5.Final from/to balahome server (http://localhost:8080/artifactory/ bala-libs-mandatories): Illegal character in path at index 34: http://localhost:8080/artifactory/ bachan-libs-mandatories/hibernate-core/hibernate-core/4.3.5.Final/hibernate-core-4.3.5.Final.pom
at org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1546)
at org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1537)
at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask.flush(AsyncRepositoryConnector.java:1035)
at org.sonatype.aether.connector.async.AsyncRepositoryConnector.get(AsyncRepositoryConnector.java:409)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:457)
... 31 more
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 34: http://localhost:8080/artifactory/ bachan-libs-mandatories/hibernate-core/hibernate-core/4.3.5.Final/hibernate-core-4.3.5.Final.pom
at java.net.URI.create(Unknown Source)
at com.ning.http.client.RequestBuilderBase.buildUrl(RequestBuilderBase.java:299)
at com.ning.http.client.RequestBuilderBase.setUrl(RequestBuilderBase.java:294)
at com.ning.http.client.AsyncHttpClient$BoundRequestBuilder.setUrl(AsyncHttpClient.java:333)
at com.ning.http.client.AsyncHttpClient.requestBuilder(AsyncHttpClient.java:560)
at com.ning.http.client.AsyncHttpClient.prepareGet(AsyncHttpClient.java:405)
at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask.run(AsyncRepositoryConnector.java:596)
at org.sonatype.aether.connector.async.AsyncRepositoryConnector.get(AsyncRepositoryConnector.java:402)
... 32 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 34: http://localhost:8080/artifactory/ bachan-libs-mandatories/hibernate-core/hibernate-core/4.3.5.Final/hibernate-core-4.3.5.Final.pom
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
... 40 more
我下载并部署了相应的 pom
文件,但没有成功。此外,除非退出 eclipse,否则我无法清理 Windows 8.1 中的 .m2 存储库。
谢谢。
最佳答案
当您有像这样的大量嵌套堆栈跟踪时,记住原始原因位于底部会很有帮助(其余的是上下文,在某些情况下可能有用)。在本例中是
java.net.URISyntaxException: Illegal character in path at index 34: http://localhost:8080/artifactory/ bachan-libs-mandatories/hibernate-core/hibernate-core/4.3.5.Final/hibernate-core-4.3.5.Final.pom
然后很容易看到路径http://localhost:8080/artifactory/bala-libs-mandatories
中有一个空格。如果是拼写错误,请将其删除,否则将其编码为 %20。
关于java - Maven 全新安装失败 [索引路径中存在非法字符],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24829415/
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求提供代码的问题必须表现出对所解决问题的最低限度理解。包括尝试过的解决方案、为什么它们不起作用,以及预
为什么在 C# 中添加两个 char 结果是 int 类型? 例如,当我这样做时: var pr = 'R' + 'G' + 'B' + 'Y' + 'P'; pr 变量变为 int 类型。我希望它是
下面的代码可以编译,但 char 类型的行为与 int 类型的行为不同。 特别是 cout ::ikIsX >() ::ikIsX >() ::ikIsX >() using names
我正在寻找一个正则表达式,它可以匹配长度为 1 个或多个字符但不匹配 500 的内容。这将在 Rails 路由文件中使用,特别是用于处理异常。 路线.rb match '/500', to: 'err
对于 C 编程作业,我正在尝试编写几个头文件来检查所谓的“X 编程语言”的语法。我最近才开始,正在编写第一个头文件。这是我编写的代码: #ifndef _DeclarationsChecker_h_
为什么扩展的 ascii 字符(â、é 等)被替换为 字符? 我附上了一张图片...但我正在使用 PHP 从 MySQL 中提取数据,其中一些位置有扩展字符...我使用的是 Arial 字体。 您可以
我有一个与 R 中的断线相关的简单问题。 我正在尝试粘贴,但在获取(字符/数字)之间的断线时遇到问题。请注意,这些值包含在向量中(V1=81,V2=55,V3=25)我已经尝试过这段代码: cat(p
如何将 ANSI 字符 (char) 转换为 Unicode 字符 (wchar_t),反之亦然? 是否有用于此目的的任何跨平台源代码? 最佳答案 是的,在 中你有mbstowcs()和 wcsto
函数 fromCharCode 不适用于国际 ANSI 字符。例如,对于 ID 为 192 到 223 的俄语 ANSI (cp-1251) 字符,它返回特殊字符。如何解决这个问题? 我认为,需要将A
如果不喜欢,我想隐藏 id,但不起作用 SELECT * FROM character, character_actor WHERE character.id NOT LIKE character_a
现在这个程序成功地反转了键盘输入的单词。但是我想在我反转它之前“保存”指针中的单词,所以我可以比较两者,反转的和“原始的”,并检查它们是否是回文。我还没有太多经验,可能会出现比我知道的更多的错误,但我
Memcpy 和 memcmp 函数可以接受指针变量吗? char *p; char* q; memcpy(p,q,10); //will this work? memcmp(p,q,10); //w
恐怕我对一个相当过饱和的主题的细节有疑问,我搜索了很多,但找不到一个明确的答案来解决这个特定的明显-imho-重要的问题: 使用UTF-8将byte[]转换为String时,每个字节(8bit)都变成
我有一个奇怪的问题。我需要从 stat 命令打印输出字符串。 我已经编写了获取一些信息的代码。 import glob import os for file in glob.glob('system1
我正在使用 Java 并具有其值如下所示的字符串, String data = "vale-cx"; data = data.replaceAll("\\-", "\\-\\"); 我正在替换其中的“
String urlParameters = "login=test&password=te&ff"; 我有一个String urlParams,& - 是密码的一部分,如何使其转义,从而不被识别为分
大家好,我只想从此字符串中提取第一个字母: String str = "使 徒 行 傳 16:31 ERV-ZH"; 我只想获取这些字符: 使 徒 行 傳 并且不包括 ERV-ZH 仅数
这个问题已经有答案了: Crash or "segmentation fault" when data is copied/scanned/read to an uninitialized point
所以, 我有一个字符**;它本质上是一个句子,带有指向该句子中每个单词的指针;即 'h''i''\0''w''o''r''l''d''\0''y''a''y''!''\0' 在这种情况下,我希望使用可
这个问题在这里已经有了答案: Using quotation marks inside quotation marks (12 个答案) 关闭 7 年前。 如何打印 " 字符? 我知道打印 % 符号
我是一名优秀的程序员,十分优秀!