Variable ${project.version} in maven-checkstyle-plugin comes from child projekt

I have project with camel parent.

  <parent>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-parent</artifactId>
      <version>2.23.1</version>
   </parent>

 <groupId>my.project</groupId>
 <artifactId>myArtifact</artifactId>
 <name>myArtifact</name>
 <version>1.0.0-SNAPSHOT</version>
 ...

When I run

mvn checkstyle:check 

I receive:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (default-cli) on project demo: 
Execution default-cli of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check failed: 
Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0 or one of its dependencies could not be resolved: 
Could not find artifact org.apache.camel:camel-buildtools:jar:1.0.0-SNAPSHOT

1.0.0-SNAPSHOT comes from my project version = 1.0.0-SNAPSHOT

This is part off camel-parent-2.23.1.pom

<plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>${maven-checkstyle-plugin-version}</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.camel</groupId>
              <artifactId>camel-buildtools</artifactId>
              <version>${project.version}</version>
            </dependency>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${maven-checkstyle-version}</version>
            </dependency>

I suppose that mvn checkstyle:check have to use camel version(2.23.1) as project.version.

Why does this not work?

Answer:1

I've used chkBox.setIcon(); chkBox.setSelectedIcon(); chkBox.setDisabledIcon(); chkBox.setDisabledSelectedIcon(); to set custom icons for my JCheckbox. But now, if the focus moves to one of the ...

I want to create an index for an specific sql call in which I join two tables and I don't know how to insert the outer column. This is what I currently have: <changeSet id="1234" author="name" &...

I am trying to create a splash screen that displays a gif animation. The thing about my Splash screen I want to actually make it appear after the main() function returns (Main() just creates a login ...

I am using ant to make a build system for our android project which has two build targets, Dev and Release. This involves replacing the default -package-resources target with my own one in my build....