Build Problem with Maven

983 views
Skip to first unread message

martin fluch

unread,
May 4, 2014, 12:36:57 PM5/4/14
to ope...@googlegroups.com
Hi everybody,
 
just setup my new build environ with maven / cloned the current openhab git repository and tried to build the whole package with mvn clean install / without success
 
Everything seems to be ok until Sitemap Build:
 
[INFO] openHAB DMX Binding Tests ......................... SUCCESS [  6.411 s]
[INFO] openHAB RFXCOM Binding ............................ SUCCESS [  0.574 s]
[INFO] openHAB Samsung TV Binding ........................ SUCCESS [  0.304 s]
[INFO] openHAB Pulseaudio Binding ........................ SUCCESS [  0.311 s]
[INFO] openHAB Homematic Binding ......................... SUCCESS [  0.642 s]
[INFO] openHAB Homematic Binding Tests ................... SUCCESS [ 13.882 s]
[INFO] openHAB Model Sitemap ............................. FAILURE [ 41.764 s]
[INFO] openHAB UIs ....................................... SKIPPED
[INFO] openHAB UI ........................................ SKIPPED
[INFO] openHAB Koubachi Binding .......................... SKIPPED
...
Details on Sitemap:
 
[INFO] ------------------------------------------------------------------------
[INFO] Building openHAB Model Sitemap 1.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.openhab.model.sitemap ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.19.0:build-qualifier (default-build-qualifier) @ org.openhab.model.sitemap ---
[INFO] The project's OSGi version is 1.5.0.201405041625
[INFO]
[INFO] --- tycho-packaging-plugin:0.19.0:validate-id (default-validate-id) @ org.openhab.model.sitemap ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.19.0:validate-version (default-validate-version) @ org.openhab.model.sitemap ---
[INFO]
[INFO] --- fornax-oaw-m2-plugin:3.3.0:run-workflow (default) @ org.openhab.model.sitemap ---
[INFO] Fornax Model Workflow Maven2 Plugin V3.3.0
[INFO] 0    INFO  StandaloneSetup    - Registering platform uri '/home/mf/openhab/openhab/bundles/model'
[INFO] 1332 INFO  DirectoryCleaner   - Cleaning /home/mf/openhab/openhab/bundles/model/org.openhab.model.sitemap/../org.openhab.model.sitemap/src-gen
[INFO] 1333 INFO  DirectoryCleaner   - Cleaning /home/mf/openhab/openhab/bundles/model/org.openhab.model.sitemap/../org.openhab.model.sitemap.ui/src-gen
[INFO] 1545 INFO  LanguageConfig     - generating infrastructure for org.openhab.model.Sitemap with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, JavaValidatorFragment, ImportNamespacesScopingFragment, QualifiedNamesFragment, BuilderIntegrationFragment, FormatterFragment, LabelProviderFragment, OutlineTreeProviderFragment, QuickOutlineFragment, QuickfixProviderFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment
[INFO] 6093 INFO  GenModelHelper     - Registered GenModel 'http://www.openhab.org/model/Sitemap' from 'platform:/resource/org.openhab.model.sitemap/src-gen/org/openhab/model/Sitemap.genmodel'
[INFO] 27340 INFO  JavaValidatorFragment - generating Java-based EValidator API
[ERROR] ExitStatusException occurred while running workflow: Java returned: 137
Some infos about the systems:
 
mf@devel:~/openhab/openhab$ mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /opt/maven/apache-maven-3.2.1
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-i386/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.2.0-4-686-pae", arch: "i386", family: "unix"
mf@devel:~/openhab/openhab$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1~deb7u1)
OpenJDK Client VM (build 23.7-b01, mixed mode, sharing)
 
Any hints or known issues on that ?
 
Martin

Kai Kreuzer

unread,
May 5, 2014, 6:19:57 PM5/5/14
to ope...@googlegroups.com
Hi Martin,

This might be a memory problem. Can you confirm that you have

Set MAVEN_OPTS to -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m ?

Best regards,
Kai
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

martin fluch

unread,
May 10, 2014, 11:28:09 AM5/10/14
to ope...@googlegroups.com
Hi Kai,
 
yes, sure after granting more memory (2gig) in xen configuration (the development environment is running in in a xen session) it seems to go further
 
