I attach the output I got.

Modifying the pom.xml file did not help I attach the modified file did I need 
to do anything apart from modify the file and run 

        mvn test

Mark
-----Original Message-----
From: Kevin Meyer - KMZ [mailto:[email protected]] 
Sent: Monday, February 11, 2013 10:48 AM
To: [email protected]
Subject: Re: problem building the latest Isis source code 

Hi Mark,

This is odd.

The build succeeded on the Jenkins CI server.

Please can you go to the project directory and manually run a build.
$ cd component/objectstore/sql/sql-tests-common/
$ mvn test

You should get some output to the console along the lines of:
00:13:13,722  [SqlIntegrationTestData main       INFO ]  Test: testDate() 
'2010-3-5' = 1267747200000
00:13:13,722  [SqlIntegrationTestData main       INFO ]  applibDate.dateValue() 
as String: 2010-03-05
00:13:13,722  [SqlIntegrationTestData main       INFO ]  applibDate.dateValue() 
as Long: 1267747200000
00:13:13,723  [SqlIntegrationTestData main       INFO ]  sqlDataClass.getDate() 
as String: 2010-03-05
00:13:13,723  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getDate().getTime() as Long: 1267747200000
00:13:13,723  [SqlIntegrationTestData main       INFO ]  Test: testSqlDate() 
'2011-4-8' == 1302220800000
00:13:13,723  [SqlIntegrationTestData main       INFO ]  sqlDate.toString() as 
String:2010-04-08
00:13:13,723  [SqlIntegrationTestData main       INFO ]  sqlDate.getTime() as 
Long:1270684800000
00:13:13,724  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getSqlDate() as String:2010-04-08
00:13:13,724  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getSqlDate().getTime() as Long:1270684800000
00:13:13,728  [SqlIntegrationTestData main       INFO ]  Test: testDateTime()
00:13:13,734  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getDateTime() as String:2010-03-05 01:23
00:13:13,734  [SqlIntegrationTestData main       INFO ]  dateTime.toString() as 
String:2010-03-05 01:23
00:13:13,734  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getDateTime().getTime() as Long:1267752180000
00:13:13,734  [SqlIntegrationTestData main       INFO ]  dateTime.getTime() as 
Long:1267752180000

Those "Longs" are the expected values.

As I mentioned before, if you can't get the tests to pass (I can provide some 
hints, if you need the functionality), you can just disable the test failure 
from being a problem by editting the pom.xml and chaning the "false" to a 
"true" in line 53:
<testFailureIgnore>false</testFailureIgnore>


Regards,
Kevin

On 10 Feb 2013 at 11:11, Mark Wood-Patrick wrote:

