Skip to content

hacking

Josef Cacek edited this page Aug 10, 2016 · 1 revision

Hacking

Unsorted collection of various tips & tricks.


I have a .pem private key and want the public part in format suitable for SSH, e.g. so I can put it into OpenStack:

ssh-keygen -y -f cloudsts.pem

I want to make some changes to the azurecompute JClouds Labs provider and test them locally. Go into the azurecompute directory, put this into pom.xml and run mvn clean package source:jar install -DskipTests:

  <version>2.0.0-eapqe.4.ladicek</version>

  <repositories>
    <repository>
      <id>jboss-qa-releases</id>
      <name>JBoss QA release repository</name>
      <url>...</url>
    </repository>
    <repository>
      <id>jboss-qa-snapshots</id>
      <name>JBoss QA snapshot repository</name>
      <url>...</url>
    </repository>
  </repositories>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <executions>
          <execution>
            <id>default</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.gaul</groupId>
        <artifactId>modernizer-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>modernizer</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

For the azurecompute-arm JClouds Labs provider, you have to do the same and also replace all occurences of ${project.version} in the pom.xml by ${project.parent.version}.

Clone this wiki locally