GithubHelp home page GithubHelp logo

stratio / unix-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roclas/unix-maven-plugin

68.0 86.0 7.0 2.17 MB

unix-maven-plugin on steroids

License: MIT License

Java 86.40% Shell 0.58% XSLT 1.76% CSS 0.21% Groovy 11.05%
deb rpm linux maven-plugin

unix-maven-plugin's Introduction

Coverage Status

unix-maven-plugin

Stratio's fork of the unix-maven-plugin from the Codehaus Mojo project.

used in every Stratio platform component.

unix-maven-plugin's People

Contributors

adoblas avatar ajnavarro avatar bitdeli-chef avatar knutsiem avatar lasergnu avatar mlorenzo-stratio avatar roclas avatar smola avatar trygvis avatar witokondoria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unix-maven-plugin's Issues

ZipPackageTest test fails with Oracle JDK 8

   testBasic(com.stratio.mojo.unix.maven.zip.ZipPackageTest) Time elapsed: 0.127 sec <<< FAILURE!
   junit.framework.AssertionFailedError: ./dirs/, timestamp expected:<2012-08-19T10:34:10.000> but  was:<2012-08-19T10:34:10.157>
   at junit.framework.Assert.fail(Assert.java:47)
   at junit.framework.Assert.failNotEquals(Assert.java:280)
   at junit.framework.Assert.assertEquals(Assert.java:64)
   at com.stratio.mojo.unix.maven.zip.ZipPackageTest.assertDirectory(ZipPackageTest.java:148)
   at com.stratio.mojo.unix.maven.zip.ZipPackageTest.testBasic(ZipPackageTest.java:131)

https://travis-ci.org/Stratio/unix-maven-plugin/jobs/46753865#L2107

Setting to specify package name

Currently package name is equal to the artifactId. However, we need more fine grained control and specify the exact package name.

This is required by Stratio Ingestion packaging.

Rework versions mapping to support -rcX releases and other common conversions

Currently, deb generation fails when mapping -rc1 version.

Versioning docs

Maven

http://docs.codehaus.org/display/MAVEN/Versioning

RPM

http://fedoraproject.org/wiki/Packaging%3aNamingGuidelines#NonNumericRelease
https://twiki.cern.ch/twiki/bin/view/Main/RPMAndDebVersioning

DEB

https://twiki.cern.ch/twiki/bin/view/Main/RPMAndDebVersioning
https://www.debian.org/doc/debian-policy/ch-controlfields.html

Version mapping

Here's the Maven to deb/rpm mappings to be used in unix-maven-plugin. In deb and rpm, the part after the last hyphen denotes the revision part. Timestamp for all examples is 20090423095107 (used for SNAPSHOT version mapping).

Notes on DEB: Revision for Debian will be always 1 unless explicitely set in pom.xml.

Notes on RPM: Revision for RedHat will be used to properly map post- and pre- releases following the Fedora Packaging guidelines. Recent RPM versions support the use of tilde (~) with the same behaviour as in DEB. RHEL >=6 and Fedora support such behaviour. At the moment, we ignore this and implement a fully backwards-compatible behaviour. Optional support for tilde is left as a future issue.

maven deb rpm
1 1-1 1-1
1 rev: 3 1-3 1-3
1.5 1.5-1 1.5-1
1.0-1 rev: 3 1.0-1-3 1.0_1-3
1.0-1 1.0-1-1 1.0_1-1
1.0-rc1 1.0~rc1-1 1.0-0.1.rc1
1.0-alpha-1 1.0~alpha-1-1 1.0-0.1.alpha_1
1.0-SNAPSHOT 1.0~20090423095107-1 1.0-0.1.20090423095107
1.0-rc1-SNAPSHOT 1.0rc120090423095107-1 1.0-0.1.rc1 1
1.0-SNAPSHOT rev: 3 1.0~20090423095107-3 1.0-0.1.20090423095107.3
  • 1 There is no way to properly map -rc1-SNAPSHOT to RPM versions, so when a pre-release qualifier is found (e.g. -rcX, -alphaX), SNAPSHOT timestamp is ignored.

Unsupported versions

At the moment, this plugin does not support all versioning schemes supported by Maven. Most notably, prerelease qualifiers (e.g. rc1, alpha1, b1) must be separated with a dash. Other notations (underscore, dot or no separator) are not supported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.