Building JavaFX 2.0 Presentation 1.1.0-SNAPSHOT - fails

337 views
Skip to first unread message

maiklos

unread,
Jan 26, 2014, 5:21:35 PM1/26/14
to jrebirt...@googlegroups.com
Hello,
I am new to JavaFX and JRebirth and I would like to see some application built with it.
I tried to clone some apps from github JRebirth repository but none of it builds for me.

i.e. JFX-Presentation seems to download artifacts from repo.jrebirth.org and fails

(M=a6916) maiklos@BLACKPEARL ~/workspace/JFX-Presentation/org.jrebirth.presentation.javafx2> mvn clean test
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building JavaFX 2.0 Presentation 1.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ javafx2 ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ javafx2 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 66 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ javafx2 ---
[INFO] Compiling 104 source files to /home/maiklos/workspace/JFX-Presentation/org.jrebirth.presentation.javafx2/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ javafx2 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/maiklos/workspace/JFX-Presentation/org.jrebirth.presentation.javafx2/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ javafx2 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ javafx2 ---
Downloading: http://repo.jrebirth.org/jrebirth-plugin-snapshot-local/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom
Downloading: http://repo.jrebirth.org/jrebirth-plugin-snapshot-local/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-common-2.10.pom
Downloading: http://repo.jrebirth.org/jrebirth-plugin-snapshot-local/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.471s
[INFO] Finished at: Sun Jan 26 23:01:54 CET 2014
[INFO] Final Memory: 15M/101M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project javafx2: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.10 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 (): Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.10: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.10 from/to snapshots (http://repo.jrebirth.org/jrebirth-plugin-snapshot-local): Failed to transfer file: http://repo.jrebirth.org/jrebirth-plugin-snapshot-local/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.pom. Return code is: 409 , ReasonPhrase:Conflict. -> [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/PluginResolutionException

mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: /opt/maven
Java version: 1.8.0-ea, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-15-generic", arch: "amd64", family: "unix"


do you have any idea what could be the problem?
Thanks
maiklos

Sebastien Bordes

unread,
Jan 27, 2014, 4:02:28 AM1/27/14
to jrebirt...@googlegroups.com
Hi Maiklos,

The problem is that JRebirth hadn't been ever built over Carribean sea ....


More seriously, the repo you try to build was the first application and doesn't have all latest improvements into its build configuration.

So the JFX-Presentation repo rely on repo.jrebirth.org server which is often offline due to energy savings (this is the reason why your build has failed), It was powered on this morning if you want to retry but I doesn't build this repo since serveral months.

Moreover I have never used Java 8 to build them, currently JRebirth only uses Java 7 (u51 works), but it could works.

You can try a more recent repo like this one : https://github.com/JRebirth/JRebirth-Presentation which hasn't got any direct link to repo.jrebirth.org.

To fix repositories problem, you can add this profile to your maven settings.xml file (explained here : http://jrebirth.org/doc/Installation.html)

<profiles>
    <profile>
        <id>JRebirth_All-In-One</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
            <repository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>central</id>
                <name>libs-release</name>
                <url>http://oss.jfrog.org/artifactory/libs-release</url>
            </repository>
            <repository>
                <snapshots />
                <id>snapshots</id>
                <name>libs-snapshot</name>
                <url>http://oss.jfrog.org/artifactory/libs-snapshot</url>
            </repository>
            <repository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>jcenter</id>
                <name>bintray</name>
                <url>http://jcenter.bintray.com</url>
            </repository>
            <repository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>jrebirth-release</id>
                <name>libs-release</name>
                <url>http://repo.jrebirth.org/libs-release</url>
            </repository>
            <repository>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
                <id>jrebirth-snapshot</id>
                <name>libs-snapshot</name>
                <url>http://repo.jrebirth.org/libs-snapshot</url>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>central</id>
                <name>plugins-release</name>
                <url>http://oss.jfrog.org/artifactory/plugins-release</url>
            </pluginRepository>
            <pluginRepository>
                <snapshots />
                <id>snapshots</id>
                <name>plugins-snapshot</name>
                <url>http://oss.jfrog.org/artifactory/plugins-snapshot</url>
            </pluginRepository>
            <pluginRepository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>jcenter-plugin</id>
                <name>bintray-plugins</name>
                <url>http://jcenter.bintray.com</url>
            </pluginRepository>
            <pluginRepository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>jrebirth-plugin-release</id>
                <name>plugins-release</name>
                <url>http://repo.jrebirth.org/plugins-release</url>
            </pluginRepository>
            <pluginRepository>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
                <id>jrebirth-plugin-snapshot</id>
                <name>plugins-snapshot</name>
                <url>http://repo.jrebirth.org/plugins-snapshot</url>
            </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>




























































































Currently JRebirth is released on OJO, Bintray & JCenter servers

The new 7.7.0 version will be pushed on Maven Central to be more convenient for people that don't have any proxy repository and don't want to play with maven profiles.


If you want to see some applications in action, you can run them into your browser:

http://jrebirth.org/apps/Breizhcamp.html for JFX-;the application is also downloadable here : http://apps.jrebirth.org/breizhcamp/

like other applications, in all cases you should accept security warning to launch JRebirth jnlp files


Don't hesitate to report me troubles you experioenced.

Seb

Sebastien Bordes

unread,
Jan 27, 2014, 4:03:52 AM1/27/14
to jrebirt...@googlegroups.com
Sorry for lot of carriage return, google groups has still a nasty bug with firefox text editor....


Seb

Le dimanche 26 janvier 2014 23:21:35 UTC+1, maiklos a écrit :

Sebastien Bordes

unread,
Jan 27, 2014, 4:17:09 AM1/27/14
to jrebirt...@googlegroups.com
Addendum

The Breizhcamp.zip file is badly packaged, if you want to run the latest application build (JFX-Presentation repo), run this jnlp:

http://apps.jrebirth.org/breizhcamp/1.1.0-SNAPSHOT/Breizhcamp.jnlp

This is a french presentation of JavaFX 2 done at Breizhcamp conference.

I've just tried it with Java 7u51.

Seb

Sebastien Bordes

unread,
Jan 27, 2014, 4:42:13 AM1/27/14
to jrebirt...@googlegroups.com
Another important thing run this amven command instead:

mvn clean install because no tests are provided and with this old repo seetings you have a failure while downloading a release plugin from a snaphost plugin repo (jrebirth plugin repo are empty, it's quite strange... that your build try to download surefire from it, it's probably to your local maven settings)


Seb

Le dimanche 26 janvier 2014 23:21:35 UTC+1, maiklos a écrit :

maiklos

unread,
Jan 27, 2014, 4:36:42 PM1/27/14
to jrebirt...@googlegroups.com
Hi Sebastien,
I've tried as you suggested and added settings to my ~/.m2/settings.xml

then I tried to build JRebirth-Presentation

with:  mvn jar:jar I get...


[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building JRebirth Application Framework Presentation 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-cli) @ jaf ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/maiklos/workspace/JRebirth-Presentation/org.jrebirth.presentation.jaf/target/jaf-1.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

with: mvn package I get...
INFO] <<< webstart-maven-plugin:1.0-beta-3:jnlp (default) @ jaf <<<
[INFO]
[INFO] --- webstart-maven-plugin:1.0-beta-3:jnlp (default) @ jaf ---
[WARNING] Error injecting: org.codehaus.mojo.webstart.sign.DefaultSignTool
java.lang.NoClassDefFoundError: org/codehaus/mojo/keytool/KeyToolException

    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)
    at java.lang.Class.getDeclaredConstructors(Class.java:2007)
    at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
    at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99)
    at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:653)
    at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:863)
    at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
