Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Java Programming 24-Hour Trainer by Yakov Fain
|
BOOK: Java Programming 24-Hour Trainer by Yakov Fain
This is the forum to discuss the Wrox book Java Programming 24-Hour Trainer by Yakov Fain; ISBN: 978-0-470-88964-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Java Programming 24-Hour Trainer by Yakov Fain section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2011, 07:49 AM
Registered User
 
Join Date: Jul 2007
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default Lesson 37:Try It - problems with step 5 - mvn install

Hi
I worked through the step-by-step of the JavaFX example and all was ok until step 5. This is where you go to the directory java24trainer/java-ee/lesson37 and run "mvn install" command.
I always get an error - BUILD FAILURE. I have checked the PATH settings and it looks ok, with all the necessary paths in there.

The error I get is:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.346s
[INFO] Finished at: Fri Jun 24 12:18:50 BST 2011
[INFO] Final Memory: 2M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'com.practicaljava.maven.plugin:gf-plugin' from the repositories [local (/Users/Patrick/.m2/repository), maven.glassfish.java.net (http://download.java.net/maven/glassfish), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository -> [Help 1]
[ERROR]

Also there is a warning before this error is shown, which is:

[WARNING] Some problems were encountered while building the effective model for com.practicaljava:lesson37-javafx-ui:jar:1.0
[WARNING] 'build.plugins.plugin.version' for com.practicaljava.maven.plugin:jfx-plugin is missing. @ line 32, column 21

This error at step 5 also seems to mean step 8 doesn't work, so I'm stuck at this point, which is a shame, as I'd like to see JavaFX in action, having set it up myself.

Any help appreciated.
 
Old June 29th, 2011, 09:23 AM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default A possible solution to the problem in step 5

Check what version you're using Maven. Examples from the book compiled using version 2.2.1. It is quite possible that you are using version 3.0, which gives Build erros

Quote:
Originally Posted by barcapat View Post
Hi
I worked through the step-by-step of the JavaFX example and all was ok until step 5. This is where you go to the directory java24trainer/java-ee/lesson37 and run "mvn install" command.
I always get an error - BUILD FAILURE. I have checked the PATH settings and it looks ok, with all the necessary paths in there.

The error I get is:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.346s
[INFO] Finished at: Fri Jun 24 12:18:50 BST 2011
[INFO] Final Memory: 2M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin 'com.practicaljava.maven.plugin:gf-plugin' from the repositories [local (/Users/Patrick/.m2/repository), maven.glassfish.java.net (http://download.java.net/maven/glassfish), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository -> [Help 1]
[ERROR]

Also there is a warning before this error is shown, which is:

[WARNING] Some problems were encountered while building the effective model for com.practicaljava:lesson37-javafx-ui:jar:1.0
[WARNING] 'build.plugins.plugin.version' for com.practicaljava.maven.plugin:jfx-plugin is missing. @ line 32, column 21

This error at step 5 also seems to mean step 8 doesn't work, so I'm stuck at this point, which is a shame, as I'd like to see JavaFX in action, having set it up myself.

Any help appreciated.
 
Old April 4th, 2012, 06:04 AM
Authorized User
 
Join Date: Feb 2012
Posts: 30
Thanks: 5
Thanked 4 Times in 4 Posts
Default

I get the same "Error resolving version for plugin gf-plugin" when running the script to create a new domain in GlassFish (Step 8 of Try It).
I use GlassFish Server 3.1.2 Open Source Edition, Apache Maven 3.0.4, Java version 1.7.0_02.
I'm stuck and don't know what to do next, any help appreciated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 Install problems meichmann BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 August 6th, 2008 05:42 PM
WroxUnited Install Problems with SQL2005 owhite BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 April 5th, 2007 08:32 AM
INSTALL PROBLEMS jjmonty BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 November 16th, 2006 07:57 PM
TBH install problems jjmonty BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 September 26th, 2006 05:23 PM
Post Install Problems planoie Visual Studio 2005 0 July 21st, 2004 04:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.