> In trying to build the latest Isis source code from:
> 
>         git clone git://git.apache.org/isis.git
> 
> I get this failure
> 
>         Results :
> 
>   testTestAll(org.apache.isis.objectstore.sql.HsqlTest): Applib date: Test 
> '2010-3-5', expected 2010-03-05, but got 2010-03-03. Check log for more info.
> 
> Tests run: 9, Failures: 1, Errors: 0, Skipped: 0
> 
> There are no more details in the log file anyone know what the issue 
> might be? I'm building on CentOS release 5.7 (Final)
> 
> Mark Wood-Patrick
> 


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Isis SQL ObjectStore Integration Tests - Common 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.4:process (default) @ 
isis-objectstore-sql-tests-common ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.4:process (process-remote-resources) 
@ isis-objectstore-sql-tests-common ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ 
isis-objectstore-sql-tests-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ 
isis-objectstore-sql-tests-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ 
isis-objectstore-sql-tests-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/home/app_perf_catalog/mwoodpatrick/apache/isis/latest_021013/isis/component/objectstore/sql/sql-tests-common/src/test/resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ 
isis-objectstore-sql-tests-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ 
isis-objectstore-sql-tests-common ---
[INFO] Surefire report directory: 
/home/app_perf_catalog/mwoodpatrick/apache/isis/latest_021013/isis/component/objectstore/sql/sql-tests-common/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
15:23:27,110  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.password=
15:23:27,111  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.user=sa
15:23:27,112  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=sql
15:23:27,112  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.commitTransaction=
15:23:27,112  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.connection=jdbc:hsqldb:file:hsql-db/polytests
15:23:27,112  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.driver=org.hsqldb.jdbcDriver
15:23:27,112  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.beginTransaction=
15:23:27,112  [IsisConfigurationDefault main       INFO ]  adding 
isis.logging.objectstore=on
15:23:27,113  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.abortTransaction=
15:23:29,290  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.password=
15:23:29,291  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.user=sa
15:23:29,291  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=sql
15:23:29,291  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.commitTransaction=
15:23:29,291  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.connection=jdbc:hsqldb:file:hsql-db/polytests
15:23:29,291  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.driver=org.hsqldb.jdbcDriver
15:23:29,292  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.beginTransaction=
15:23:29,292  [IsisConfigurationDefault main       INFO ]  adding 
isis.logging.objectstore=on
15:23:29,292  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.abortTransaction=
15:23:31,391  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.password=
15:23:31,392  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.user=sa
15:23:31,392  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=sql
15:23:31,392  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.commitTransaction=
15:23:31,392  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.connection=jdbc:hsqldb:file:hsql-db/polytests
15:23:31,395  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.driver=org.hsqldb.jdbcDriver
15:23:31,396  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.beginTransaction=
15:23:31,396  [IsisConfigurationDefault main       INFO ]  adding 
isis.logging.objectstore=on
15:23:31,396  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.abortTransaction=
15:23:32,133  [IsisConfigurationDefault main       INFO ]  adding 
isis.logging.objectstore=off
15:23:32,133  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=xml
15:23:33,327  [IsisConfigurationDefault main       INFO ]  adding 
isis.logging.objectstore=off
15:23:33,328  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=xml
15:23:33,775  [IsisConfigurationDefault main       INFO ]  adding 
isis.logging.objectstore=off
15:23:33,775  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=in-memory
15:23:34,010  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,010  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,012  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,012  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,012  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,013  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,013  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,013  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,014  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,014  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,014  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,014  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,015  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,015  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,016  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,016  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,017  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,017  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,019  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,019  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,020  [SqlIntegrationTestData main       INFO ]  Test: testDate() 
'2010-3-5' = 1267747200000
15:23:34,020  [SqlIntegrationTestData main       INFO ]  applibDate.dateValue() 
as String: 2010-03-05
15:23:34,020  [SqlIntegrationTestData main       INFO ]  applibDate.dateValue() 
as Long: 1267747200000
15:23:34,020  [SqlIntegrationTestData main       INFO ]  sqlDataClass.getDate() 
as String: 2010-03-05
15:23:34,021  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getDate().getTime() as Long: 1267747200000
15:23:34,021  [SqlIntegrationTestData main       INFO ]  Test: testSqlDate() 
'2011-4-8' == 1302220800000
15:23:34,021  [SqlIntegrationTestData main       INFO ]  sqlDate.toString() as 
String:2010-04-07
15:23:34,021  [SqlIntegrationTestData main       INFO ]  sqlDate.getTime() as 
Long:1270684800000
15:23:34,021  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getSqlDate() as String:2010-04-07
15:23:34,022  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getSqlDate().getTime() as Long:1270684800000
15:23:34,022  [SqlIntegrationTestData main       INFO ]  Test: testDateTime()
15:23:34,022  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getDateTime() as String:2010-03-05 01:23
15:23:34,023  [SqlIntegrationTestData main       INFO ]  dateTime.toString() as 
String:2010-03-05 01:23
15:23:34,023  [SqlIntegrationTestData main       INFO ]  
sqlDataClass.getDateTime().getTime() as Long:1267752180000
15:23:34,023  [SqlIntegrationTestData main       INFO ]  dateTime.getTime() as 
Long:1267752180000
15:23:34,023  [InMemoryObjectStore  main       INFO ]  execute commands
15:23:34,024  [InMemoryObjectStore  main       INFO ]  end execution
15:23:34,047  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.password=
15:23:34,047  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.user=sa
15:23:34,048  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.datatypes.string=VARCHAR(70)
15:23:34,048  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=sql
15:23:34,050  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.commitTransaction=
15:23:34,050  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.datatypes.blob=BLOB(1000)
15:23:34,050  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.connection=jdbc:hsqldb:file:hsql-db/tests
15:23:34,050  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.driver=org.hsqldb.jdbcDriver
15:23:34,050  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.beginTransaction=
15:23:34,050  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.abortTransaction=
15:23:34,051  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.password.seed=gfkhgdf76453fhgj#$
15:23:34,750  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.password=
15:23:34,751  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.user=sa
15:23:34,751  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.datatypes.string=VARCHAR(70)
15:23:34,751  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor=sql
15:23:34,752  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.commitTransaction=
15:23:34,752  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.datatypes.blob=BLOB(1000)
15:23:34,752  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.connection=jdbc:hsqldb:file:hsql-db/tests
15:23:34,752  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.jdbc.driver=org.hsqldb.jdbcDriver
15:23:34,753  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.beginTransaction=
15:23:34,753  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.command.abortTransaction=
15:23:34,753  [IsisConfigurationDefault main       INFO ]  adding 
isis.persistor.sql.default.password.seed=gfkhgdf76453fhgj#$

