```ruby
name "loom-server"
default_version "develop"

source :git => "git://github.com/continuuity/loom.git"
relative_path 'server'

build do
  command "mkdir -p #{install_dir}/server/bin"
  command "cp -fpPR bin/loom-server.sh #{install_dir}/server/bin"
  command "cp -fpPR docs/licenses config #{install_dir}/server"
  command "mkdir -p #{install_dir}/server/conf #{install_dir}/server/etc/logrotate.d"
  command "cp -f distribution/etc/logrotate.d/loom-server #{install_dir}/server/etc/logrotate.d"
  command "cp -f distribution/etc/loom/conf.dist/* #{install_dir}/server/conf"
  command "sed -e 's/APP_NAME/loom-server/g' -e 's/SVC_NAME/server/g' bin/loom-service > #{install_dir}/server/bin/init-loom-server"
  command "chmod +x #{install_dir}/server/bin/*"
  command "mkdir -p #{install_dir}/server/lib"
  command "cp -fpPR server/pom.xml server/src ."
  command "PATH=/usr/local/maven-3.1.1/bin:$PATH mvn clean package assembly:single -DskipTests=true"
  command "cp -fpPR target/loom-*jar-with-dependencies.jar #{install_dir}/server/lib"
end
```

Remove copying of pom.xml and src to root of checkout and change to server directory prior to building
user
```ruby
name "loom-server"
default_version "develop"

source :git => "git://github.com/continuuity/loom.git"
relative_path 'server'

build do
  command "mkdir -p #{install_dir}/server/bin"
  command "cp -fpPR bin/loom-server.sh #{install_dir}/server/bin"
  command "cp -fpPR docs/licenses config #{install_dir}/server"
  command "mkdir -p #{install_dir}/server/conf #{install_dir}/server/etc/logrotate.d"
  command "cp -f distribution/etc/logrotate.d/loom-server #{install_dir}/server/etc/logrotate.d"
  command "cp -f distribution/etc/loom/conf.dist/* #{install_dir}/server/conf"
  command "sed -e 's/APP_NAME/loom-server/g' -e 's/SVC_NAME/server/g' bin/loom-service > #{install_dir}/server/bin/init-loom-server"
  command "chmod +x #{install_dir}/server/bin/*"
  command "mkdir -p #{install_dir}/server/lib"
  command "cd server && PATH=/usr/local/maven-3.1.1/bin:$PATH mvn clean package assembly:single -DskipTests=true"
  command "cp -fpPR target/loom-*jar-with-dependencies.jar #{install_dir}/server/lib"
end
```
assistant