Commit Graph

456 Commits

Author SHA1 Message Date
Hervé Boutemy 961746f25f [MNG-6571] separate caches for create from spec and version 2019-02-11 14:31:13 +01:00
Hervé Boutemy 657fbb76cf Revert "[MNG-6571] forgot to put new instance in cache"
This reverts commit 6bd8bb9ba6.
2019-02-06 08:49:04 +01:00
Hervé Boutemy 6bd8bb9ba6 [MNG-6571] forgot to put new instance in cache 2019-02-05 08:34:55 +01:00
Hervé Boutemy 8f9075d3ad [MNG-6571] cache VersionRange instances, they are immutable 2019-02-05 00:38:25 +01:00
Christian Schulte 44826ab446 [MNG-6164] Collections inconsistently immutable
Make non-empty collections returned immutable just like those returned by
java.util.Collections.
2018-10-09 22:12:50 +02:00
Hervé Boutemy 1f83d50db2 fixed typo + little javadoc improvements 2018-08-20 11:25:07 +02:00
Hervé Boutemy f5674713a6 improved documentation 2018-08-12 00:01:17 +02:00
Michael Osipov 9021d66e53 Move ArtifactUtilsTest and friends from maven-compat to maven-artifact 2018-05-08 00:18:49 +02:00
kevin-canadian 14365baabe [MNG-6403] Artifact#VERSION_FILE_PATTERN does not escape period between date and time
This closes #112
2018-05-08 00:14:09 +02:00
Sylwester Lachiewicz d925081794 Reduce number of global checkstyle rule violations
Fix code for following checkstyle rules:
ConstantName, FileLength, InnerAssignment, JavadocType, MagicNumber, MethodLength, MethodName, NewlineAtEndOfFile, ParameterNumber, RedundantThrows, VisibilityModifier

Fixes #149
2018-02-11 11:41:16 +01:00
Hervé Boutemy 0dc70cc691 upgrade m-site-p to 3.7 + Fluido 1.7 + edit button 2018-02-10 11:42:33 +01:00
Hervé Boutemy cf7b0a3ec0 fixed new issues reported by Checkstyle 6.18 2018-02-10 11:42:33 +01:00
Hervé Boutemy 567af0d964 use "java -jar" command 2017-04-12 03:59:44 +02:00
Lubomir Varga 6a93bbea23 Improve Javadoc of ComparableVersion#main()
This closes #108
2017-04-11 16:02:21 +02:00
rfscholte 0e7e3eeb59 [MNG-6176] Javadoc errors prevent release with Java 8
Upgrade to modello-1.9.1
Fix javadoc errors in tests
2017-03-18 12:55:05 +01:00
LuboVarga 10a18cfee7 Added some javadoc
Added javadoc help for making easier to compare two versions in command line.
2017-03-13 13:23:04 +01:00
rfscholte 587317b009 [MNG-6176] Javadoc errors prevent release with Java 8
Upgrade modello to 1.9.0
Fix invalid Javadoc
2017-03-10 16:17:28 +01:00
Michael Osipov b66bdb9cbc [MNG-6150] Javadoc improvements for 3.5.0
* Remove duplicate plugin configuration
* Add workaround for Javadoc locale
* Clean up errors reported by Javadoc 7

Note: Javadoc 8 fails immediately because Modello generates invalid
Javadoc
2017-02-15 17:30:46 +01:00
Alex Henrie 8d91726f78 [MNG-5934] String handling issues identified by PMD 2017-02-11 14:08:24 +01:00
Josh Soref 1740265984 [MNG-6146] Several small stylistic and spelling improvements to code and documentation
Spelling fixes:

* system
* tokenizer
* toolchain
* trailing
* transitive
* unsupported
* version
* artifact
* attachment
* codehaus
* colleagues
* comparison
* concurrency
* configure
* creation
* dependency
* descriptor
* downstream
* efficient
* e.g.
* elements
* encountered
* encounters
* environments
* executed
* explicitly
* happens
* hierarchical
* hierarchy
* ignore
* implemented
* implementers
* independence
* indicates
* inheritance
* inherited
* inherits
* install
* interface
* javascript
* laziness
* management
* maven
* metadata
* mgmt
* minimalist
* nonexistent
* objects
* overridden
* print
* project
* properties
* recessive
* referring
* repository
* representation
* retrieval
* retrieve
* rigorous
* should
* spontaneously
* subsequent

Literal fixes:

*  use static final values

Style fixes:

* use the proper term for char U+002D (-) hyphen(-minus) instead of dash

