Add Git (Gitorious) to Tikal ALM using ALM2 platform

0
Your rating: None

The plan for the session:
- add a new tab for Gitorious
- add plugin for Bugzilla-Gitorious integration, in Bugzilla it should "override" viewvc parameters and link
- hudson Git plugin - configure with Gitorious in order to see nicer change log
- git hooks: add check bug id to pre-commit and pre-receive hooks for central repo
- add Gitorious installation/configuration to Tikal ALM suite

 

* We will work in pairs like on the previous session.

* All participants should be ready with alm2 dev environment.

In order to prepare to the session, here are the steps to setup a development environment:

- checkout the sources: from http://dev.tikalk.com/svn/repos/private_branches/alm_2.0
- get buildr working: the easiest is to get a pre-made distribution from http://people.apache.org/~boisvert/buildr-1.3.5-jruby-1.4.0.zip. Make sure your Java env is set up, unzip anywhere
- compile: cd to the checkout directory and:
   > /bin/buildr com.tikal.alm:base:dist:assembly
   or under windows
   > \bin\buildr.cmd com.tikal.alm:base:dist:assembly
 - run: cd base/dist/target/assembly/bin and:
   > ./tikal_alm
   or under windows
   > ./tikal_alm.bat
- use: open a browser at localhost:8080/alm use admin:admin to login
- development env:
   - create the packages composing the target platform in eclipse
      > .../bin/buildr pde:target-platform 'sources=true'
   - create a target platform in eclipse and point to base/osgi/platform/target
   - import the projects to eclipse:
      > mv .project .project.mv
      import existing projects
      > mv .project.mv .project
      import again to get top-level project (this is optional)
- getting started: create new eclipse plugin project
- copy content of JavaConfigManifestExtras.txt into META-INF/MANIFEST.MF

- create / copy the spring integration files
- create a Config class

 

Links to git and Gitorious

 

Please don't forget to register! :)

Session Details
Status: 
Closed
Session Date & Time: 
Sun, 05/09/2010 - 09:00 - 17:00
Related multi-session event: 

Comments

Hi,

I am trying to follow the instructions and wrote a script to automate the process, however the build fails during some internal buildr phase related to maven repos.

 

Here is the script:

#!/bin/sh

export DEV_DIR=tikalk
export BUILDR=buildr-1.3.5-jruby-1.4.0

mkdir $DEV_DIR
cd $DEV_DIR

