Skip to content

Project not created under given parent project #395

@skasten

Description

@skasten

Hi,

I am using plugin version 1.6.0. I want the plugin to create a "subproject" under a given "parent project" in DTrack.
I added the parent project manually in DTrack and also gave it a version.

I set the following variables on BOM upload.

  <plugin>
      <groupId>io.github.pmckeown</groupId>
      <artifactId>dependency-track-maven-plugin</artifactId>
      <version>1.6.0</version>
      <configuration>
          <dependencyTrackBaseUrl>https://dtrack.example.com</dependencyTrackBaseUrl>
          <apiKey>${env.CI_DTRACK_API_KEY}</apiKey>
          <projectVersion>${env.CI_COMMIT_REF_SLUG}</projectVersion>
          <updateProjectInfo>true</updateProjectInfo>
          <updateParent>true</updateParent>
          <parentName>MY Parent</parentName>
          <parentVersion>ALL</parentVersion>
          <pollingConfig>
              <enabled>true</enabled>
              <pause>500</pause>
              <attempts>40</attempts>
              <timeUnit>MILLIS</timeUnit>
          </pollingConfig>
      </configuration>
  </plugin>

My expectation is, that running the BOM upload the first time, the project gets created under the given parent project "MY Parent" "ALL".

But it does not work. The project will be created but in the "root" of DTrack, not under the parent. Is my expectation wrong and the "parentName"/"parentVersion" + updateParent setting is for something else?

Thanks for the help in advance.

Best Regards,
Sven

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions