Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
opps. we do need to use the assembly plugin to copy the agent
Browse files Browse the repository at this point in the history
add log4j config when running the installer from pom
fail the build if the installer fails
  • Loading branch information
jmazzitelli committed Oct 30, 2015
1 parent 1254f59 commit 006a003
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/assembly.xml
Expand Up @@ -139,6 +139,7 @@
<outputDirectory>${hawkular.dist.zip.root.dir}/modules</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>org.hawkular.agent:hawkular-monitor-wf-extension:zip:</include>
<include>org.hawkular.accounts:hawkular-accounts-keycloak-event-listener-rest:zip:module</include>
<include>org.hawkular.accounts:hawkular-accounts-keycloak-event-listener-jms:zip:module</include>
</includes>
Expand Down
33 changes: 33 additions & 0 deletions dist/log4j.xml
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 Red Hat, Inc. and/or its affiliates
and other contributors as indicated by the @author tags.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<param name="Threshold" value="INFO"/>
<param name="Target" value="System.out"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t] (%c{5}) - %m%n"/>
</layout>
</appender>
<root>
<appender-ref ref="CONSOLE"/>
</root>
</log4j:configuration>
10 changes: 10 additions & 0 deletions dist/pom.xml
Expand Up @@ -245,6 +245,16 @@
<argument>--hawkular-username=jdoe</argument>
<argument>--hawkular-password=password</argument>
</arguments>
<systemProperties>
<systemProperty>
<key>log4j.configuration</key>
<value>file:${basedir}/log4j.xml</value>
</systemProperty>
<systemProperty>
<key>org.hawkular.wildfly.monitor.installer.throw-exception-on-error</key>
<value>true</value>
</systemProperty>
</systemProperties>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -85,7 +85,7 @@
<version.commons.io>2.4</version.commons.io>
<version.gnu.getopt>1.0.13</version.gnu.getopt>
<version.org.hawkular.accounts>1.1.0.Final-SRC-revision-7c7b7e76a9ffcb254a11c45eedb393c0068f69d1</version.org.hawkular.accounts>
<version.org.hawkular.agent>0.12.0.Final-SRC-revision-df66be516d4f04c8fd37e5beada28c8713f4c32d</version.org.hawkular.agent>
<version.org.hawkular.agent>0.12.0.Final-SRC-revision-22f567f0b2f1e35395aa1e2e05c40bdb7ce91a60</version.org.hawkular.agent>
<version.org.hawkular.alerts>0.5.0.Final</version.org.hawkular.alerts>
<version.org.hawkular.bus>0.7.2.Final-SRC-revision-51939085c81845b21841503921d48442dde6f32b</version.org.hawkular.bus>
<version.org.hawkular.commons>0.2.2.Final</version.org.hawkular.commons>
Expand Down

0 comments on commit 006a003

Please sign in to comment.