<bundle-version>$(replace;${project.version};-SNAPSHOT;.qualifier)</bundle-version>
I'm a software architect. I'm currently working in an integration team. Managing Continous Integration and building, lightweight test framework and other support tools. With this blog i'd like to share experience and receive others's feeling.
Tuesday, October 22, 2013
OSGI Maven bundle for Eclipse (Part 2)
In a previous post I use maven-bundle plugin to expose maven artifact as OSGI bundle.
I change a little my approach and now update the classpath manually.
After using this setup for a while, I experiment one problem : How to convert maven plugin version including -SNAPSHOT to .qualifier ?
After many search I found a solution using BND macro.
You "just" have to put in "Bundle-Version" this macro :
Wednesday, October 9, 2013
Sharing source through usb key and git
Aims :
Set up a git environment with for two desktops sharing source code through USB
Warning : all those commands have to be tested before use. Check git documentation for more explanations.
using git-bash, in the repository folder do
using git-bash, in the source folder do
create a .gitignore
Add a remote repository (assuming the drive is f)
Push sources
pull sources
if you want to overide local changes
at this point local untrack file and dir still exists (see git clean)
Set up a git environment with for two desktops sharing source code through USB
Warning : all those commands have to be tested before use. Check git documentation for more explanations.
git env creation on USB Key
using git-bash, in the repository folder do
$ git --bare init
git env creation on one desktop
using git-bash, in the source folder do
$ git init
manage ignored ressourcescreate a .gitignore
$ git add .gitignore
$ git commit -m "ignored resource"
avoid conversion from LF to CRLF $ git config core.autocrlf false
$ git config --global user.name "yourName"
$ git config --global user.email yourEmail
commit your existing sources$ git add --all
$ git commit -m "initial commit"
Add a remote repository (assuming the drive is f)
$ git remote add origin /f/path/to/repo/
Push sources
$ git push origin master
On the second desktop
using git-bash, in the source folder do$ git init
$ git remote add origin /f/path/to/repo/
pull sources
$ git pull origin master
Tips
if you want to overide local changes
$ git fetch origin master
$ git reset --hard FETCH_HEAD
at this point local untrack file and dir still exists (see git clean)
Subscribe to:
Posts (Atom)