[Hawkular-dev] Download hawkular-dist from Maven

Lucas Ponce lponce at redhat.com
Sun May 24 14:04:46 EDT 2015


Hi,

I was having an issue with my maven configuration when I wanted to use hawkular-dist artifact with wildfly plugin.

Finally I have found that I had to change the <classifier> param in my pom.xml.

I have this one and it works:

          <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <configuration>
              <groupId>org.hawkular</groupId>
              <artifactId>hawkular-dist</artifactId>
              <version>1.0.0-SNAPSHOT</version>
              <!-- <classifier>distribution</classifier> -->
              <skip>${skipTests}</skip>
              <port>${wildfly.management.port}</port>
            </configuration>
            <executions>
              <execution>
                <id>start-wildfly</id>
                <phase>pre-integration-test</phase>
                <goals>
                  <goal>start</goal>
                </goals>
                <configuration>
                  <javaOpts>
                    <javaOpt>-Xms64m</javaOpt>
                    <javaOpt>-Xmx512m</javaOpt>
                    <javaOpt>-Xss256k</javaOpt>
                    <javaOpt>-Djava.net.preferIPv4Stack=true</javaOpt>
                    <javaOpt>-Dsun.rmi.dgc.client.gcInterval=3600000</javaOpt>
                    <javaOpt>-Dsun.rmi.dgc.server.gcInterval=3600000</javaOpt>
                    <javaOpt>-Djboss.socket.binding.port-offset=${wildfly.port.offset}</javaOpt>
                    <javaOpt>-Djboss.server.data.dir=${project.build.directory}/wildfly-data</javaOpt>
                    <javaOpt>-Dhawkular-metrics.backend=embedded_cass</javaOpt>
                    <javaOpt>-Xdebug</javaOpt>
                    <javaOpt>-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787</javaOpt>
                  </javaOpts>
                </configuration>
              </execution>
              <execution>
                <id>stop-wildfly</id>
                <phase>post-integration-test</phase>
                <goals>
                  <goal>shutdown</goal>
                </goals>
              </execution>
            </executions>
          </plugin>


Hope this can save some time.

Lucas


More information about the hawkular-dev mailing list