andersonsilveira / red-piranha

Automatically exported from code.google.com/p/red-piranha
GNU General Public License v2.0
0 stars 0 forks source link

Chapter 8 - JBoss Drools - Maven and Excel Spreadsheet Build Issue #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

"I  have a problem getting the sample in Chapter 8 to rules.

When you open the spreadsheet on page 167  in Eclipse it opens and you can
see the spreadsheet but Eclipse hangs and you have to close it via task
manager.   No matter because I can just view in Excel but is there an issue
with view Excel spreadsheets in Eclipse.

I cant run the examples as per page 166.  mvn can build I get the following
error
Unable to find resource 'xpp3:xpp3:jar:1.1.3.4.o'.

I have checked the issues list on code.goofle.com/p/red-piranha and have
followed the instructions but still not joy.

Full text of the errors from mvn are below

I am running this on Windows Vista, mvn 2.1.0, Java 1.6.0_13

Simon

Downloading:
file://C:\projects\chap8-sample/../m2_repo/xpp3/xpp3/1.1.3.4.o/xpp
<file:///C:%5Cprojects%5Cm2_repo%5Cxpp3%5Cxpp3%5C1.1.3.4.o%5Cxpp>
-1.1.3.4.o.pom
[INFO] Unable to find resource 'xpp3:xpp3:pom:1.1.3.4.o' in repository basedir
file://C:\projects\chap8-sample/../m2_repo <file:///C:%5Cprojects%5Cm2_repo>)
Downloading: http://repository.jboss.com/maven2/xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.
.o.pom
[INFO] Unable to find resource 'xpp3:xpp3:pom:1.1.3.4.o' in repository jboss (h
tp://repository.jboss.com/maven2)
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/xpp3/xpp3/1.1.3.4.o/
pp3-1.1.3.4.o.pom
[INFO] Unable to find resource 'xpp3:xpp3:pom:1.1.3.4.o' in repository ibiblio
http://mirrors.ibiblio.org/pub/mirrors/maven2)
Downloading:
http://repo1.maven.org/maven2//xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.4.o
<http://repo1.maven.org/maven2/xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.4.o>.
om
[INFO] Unable to find resource 'xpp3:xpp3:pom:1.1.3.4.o' in repository esat (ht
p://repo1.maven.org/maven2/)
Downloading: http://repo1.maven.org/maven2/xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.4.o.p
m
[INFO] Unable to find resource 'xpp3:xpp3:pom:1.1.3.4.o' in repository central
http://repo1.maven.org/maven2)
[INFO] [compiler:compile]
[INFO] Compiling 13 source files to C:\projects\chap8-sample\target\classes
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\projects\chap8-sample\src\test\re
ources
Downloading:
file://C:\projects\chap8-sample/../m2_repo/xpp3/xpp3/1.1.3.4.o/xpp
<file:///C:%5Cprojects%5Cm2_repo%5Cxpp3%5Cxpp3%5C1.1.3.4.o%5Cxpp>
-1.1.3.4.o.jar
[INFO] Unable to find resource 'xpp3:xpp3:jar:1.1.3.4.o' in repository basedir
file://C:\projects\chap8-sample/../m2_repo <file:///C:%5Cprojects%5Cm2_repo>)
Downloading: http://repository.jboss.com/maven2/xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.
.o.jar
[INFO] Unable to find resource 'xpp3:xpp3:jar:1.1.3.4.o' in repository jboss (h
tp://repository.jboss.com/maven2)
Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/xpp3/xpp3/1.1.3.4.o/
pp3-1.1.3.4.o.jar
[INFO] Unable to find resource 'xpp3:xpp3:jar:1.1.3.4.o' in repository ibiblio
http://mirrors.ibiblio.org/pub/mirrors/maven2)
Downloading:
http://repo1.maven.org/maven2//xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.4.o
<http://repo1.maven.org/maven2/xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.4.o>.
ar
[INFO] Unable to find resource 'xpp3:xpp3:jar:1.1.3.4.o' in repository esat (ht
p://repo1.maven.org/maven2/)
Downloading: http://repo1.maven.org/maven2/xpp3/xpp3/1.1.3.4.o/xpp3-1.1.3.4.o.j
r
[INFO] Unable to find resource 'xpp3:xpp3:jar:1.1.3.4.o' in repository central
http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact."

Original issue reported on code.google.com by paul.m.browne on 10 Jul 2009 at 7:59

GoogleCodeExporter commented 9 years ago
There are two issues here:
1) 'Unable to open Excel files in Eclipse' - I have seen this problem from time 
to
time, often if I have many other files open at the same time. 

The most reliable solution is to open the Excel files in Excel - either by 
opening
files in the normal way (Windows Explorer, or Linux Equivalent), or by right 
clicking
on the file in Eclipse and 'Open with .... System editor'.

2) The Maven Build errors could be as a result of two things
a) Your network connection is not available(!)
b) Maven previously tried downloading the files, but they got corrupted. Try 
deleting
the files fro
c) The versions of the files are not longer available in the Maven Repositories
listed in the samples pom.xml file. See the [BookFeedback] wiki page on this 
site for
another example of this.

For c) you may need to either update the version number in the Maven pom.xml 
file, or
make sure it lists Maven repositories with this version of the jar file 
available.
Both are 'standard' Maven problems, easiest if you look at the Maven site (if 
you're
comfortable with this) or get a friendly Java / Maven expert to help.

Original comment by paul.m.browne on 10 Jul 2009 at 8:09

GoogleCodeExporter commented 9 years ago
This error is easily resolved by editing 'pom.xml'. Search for
<version>1.1.3.4.o</version> and replace it with <version>1.1.3.4.O</version>. 
The
lower case 'o' causes the build to fail. Simply replacing the lower case 'o' 
with an
upper case 'O' resolves the issue.

Original comment by gurvinde...@gmail.com on 8 Nov 2009 at 4:29

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:19

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:42

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by paul.m.browne on 26 Jan 2011 at 11:47