无法解决项目 org.alfresco:alfresco-transformer-base:jar:2.3.5-SNAPSHOT 的依赖关系:

huangapple go评论69阅读模式
英文:

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 -&gt; [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

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;

    &lt;parent&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
        &lt;version&gt;2.3.1.RELEASE&lt;/version&gt;
        &lt;relativePath /&gt;
    &lt;/parent&gt;

    &lt;groupId&gt;org.alfresco&lt;/groupId&gt;
    &lt;artifactId&gt;alfresco-transform-core&lt;/artifactId&gt;
    &lt;version&gt;2.3.5-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;

    &lt;properties&gt;
        &lt;java.version&gt;11&lt;/java.version&gt;
        &lt;maven.compiler.source&gt;11&lt;/maven.compiler.source&gt;
        &lt;maven.compiler.target&gt;11&lt;/maven.compiler.target&gt;

        &lt;image.tag&gt;latest&lt;/image.tag&gt;
        &lt;dependency.pdfbox.version&gt;2.0.19&lt;/dependency.pdfbox.version&gt;
        &lt;dependency.alfresco-jodconverter-core.version&gt;3.0.1.1&lt;/dependency.alfresco-jodconverter-core.version&gt;
        &lt;env.project_version&gt;${project.version}&lt;/env.project_version&gt;
        &lt;dependency.alfresco-transform-model.version&gt;1.0.2.11&lt;/dependency.alfresco-transform-model.version&gt;
        &lt;dependency.activemq.version&gt;5.15.9&lt;/dependency.activemq.version&gt;
        &lt;dependency.jackson.version&gt;2.10.3&lt;/dependency.jackson.version&gt;
        &lt;dependency.cxf.version&gt;3.3.5&lt;/dependency.cxf.version&gt;
        &lt;dependency.tika.version&gt;1.24.1&lt;/dependency.tika.version&gt;
        &lt;dependency.poi.version&gt;4.1.2&lt;/dependency.poi.version&gt;
        &lt;dependency.ooxml-schemas.version&gt;1.4&lt;/dependency.ooxml-schemas.version&gt;

        &lt;parent.core.deploy.skip&gt;false&lt;/parent.core.deploy.skip&gt;
    &lt;/properties&gt;


答案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/

&lt;groupId&gt;org.alfresco&lt;/groupId&gt;
&lt;artifactId&gt;alfresco-transform-core&lt;/artifactId&gt;
&lt;version&gt;2.3.5-SNAPSHOT&lt;/version&gt;
&lt;packaging&gt;pom&lt;/packaging&gt;

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/

huangapple
  • 本文由 发表于 2020年9月17日 21:43:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/63939434.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定