This closes #100
2017-02-03 10:12:28 +01:00
Michael Osipov 618e62dd33 [MNG-5649] Use Commons Lang's Validate to intercept invalid input
Use wherever possible Validate with consistent messages and exceptions.
2015-10-16 17:32:57 +02:00
Karl Heinz Marbaise 15223116a6 Fixed URL's to issue tracking after transition to
Apache Software Foundation.
2015-07-19 09:53:50 +02:00
Kristian Rosenvold 7badeb5b5b Upgraded to java7 language features 2015-06-20 10:56:07 +02:00
Hervé Boutemy 9afde51528 removed unused import 2014-11-30 23:34:00 +01:00
Hervé Boutemy 14e4885de9 [MNG-5568] fixed edge case version parsing bug causing inconsistent
comparison results
2014-11-30 23:26:12 +01:00
Hervé Boutemy 09d64bdf5c [MNG-5730] added CLI to test Maven version parsing and comparison 2014-11-30 21:57:07 +01:00
Michael Osipov 0343c52601 Trimmed trailing whitespace 2014-11-23 13:04:30 +01:00
Hervé Boutemy 366f57c563 updated parent pom (and fixed issues...) 2014-10-24 01:25:49 +02:00
Hervé Boutemy ca2b26ac5d fix a lot of checkstyle violations for future m-checkstyle-p 2.13, as
proof of concept for misc violations suppressions strategies
2014-08-19 00:17:28 +02:00
Hervé Boutemy 6683e8681f code formatting 2014-06-14 00:08:07 +02:00
Jason van Zyl af1ecd5f00 MNG-5645: When a number is not used in a version correctly, provide a better error.
Submitted by: Phil Pratt-Szeliga
2014-06-11 08:44:42 -04:00
Igor Fedorenko 0f1fcd7066 Revert "MNG-5552 made classifier part of MavenProject.artifactMap key"
This reverts commit f35698c790.

There are plugins that rely on the broken behaviour and I don't have the
time to fix this in backwards compatible way right now.

http://markmail.org/message/gjfuofw5gpsr5yxz

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2014-02-13 21:41:07 -05:00
Hervé Boutemy 4a39c02156 fixed errors reported by Checkstyle 2014-02-08 16:38:31 +01:00
Stephen Connolly 5cf05463a4 [MNG-3626] Small change to artifact version parsing.
Applied patch inspired by patch submitted by Paul Gier.

- Substantially rewrote test case to match current testing style

- Changed the patch to ensure that 4 segment number only version number are not affected... would be nice to pick them up but holding that change back for now
2014-01-07 16:38:01 +00:00
Stephen Connolly 445421051c potential NPE 2014-01-06 10:43:51 +00:00
Stephen Connolly 9bec8d7386 Use chained .append calls rather than concatenate strings in arguments to .append 2014-01-06 10:42:20 +00:00
Igor Fedorenko f35698c790 MNG-5552 made classifier part of MavenProject.artifactMap key
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
2013-12-17 12:56:36 -05:00
Arnaud Héritier 21907a74e7 Revert "Code cleanup - It's better (for perfs) to use a chain of append() calls than a unique append with several Strings concatenations"
This reverts commit c8e94a5b08.

Decreases too much the code readibility
2013-06-14 10:29:43 +02:00
Arnaud Héritier 456268af61 Code cleanup -  Remove Redundant Cast(s) 2013-06-11 22:28:48 +02:00
Arnaud Héritier 1f84f8f296 Code cleanup - Maven requires Java 5+ : Replace String.indexOf() by String.contains() 2013-06-11 22:19:20 +02:00
Arnaud Héritier 9e5183f0ad Code cleanup - Various code simplifications (tests, loops, …) 2013-06-11 22:09:51 +02:00
Arnaud Héritier c8e94a5b08 Code cleanup - It's better (for perfs) to use a chain of append() calls than a unique append with several Strings concatenations 2013-06-11 21:58:50 +02:00
Stephen Connolly c6c6bdc49f Add ASL license header 2013-05-28 10:19:32 +01:00
Hervé Boutemy b6e99c7676 added javadoc 2013-01-12 09:08:05 +01:00
Hervé Boutemy 3849bbd46a fixed errors reported by Checkstyle 2012-12-16 21:49:18 +01:00
Hervé Boutemy 543870467f fixed errors reported by Checkstyle 2012-12-02 20:22:52 +01:00
Herve Boutemy 57976a8b1a added javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1407894 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 22:16:09 +00:00
Herve Boutemy 6926782cca added test: 1.0-SNAPSHOT is not in [1.0,)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1397916 13f79535-47bb-0310-9956-ffa450edef68
2012-10-13 17:46:12 +00:00
Herve Boutemy a07abada2b added an introduction to Artifact API
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1391847 13f79535-47bb-0310-9956-ffa450edef68
2012-09-29 17:38:50 +00:00
Herve Boutemy 46c73b75de fixed documentation: snapshot is after rc, just before release
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1391100 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 17:08:35 +00:00