Unable to compile Stardust src [message #1732103] |
Thu, 12 May 2016 11:22  |
Eclipse User |
|
|
|
HI
This is my first time looking at stardust.
I downloaded the source, and am trying to get things compiled.
The command i use is
C:\stardust_src>mvn -e install -f product\components-pom.xml
-Dbuild.tools.home=%build.tools% -Dproduct.home=%product.home% -s %build.tools%\conf\m2\settings.xml
The error I get is shown below. Am i missing something here ?
Thanks for any help
Best Regards
Ani
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project carnot-base: Compilation failure
[ERROR] /C:/stardust_src/engine/stardust-engine-base/src/main/
java/org/eclipse/stardust/common/config/extensions/PojoExtensionsCache.java:[88,
72] incompatible types: java.lang.Object cannot be converted to T
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on p
roject carnot-base: Compilation failure
/C:/web based clients/stardust_src/engine/stardust-engine-base/src/main/java/org
/eclipse/stardust/common/config/extensions/PojoExtensionsCache.java:[88,72] inco
mpatible types: java.lang.Object cannot be converted to T
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compila
tion failure
/C:/web based clients/stardust_src/engine/stardust-engine-base/src/main/java/org
/eclipse/stardust/common/config/extensions/PojoExtensionsCache.java:[88,72] inco
mpatible types: java.lang.Object cannot be converted to T
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(Abstrac
tCompilerMojo.java:858)
at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.ja
va:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 19 more
[ERROR]
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
|
|
|
Re: Unable to compile Stardust src [message #1732191 is a reply to message #1732103] |
Fri, 13 May 2016 07:28  |
Eclipse User |
|
|
|
Hi Ani,
Which release you have downloaded?
Btw, if your purpose is to build the Stardust war, then you can also use archetype which is straight forward.
Run below maven command to get the archetype:
mvn archetype:generate -DarchetypeGroupId=org.eclipse.stardust.deploy.jee.archet
ypes -DarchetypeArtifactId=tc7-stardust-portal-war -DarchetypeVersion=3.1.0 -DgroupId=local -DartifactId=stardust-portal-war -Dversion=3
.1.0 -DarchetypeRepository=http://download.eclipse.org/stardust/maven/releases -U
Then run
this will generate the final war file in the target directory.
-Tanmoy Roy
|
|
|
Powered by
FUDForum. Page generated in 0.05792 seconds