A Guide to setup and use Plantuml
- JRE: https://adoptopenjdk.net/
- GraphViz: https://graphviz.org/download/
- VSCode IDE: https://code.visualstudio.com/Download
- vs code Plugin: https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
package com.aem.project.core.servlets; | |
import com.adobe.cq.commerce.common.ValueMapDecorator; | |
import com.adobe.granite.ui.components.ds.DataSource; | |
import com.adobe.granite.ui.components.ds.SimpleDataSource; | |
import com.adobe.granite.ui.components.ds.ValueMapResource; | |
import com.day.crx.JcrConstants; | |
import org.apache.commons.collections4.iterators.TransformIterator; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; |
---Reactor pom (add dependencies) | |
<dependency> | |
<groupId>com.adobe.acs</groupId> | |
<artifactId>acs-aem-commons-content</artifactId> | |
<version>3.2.4</version> | |
<type>content-package</type> | |
<classifier>min</classifier> | |
</dependency> | |
<dependency> |
Plantuml
Copy script to AEM groovy console, change parameters and run!
package blog.techrevel.api; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import org.apache.commons.codec.binary.Base64; |
package com.techrevel.dam.core.servlets; | |
import java.io.IOException; | |
import java.util.Dictionary; | |
import javax.servlet.Servlet; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.servlets.HttpConstants; |
package com.techrevel.dam.core.workflows; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import javax.jcr.Binary; | |
import javax.jcr.Node; |
This is how I quickly got an Apache Zepplin notebook running against the AWS Glue Dev endpoint. None of the guides out there seemed concise, and I found some custom Docker containers doing what you can do easily. This gives you the power - it sets up port forwarding & runs the official Docker image.
ssh-keygen
)ssh -i ~/.ssh/glue-dev -vnNT -L :9007:*127.0.0.1*:9007 glue@<ec2-endpoint>.<region>.compute.amazonaws.com
GitHub allows automated builds using GitHub Actions. A commonly asked question is how to release artifacts (packaged Java jars) built by Maven and Gradle to The Central Repository. The GitHub Actions documentation provides only part of the answer.
So, first, configure your Maven project for staging artifacts to The Central Repository, by reading through Configuring Your Project for Deployment and following those steps. Please make sure that the maven-gpg-plugin is configured to prevent gpg
from using PIN entry programs, as follows:
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
loopback