GateIn compile error
kkas Jan 29, 2011 2:14 AMHi. I am new to GateIn, even to Jboss.
I am having a hard time to compile GateIn3.0.1 from source.
My environment is:
Centos 5.5 64bit
Maven2.2.1
OpenJDK-1.6.0
What is wrong with my doing? I downloaded the source from "Downloads",
and tried to compile it.
Here are my errors...(Sorry some words are in Japanese because i am.
but it should not be a big problem reading it)
[INFO] ------------------------------------------------------------------------
[INFO] Building GateIn Portal Component XML Parser
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
[INFO] [enforcer:enforce {execution: enforce-java-version}]
[INFO] [enforcer:enforce {execution: enforce-maven-version}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 65 source files to /root/GateIn-3.1.0-GA/component/xml-parser/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/root/GateIn-3.1.0-GA/component/xml-parser/src/main/java/org/exoplatform/services/xml/parser/XMLParser.java:[48,48] invalid inferred types for E; 推定型引数 org.exoplatform.services.token.TokenParser.Factory<T> は型変数 org.exoplatform.services.token.TokenParser.Factory<org.exoplatform.services.xml.parser.XMLNode> の境界に適合しません。
/root/GateIn-3.1.0-GA/component/xml-parser/src/main/java/org/exoplatform/services/chars/CharsDecoder.java:[70,39] 警告:sun.io.ByteToCharConverter is Sun proprietary API and may be removed in a future release
/root/GateIn-3.1.0-GA/component/xml-parser/src/main/java/org/exoplatform/services/html/tidy/HTMLTidy.java:[53,31] invalid inferred types for E; 推定型引数 org.exoplatform.services.token.TokenParser.Factory<T> は型変数 org.exoplatform.services.token.TokenParser.Factory<org.exoplatform.services.html.parser.NodeImpl> の境界に適合しません。
/root/GateIn-3.1.0-GA/component/xml-parser/src/main/java/org/exoplatform/services/html/parser/HTMLParser.java:[67,48] invalid inferred types for E; 推定型引数 org.exoplatform.services.token.TokenParser.Factory<T> は型変数 org.exoplatform.services.token.TokenParser.Factory<org.exoplatform.services.html.parser.NodeImpl> の境界に適合しません。
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] ------------------
Please help me.
If i havent provided enough info, please let me know.
Or, it will for sure help me alot what version of compiler and
JDK you used to compile...
Thanks in advance!
Kenta