Не удалось разрешить зависимости для проекта в героку - PullRequest
0 голосов
/ 20 апреля 2019

Я пытаюсь развернуть веб-приложение maven в Heroku, которое зависит от какого-либо другого приложения.Когда я пытаюсь развернуть приложение и получаю эту ошибку.Я понятия не имею, что происходит при передаче зависимости.

Это мой pom.xml файл

http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.springframework.boot spring-boot-starter-parent2.1.3.RELEASE com.merizameen merizameen 0.0.1-SNAPSHOT merizameen Проект внешнего интерфейса для Merizameen

<properties>
    <start-class>com.merizameen.MerizameenApplication</start-class>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <!-- MY PROJECT -->
    <dependency>
        <groupId>com.merizameen</groupId>
        <artifactId>merizameenbackend</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-thymeleaf</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

Журналы ошибок ---------

  [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 6.953 s
   [INFO] Finished at: 2019-04-16T18:29:11+00:00
   [INFO] Final Memory: 20M/162M
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal on project merizameen: Could not resolve dependencies for project com.merizameen:merizameen:jar:0.0.1-SNAPSHOT: Could not find artifact com.merizameen:merizameenbackend:jar:0.0.1-SNAPSHOT -> [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/DependencyResolutionException

!ОШИБКА. Не удалось создать приложение с помощью Maven. Приносим извинения за сбой сборки!Если вы не можете найти проблему в коде приложения, отправьте заявку, чтобы мы могли помочь: https://help.heroku.com/!Push отклонен, не удалось скомпилировать приложение Java.!Нажать не удалось

1 Ответ

0 голосов
/ 20 апреля 2019

Вам нужно будет добавить com.merizameen:merizameenbackend в качестве неуправляемой зависимости с помощью такой команды:

$ mvn deploy:deploy-file -Durl=file:///path/to/yourproject/repo/ -Dfile=merizameenbackend.jar -DgroupId=com.merizameen -DartifactId=merizameenbackend -Dpackaging=jar -Dversion=1.0

См. Это руководство: https://devcenter.heroku.com/articles/local-maven-dependencies

...