On Mon, Jul 5, 2010 at 4:00 PM, Simon Laws <[email protected]> wrote:
> On Mon, Jul 5, 2010 at 3:43 PM, ant elder <[email protected]> wrote:
>> On Mon, Jul 5, 2010 at 12:49 PM, Simon Laws <[email protected]> 
>> wrote:
>>> On Sun, Jul 4, 2010 at 1:02 PM,  <[email protected]> wrote:
>>>> Author: antelder
>>>> Date: Sun Jul  4 12:02:25 2010
>>>> New Revision: 960329
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=960329&view=rev
>>>> Log:
>>>> Reenable the version spi with the buildnumber-maven-plugin
>>>>
>>>> Modified:
>>>>    tuscany/sca-java-2.x/trunk/modules/core-spi/pom.xml
>>>>
>>>> Modified: tuscany/sca-java-2.x/trunk/modules/core-spi/pom.xml
>>>> URL: 
>>>> http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core-spi/pom.xml?rev=960329&r1=960328&r2=960329&view=diff
>>>> ==============================================================================
>>>> --- tuscany/sca-java-2.x/trunk/modules/core-spi/pom.xml (original)
>>>> +++ tuscany/sca-java-2.x/trunk/modules/core-spi/pom.xml Sun Jul  4 
>>>> 12:02:25 2010
>>>> @@ -70,7 +70,6 @@
>>>>
>>>>   <build>
>>>>     <plugins>
>>>> -<!--
>>>>       <plugin>
>>>>         <groupId>org.codehaus.mojo</groupId>
>>>>         <artifactId>buildnumber-maven-plugin</artifactId>
>>>> @@ -113,7 +112,6 @@
>>>>              </execution>
>>>>           </executions>
>>>>        </plugin>
>>>> --->
>>>>     </plugins>
>>>>   </build>
>>>>
>>>>
>>>>
>>>>
>>>
>>> This gives rise to the following error for me....
>>>
>>>
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Building Apache Tuscany SCA Core SPI
>>> [INFO]    task-segment: [clean, install]
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] [clean:clean {execution: default-clean}]
>>> [INFO] Deleting D:\sca-java-2.x\modules\core-spi\target
>>> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
>>> [INFO] [buildnumber:create {execution: default}]
>>> [INFO] Checking for local modifications: skipped.
>>> [INFO] Executing: cmd.exe /X /C "svn --non-interactive update 
>>> D:\sca-java-2.x\mo
>>> dules\core-spi"
>>> [INFO] Working directory: D:\sca-java-2.x\modules\core-spi
>>> Provider message:
>>> The svn command failed.
>>> Command output:
>>> 'svn' is not recognized as an internal or external command,
>>> operable program or batch file.
>>>
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Couldn't update project.
>>>
>>> Embedded error: Error!
>>>
>>
>> Do you know why? Presumably you do have svn in your build environment?
>
> That's the problem. I don't have the command line svn in my build environment.
>
>> Did it ever work for you when this was working and part of the build a
>> few months ago?
>
> I believe it did. I was on a different machine then.
>
>> I'm almost ready to give up on the svn revision number
>> and build datetime getters in the SPI and have just the getter for the
>> version, does any one have strong feelings for them?
>
> I haven't really got my mind around how this is set up to work so I'll
> comment when I've looked at the code.
>

The infrastructure folks have fixed this so it works again when
running on Hudson now.

Keeping this does mean though that svn is a prereq to the build, so we
can either accept that as a prereq, or remove the use of the plugin
and the SPI methods that use it, or try to fix the plugin so at least
it doesn't fail the build when svn isn't available,

   ...ant

Reply via email to