Commit Graph

216 Commits

Author SHA1 Message Date
Guillaume Nodet 386efc3d6c Reformat 2023-06-05 08:54:28 +02:00
Tamas Cservenak 5e0613e996 [MNG-7788] Fix for IT MavenITmng6562WarnDefaultBindings (#261)
The MavenITmng6562WarnDefaultBindings IT tests new Maven4 feature "fail on severity" (for WARN level).

The stub core plugin maven-resources-plugin depends on maven-compat, and it emits plugin validation warning.

BEFORE MNG-7788 was merged, the warnings were logged AFTER build summary and was not picked up by "fail on severity".

AFTER MNG-7788 merged, it causes that warnings breaks the build, as "fail on severity" is set to WARN level.

Fix:
The stub maven-resources-plugin does NOT need to depend on maven-compat, what it really needs is maven-core (for MavenProject).
2023-05-19 20:33:57 +02:00
Guillaume Nodet 7366fe6bd7 [MNG-7038] Introduce public properties to point to the root and top directories of (multi-module) project 2023-04-20 12:57:57 +02:00
Petr Široký 19e668e096 [MNG-7661] Fix few build / compiler warnings 2023-03-13 23:11:19 +01:00
Tamas Cservenak 57c1066862 [MNG-7706] Fix for ITs WARNING detection (#245)
The MNG-7706 deprecates ancient ArtifactRepository type use to get access to local repository, and issues warning as for any other deprecated Mojo parameters.

But alas, in ITs the MNG-5576 completely unrelated IT there is an assertion to have WARNING-free log. This IT uses the IT-plugins/IT-plugin-expression EvalMojo, that in turn uses the deprecated `${localRepository}` parameter (but does not use it). Result is, Maven 3.9.1 emits a WARNING about use of deprecated parameter and the IT fails.

Further inspection shows, that while EvalMojo injects ArtifactRepository for local repository, there is only one IT that actually uses it, the MNG-4305, but even that one is interested in basedir of the local repository only. So to say, the use of deprecated ArtifactRepository type is not needed at all.

Fix:
* change EvalMojo to not expose in context the localRepository (w/ type ArtifactRepository), but a new expression `localRepositoryBasedir` only, that is injected in non-deprecated way (in real life repoSysSession would be injected, but in IT we keep all super-safe and use Object types).
* adjusted MNG-4305 to use new epxression instead to use object reflection in template to get basedir from ArtifactRepository
* This makes the originally failing MNG-5576 pass, as warning due EvalMojo is gone.

See
https://issues.apache.org/jira/browse/MNG-7706
https://github.com/apache/maven/pull/1009
2023-02-23 13:52:03 +01:00
Guillaume Nodet 59f503bece Modernize IT plugins to use annotations (#184)
* Modernize IT plugins to use annotations

* Align some tests to maven 3.8.6

# Conflicts:
#	core-it-suite/src/test/resources-filtered/bootstrap.txt
#	core-it-suite/src/test/resources/mng-3221/report/pom.xml
#	core-it-suite/src/test/resources/mng-3428/pom.xml
#	core-it-suite/src/test/resources/mng-3530/build-path/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3530/pom-property/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3530/resource-object/plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3704/maven-mng3704-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/plugins/maven-mng3743-check-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/plugins/maven-mng3743-report-plugin/pom.xml
#	core-it-suite/src/test/resources/mng-3743/project/pom.xml
#	core-it-suite/src/test/resources/mng-4086/repo/org/apache/maven/its/mng4086/maven-it-plugin-a/0.1/maven-it-plugin-a-0.1.pom
#	core-it-suite/src/test/resources/mng-4086/repo/org/apache/maven/its/mng4086/maven-it-plugin-a/0.2-SNAPSHOT/maven-it-plugin-a-0.2-20090315.124508-1.pom
#	core-it-suite/src/test/resources/mng-5581-lifecycle-mapping-delegate/extension/pom.xml
#	core-it-suite/src/test/resources/mng-7310-lifecycle-activated-in-specified-module/project/pom.xml

* Add dependencies on all support artifacts to ensure multithreaded builds can use correct ordering

* Add missing dependencies on plexus-utils

* Fix for mng-7335 test

* Fix ITs for maven 4

* Rename Component -> TestComponent to leave room for the annotation

* Upgrade a few plugin versions

* Upgrade some JDK requirements to 1.8

* Remove unwanted parentheseses

* Convert the last mojo to annotations

* Force timestamped build

* Fix ITs following Component -> TestComponent rename

* Remove commented block

* Remove versions infered from plugin management

* The implementation parameter is not supported anymore

* Align maven core version

* Fix bad merge
2023-01-11 13:35:56 +01:00
Petr Široký 9eb3ee980f [MNG-7661] Use provided scope for Maven deps in IT plugins 2023-01-09 16:46:14 +01:00
Guillaume Nodet 6e8ff2d151 Move ITs to JDK 8 / JUnit 5 (#176)
* Move ITs to JDK 8 / JUnit 5
* Add missing tests, move disabled test comments to the test itself
* Add unreferenced tests (Unreferenced tests are automatically added at the beginning, but it looks more coherent to add them anyway)
* Reset verifier to run fresh test in MNG-5581
* Remove useless lines
* Minimize changes in imports

Co-authored-by: Michael Osipov <michaelo@apache.org>
2022-09-30 22:23:04 +02:00
Henning P. Schmiedehausen 1307bf39a4 [MNG-7529] Integration test for MNG-7529
This test checks whether version range resolution with multiple repositories maps releases onto repos that
are not enabled for releases.

Tested with 3.8.x, 3.9.x and master. Reliably fails without the MNG-7529 fix applies, reliable passes with
the fix applied.
2022-08-21 21:35:32 -07:00
Marc Wrobel d98b1842d5 Fix minor typos
Fix various minor typos in :

- project documentations,
- javadoc and comments,
- test class and method names,
- exception messages.
2022-07-19 19:36:32 +02:00
Slawomir Jaranowski fa2ff6e83a [MNG-7468] Check unsupported plugins parameters in configuration 2022-06-03 22:35:27 +02:00
Slawomir Jaranowski 8fd5645e36 [MNG-7464] Warn about using read-only parameters for Mojo in configuration 2022-05-05 21:11:39 +02:00
Slawomir Jaranowski cbafd073be [MNG-7457] Warn about deprecated plugin Mojo 2022-04-24 15:45:31 +02:00
Slawomir Jaranowski c8413005bc [MNG-5222] Improvement in deprecated params detection enable for 3.9.x 2022-04-23 12:29:19 +02:00
Slawomir Jaranowski c8c99c3d40 [MNG-5222] Improvement in deprecated params detection 2022-04-23 09:23:58 +02:00
Michael Osipov 98be639aa6 Replace o.codehaus.doxia.sink.Sink with o.a.m.doxia.sink.Sink 2022-04-15 18:22:03 +02:00
Slawomir Jaranowski 8599cec4a7 [MNG-5222] Maven 3 no longer logs warnings about deprecated plugin parameters 2022-04-12 20:48:55 +02:00
Hervé Boutemy e4b2fc737f document addition resolution groups, fix javadoc, upgrade parent 2022-01-16 01:56:01 +01:00
Arturo Bernal f1c00d92d5 [MNG-7231] Fix Javadoc errors
This closes #112
2021-09-05 21:18:50 +02:00
Michael Osipov 4d3a6397fe Normalize line endings 2021-08-02 15:35:52 +02:00
Michael Osipov 6b0efd992c Trim trailing whitespace 2020-12-24 00:31:14 +01:00
Michael Osipov 3b4ecab8ba Move test plugin for MNG-4338 to Maven 3.0 Plugin API 2020-11-14 01:11:05 +01:00
rfscholte de89cf15c7 Lock plugin versions in extension lifecycle to prevent it'll pick up the LATEST, which might behave differently 2020-06-19 23:12:36 +02:00
olivier lamy bb1b892144 [MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) keep adding to the List duplicate artifacts
Signed-off-by: olivier lamy <olamy@apache.org>
2020-06-04 11:49:52 +10:00
Karl Heinz Marbaise d2342c1f87 Removed scm parts which are inherited and fixed GitHub URL. 2019-12-28 23:02:57 +01:00
Karl Heinz Marbaise 00e6f20bf5 Updated scm information to point to git instead of svn. 2019-12-28 22:46:29 +01:00
Karl Heinz Marbaise 5de5200218 Removed SVN legacy. 2019-12-27 14:21:25 +01:00
rfscholte 2e4f619126 [MNG-6759] Fix module name 2019-11-17 22:56:46 +01:00
Stig Døssing 6700a88209 [REGRESSION] Maven fails to use <repositories> section from dependency when resolving transitive dependencies in some cases 2019-11-17 22:09:10 +01:00
Joseph Walton b4a1558c6e [MNG-4385] Avoid failse positive for unrelated errors
Inspect the log to be confident that this build is failing because
the extension hasn't carried over to the second module.

This closes #44
2019-07-03 15:05:09 +02:00
Sylwester Lachiewicz aff570ba05 [MNG-6513] Migrate Plexus Javadoc Tags to Plexus Annotations 2019-01-03 23:02:56 +01:00
Sylwester Lachiewicz 1bf5463c08 [MNG-6481] Cleanup auto generated methods
Remove open tasks in Jenkins
2018-11-08 02:47:31 +01:00
Christian Schulte d1b0435670 [MNG-5940] Change the maven-source-plugin jar goal into jar-no-fork in Maven Super POM 2018-05-27 10:34:38 +02:00
Michael Osipov 9abd8fdc48 [MNG-6229] Write out optionality in Core IT Plugins for collection and resolution
Write out " (optional)" in the log entry as well as to the file for later
analysis.
2017-05-09 23:30:06 +02:00
Anton Tanasenko 89afd751a0 [MNG-5958] restore binary compatibility of Lifecycle.setPhases
Modify tests for MNG-5805

This closes #13 #18
2017-01-26 20:24:02 +01:00
Kristian Rosenvold e8de3ad0a1 Moved test extension and support code to the proper place. Hopefully this will make
test more reliable
2015-06-23 19:14:10 +02:00
Kristian Rosenvold 248f1b4be5 Java7 here too... 2015-06-20 15:27:14 +02:00
Hervé Boutemy 623d54f199 updated parent pom and fixed little errors reported by Checkstyle 2015-03-04 02:03:15 +01:00
Hervé Boutemy fb96423f46 [MNG-5716] IT to check ToolchainManagerPrivate.getToolchainsForType()
does not return toolchains that are not of expected type
2014-11-02 19:39:46 +01:00
Jason van Zyl 547dfc20ec Adjust for the fact that the maven-plugin-plugin is run in process-classes. 2014-06-12 14:46:59 -04:00
Hervé Boutemy 4de651945c restored mojo with setter IT 2014-06-01 18:21:43 +02:00
Hervé Boutemy 25a70d22de upgraded plugin-tools 2014-06-01 18:09:34 +02:00
Hervé Boutemy 39b4723b83 improved javadoc 2014-06-01 17:49:16 +02:00
Hervé Boutemy 8988fc794e improved desriptions 2014-05-31 14:37:27 +02:00
Hervé Boutemy aac1c6d9df improved documentation 2014-05-31 14:30:29 +02:00
Hervé Boutemy 32b5c9fd49 use MPLUGIN-159 @requiresDependencyCollection annotation 2014-03-08 11:40:47 +01:00
Hervé Boutemy 9587fd2f5a fixed IT broken when using plugin-tools 3.x instead of 2.9, with
property meaning changed by MPLUGIN-199
2014-02-09 21:32:17 +01:00
Hervé Boutemy 668b1cd0f9 clean up maven-plugin-plugin definition, already inherited from parent 2014-02-09 18:43:23 +01:00
Hervé Boutemy e236de1d1e updated maven-plugin-plugin to latest, replacing expression with
property
2014-02-09 18:14:40 +01:00
Hervé Boutemy b6a2d25d2c last core IT fixed 2013-05-18 14:56:48 +02:00