[
https://issues.apache.org/jira/browse/MCHECKSTYLE-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770300#comment-16770300
]
Adam Hornáček commented on MCHECKSTYLE-368:
-------------------------------------------
Plugin definition from the top level pom.xml:
{code}
<build>
...
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>8.17</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>checkstyle</id>
<phase>validate</phase>
<configuration>
<configLocation>/dev/checkstyle/style.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<suppressionsLocation>/dev/checkstyle/suppressions.xml</suppressionsLocation>
<headerLocation>/dev/checkstyle/fileheader.txt</headerLocation>
<sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
{code}
Dependency that is causing the issue:
{code}
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>opengrok</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
{code}
I also uploaded `mvn_debug.out` file.
Please let me know if you need any other information.
Thanks :)
> 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
(v7.6.3#76005)