Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
import java.lang.reflect.Type; | |
import java.util.List; | |
import com.google.gson.Gson; | |
import com.google.gson.reflect.TypeToken; | |
public class MapData { | |
private int id; | |
private String city; | |
private String street; |
git clone <repo-address> | |
git tag -l | |
git checkout <tag-name> | |
git branch -D master | |
git checkout -b master |
To include dependencies for Adobe Experience Manager 6 (AEM6) one can use one of the following | |
approaches. | |
a) Use a single dependency that will include other dependencies through transitive dependencies. | |
Please note that unlike the 2nd approach this approach will not include all dependencies. | |
<dependency> | |
<groupId>com.adobe.aem</groupId> | |
<artifactId>aem-api</artifactId> | |
<version>6.0.0.1</version> |
#!/bin/bash | |
find ./ -name ".vlt" | xargs rm -Rf |
username=$(grep -o '<username>.*</username>' ~/.m2/settings.xml | sed 's/\(<username>\)//g' | sed 's/\(<\/username>\)//g') | |
password=$(grep -o '<password>.*</password>' ~/.m2/settings.xml | sed 's/\(<password>\)//g' | sed 's/\(<\/password>\)//g') |
+-----------------------+ | |
| /etc/rc.d/init.d/cq5 | | |
+-----------------------+ | |
#!/bin/bash | |
# | |
# cq5 Startup script for Adobe AEM/CQ5 | |
# | |
# chkconfig: 345 80 20 | |
# description: Startup script for Adobe AEM/CQ5 |
#!/bin/bash | |
# a script to make it easier for developers to start multiple CQ instances | |
# Default Settings | |
version=5.6.1 | |
root=~/dev/cq | |
publish= | |
debug="true" | |
gui=-gui |
private javax.jcr.Session jcrSession; | |
private org.sakaiproject.nakamura.api.lite.Repository repository; | |
private org.sakaiproject.nakamura.api.lite.Session session; | |
// Create an in-memory repository to work with | |
repository = new BaseMemoryRepository().getRepository(); | |
// mock a jcr session but also include SessionAdaptable for easier mocking to a sparse session | |
jcrSession = mock(javax.jcr.Session.class, Mockito.withSettings().extraInterfaces(SessionAdaptable.class)); |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/