Results :

  testTestAll(org.apache.isis.objectstore.sql.HsqlTest): Applib date: Test 
'2010-3-5', expected 2010-03-05, but got 2010-03-03. Check log for more info.

Tests run: 9, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.742s
[INFO] Finished at: Mon Feb 11 15:23:35 PST 2013
[INFO] Final Memory: 11M/36M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on 
project isis-objectstore-sql-tests-common: There are test failures.
[ERROR] 
[ERROR] Please refer to 
/home/app_perf_catalog/mwoodpatrick/apache/isis/latest_021013/isis/component/objectstore/sql/sql-tests-common/target/surefire-reports
 for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[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 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
         
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache.isis.objectstore</groupId>
        <artifactId>isis-objectstore-sql</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <artifactId>isis-objectstore-sql-tests-common</artifactId>

    <name>Isis SQL ObjectStore Integration Tests - Common</name>

    <properties>
	    <siteBaseDir>..</siteBaseDir>
		<relativeUrl>sql-tests-common/</relativeUrl>

        <xml-objectstore.version>1.0.0-SNAPSHOT</xml-objectstore.version>
        <hsqldb.version>2.2.8</hsqldb.version>
    </properties>

    <!-- used in Site generation for relative references. -->
    <url>http://isis.apache.org/${relativeUrl}</url>

    <description>Common code to test the sql persistor. Uses the HSQLDB for maximum compatibility.</description>
    <build>
        <plugins>
            <!-- TODO: currently set to ignore test failures -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
				<version>${maven-project-info-reports-plugin}</version>
                <inherited>false</inherited>
                <configuration>
                	<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
                </configuration>
                <reportSets>
                    <reportSet>
                        <inherited>false</inherited>
                        <reports>
                            <report>dependency-management</report>
                            <report>dependencies</report>
                            <report>dependency-convergence</report>
                            <report>plugins</report>
                            <report>summary</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.hsqldb</groupId>
                <artifactId>hsqldb</artifactId>
                <version>${hsqldb.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>

        <dependency>
            <groupId>org.apache.isis.core</groupId>
            <artifactId>isis-core-unittestsupport</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.isis.core</groupId>
            <artifactId>isis-core-integtestsupport</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.isis.core</groupId>
            <artifactId>isis-core-runtime</artifactId>
        </dependency>

        
        <!--  Required for TestProxy -->
		<!-- Isis defaults -->
        <dependency>
            <groupId>org.apache.isis.core</groupId>
            <artifactId>isis-core-objectstore</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.isis.core</groupId>
            <artifactId>isis-core-objectstore</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
        	<groupId>org.apache.isis.core</groupId>
        	<artifactId>isis-core-bytecode-cglib</artifactId>
            <scope>test</scope>
        </dependency>

		<!-- Isis Object store -->
        <dependency>
            <groupId>org.apache.isis.objectstore</groupId>
            <artifactId>isis-objectstore-sql-impl</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.isis.core</groupId>
            <artifactId>isis-core-tck-dom</artifactId>
        </dependency>


        <!-- HSQLDB -->
        <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
        </dependency>
        <!-- Required to support the XML cross-test -->
        <dependency>
            <groupId>org.apache.isis.objectstore</groupId>
            <artifactId>isis-objectstore-xml</artifactId>
        </dependency>
		<!-- others -->
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-legacy</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-junit4</artifactId>
        </dependency>
        <dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
        </dependency>
    </dependencies>
</project>

Reply via email to