[ 
https://issues.apache.org/jira/browse/CASSANDRA-16597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342813#comment-17342813
 ] 

Stefan Miklosovic commented on CASSANDRA-16597:
-----------------------------------------------

Hi [~slachiewicz],

there are two components:

1) Maven wrapper

2) maven wrapper plugin

Maven wrapper is going to be introduced in Maven 4, it is not in 3.8.1 yet. 
Maven wrapper plugin was made standalone repository. If I understand that 
correctly, Maven wrapper plugin is something Maven wrapper is created by.

The thing is that I was not able to boostrap it with this new plugin yet, even 
maven-wrapper-plugin is released in Maven central, it fails on this:

 
{code:java}
$ mvn -X -N org.apache.maven.plugins:maven-wrapper-plugin:3.0.2:wrapper
... other output
Caused by: org.apache.maven.plugin.MojoFailureException: wrapperVersion not 
supported for Maven 3.8.1, it must be at least 4.
    at org.apache.maven.plugins.wrapper.WrapperMojo.execute 
(WrapperMojo.java:124){code}
[https://github.com/apache/maven-wrapper-plugin/blob/master/src/main/java/org/apache/maven/plugins/wrapper/WrapperMojo.java#L68-L72]

Specifying something like
{code:java}
$ mvn -X -N org.apache.maven.plugins:maven-wrapper-plugin:3.0.2:wrapper 
-DmavenVersion=3.8.1 -DwrapperVersion=4.0.0
{code}
results in
{code:java}
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not 
find artifact org.apache.maven:apache-maven-wrapper:zip:script:4.0.0 in central 
(https://repo.maven.apache.org/maven2){code}
What I would do here is that I would wait for Maven 4 to be out so we can use 
this plugin to generate a wrapper which would be on 4. We could either do this 
now and then regenerate stuff and so on and spend time again to align it (or we 
would stay on this 3rd party plugin for ever) or we wait until 4 is out and we 
do it properly.

 

> Introduce Maven wrapper to build for Maven-less build environments
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-16597
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16597
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.0.x
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> With the introduction of CASSANDRA-16391, the build machine needs to have 
> Maven installed locally as it executes "mvn" command in its tasks. This might 
> be avoided by adding Maven wrapper which would download (and cache) such 
> installation so build environment might be completely Maven-less otherwise.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to