You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bart van der Zwet <ba...@urbidata.nl> on 2007/12/31 14:44:09 UTC
ServiceMix-3.2.1 build error Invalid value for 'source' parameter
When trying to build ServiceMix 3.2.1 from source the maven build ended with
the error message "Invalid value for 'source' parameter; contains nested
elements". Stack traces reveiled this had something to do with the code from
org.codehaus.mojo while building the ServiceMix :: Geronimo :: Deployer
service.
After doing a little research I got the ServiceMix 3.2.1 maven build running
succesfully with only a couple of minor changes to one of the pom.xml files,
which I describe below.
I changed the groupId from "org.codehaus.mojo" to "org.codehaus.mojo.groovy"
because of the remark: "Please make sure you are using the
org.codehaus.mojo.groovy groupId in your projects and that you are looking
at the latest site docs for the current documentation." on
"http://docs.codehaus.org/display/GROOVY/Groovy+Maven+Plugin".
I removed the "body" tags from the "source" element, because of the maven
build error "Invalid value for 'source' parameter; contains nested
elements", and none of the examples on
"http://docs.codehaus.org/display/GROOVY/Groovy+Maven+Plugin" had a "body"
inside the "source".
Since other people obviously have been able to build ServiceMix 3.2.1
without these changes I am not quite sure if it is the code in the source
repository that needs to be fixed, or if I have got some other issues to
solve.
Below are the results of "svn status" and an svn diff on the modified file,
as executed on a fresh checkout of the ServiceMix-3.2.1 source from the
Subversion repository, after the changes I described above.
servicemix-3.2.1 $ svn status
M platforms/geronimo/deployer-service/pom.xml
servicemix-3.2.1 $ svn diff platforms/geronimo/deployer-service/pom.xml
Index: platforms/geronimo/deployer-service/pom.xml
===================================================================
--- platforms/geronimo/deployer-service/pom.xml (revision 607705)
+++ platforms/geronimo/deployer-service/pom.xml (working copy)
@@ -93,7 +93,7 @@
HACK: Copy XmlBeans generated schemas.
-->
<plugin>
- <groupId>org.codehaus.mojo</groupId>
+ <groupId>org.codehaus.mojo.groovy</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<executions>
<execution>
@@ -110,9 +110,7 @@
</element>
</classpath>
<source>
- <body>
-
org.apache.geronimo.buildsupport.CopyXmlBeansSchemas.execute(this)
- </body>
+
org.apache.geronimo.buildsupport.CopyXmlBeansSchemas.execute(this)
</source>
</configuration>
</execution>
servicemix-3.2.1 $
--
View this message in context: http://www.nabble.com/ServiceMix-3.2.1-build-error-Invalid-value-for-%27source%27-parameter-tp14557630s12049p14557630.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix-3.2.1 build error Invalid value for 'source' parameter
Posted by Guillaume Nodet <gn...@gmail.com>.
Thanks ! I think this error has been fixed in the 3.2.x branch already,
though the fix was to specify the older version of the pluging explicitely.
See
http://fisheye6.cenqua.com/browse/servicemix/smx3/branches/servicemix-3.2/platforms/geronimo/deployer-service/pom.xml?r1=602828&r2=605127
On Dec 31, 2007 2:44 PM, Bart van der Zwet <ba...@urbidata.nl> wrote:
>
> When trying to build ServiceMix 3.2.1 from source the maven build ended
> with
> the error message "Invalid value for 'source' parameter; contains nested
> elements". Stack traces reveiled this had something to do with the code
> from
> org.codehaus.mojo while building the ServiceMix :: Geronimo :: Deployer
> service.
>
> After doing a little research I got the ServiceMix 3.2.1 maven build
> running
> succesfully with only a couple of minor changes to one of the pom.xmlfiles,
> which I describe below.
>
> I changed the groupId from "org.codehaus.mojo" to "
> org.codehaus.mojo.groovy"
> because of the remark: "Please make sure you are using the
> org.codehaus.mojo.groovy groupId in your projects and that you are looking
> at the latest site docs for the current documentation." on
> "http://docs.codehaus.org/display/GROOVY/Groovy+Maven+Plugin".
>
> I removed the "body" tags from the "source" element, because of the maven
> build error "Invalid value for 'source' parameter; contains nested
> elements", and none of the examples on
> "http://docs.codehaus.org/display/GROOVY/Groovy+Maven+Plugin" had a "body"
> inside the "source".
>
> Since other people obviously have been able to build ServiceMix 3.2.1
> without these changes I am not quite sure if it is the code in the source
> repository that needs to be fixed, or if I have got some other issues to
> solve.
>
> Below are the results of "svn status" and an svn diff on the modified
> file,
> as executed on a fresh checkout of the ServiceMix-3.2.1 source from the
> Subversion repository, after the changes I described above.
>
> servicemix-3.2.1 $ svn status
> M platforms/geronimo/deployer-service/pom.xml
>
> servicemix-3.2.1 $ svn diff platforms/geronimo/deployer-service/pom.xml
> Index: platforms/geronimo/deployer-service/pom.xml
> ===================================================================
> --- platforms/geronimo/deployer-service/pom.xml (revision 607705)
> +++ platforms/geronimo/deployer-service/pom.xml (working copy)
> @@ -93,7 +93,7 @@
> HACK: Copy XmlBeans generated schemas.
> -->
> <plugin>
> - <groupId>org.codehaus.mojo</groupId>
> + <groupId>org.codehaus.mojo.groovy</groupId>
> <artifactId>groovy-maven-plugin</artifactId>
> <executions>
> <execution>
> @@ -110,9 +110,7 @@
> </element>
> </classpath>
> <source>
> - <body>
> -
> org.apache.geronimo.buildsupport.CopyXmlBeansSchemas.execute(this)
> - </body>
> +
> org.apache.geronimo.buildsupport.CopyXmlBeansSchemas.execute(this)
> </source>
> </configuration>
> </execution>
> servicemix-3.2.1 $
>
>
> --
> View this message in context:
> http://www.nabble.com/ServiceMix-3.2.1-build-error-Invalid-value-for-%27source%27-parameter-tp14557630s12049p14557630.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/