Skip to content

Failure to resolve local maven packages #2738

@Sytten

Description

@Sytten

We updated from version 2.3.3 to 2.3.5 and we started to get failures because the scanner cannot resolve the local package anymore.

The setup is fairly standard for Maven

-> pom.xml 
-> common-lib
 |-> pom.xml
-> api
|-> pom.xml

The root contains:

<project>
    <modules>
        <module>common-lib</module>
        <module>api</module>
      </modules>
</project>

And the api contains:

<project>
  <dependencies>
    <dependency>
      <groupId>my.business</groupId>
      <artifactId>common-lib</artifactId>
      <version>1.0.0</version>
    </dependency>
  </dependencies>
</project>

We now get:

Warning: plugin transitivedependency/pomxml can be risky when run on untrusted artifacts. Please ensure you trust the source code and artifacts before proceeding.
          Starting filesystem walk for root: /
          Scanned /home/runner/work/my-business/api/pom.xml file and found 23 packages
          End status: 0 dirs visited, 1 inodes visited, 1 Extract calls, 505.17µs elapsed, 505.236µs wall time
          Error during extraction: (extracting as transitivedependency/pomxml) failed resolving {Maven:my.business:api[Concrete:1.23.0] {}}: version Maven:my.business:common-lib[Concrete:1.0.0]: not found
          Filtered 9 local/unscannable package/s from the scan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions