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

Architecture violation when building with maven

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: