Menu

Could not resolve dependencies for project com.adobe in maven central repo.

Could not resolve dependencies for project com.adobe.learning:aem-learning-core:jar:1.0.1: Could not find artifact org.apache.commons:commons-imaging:jar:1.0-R1534292 in central (https://repo.maven.apache.org/maven2)

If you ever come with this error that means the maven central doesn't have the artifact, and we have to use the adobe profile to successfully build the code.

add parameter "-Padobe-public" with your maven build command.

e.g. mvn clean install -Padobe-public 

How to declare two classes for element with SCSS?

Below is an example of SCSS code using that we are generating two classes that are being use for the same html element.

SCSS code

.image-text {
@media(max-width:600px){
        &--celebrate-page .image-text {
            &__htext.image-text__htext {
                
                &--v {
                    &-center {
                        margin-top: -20%;
                    }
                }
            }
        }
    }
}


Result in CSS

@media (max-width: 600px) {
	 .image-text--celebrate-page .image-text__htext.image-text__htext--v-center {
		 margin-top: -20%;
	}
}
 

Package contains application content which isn't supported at runtime

Problem statement

Error while uploading the package in AMasCS; Package (or it's subpackage(s)) contains application content which isn't supported at runtime.

Possible reason

The package which you are trying to upload is not allowed. If that is your project code package, please use the cloud manager pipeline to build and deploy the code to AEMasCS env.