You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Marwell (Jira)" <ji...@apache.org> on 2019/12/14 11:53:00 UTC

[jira] [Commented] (MCHECKSTYLE-368) Missing test-jar on mvn compile

    [ https://issues.apache.org/jira/browse/MCHECKSTYLE-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996340#comment-16996340 ] 

Benjamin Marwell commented on MCHECKSTYLE-368:
----------------------------------------------

[~ahornace] I see you are not dependent on this feature anymore: [https://github.com/oracle/opengrok/pull/2259#issuecomment-499005113]

What is the use case to attach a {{test-jar}} anyway? Why would you recycle test classes in another project?

> Missing test-jar on mvn compile
> -------------------------------
>
>                 Key: MCHECKSTYLE-368
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-368
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Adam Hornáček
>            Priority: Minor
>         Attachments: mvn_debug.out
>
>
> Hello,
> we have a multi-module Maven project. One of the subprojects depends on test-jar. Everything seems to work fine until I enable Maven Checkstyle Plugin in this subproject. Then `mvn compile` target fails; however, `mvn package` works fine.
> The error message:
> {code}
> [ERROR] Failed to execute goal on project opengrok-web: Could not resolve dependencies for project org.opengrok:opengrok-web:war:1.2.1: Failure to find org.opengrok:opengrok:jar:tests:1.2.1 in http://repo.maven.apache.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of maven.org has elapsed or updates are forced -> [Help 1]
> {code}
> PR containing changes that cause this issue:
> https://github.com/oracle/opengrok/pull/2259
> Thanks.



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