Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1958

Architecture violation when building with maven

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Montreal Release
    • Montreal Release
    • CPS-Core
    • None

    Description

      When building on commandline using:

      mvn clean install

      The following error happens:

      [ERROR]   Architecture Violation [Priority: MEDIUM] - Rule 'classes that reside in a package 'org.onap.cps.api..' or reside in a package 'org.onap.cps.spi..' should only have dependent classes that reside in any package ['org.onap.cps.rest..', 'org.onap.cps.api..', 'org.onap.cps.spi..', 'org.onap.cps.ncmp.rest..', 'org.onap.cps.ncmp.api..', 'org.onap.cps.yang..', 'org.onap.cps.notification..', 'org.onap.cps.utils..', 'org.onap.cps.ncmp.init..']' was violated (1 times):
      Method <org.onap.cps.cache.HazelcastCacheConfig.initializeConfig(java.lang.String, com.hazelcast.config.NamedConfig)> references class object <org.onap.cps.spi.model.Dataspace> in (HazelcastCacheConfig.java:66)
      

      The commit 136379: [BUG] Set Hazelcast class loader | https://gerrit.onap.org/r/c/cps/+/136379 for CPS-1933 has introduced the issue.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              danielhanrahan Daniel Hanrahan
              danielhanrahan Daniel Hanrahan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: