compilation error

57 views
Skip to first unread message

ghassan

unread,
Feb 10, 2012, 4:31:19 PM2/10/12
to Empire
Hi all ,

I new to Empire and i am trying to compile it but an error appears
using ant & maven ,

where can i found working release ?


thanks ,
Ghassan

Kendall Clark

unread,
Feb 10, 2012, 4:57:48 PM2/10/12
to empir...@googlegroups.com
Ghassan,

Since I left my mind-reading apparatus at home today, is there any chance you could deign to tell us *which* "error appears" and a little more about what you're doing, including which revision of Empire yr trying to compile?

Cheers,
Kendall

ghassan

unread,
Feb 10, 2012, 5:05:57 PM2/10/12
to Empire

Hi Kendall ,

I got the following in the log :

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Parent pom for Empire
[INFO] Empire-core
[INFO] Empire-fourstore
[INFO] Empire-sql
[INFO] Empire-jena
[INFO] Empire-reflections
[INFO] Empire-sesame2
[INFO] Empire-test
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Parent pom for Empire 0.7
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
Empire-parent ---
[INFO] Installing D:\workspace\Empire\pom.xml to C:\Users\ghassan
\.m2\repository\com\clarkparsia\Empire-parent\0.7\Empire-
parent-0.7.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Empire-core 0.7
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
@ Empire-core ---
[WARNING] Using platform encoding (Cp1256 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
Empire-core ---
[WARNING] File encoding has not been set, using platform encoding
Cp1256, i.e. build is platform dependent!
[INFO] Compiling 10 source files to D:\workspace\Empire\core\target
\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\XmlConfigReader.java:[115,30] cannot find symbol
symbol : constructor
IOException(javax.xml.parsers.ParserConfigurationException)
location: class java.io.IOException
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\XmlConfigReader.java:[118,30] cannot find symbol
symbol : constructor IOException(org.xml.sax.SAXException)
location: class java.io.IOException
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\PropertiesConfigReader.java:[70,30] load(java.io.InputStream) in
java.util.Properties cannot be applied to (java.io.Reader)
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\PropertiesConfigReader.java:[73,30] cannot find symbol
symbol : constructor IOException(java.lang.Exception)
location: class java.io.IOException
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Parent pom for Empire ............................. SUCCESS
[0.705s]
[INFO] Empire-core ....................................... FAILURE
[4.067s]
[INFO] Empire-fourstore .................................. SKIPPED
[INFO] Empire-sql ........................................ SKIPPED
[INFO] Empire-jena ....................................... SKIPPED
[INFO] Empire-reflections ................................ SKIPPED
[INFO] Empire-sesame2 .................................... SKIPPED
[INFO] Empire-test ....................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.278s
[INFO] Finished at: Sat Feb 11 00:03:49 EET 2012
[INFO] Final Memory: 15M/177M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.3.2:compile (default-compile) on project Empire-core:
Compilation failure: Compilation failure:
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\XmlConfigReader.java:[115,30] cannot find symbol
[ERROR] symbol : constructor
IOException(javax.xml.parsers.ParserConfigurationException)
[ERROR] location: class java.io.IOException
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\XmlConfigReader.java:[118,30] cannot find symbol
[ERROR] symbol : constructor IOException(org.xml.sax.SAXException)
[ERROR] location: class java.io.IOException
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\PropertiesConfigReader.java:[70,30] load(java.io.InputStream) in
java.util.Properties cannot be applied to (java.io.Reader)
[ERROR] \workspace\Empire\core\src\com\clarkparsia\empire\config\io
\impl\PropertiesConfigReader.java:[73,30] cannot find symbol
[ERROR] symbol : constructor IOException(java.lang.Exception)
[ERROR] location: class java.io.IOException
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR] mvn <goals> -rf :Empire-core

Kendall Clark

unread,
Feb 10, 2012, 5:10:09 PM2/10/12
to empir...@googlegroups.com
What revision are you using? HEAD compiles just fine.

Cheers,
Kendall

Mike Grove

unread,
Feb 10, 2012, 5:12:29 PM2/10/12
to empir...@googlegroups.com
As Kendall said,

> ant clean dist

works fine from a clean GitHub checkout.

I don't use maven, so it's possible that it's out of sync with the
code, or my attempts to maintain the POM files were met with disaster.
I don't have maven installed, so it's not something I closely keep
tabs on.

I'd recommend just using Ant.

Cheers,

Mike

ghassan

unread,
Feb 10, 2012, 5:38:35 PM2/10/12
to Empire
It is ok now , i changed to another JDK and it works ,

Is there any tutorial other than the example

Thanks



On Feb 11, 12:12 am, Mike Grove <m...@clarkparsia.com> wrote:
> As Kendall said,
>
> > ant clean dist
>
> works fine from a clean GitHub checkout.
>
> I don't use maven, so it's possible that it's out of sync with the
> code, or my attempts to maintain the POM files were met with disaster.
>  I don't have maven installed, so it's not something I closely keep
> tabs on.
>
> I'd recommend just using Ant.
>
> Cheers,
>
> Mike
>
>
>
>
>
>
>
> On Fri, Feb 10, 2012 at 5:10 PM, Kendall Clark <kend...@clarkparsia.com> wrote:
> > What revision are you using? HEAD compiles just fine.
>
> > Cheers,
> > Kendall
>
Reply all
Reply to author
Forward
0 new messages