....

I've tried java 6/7/8 maven 2.x/3.0.5/3.1.1
I suspect it relies on java keytool but it is in the PATH.
any advice what could be a problem ?

Maiklos


maiklos

unread,
Jan 27, 2014, 5:59:39 PM1/27/14
to jrebirt...@googlegroups.com
Hi Sebastien,

I could run: http://apps.jrebirth.org/breizhcamp/1.1.0-SNAPSHOT/Breizhcamp.jnlp manually (not via web browser) with javaws (java 7).
with java8 I't hit some extra security restriction so I couldn't run it.
Thank you for sending me the link.

besides of that could you please disclose url for showcase jnlp for me ?
My browser doesn't have java7 plugin so I can't run it via browser.
If I have JNLP link I can run it with javaws.

Maiklos

Sebastien Bordes

unread,
Jan 28, 2014, 3:57:47 AM1/28/14
to jrebirt...@googlegroups.com
Hi Maiklos,

You should add this parameter when you call your command line:

-Xmx1024m
-XX:MaxPermSize=256M
-Xbootclasspath/p:/usr/lib/jvm/default-java/jre/lib/jfxrt.jar

It add javafx library to jre classpath (mandatory for java 7), I've written this small hack 2 years ago... (you can add it to the jre system libraries into JRE definition panel of eclipse)

Then you must call mvn clean install, I don't think that jar goal is sufficient to build all files.

All applications listed on the website are here: http://apps.jrebirth.org
But all showaces demo are here: http://showcases.jrebirth.org

With newer security restrictions, it's impossible to deploy an unsigned jnlp that could be run out of the bow on any browser :( I tried with a real certificate (free for OSS) but it didn't work as expected too.

Seb

Sebastien Bordes

unread,
Apr 14, 2014, 3:44:58 PM4/14/14
to jrebirt...@googlegroups.com
Just a word to say that all demo applications are now operational with a real signed certificate Open Source provided by Certum

Seb
Reply all
Reply to author
Forward
0 new messages