Firstly: thanks for having a guide on how to build Sling. Its a large
project with a lot of dependencies.

So I began with the subversion checkout
   svn checkout http://svn.apache.org/repos/asf/sling/trunk sling
This just worked. I was very pleased.

Then I ran Maven, and it proceeded to download the entire internet (as
usual). One and a half hours later it finished with a reported
failure:
...skipped...
Tests in error:
  testPrioritiesUsingSnapshots
[felix](org.apache.sling.installer.it.BundlePrioritiesTest)
  testContextUpdate
[felix](org.apache.sling.installer.it.ContextBundleUpdateTest)
  testInstallAndRemoveConfig
[felix](org.apache.sling.installer.it.ConfigInstallTest)
  testDeferredConfigInstall
[felix](org.apache.sling.installer.it.ConfigInstallTest)
  testReinstallSameConfig
[felix](org.apache.sling.installer.it.ConfigInstallTest)
  testNonSnapshot
[felix](org.apache.sling.installer.it.BundleSnapshotUpdateTest)
  testSnapshot [felix](org.apache.sling.installer.it.BundleSnapshotUpdateTest)
  testSnapshotWithInstallerRestart
[felix](org.apache.sling.installer.it.BundleSnapshotUpdateTest)
  testRemoveResourceAndRestart
[felix](org.apache.sling.installer.it.RemovedResourceDetectionTest)
  testBundleStatePreserved
[felix](org.apache.sling.installer.it.BundleStatePreservedTest)
  testInstallFragment
[equinox](org.apache.sling.installer.it.FragmentInstallTest)
  testRegisterInvalidBundles
[felix](org.apache.sling.installer.it.InvalidBundlesTest)
  testIndividualInvalidBundles
[felix](org.apache.sling.installer.it.InvalidBundlesTest)
  testInstallUpgradeDowngradeBundle
[felix](org.apache.sling.installer.it.BundleInstallUpgradeDowngradeTest)
  testRemoveAndReadd
[felix](org.apache.sling.installer.it.BundleInstallUpgradeDowngradeTest)
  testUpdateAndRemove
[felix](org.apache.sling.installer.it.BundleInstallUpgradeDowngradeTest)
  testBundleDependencies
[felix](org.apache.sling.installer.it.BundleDependenciesTest)
  testSemiRandomInstall
[felix](org.apache.sling.installer.it.BundleInstallStressTest)
  initialRegistrationTest
[felix](org.apache.sling.installer.it.RegisterResourcesTest)
  removeAndReaddBundlesTest
[felix](org.apache.sling.installer.it.RegisterResourcesTest)
  reAddZeroResourcesTest
[felix](org.apache.sling.installer.it.RegisterResourcesTest)

Tests run: 21, Failures: 0, Errors: 21, Skipped: 0

...skipped
[INFO] Apache Sling File Installer ....................... SUCCESS [4.405s]
[INFO] Apache Sling JCR Installer ........................ SUCCESS [2:27.044s]
[INFO] Apache Sling Installer Configuration Admin Support  SUCCESS [1.238s]
[INFO] Apache Sling Deployment Package Installer ......... SUCCESS [3.498s]
[INFO] Apache Sling Installer Integration Tests .......... FAILURE [3:31.511s]
[INFO] Apache Sling Launchpad Installer .................. SKIPPED
[INFO] Apache Sling Launchpad Content .................... SKIPPED
[INFO] Apache Sling Launchpad Application Builder ........ SKIPPED
...skipped

I suspect this is a issue that my machine doesn't have something it
need. I was unable to locate any logs files or details for the maven.
In order to debug it, I thought I would load the code into eclipse and
single step through it. Ha! Little did I know what a herculean task
that would be.

Stage 1: Checkout the Subversion integration for the M2Eclipse project:

Boom! I had the following error:

Cannot complete the install because one or more required items could
not be found.
  Software being installed: Subversive Integration for the CSC Project
Set Project 2.0.2.I20110227-1700
(org.polarion.eclipse.team.svn.projectset.feature.group
2.0.2.I20110227-1700)
  Missing requirement: Subversive Integration for the CSC Project Set
Project 2.0.2.I20110227-1700
(org.polarion.eclipse.team.svn.projectset.feature.group
2.0.2.I20110227-1700) requires 'com.csc.dip.projectset.feature.group

Well no problem I thought, I'll just use the instructions with all the
permutations of the following: Helios/Indigo,
Subversive/Subclipse/SvnKit. Sadly some significant time later, I hit
failure. The issue is that when you File/Import/Checkout Maven
Projects from SCM, the SCM Url was blank, as was the list of possible
candidates. Not dissuaded I hit the internet, and found other people
with the same issue. Unfortunately I didn't find anyone with
successful conclusions to the issue.

Feeling grumpy I decided to approach this another way. OK. Lets just
import the project, and sort out the build path the hard way. After
dealing with a few eclipse issues (it auto added 'invalid.jar' to the
build path for instance), I get to an old familiar problem:
"The project was not built since its build path is incomplete. Cannot
find the class file for javax.servlet.Servlet. Fix the build path then
try building this project"

The problem with this problem is that I need to know the target
Servlet.jar to point it at. I could not find one within the source
distribution, and pointing at a random one might do more harm than
good.

The life of an IT Developer is to spend most of it stuck. And today I
am feeling stuck.I would appreciate a hand with any of the following:
1: Roughly why would the "Apache Sling Installer Integration Tests"
fail. Do I need to be running something, is it an environment problem?
2: What Subversive plug in do you recommend, are there any extra
plugins that I need as well?
3: What version of the servlet.jar do you require. Even better is
there a Maven POM fragment that I can use?
4: If someone could update the article on how to get going with the
source code, that would be good

Reply via email to