| @Qualifier | |
| public @interface Selected { | |
| } | |
| @RequestScoped | |
| public class ReportOptions { | |
| public String reportName; | |
| public String format; |
| use_locks 0 | |
| ask_auth 1 | |
| if_match_bug 1 |
| #!/bin/sh | |
| #echo Updating Aesh ... | |
| #cd ~/workspace/aesh && git pull && mvn clean install -DskipTests; | |
| echo Updating Furnace... | |
| cd ~/workspace/furnace-parent && git pull && mvn clean install -DskipTests; | |
| echo Updating Furnace CDI ... | |
| cd ~/workspace/furnace-cdi && git pull && mvn clean install -DskipTests; | |
| echo Updating Furnace Simple... | |
| cd ~/workspace/furnace-simple && git pull && mvn clean install -DskipTests; | |
| echo Updating Forge 2.x ... |
Most of us won’t be able to use/deploy JDK 8 in production for a looong time. But that shouldn’t stop us from using it, right?
It should be possible to sneak in JDK 8 in the back way, the same way we snuck in Groovy and other libraries we wanted to use.
| - name: ensure github.com is a known host | |
| lineinfile: | |
| dest: /root/.ssh/known_hosts | |
| create: yes | |
| state: present | |
| line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}" | |
| regexp: "^github\\.com" |
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
-
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
-
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
-
Save that list to some path
-
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
| #Install the required plugins | |
| addon-install-from-git --url https://github.com/forge/wildfly-swarm-addon.git | |
| addon-install-from-git --url https://github.com/forge/keycloak-addon.git | |
| # Create the project and configure the WildFly Swarm maven plugin | |
| project-new --named demo --stack JAVA_EE_7 --type wildfly-swarm | |
| # Create the JPA entity | |
| jpa-new-entity --named Customer |
| // This is the class inside the application | |
| public class App implements SwarmCallback { | |
| public static void main(String[] args) { | |
| // Swarm.run will do the dirty job of initializing a JBoss Modules module and callback the methods defined in App | |
| Swarm.run(new App(),args); | |
| } | |
| @Override | |
| public void deploy(Swarm swarm) { |
| #!/bin/bash | |
| : ${1:?"groupId is required"} | |
| : ${2:?"artifactId is required"} | |
| : ${3:?"version is required"} | |
| # eg. ~/monitor.sh org.wildfly.swarm spi 1.0.8.Final | |
| GROUP_ID=${1//.//} | |
| ARTIFACT_ID=$2 | |
| VERSION=$3 |