2022-10-02 04:41:25 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven</artifactId>
|
2024-10-19 14:11:20 -04:00
|
|
|
<version>4.0.0-beta-6-SNAPSHOT</version>
|
2022-10-02 04:41:25 -04:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>maven-api</artifactId>
|
|
|
|
<packaging>pom</packaging>
|
2022-12-31 11:32:07 -05:00
|
|
|
<name>Maven 4 API</name>
|
|
|
|
<description>A new immutable API for Maven 4 to better manage what plugins and extensions can influence.</description>
|
2022-10-02 04:41:25 -04:00
|
|
|
|
|
|
|
<modules>
|
|
|
|
<module>maven-api-meta</module>
|
2024-02-05 04:45:47 -05:00
|
|
|
<module>maven-api-di</module>
|
2022-10-02 04:41:25 -04:00
|
|
|
<module>maven-api-xml</module>
|
|
|
|
<module>maven-api-model</module>
|
2023-12-05 03:11:33 -05:00
|
|
|
<module>maven-api-plugin</module>
|
2022-10-02 04:41:25 -04:00
|
|
|
<module>maven-api-settings</module>
|
|
|
|
<module>maven-api-toolchain</module>
|
2024-04-11 10:06:34 -04:00
|
|
|
<module>maven-api-metadata</module>
|
2022-10-02 04:41:25 -04:00
|
|
|
<module>maven-api-core</module>
|
2023-06-28 16:32:38 -04:00
|
|
|
<module>maven-api-spi</module>
|
[MNG-8283] Maven CLIng (#1750)
New CLI for Maven. Goals are reusability, extensibility and easier embeddability (a la mvnd). If you build this branch, you will end up with Maven distro that uses "new" `maven-cli:org.apache.maven.cling.MavenCling` class as entry point instead of "old" `maven-embedder:org.apache.maven.cli.MavenCli`.
First step is to make "pretty much equivalent" capable CLI as compared to "old", with some exceptions:
* "encryption" ops are gone, those should be in separate tool anyway
* "deprecated and unsupported" CLI options like `-llr` present ONLY to make Maven fail are gone (now Arg parser will fail).
Current state of affairs is messy, MavenCli mixes everything it can, contains interleaved logic for bootstrapping, arg parsing, default logic and executing Maven. First goal is to clean this up.
Commons CLI are also hidden in this PR, so is ClassWorlds. This basically opens up way to have "alternative" CLI arguments parsers as well.
Currently the "local" (CLI) flow is this:
```
arg[] -> localParser -> Request -> localInvoker -> maven runs (in situ)
```
But the point is if you "come up" somehow with a Request instance, one can also do just:
```
Request -> invoker -> maven runs (somewhere)
```
Local parser:
* parses CLI args
* infers the defaults
* creates Request object that contains all information needed to run Maven
* can be reused outside of CLI as well
* does NOT fiddle with Plexus, logging, etc.
Local invoker:
* accepts Request object
* deals with configuring env (logging, etc), creating DI container, and running Maven ONLY
There are some experiments ongoing as well, like `ForkedInvoker` is, but also `MavenTool`.
---
https://issues.apache.org/jira/browse/MNG-8283
2024-10-03 12:03:55 -04:00
|
|
|
<module>maven-api-cli</module>
|
2022-10-02 04:41:25 -04:00
|
|
|
</modules>
|
|
|
|
|
2022-12-31 11:32:07 -05:00
|
|
|
<properties>
|
|
|
|
<project.directory>api</project.directory>
|
|
|
|
</properties>
|
|
|
|
|
2023-01-03 16:08:35 -05:00
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.modello</groupId>
|
|
|
|
<artifactId>modello-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>modello-site-docs</id>
|
|
|
|
<goals>
|
|
|
|
<goal>xdoc</goal>
|
|
|
|
<goal>xsd</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>none</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
|
2022-12-31 11:32:07 -05:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>reporting</id>
|
|
|
|
<reporting>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<tags>
|
|
|
|
<tag>
|
|
|
|
<name>provisional</name>
|
|
|
|
<placement>tf</placement>
|
|
|
|
<head>Provisional:</head>
|
|
|
|
</tag>
|
|
|
|
</tags>
|
|
|
|
</configuration>
|
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<id>aggregate</id>
|
|
|
|
<reports>
|
|
|
|
<report>aggregate</report>
|
|
|
|
</reports>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jxr-plugin</artifactId>
|
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<id>aggregate</id>
|
|
|
|
<reports>
|
|
|
|
<report>aggregate</report>
|
|
|
|
</reports>
|
|
|
|
<inherited>false</inherited>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
2022-10-02 04:41:25 -04:00
|
|
|
</project>
|