DataNucleus - Products
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CORE-2675
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Joshua Nichols
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JPOX Core

can't build jpox-1.1.0-beta-6 from source out of box

Created: 06/Feb/06 09:50 PM   Updated: 06/May/06 05:06 PM
Component/s: None
Affects Version/s: 1.1.0-beta-6
Fix Version/s: 1.1.0


 Description  « Hide
I am currently looking into packaging jpox for Gentoo Linux. I experienced some initial problems compiling from source.

I first attempted to use maven. This failed immediately because it couldn't find ../project.xml. It turns out that the project.xml had this line:
<extend>${basedir}/../project.xml</extend>

And of course, this file didn't existed. I removed this line, and was able to continue on. I don't have access to the sun jars at the moment, so I can't comment on if there are any problems after that point.

Next I tried to use ant. Just running ant gives the error:
/local/users/jnichols/jpox/jpox-1.1.0-beta-6/build.xml:100: The following error occurred while executing this line:
Target `${build.setting.default.target}' does not exist in this project.

This made me suspect that some properties files were missing, and sure enough, there are several loaded at the top of build.xml, but none of them were present. Since it didn't know what to run by default, I tried running 'ant jar'. This failed with:
/local/users/jnichols/jpox/jpox-1.1.0-beta-6/build.xml:1304: java.net.MalformedURLException: no protocol: ${dependency.ant.url}

... which confirms to me that there the source tarball is missing some properties files.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson - 07/Feb/06 06:12 AM
It is very simple. JPOX distributes source but never claims that you can build these out of the box. We dont have time for such things. If you want to contribute things then do so.
You can however build it with very little changes ... because Maven uses inherited project.xml. Just get the top level project.xml and it will work then. As always the recommended way is to use CVS downloads. Source zips/tgz are there for convenience only.

Andy Jefferson - 18/Mar/06 03:56 PM
JPOX will Maven-build out of the box with rc-2 onwards.

Andy Jefferson - 06/May/06 05:06 PM
You *can* build JPOX "out of the box" with 1.1.0 ... with Maven. There are ample docs.