[INFO] openHAB Model Core ................................ SUCCESS [  0.321 s]
[INFO] openHAB Model Items ............................... FAILURE [  6.803 s]
[INFO] openHAB Bluetooth Binding ......................... SKIPPED
[INFO] openHAB Serial Transport .......................... SKIPPED
 
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:44 min
[INFO] Finished at: 2014-05-10T17:22:46+01:00
[INFO] Final Memory: 204M/495M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.fornax.toolsupport:fornax-oaw-m2-plugin:3.4.0:run-workflow (default) on project org.openhab.model.item: Workflow execution failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.fornax.toolsupport:fornax-oaw-m2-plugin:3.4.0:run-workflow (default) on project org.openhab.model.item: Workflow execution failed.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Workflow execution failed.
        at org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:476)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
[ERROR]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.openhab.model.item
the mvn args are correct:
 
mf@devel:~/openhab/openhab$ env | grep MAVEN
MAVEN_OPTS=-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m
Martin

Kai Kreuzer

unread,
May 10, 2014, 3:25:25 PM5/10/14
to ope...@googlegroups.com
Hi Martin,

hm, this does not tell me much :-(
Is there anything more helpful higher up in the logfile that could give a hint?

Regards,
Kai

martin fluch

unread,
May 11, 2014, 1:51:08 PM5/11/14
to ope...@googlegroups.com
Hi Kai,
 
find the whole log with debug enabled attached. To ensure that no version conflicts between maven and maybe java exist (i used last version von maven and java 1.7 when i started) i changed for the current try to maven 3.0.5 and java 1.6 but with the same result.
 
Martin
 

On Sunday, May 4, 2014 6:36:57 PM UTC+2, martin fluch wrote:
mf.log
Message has been deleted

Thomas Eichstädt-Engelen

unread,
Jun 13, 2014, 6:30:20 AM6/13/14
to ope...@googlegroups.com
Hi Martin,

that’s strange! Do you still have this problem?

My configuration is:

thomass-mbp:MERGE_AREA thomasee$ mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /Users/thomasee/Dev/Tools/apache-maven-3.2.1
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.3", arch: "x86_64", family: "mac"

so we use the same maven but different JDK version on a different OS. Our Jenkins works on Unix as well, so this should not be the problem at all. Could you please do a clean checkout of the openHAB repo and see what happens? Just to be sure nothing got corrupted meanwhile.

Thanks in advance,

Thomas E.-E.



--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
<mf.log>

robert...@gmail.com

unread,
Aug 4, 2014, 11:23:37 PM8/4/14
to ope...@googlegroups.com
Hi there,

I've encountered the same problem. It stopped while building model.item(please refer to the attached log).

Here's my configuration:
-> % env | grep MAVEN
MAVEN_OPTS
=-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=1024m

-> % mvn -v
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T21:51:42+08:00)
Maven home: /usr/local/Cellar/maven/3.2.2/libexec
Java version: 1.7.0_60, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: US-ASCII
OS name
: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"

Does it have to be UNIX or Linux to build the source successfully?
openhab_build.log

Thomas E.-E.

unread,
Aug 5, 2014, 4:21:44 AM8/5/14
to ope...@googlegroups.com, robert...@gmail.com
Hi,

> Does it have to be UNIX or Linux to build the source successfully?

no it doesn't … my machine runs MacOS 10.9.4 as well and works perfectly. Really strange issue :-/

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 06:06 min

[INFO] Finished at: 2014-08-05T10:19:54+01:00

[INFO] Final Memory: 261M/503M

[INFO] ------------------------------------------------------------------------



Could you please try to rename your local .m2 repo (please just rename don't delete) and see if the build works?

Best, Thomas E.-E.

robert...@gmail.com

unread,
Aug 5, 2014, 11:29:56 PM8/5/14
to ope...@googlegroups.com, robert...@gmail.com
Hi Thomas,

I've rename the .m2 then rebuild again. It turned out same result. Please see the attachment.



Thomas E.-E.於 2014年8月5日星期二UTC+8下午4時21分44秒寫道:
rename_m2_mvn_clean_install.log

robert...@gmail.com

unread,
Aug 5, 2014, 11:31:03 PM8/5/14
to ope...@googlegroups.com, robert...@gmail.com
Hi, I've re-downloaded the repo again to start fresh. This time, it build successfully. Thanks! :)

Thomas E.-E.於 2014年8月5日星期二UTC+8下午4時21分44秒寫道:
Reply all
Reply to author
Forward
0 new messages