英文:
Could not resolve dependencies for project org.alfresco:alfresco-transformer-base:jar:2.3.5-SNAPSHOT:
问题
我已经克隆了下面的Alfresco项目,一直在尝试编译这个应用程序,但是我得到了以下错误。我已经在我的Mac上下载了Maven。
有解决方案吗?
https://github.com/Alfresco/alfresco-transform-core
[INFO] 构建失败
[INFO] -------------------------------------------------------------------
[INFO] 总时间: 2.342秒
[INFO] 完成于: 2020-09-17T14:36:10+01:00
[INFO] -------------------------------------------------------------------
[ERROR] 无法执行 alfresco-transformer-base 项目的目标: 无法解析 org.alfresco:alfresco-transform-model:jar:1.0.2.11 的依赖项,位于 https://repo.maven.apache.org/maven2 中未找到,已经缓存在本地存储库中,将不会重新尝试解决,直到中央仓库的更新间隔已过或已强制更新 -> [帮助 1]
org.apache.maven.lifecycle.LifecycleExecutionException: 无法执行 alfresco-transformer-base 项目的目标: 无法解析 org.alfresco:alfresco-transform-model:jar:1.0.2.11 的依赖项,位于 https://repo.maven.apache.org/maven2 中未找到,已经缓存在本地存储库中,将不会重新尝试解决,直到中央仓库的更新间隔已过或已强制更新
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
以下是我使用的 pom.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
<relativePath />
</parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-transform-core</artifactId>
<version>2.3.5-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<java.version>11</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<image.tag>latest</image.tag>
<dependency.pdfbox.version>2.0.19</dependency.pdfbox.version>
<dependency.alfresco-jodconverter-core.version>3.0.1.1</dependency.alfresco-jodconverter-core.version>
<env.project_version>${project.version}</env.project_version>
<dependency.alfresco-transform-model.version>1.0.2.11</dependency.alfresco-transform-model.version>
<dependency.activemq.version>5.15.9</dependency.activemq.version>
<dependency.jackson.version>2.10.3</dependency.jackson.version>
<dependency.cxf.version>3.3.5</dependency.cxf.version>
<dependency.tika.version>1.24.1</dependency.tika.version>
<dependency.poi.version>4.1.2</dependency.poi.version>
<dependency.ooxml-schemas.version>1.4</dependency.ooxml-schemas.version>
<parent.core.deploy.skip>false</parent.core.deploy.skip>
</properties>
请注意,我只翻译了您提供的代码和问题的相关部分。如果您需要进一步的帮助,请提出具体问题。
英文:
I have cloned the below alfresco project, have been trying to compile the application, however, I am getting the below errors. I have downloaded the maven on my mac.
Any Solutions?
https://github.com/Alfresco/alfresco-transform-core
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.342 s
[INFO] Finished at: 2020-09-17T14:36:10+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project alfresco-transformer-base: Could not resolve dependencies for project org.alfresco:alfresco-transformer-base:jar:2.3.5-SNAPSHOT: Failure to find org.alfresco:alfresco-transform-model:jar:1.0.2.11 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project alfresco-transformer-base: Could not resolve dependencies for project org.alfresco:alfresco-transformer-base:jar:2.3.5-SNAPSHOT: Failure to find org.alfresco:alfresco-transform-model:jar:1.0.2.11 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
Below is my pom.xml file that i am using
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
<relativePath />
</parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-transform-core</artifactId>
<version>2.3.5-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<java.version>11</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<image.tag>latest</image.tag>
<dependency.pdfbox.version>2.0.19</dependency.pdfbox.version>
<dependency.alfresco-jodconverter-core.version>3.0.1.1</dependency.alfresco-jodconverter-core.version>
<env.project_version>${project.version}</env.project_version>
<dependency.alfresco-transform-model.version>1.0.2.11</dependency.alfresco-transform-model.version>
<dependency.activemq.version>5.15.9</dependency.activemq.version>
<dependency.jackson.version>2.10.3</dependency.jackson.version>
<dependency.cxf.version>3.3.5</dependency.cxf.version>
<dependency.tika.version>1.24.1</dependency.tika.version>
<dependency.poi.version>4.1.2</dependency.poi.version>
<dependency.ooxml-schemas.version>1.4</dependency.ooxml-schemas.version>
<parent.core.deploy.skip>false</parent.core.deploy.skip>
</properties>
答案1
得分: 1
这个 alfresco 依赖在 https://repo.maven.apache.org/maven2 上不可用。
检查这个链接 https://repo.maven.apache.org/maven2/org/alfresco/
<groupId>org.alfresco</groupId>
<artifactId>alfresco-transform-core</artifactId>
<version>2.3.5-SNAPSHOT</version>
<packaging>pom</packaging>
更新:
你需要在你的仓库文件中手动添加这些依赖才能使它工作。
附注:alfresco-transform-core 最后可用版本为 2.3.4 https://artifacts.alfresco.com/nexus/content/repositories/releases/org/alfresco/alfresco-transform-core/2.3.4/
https://artifacts.alfresco.com/nexus/content/repositories/releases/org/alfresco/alfresco-transform-model/1.0.2.11/
英文:
This alfresco dependency is not available on https://repo.maven.apache.org/maven2.
Check this link https://repo.maven.apache.org/maven2/org/alfresco/
<groupId>org.alfresco</groupId>
<artifactId>alfresco-transform-core</artifactId>
<version>2.3.5-SNAPSHOT</version>
<packaging>pom</packaging>
Update :
You need to add these dependencies manually in your repo files to get it work
PS: alfresco-transform-core last available version is 2.3.4 https://artifacts.alfresco.com/nexus/content/repositories/releases/org/alfresco/alfresco-transform-core/2.3.4/
https://artifacts.alfresco.com/nexus/content/repositories/releases/org/alfresco/alfresco-transform-model/1.0.2.11/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论