You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (JIRA)" <ji...@apache.org> on 2011/07/23 21:37:09 UTC

[jira] [Commented] (SLING-2147) Cannot build Sling using instructions given on Sling wiki

    [ https://issues.apache.org/jira/browse/SLING-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070034#comment-13070034 ] 

Eric Norman commented on SLING-2147:
------------------------------------

I haven't seen that specific error any of my environments.

Generally, the only trouble I have is that the timeouts for the integration tests are often too short for slower machines.  Sometime sling takes longer than 60 seconds to get started.

I workaround that by overriding the timeout properties in my maven settings.xml like this:


<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <profiles>
    <profile>
      <id>slingtest</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <sling.testing.timeout.multiplier>2.0</sling.testing.timeout.multiplier>
        <HttpTestBase.readyTimeoutSeconds>120</HttpTestBase.readyTimeoutSeconds>
      </properties>
    </profile>
  </profiles>
</settings>


> Cannot build Sling using instructions given on Sling wiki
> ---------------------------------------------------------
>
>                 Key: SLING-2147
>                 URL: https://issues.apache.org/jira/browse/SLING-2147
>             Project: Sling
>          Issue Type: Bug
>         Environment: svn: Slik SVN 1.6.17/64 bit edition (the very latest as I write this)
> maven:  3.0.3 (64 bit)
>            Reporter: Phil
>         Attachments: org.apache.sling.installer.it.BundleInstallUpgradeDowngradeTest.txt
>
>
> Steps to reproduce:
> 1: clean maven repository (I know that means you have to download the
> internet but...)
> 2: rm -rf sling
> 3: svn checkout http://svn.apache.org/repos/asf/sling/trunk sling
> 4: mvn clean install
> The tail end of the build is
> [INFO] Apache Sling Settings ............................. SUCCESS [1.562s]
> [INFO] Apache Sling Thread Dumper ........................ SUCCESS [0.930s]
> [INFO] Apache Sling Web Console Branding ................. SUCCESS [0.426s]
> [INFO] Apache Sling Web Console Security Provider ........ SUCCESS [2.554s]
> [INFO] Apache Sling Integration Tests .................... SUCCESS [4.815s]
> [INFO] Apache Sling Groovy Extensions .................... SUCCESS [5.481s]
> [INFO] Apache Sling Explorer ............................. SUCCESS [0.651s]
> [INFO] Apache Sling Test Tools ........................... SUCCESS [2.124s]
> [INFO] Apache Sling JUnit Core ........................... SUCCESS [2.459s]
> [INFO] Apache Sling JUnit Scriptable Tests Provider ...... SUCCESS [2.873s]
> [INFO] Apache Sling JUnit Remote Tests Runners ........... SUCCESS [1.446s]
> [INFO] Apache Sling Installer ............................ SUCCESS [3.360s]
> [INFO] Apache Sling File Installer ....................... SUCCESS [1.118s]
> [INFO] Apache Sling JCR Installer ........................ SUCCESS [2:19.554s]
> [INFO] Apache Sling Installer Configuration Admin Support  SUCCESS [2.239s]
> [INFO] Apache Sling Deployment Package Installer ......... SUCCESS [1.341s]
> [INFO] Apache Sling Installer Integration Tests .......... FAILURE [1:29.908s]
> [INFO] Apache Sling Launchpad Installer .................. SKIPPED
> [INFO] Apache Sling Launchpad Content .................... SKIPPED
> [INFO] Apache Sling Launchpad Application Builder ........ SKIPPED
> [INFO] Apache Sling Sample Server-Side Tests ............. SKIPPED
> [INFO] Apache Sling Failing Server-Side Tests ............ SKIPPED
> [INFO] Apache Sling Sample Integration Tests ............. SKIPPED
> [INFO] Apache Sling Launchpad Testing Services ........... SKIPPED
> [INFO] Apache Sling Launchpad Testing Services WAR ....... SKIPPED
> [INFO] org.apache.sling.launchpad.test-bundles ........... SKIPPED
> [INFO] Apache Sling Launchpad Testing .................... SKIPPED
> [INFO] Apache Sling (Builder) ............................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 14:17.001s
> [INFO] Finished at: Sun Jul 17 09:08:05 BST 2011
> [INFO] Final Memory: 91M/1486M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project org.apache.sling.installer.it: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\Users\Phil\workspaces\sling6\installer\it\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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :org.apache.sling.installer.it

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira