You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksandr Polovtcev (Jira)" <ji...@apache.org> on 2021/09/30 18:19:00 UTC

[jira] [Updated] (IGNITE-15662) It is impossible to add a test-jar dependency to the CLI module

     [ https://issues.apache.org/jira/browse/IGNITE-15662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksandr Polovtcev updated IGNITE-15662:
-----------------------------------------
    Summary: It is impossible to add a test-jar dependency to the CLI module  (was: It is impossible to add test-jar dependency to the CLI module)

> It is impossible to add a test-jar dependency to the CLI module
> ---------------------------------------------------------------
>
>                 Key: IGNITE-15662
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15662
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Aleksandr Polovtcev
>            Assignee: Petr Ivanov
>            Priority: Minor
>              Labels: ignite-3
>
> h2. Steps to reproduce
> 1. Add a {{test-jar}} dependency to the {{pom.xml}} of the {{ignite-cli}} module, for example:
> {code:java}
> <dependency>
>     <groupId>org.apache.ignite</groupId>
>     <artifactId>ignite-core</artifactId>
>     <scope>test</scope>
>     <type>test-jar</type>
> </dependency>{code}
> 2. Run the following command from the repository root:
> {code:java}
> mvn package -Dmaven.test.skip -Dmaven.all-checks.skip
> {code}
> h2. Expected behavior
> The project is built successfully.
> h2. Actual behavior
> The project cannot be built and the following error appears:
> {code:java}
> [ERROR] Failed to execute goal on project ignite-cli: Could not resolve dependencies for project org.apache.ignite:ignite-cli:jar:3.0.0-SNAPSHOT: Could not find artifact org.apache.ignite:ignite-core:jar:tests:3.0.0-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots) -> [Help 1]
> {code}
> h2. Supposed cause
> {{ignite-cli}} module uses the {{maven-antrun-plugin}} to create a self-executing JAR. This plugin requires the test dependencies to be present during the {{package}} execution phase (see the [source code|#L67]), w]), which are not present because of the {{maven.test.skip}} flag.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)