2016-06-14 7 views
1

これに続いてcygnus-commonをインストールしようとしていますが、cygnus-common jar(依存関係を含む)を作成すると常に空のjarが作成されます。 Apache-Flumeは問題なくインストールされています。私はガイドに従ってMaven JVMのメモリを増やそうとしましたが、これは助けにはなりません。cygnus-commonのパッケージ化が空のjarファイル

~/fiware-cygnus/cygnus-common$ mvn clean compile exec:exec 
assembly:single 
[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building cygnus-common 1.1.0 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cygnus-common --- 
[INFO] Deleting /home/cygnus/fiware-cygnus/cygnus-common/target 
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cygnus-common --- 
[INFO] Using 'UTF-8' encoding to copy filtered resources. 
[INFO] Copying 2 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ cygnus-common --- 
[INFO] Compiling 50 source files to /home/cygnus/fiware-cygnus/cygnus-common/target/classes 
[INFO] 
[INFO] --- exec-maven-plugin:1.5.0:exec (default-cli) @ cygnus-common --- 
[INFO] 
[INFO] --- maven-assembly-plugin:2.6:single (default-cli) @ cygnus-common --- 
[INFO] Building jar: /home/cygnus/fiware-cygnus/cygnus-common/target/cygnus-common-1.1.0-jar-with-dependencies.jar 
Killed 

はここで結果ファイル

~/fiware-cygnus/cygnus-common$ ls -lrth target/ 
total 12K 
drwxrwxr-x 3 cygnus cygnus 4.0K Jun 13 14:57 generated-sources 
drwxrwxr-x 3 cygnus cygnus 4.0K Jun 13 14:57 classes 
drwxrwxr-x 2 cygnus cygnus 4.0K Jun 13 14:57 archive-tmp 
-rw-rw-r-- 1 cygnus cygnus 0 Jun 13 14:58 cygnus-common-1.1.0-jar-with-dependencies.jar 

同様のquestion文書化されていない解像度を前に頼まれたのです。その質問に対して提示された唯一の提案は、ディスク領域、メモリ、またはパーミッションの不足です。ディスク容量は明らかに問題ではなく、私はMaven JVMのメモリを増やしており、ユーザは正しいパーミッションを持っています。

EDIT:@frbにより示唆されるように

は、だから私はmvn compileデバッグモードで実行し、それは私がメモリ使用量が終わったことを確認することができたtopを使用して

# 
# There is insufficient memory for the Java Runtime Environment to continue. 
# Native memory allocation (malloc) failed to allocate 257024000 bytes for committing reserved memory. 
# Possible reasons: 
# The system is out of physical RAM or swap space 
# In 32 bit mode, the process size limit was hit 
# Possible solutions: 
# Reduce memory load on the system 
# Increase physical memory or swap space 
# Check if swap backing store is full 
# Use 64 bit Java on a 64 bit OS 
# Decrease Java heap size (-Xmx/-Xms) 
# Decrease number of Java threads 
# Decrease Java thread stack sizes (-Xss) 
# Set larger code cache with -XX:ReservedCodeCacheSize= 
# This output file may be truncated or incomplete. 
# 
# Out of Memory Error (os_linux.cpp:2827), pid=48868, tid=140567873734400 

    [1]: http://fiware-cygnus.readthedocs.io/en/latest/cygnus-common/installation_and_administration_guide/install_from_sources/index.html#section3 "guide" 

メモリの問題でしたプロセスが終了したときに70%。システムには〜1.7Gbがあり、これは前述のrequirementsをはるかに上回り、64ビットシステムです。

私はシステムメモリを3Gbに増やしてビルドに成功したので、おそらくハードウェア要件を更新する必要がありますか?

+0

私はMavenログを見ることができます(他の問題はそれを投稿しませんでした)、JVMが十分なメモリを持っていない可能性がありますか? [this](https://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError)リンクを試してください。 – frb

+0

@frbに返信してくれてありがとう私は上記のようにメモリを増やしてみましたが、問題は解決しませんでした。私はもう一度試しましたが、残念ながら空瓶はまだ空です。 –

+0

ええ、SOFの関連する質問のほとんどはメモリの問題を指摘しています... Mavenのデバッグモードを有効にする '-X'オプションで実行しようとしましょう。関連する部品を掲示してください。 – frb

答えて

1

システムメモリを3Gbに増やすとこの問題が解決され、jarが正常に作成されました。

関連する問題