You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by shooding <sh...@gmail.com> on 2011/07/06 04:30:46 UTC
Re: Build SMX 4.3 source failure
To be ready for remote debugging, i try to build the source again,
still get the same exception.
[ERROR] Failed to execute goal
org.scala-tools:maven-scala-plugin:2.15.0:script (add-features-to-startup)
on project apa
che-servicemix-nmr: wrap: org.apache.commons.exec.ExecuteException: Process
exited with an error: 1(Exit value: 1) -> [H
elp 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.scala-tools:maven-scala-plugin:2.15.0
:script (add-features-to-startup) on project apache-servicemix-nmr: wrap:
org.apache.commons.exec.ExecuteException: Proc
ess exited with an error: 1(Exit value: 1)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: wrap:
org.apache.commons.exec.ExecuteException: Process exite
d with an error: 1(Exit value: 1)
at
org_scala_tools_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:350)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an
error: 1(Exit value: 1)
at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)
at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at
org_scala_tools_maven_executions.JavaMainCallerByFork.run(JavaMainCallerByFork.java:80)
at
org_scala_tools_maven_executions.JavaMainCallerSupport.run(JavaMainCallerSupport.java:96)
at
org_scala_tools_maven.ScalaScriptMojo.compileScript(ScalaScriptMojo.java:263)
at
org_scala_tools_maven.ScalaScriptMojo.doExecute(ScalaScriptMojo.java:162)
at
org_scala_tools_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:342)
... 21 more
[ERROR]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :apache-servicemix-nmr
-----
Industrial Technology Research Institute
Rm. 226 Bldg. 14, 2F, 195, Sec. 4, Chung Hsing Rd.,
Chutung, Hsinchu, Taiwan 31040, R.O.C.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Build-SMX-4-3-source-failure-tp4375070p4555510.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Build SMX 4.3 source failure
Posted by shooding <sh...@gmail.com>.
Thanks. i build the source successfully after marked several modules.
Now i've built a sip-bc(jbi-component), a sip-su(jbi-service-unit) and
myapp-sa(jbi-service-assembly).
While deploying myapp-sa, i ran into
Unrecognized xbean element mapping: endpoint in namespace
"http://tw.org.itri.icl/1.0"
, which is a customized namespace.
How can i make sure the customized namespace is recognized?
--
Industrial Technology Research Institute
Rm. 226 Bldg. 14, 2F, 195, Sec. 4, Chung Hsing Rd.,
Chutung, Hsinchu, Taiwan 31040, R.O.C.
-----
Industrial Technology Research Institute
Rm. 226 Bldg. 14, 2F, 195, Sec. 4, Chung Hsing Rd.,
Chutung, Hsinchu, Taiwan 31040, R.O.C.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Build-SMX-4-3-source-failure-tp4375070p4574108.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Build SMX 4.3 source failure
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Anyway I can't reproduce this problem on my MAC, I suspect somehow
this is a ENV specific issue.
Could you please check the assembly\target\.scalaScriptGen
\DefineProperties_1.scala
to see if this class start with
class
DefineProperties_1
(project
:org_scala_tools_maven_model
.MavenProjectAdapter
,session
:org
.apache
.maven
.execution.MavenSession,log :org.apache.maven.plugin.logging.Log) {
And we specify the maven-scala-plugin version in nmr\assembly\pom.xml,
if you want to try other version, you can change it there, [1] is all
available maven-scala-plugin version list.
Btw, the assembly module purpose is building the kit, if you want to
import the code to eclipse, you can safely skip this module.
[1]http://repo2.maven.org/maven2/org/scala-tools/maven-scala-plugin/
Freeman
On 2011-7-6, at 下午4:42, shooding wrote:
> re-download all repository and still stops at "Failed to execute goal
> org.scala-tools:maven-scala-plugin:2.15.0:script."
> I wonder if this version of scala cannot recognize terms like
> "project" ,
> "log".
>
> F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen
> \DefineProperties_1.scala:23:
> error: not found: value project
> project.getDependencyManagement().getDependencies().find { item =>
> ^
> F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen
> \DefineProperties_1.scala:33:
> error: not found: value log
> log.info("- %s = %s".format(key, value))
> ^
> F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen
> \DefineProperties_1.scala:34:
> error: not found: value project
> project.getProperties().put(key, value)
> ^
> F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen
> \DefineProperties_1.scala:37:
> error: not found: value log
> log.info
> ("----------------------------------------------------------------------")
> ^
> F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen
> \DefineProperties_1.scala:38:
> error: not found: value log
> log.info("Setting version properties based on dependency management
> information:")
> ^
> F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen
> \DefineProperties_1.scala:56:
> error: not found: value log
> log.info
> ("----------------------------------------------------------------------")
> ^
> 6 errors found
>
> I've tried to use scala-library 2.9.0 instead modifying all/nmr/
> pom.xml
> <scala.version>2.9.0</scala.version>
> doesn't solve the problem.
>
>
> -----
> Industrial Technology Research Institute
> Rm. 226 Bldg. 14, 2F, 195, Sec. 4, Chung Hsing Rd.,
> Chutung, Hsinchu, Taiwan 31040, R.O.C.
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Build-SMX-4-3-source-failure-tp4375070p4556181.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Build SMX 4.3 source failure
Posted by shooding <sh...@gmail.com>.
re-download all repository and still stops at "Failed to execute goal
org.scala-tools:maven-scala-plugin:2.15.0:script."
I wonder if this version of scala cannot recognize terms like "project" ,
"log".
F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen\DefineProperties_1.scala:23:
error: not found: value project
project.getDependencyManagement().getDependencies().find { item =>
^
F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen\DefineProperties_1.scala:33:
error: not found: value log
log.info("- %s = %s".format(key, value))
^
F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen\DefineProperties_1.scala:34:
error: not found: value project
project.getProperties().put(key, value)
^
F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen\DefineProperties_1.scala:37:
error: not found: value log
log.info
("----------------------------------------------------------------------")
^
F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen\DefineProperties_1.scala:38:
error: not found: value log
log.info("Setting version properties based on dependency management
information:")
^
F:\smx4-src\all\nmr\assembly\target\.scalaScriptGen\DefineProperties_1.scala:56:
error: not found: value log
log.info
("----------------------------------------------------------------------")
^
6 errors found
I've tried to use scala-library 2.9.0 instead modifying all/nmr/pom.xml
<scala.version>2.9.0</scala.version>
doesn't solve the problem.
-----
Industrial Technology Research Institute
Rm. 226 Bldg. 14, 2F, 195, Sec. 4, Chung Hsing Rd.,
Chutung, Hsinchu, Taiwan 31040, R.O.C.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Build-SMX-4-3-source-failure-tp4375070p4556181.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: Build SMX 4.3 source failure
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Looks like org.scala-tools:maven-scala-plugin:2.15.0 artifacts somehow
is corrupt, could you try to remove org/scala-tools/ from your local
maven repo or even remove your whole local maven repo(you actually can
rename your local maven repo folder and so will re-download all
artifacts again) and build again?
Freeman
On 2011-7-6, at 上午10:30, shooding wrote:
> To be ready for remote debugging, i try to build the source again,
> still get the same exception.
>
> [ERROR] Failed to execute goal
> org.scala-tools:maven-scala-plugin:2.15.0:script (add-features-to-
> startup)
> on project apa
> che-servicemix-nmr: wrap: org.apache.commons.exec.ExecuteException:
> Process
> exited with an error: 1(Exit value: 1) -> [H
> elp 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute
> goal org.scala-tools:maven-scala-plugin:2.15.0
> :script (add-features-to-startup) on project apache-servicemix-nmr:
> wrap:
> org.apache.commons.exec.ExecuteException: Proc
> ess exited with an error: 1(Exit value: 1)
> at
> org
> .apache
> .maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 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.buildProject(LifecycleModuleBuilder.java:84)
> at
> org
> .apache
> .maven
> .lifecycle
> .internal
> .LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org
> .apache
> .maven
> .lifecycle
> .internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
> 183)
> at
> org
> .apache
> .maven
> .lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
> 161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 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
> .plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
> 290)
> at
> org
> .codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 230)
> at
> org
> .codehaus
> .plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
> 409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: wrap:
> org.apache.commons.exec.ExecuteException: Process exite
> d with an error: 1(Exit value: 1)
> at
> org_scala_tools_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:
> 350)
> at
> org
> .apache
> .maven
> .plugin
> .DefaultBuildPluginManager
> .executeMojo(DefaultBuildPluginManager.java:101)
> at
> org
> .apache
> .maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: org.apache.commons.exec.ExecuteException: Process exited
> with an
> error: 1(Exit value: 1)
> at
> org
> .apache
> .commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:
> 346)
> at
> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
> 149)
> at
> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
> 136)
> at
> org_scala_tools_maven_executions
> .JavaMainCallerByFork.run(JavaMainCallerByFork.java:80)
> at
> org_scala_tools_maven_executions
> .JavaMainCallerSupport.run(JavaMainCallerSupport.java:96)
> at
> org_scala_tools_maven
> .ScalaScriptMojo.compileScript(ScalaScriptMojo.java:263)
> at
> org_scala_tools_maven.ScalaScriptMojo.doExecute(ScalaScriptMojo.java:
> 162)
> at
> org_scala_tools_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:
> 342)
> ... 21 more
> [ERROR]
> [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/
> MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with
> the
> command
> [ERROR] mvn <goals> -rf :apache-servicemix-nmr
>
> -----
> Industrial Technology Research Institute
> Rm. 226 Bldg. 14, 2F, 195, Sec. 4, Chung Hsing Rd.,
> Chutung, Hsinchu, Taiwan 31040, R.O.C.
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Build-SMX-4-3-source-failure-tp4375070p4555510.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com