ねこ元帥の中の人@リウマチ

日々の覚書など。ブログ名はオンラインゲームのアカウント名をいつも「ねこ元帥」にしているから。そして、2013年11月リウマチと診断されたとです。(2012年11月から時々手足に原因不明の痛みが発生、2013年9月以降は足の痛みが常態化、2013年12月30日からMTX服用開始、4月過ぎるころにはわずかの痛みが残る程度まで回復して現在に至る。)

coherence-incubatorのビルド

coherence-incubatorのソースをビルドしてみた。依存関係のためoracle-toolsもビルドする必要あり。

oracle-toolsビルド

準備
cd $COHERENCE_HOME/lib

mvn install:install-file \
  -DgroupId=com.oracle.coherence \
  -DartifactId=coherence \
  -Dversion=3.7.1.11 \
  -Dfile=coherence.jar \
  -Dpackaging=jar \
  -DgeneratePom=true
cd ~/git
git clone git@github.com:/coherence-community/oracle-tools.git
cd oracle-tools
ビルド実行
LC_ALL=en_US.UTF-8 mvn clean install -fn 2>&1 | tee install.log

※LC_ALLの指定は、テストでusageメッセージ出力をチェックしている個所があり、日本語のままだとエラーになってビルド失敗するため。

  • ビルド結果
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Oracle Tools ...................................... SUCCESS [1.704s]
[INFO] Oracle Tools Core ................................. SUCCESS [5.190s]
[INFO] Oracle Tools for Runtime Management ............... SUCCESS [7.085s]
[INFO] Oracle Tools for Testing .......................... SUCCESS [38.950s]
[INFO] Oracle Tools for Runtime Management (Functional Tests)  SUCCESS [5.102s]
[INFO] Oracle Tools for Coherence ........................ SUCCESS [3.306s]
[INFO] Oracle Tools for Coherence (Functional Tests) ..... FAILURE [4:56.968s]
[INFO] Oracle Tools for Testing Coherence ................ SUCCESS [1.645s]
[INFO] Oracle Tools Site ................................. SUCCESS [0.033s]
[INFO] Oracle Tools Distribution ......................... SUCCESS [5.101s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:05.328s
[INFO] Finished at: Sun Feb 16 14:38:43 JST 2014
[INFO] Final Memory: 61M/426M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project oracle-tools-coherence-tests: There are test failures.
[ERROR]
[ERROR] Please refer to /home/takamatu/git/oracle/oracle-tools/oracle-tools-coherence-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :oracle-tools-coherence-tests
[INFO] Build failures were ignored.

coherence-incubatorビルド

準備
cd $COHERENCE_HOME/lib

mvn install:install-file \
  -DgroupId=com.oracle.coherence \
  -DartifactId=coherence \
  -Dversion=12.1.2-0-1 \
  -Dfile=coherence.jar \
  -Dpackaging=jar \
  -DgeneratePom=true

mvn install:install-file \
  -DgroupId=com.oracle.coherence \
  -DartifactId=coherence-web \
  -Dversion=12.1.2-0-1 \
  -Dfile=coherence-web.jar \
  -Dpackaging=jar \
  -DgeneratePom=true
cat <<EOT > ~/.m2/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <!-- proxies
   | This is a list of proxies which can be used on this machine to connect to the network.
   | Unless otherwise specified (by system property or command-line switch), the first proxy
   | specification in this list marked as active will be used.
   |-->
  <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    -->
  </proxies>

  <profiles>
    <profile>
      <id>jdk-1.7</id>

      <activation>
        <jdk>1.7</jdk>
      </activation>

      <repositories>
        <repository>
          <id>jvisualvm</id>
          <name>jvisualvm</name>
          <url>http://bits.netbeans.org/nexus/content/groups/visualvm/</url>
          <layout>default</layout>
        </repository>
      </repositories>
    </profile>
  </profiles>
</settings>
EOT
git clone git@github.com:/coherence-community/coherence-incubator.git
cd coherence-incubator
ビルド実行
MAVEN_OPTS="-Djava.net.preferIPv4Stack=true
            -XX:MaxPermSize=512M
            -XX:+UseConcMarkSweepGC
            -XX:+CMSClassUnloadingEnabled
            -XX:+CMSClassUnloadingEnabled"

LC_ALL=en_US.UTF-8 mvn clean install -fn 2>&1 | tee install.log
  • ビルド結果
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Coherence Incubator ............................... SUCCESS [1.242s]
[INFO] Coherence Incubator Common ........................ SUCCESS [2:35.001s]
[INFO] Coherence Incubator Command Pattern ............... SUCCESS [4.325s]
[INFO] Coherence Incubator Command Pattern (examples) .... SUCCESS [1.829s]
[INFO] Coherence Incubator Functor Pattern ............... SUCCESS [2.185s]
[INFO] Coherence Incubator Functor Pattern (examples) .... SUCCESS [1.269s]
[INFO] Coherence Incubator JVisualVM Plugin .............. SUCCESS [11.560s]
[INFO] Coherence Incubator Processing Pattern ............ SUCCESS [10.336s]
[INFO] Coherence Incubator Processing Pattern (examples) . SUCCESS [1.393s]
[INFO] Coherence Incubator Messaging Pattern ............. SUCCESS [5.625s]
[INFO] Coherence Incubator Messaging Pattern (functional tests)  FAILURE [53.789s]
[INFO] Coherence Incubator Event Distribution Pattern .... SUCCESS [1:32.554s]
[INFO] Coherence Incubator Push Replication Pattern ...... SUCCESS [2.394s]
[INFO] Coherence Incubator Push Replication Pattern (functional tests)  FAILURE [6:10.529s]
[INFO] Coherence Incubator Push Replication Pattern (examples)  SUCCESS [1.709s]
[INFO] Coherence Incubator Push Replication Pattern *Web (examples)  SUCCESS [0.012s]
[INFO] Coherence Incubator Web Server .................... SUCCESS [1.564s]
[INFO] Coherence Incubator Web Application ............... SUCCESS [2.683s]
[INFO] Coherence Incubator Web Application Test .......... FAILURE [1:21.883s]
[INFO] Coherence Incubator Site .......................... SUCCESS [0.039s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:22.969s
[INFO] Finished at: Sun Feb 16 14:54:12 JST 2014
[INFO] Final Memory: 126M/758M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project coherence-messagingpattern-tests: There are test failures.
[ERROR]
[ERROR] Please refer to /home/takamatu/git/oracle/coherence-incubator/coherence-messagingpattern-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project coherence-pushreplicationpattern-tests: There are test failures.
[ERROR]
[ERROR] Please refer to /home/takamatu/git/oracle/coherence-incubator/coherence-pushreplicationpattern-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.13:test (default-test) on project webapp-test: There are test failures.
[ERROR]
[ERROR] Please refer to /home/takamatu/git/oracle/coherence-incubator/coherence-pushreplicationpattern-web-example/webapp-test/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :coherence-messagingpattern-tests
[INFO] Build failures were ignored.