wget http://people.apache.org/%7Eboisvert/$BUILDR.zip
unzip $BUILDR.zip
chmod +x $BUILDR/bin/*

svn --username  --password   co http://dev.tikalk.com/svn/repos/private_branches/alm_2.0


cd alm_2.0

export PATH=$PATH:/usr/lib/jvm/java-6-sun-1.6.0.22/bin


../$BUILDR/bin/buildr  com.tikal.alm:base:dist:assembly

 

And this is the error (I understand its related to maven but i do not wish to start and change the repos used by buildr, or should I ?):

 

Cucumber required. Please run 'rake setup' first

and later this:

 

Downloading http://repository.springsource.com/maven/bundles/external/org/apache/xer...
com.springsour..: 100% |........................|    1.0KB/1.0KB Time: 00:00:00
Downloading org.apache.xml:com.springsource.org.apache.xml.resolver:jar:1.2.0
Downloading http://repository.springsource.com/maven/bundles/external/org/apache/xml...
execution expired   0% |                       |       0B/82.9KB ETA:  --:--:--
Buildr aborted!
Failed to download org.apache.xml:com.springsource.org.apache.xml.resolver:jar:1.2.0, tried the following repositories:
http://repo1.maven.org/maven2/                                                                                                   
http://repository.ops4j.org/maven2/                                                                                              
http://repo1.maven.org/eclipse/                                                                                                  
http://repository.springsource.com/maven/bundles/external/                                                                       
http://repository.springsource.com/maven/bundles/release/                                                                        
http://repository.springsource.com/maven/bundles/milestone/                                                                      
http://repository.springsource.com/maven/bundles/snapshot/                                                                       
http://maven.springframework.org/release/                                                                                        
http://maven.springframework.org/external/                                                                                       
http://maven.springframework.org/milestone/                                                                                      
http://springframework.svn.sourceforge.net/svnroot/springframework/repos...                                              
http://maven.springframework.org/snapshot/                                                                                       
http://maven.springframework.org/osgi/                                                                                           
http://www.aqute.biz/repo/                                                                                                       
http://network.tikalk.com/release/repository/                                                                                    
/home/lopi/Downloads/tikalk/alm_2.0/buildfile:25
/home/lopi/Downloads/tikalk/alm_2.0/buildfile:24:in `each'
/home/lopi/Downloads/tikalk/alm_2.0/buildfile:24:in `inject'
/home/lopi/Downloads/tikalk/alm_2.0/buildfile:24
(See full trace by running task with --trace)

 

The message about Cucumber is harmless

 

The longer error starts with: 

Failed to download org.apache.xml:com.springsource.org.apache.xml.resolver:jar:1.2.0, tried the following repositories:

 

So it can't find the artifact in question in any of the listed repositories. Try to locate it and either add another repository to buildfile or update the version of the artifact to a newer version that does exist. Try to first look at spring's enterprise repository

 

Thanks man,

I used a "wired" network connection (instead of wireless) and the artifacts are now downloading however I get:

 

lopi@freebsd:~/Downloads$ ./install.sh
Starting Tikal ALMListening for transport dt_socket at address: 8000
Debug options:
    file:/home/lopi/Downloads/tikalk/alm_2.0/base/dist/target/assembly/.options not found

osgi>  * 
lopi@freebsd:~/Downloads$ Time to load bundles: 575
!SESSION 2011-01-06 11:03:49.161 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -install /home/lopi/Downloads/tikalk/alm_2.0/base/dist/target/assembly
Command-line arguments:  -console -consoleLog -debug -install /home/lopi/Downloads/tikalk/alm_2.0/base/dist/target/assembly -data /home/lopi/Downloads/tikalk/alm_2.0/base/dist/target/assembly/var -configuration /home/lopi/Downloads/tikalk/alm_2.0/base/dist/target/assembly/etc/equinox

!ENTRY com.tikal.alm.web.core 4 0 2011-01-06 11:03:50.518
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: com.dappit.Dapper.parser; version="0.3.0"
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)

!ENTRY com.dappit.dapper.MozillaParser 4 0 2011-01-06 11:03:50.523
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: No match found for native code: external:lib/linux/i386/libMozillaParser.so; processor=x86; osname=linux, external:lib/windows/MozillaParser.dll; processor=x86; osname=winxp, external:lib/macosx/libMozillaParser.jnilib; processor=x86; osname=�macos x�
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)

!ENTRY com.tikal.alm.plugins.dashboard 4 0 2011-01-06 11:03:52.321
!MESSAGE 
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: com.tikal.alm.web.core; version="0.0.0"
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)

!ENTRY com.tikal.alm.plugins.wikify 4 0 2011-01-06 11:03:52.323

 

The relevant error is:

org.osgi.framework.BundleException: The bundle could not be resolved. Reason: No match found for native code: external:lib/linux/i386/libMozillaParser.so; processor=x86; osname=linux, external:lib/windows/MozillaParser.dll; processor=x86; osname=winxp, external:lib/macosx/libMozillaParser.jnilib; processor=x86; osname=�macos x�

 

In the bundle manifest there are directives pointing to native libraries based on os attributes. Your OS is not there (what is it?). Lior had something similar with his OS, I don't remember the resolution, but he has an updated bundle. Ask if he can upload it.

Now that you mention it I did remember he said something about 32 and 64 bit. This is my machine:

> uname -a
Linux freebsd 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 x86_64 GNU/Linux