# Incrementals:reincrementalify failed to run

**URL:** <https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388>\
**Category:** Code\
**Created:** [March 21, 2023, 5:11am UTC](https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388 "2023-03-21T05:11:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![accelq](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/accelq/32/3693_2.png) [@accelq](https://community.jenkins.io/u/accelq)\
**Post date:** [March 21, 2023, 5:11am UTC](https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388/1 "2023-03-21T05:11:14Z")

</div>

Where does this key needs to be set? using `mvn release:prepare release:perform`

[ERROR] Failed to execute goal io.jenkins.tools.incrementals:incrementals-maven-plugin:1.2:reincrementalify (default-cli) on project accelq-ci-connect: Cannot use reincrementalify before incrementals is enabled: Cannot use reincrementalify before incrementals is enabled:  
[ERROR] Please use ‘incrementals:incrementalify’ to enable incrementals

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [March 21, 2023, 7:53am UTC](https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388/2 "2023-03-21T07:53:47Z")

</div>

This error message suggests that you need to enable the `incrementals` feature in your Maven build before you can use the `reincrementalify` goal provided by the `incrementals-maven-plugin`.

To enable the `incrementals` feature, you can add the following configuration to your Maven settings.xml file:

```auto
<settings>
  <profiles>
    <profile>
      <id>jenkins</id>
      <activation>
        <property>
          <name>env.BUILD_NUMBER</name>
        </property>
      </activation>
      <properties>
        <maven.incremental.build>true</maven.incremental.build>
      </properties>
    </profile>
  </profiles>
</settings>

```

This configuration enables the `maven.incremental.build` property for Maven builds that are executed within a Jenkins environment (identified by the `BUILD_NUMBER` environment variable).

Once you have enabled the `incrementals` feature, you should be able to use the `incrementals:incrementalify` goal to enable incremental builds, which will allow you to use the `reincrementalify` goal later on. To do this, you can execute the following command:

```auto
mvn incrementals:incrementalify

```

This should enable incremental builds for your project and allow you to use the `reincrementalify` goal provided by the `incrementals-maven-plugin` .

---

<div class="post-metadata">

**Author:** ![basil](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@basil](https://community.jenkins.io/u/basil)\
**Post date:** [March 21, 2023, 3:53pm UTC](https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388/3 "2023-03-21T15:53:56Z")

</div>

> This configuration enables the `maven.incremental.build` property for Maven builds that are executed within a Jenkins environment (identified by the `BUILD_NUMBER` environment variable).

Was this answer written by ChatGPT? It is confident but completely incorrect. `incrementals-maven-plugin` doesn’t even contain the string `maven.incremental.build`.

Check [the archetype](https://github.com/jenkinsci/archetypes/blob/0c024b53e7b39ade3bd7e85c573437461c2805a4/empty-plugin/src/main/resources/archetype-resources/pom.xml) and make sure your plugin has the `<version>`, `<url>`, `<scm>`, and `<properties>` sections set as in the archetype. Look at an existing plugin like `email-ext` for an example if needed. If you still have problems, post a link to your `pom.xml` file in this thread.
