Skip to content

Instantly share code, notes, and snippets.

set gradle home to local gradle unzipped
build.gradle
buildscript {
ext.kotlin_version = '1.2.10'
repositories {
maven { url 'http://repo1.sbcore.net:8081/artifactory/DPAY-VR' }
}
@boser87
boser87 / When you're building with Maven and your company's proxy is giving you problems...
Last active October 19, 2015 15:13
When you're building with Maven and your company's proxy is giving you problems...
Configure your settings.xml so that Maven downloads artifacts from https://repo1.maven.org instead of http.
...
<profiles>
<!-- profile
| Specifies a set of introductions to the build process, to be activated using one or more of the
| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
| or the command line, profiles have to have an ID that is unique.
|
| An encouraged best practice for profile identification is to use a consistent naming convention
If you want to run AEM in debug mode and your Java heap space is not enough, AEM will try to fork a new process to get enough memory.
The debug options used to start the parent JVM are not passed on to the forked process by default.
By default, you would use the following command to run AEM in debug mode from console:
java -Xmx1520m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=30303,suspend=n -jar cq-author-4502.jar
If you don't have enough memory you will have this output in the console:
java -Xmx512m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=30303,suspend=n -jar aem-xxx.jar