Letractively / red-piranha

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

Chap 8 /11 - Maven build missing xpp3.jar (version 1.1.3.4) #4

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.

However, on trying to install the sample projects for the book using mvn
clean package as per page 51, for the chapter 8 and 11 samples I keep
getting a Build Error with:
Unable to find resource ‘xpp3:xpp3:pom:1.1.3.4.o’
- it’s obviously looking in all the repositories but getting nowhere.
Missing:
———-
1) xpp3:xpp3:jar:1.1.3.4.o
It suggests downloading the file manually - but I don’t know which site to
find it on? (the mvn clean package build for chapters 6 and 8 did however
succeed).

The mvn eclipse:clean eclipse:eclipse build for ch 8 and ch 11 succeeded
but still with:
[WARNING] An error occurred during dependency resolution.
Failed to retrieve xpp3:xpp3-1.1.3.4.o
Caused by: Unable to download the artifact from any repository

Do you have any suggestions please? It would be much appreciated.

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

GoogleCodeExporter commented 9 years ago
I think the problem is the XPP is a dependency of some of the core libraries 
used in
the samples. It's looking for a particular version - perhaps the quickest way 
is to
google for them, 

For example the follow Maven repository appears to have the correct version 
(but can
sometimes respond slowly) ; www.mvnrepository.com/artifact/xpp/xpp 

You could either download and install these manually, or make sure this (or 
other
appropriate repository) is listed in your Maven settings. Not going to detail 
how to
do this here - it's detailled on the Apache maven site (or get your friendly 
tech
support to do this, as suggested in the book!)

Other solution is to update the version numbers of Drools and other Libs used in
Pom.xml - these will probably require a later / more available version of XPP 
that
could resolve the issue

Original comment by paul.m.browne on 26 Jul 2009 at 11:08

GoogleCodeExporter commented 9 years ago
For people having the same problem, the repository
www.mvnrepository.com/artifact/xpp/xpp has a different version (3-1.1.3.4-RC8).
However, searching Internet I've found a repository with the correct one:
http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/.

You have to modify pom.xml file adding the new repository:
        <repository>
            <id>extreme_xpp3</id>
            <url>http://www.extreme.indiana.edu/dist/java-repository/xpp3/jars/</url>
        </repository>

and change the dependency to:
     <dependency>
      <!-- TODO remove this dependency and change MANIFEST.MF to use xpp3_min.jar
(non-optional dep of xstream) -->
      <groupId>xpp3</groupId>
      <artifactId>xpp3</artifactId>
      <version>1.1.3.4.O</version>
      <scope>runtime</scope>
    </dependency>
as the final 'o' is uppercase in this repository. Hope this helps.

Original comment by amador.c...@gmail.com on 1 Oct 2009 at 4:18

GoogleCodeExporter commented 9 years ago

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

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