Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically create a debian package at the maven build #82

Closed
dzc34 opened this issue Jul 23, 2017 · 1 comment
Closed

Automatically create a debian package at the maven build #82

dzc34 opened this issue Jul 23, 2017 · 1 comment

Comments

@dzc34
Copy link
Member

dzc34 commented Jul 23, 2017

Previous discussion with @rydroid:
https://github.com/Asqatasun/Asqatasun/issues/158

It is a "feature" proposition. There is no Debian package and even no way to build one. It would be great to have a way to build (...)

similar issue but more complete
#81 Debian package and submit it to Debian

maven plugin Jdeb

maven plugin to create Debian packages from Java builds

testing in debian branch : it's works, but not ready for submit it to Debian repository (and not easy)
https://github.com/Asqatasun/Contrast-Finder/blob/debian/webapp/pom.xml#L252

git clone https://github.com/Asqatasun/Contrast-Finder
cd Contrast-finder
git checkout develop
mvn clean install
cd webapp/target

# check package
apt-get install    lintian      
dpkg --contents *.deb 
lintian -Iv *.deb 
lintian -i *.deb 

# install package
dpkg -i *.deb
apt-get -f install

      # in your browser
      # http://localhost:8080/contrast-finder/

# See package information
dpkg -l tomcat7 libspring-instrument-java contrast-finder-webapp

# Check directories
ls -l /etc/contrast-finder
ls -l /var/log/contrast-finder/
ls -l /var/lib/tomcat7/webapps
ls -l /usr/share/tomcat7/lib/spring3-instrument-tomcat* 

# uninstall  contrast-finder
dpkg  --purge  contrast-finder-webapp

    # or
    # uninstall contrast-finder + dependencies
    dpkg  --purge   contrast-finder-webapp
    apt-get remove tomcat7 libspring-instrument-java 
    apt-get autoremove
@dzc34
Copy link
Member Author

dzc34 commented Jul 23, 2017

reopened:

  • missing documentation
  • build travis fail
[INFO] hsv ................................................ SUCCESS [  3.185 s]
[INFO] contrast-finder-webapp ............................. FAILURE [  6.566 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.vafer:jdeb:1.5:jdeb (default) on project webapp: 
Failed to create debian package /home/travis/build/Asqatasun/Contrast-Finder/webapp/target/contrast-finder_0.6.1-dev.deb: 
Could not create deb package: Data source not found : 
/home/travis/build/Asqatasun/Contrast-Finder/webapp/target/classes/conf/contrast-finder.log -> [Help 1]

@dzc34 dzc34 reopened this Jul 23, 2017
@dzc34 dzc34 closed this as completed in c1fe90a Jul 24, 2017
dzc34 added a commit to dzc34/Contrast-Finder that referenced this issue Jul 28, 2017
dzc34 added a commit to dzc34/Contrast-Finder that referenced this issue Jul 28, 2017
----------------------

  set version to 0.7.0
  fixed Asqatasun#24 added color picker
  CSS - Adding bootstrap source files
  webapp: typo
  Fixed Asqatasun#62 differences between documentation in English and French
  webapp: typo
  Fixed Asqatasun#82 - Added .deb in tar.gz
  Fixed travis build
  Revert "Starting a Debian package"
  fixed Asqatasun#82 - create a debian package at the maven build
  test jdeb maven plugin
  Starting a Debian package
  set version to 0.6.1-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant