You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2016/01/01 14:14:03 UTC

Re: [VOTE] Release Apache Maven Surefire Plugin version 2.19.1 - TAKE 2

Hi,

So after i've dived into this a little bit more...

The problem seemed to be located by the surefire-shadefire module which 
packages surefire version 2.12.4 for running the build..

The surefire-shadefire module will request a surefire-api-2.19.1 during 
the build which does not exist at this time of the build...based on this 
reactor build order:

[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Maven Surefire
[INFO] ShadeFire JUnit3 Provider
[INFO] SureFire API
[INFO] SureFire Booter

But of course the surefire-api-2.19.1 weill be build later cause the 
shadefire junit3 provider should contain jar's of version 2.12.4 (which 
are defined as dependencies of surefire-shadefire module).

So i have searched deeper and after a little while i realized that the 
problem is related to maven-enforcer-plugin which uses the 
enforceBytecodeVersion so i have simply deactived the 
enforce-bytecode-version step in the build and that's the culprit..

After deactivating this no further surefire-api-2.19.1 will be requested 
by the shadefire-junit3-provider...

So this is not a problem of Surefire it is a problem of the 
enforcerByteCodeVersion rule....(extra-enforcer-rule)...(I have not yet 
understand why the enforceByteCodeVersion requests a dependency which is 
not given in this module)...

And if this is deactivated i can simply build the whole surefire via:

mvn clean verify

perfectly...

also running all integration tests works without any issue...via

mvn -Prun-its clean verify ...


So apart from that i have checked via Maven 3.0.5, 3.1.1, 3.2.5, 3.3.9

via

mvn -Prun-its clean verify ...

without any issue...


So +1 from me...



On 12/31/15 4:15 PM, Tibor Digana wrote:
> @Karl
> I deleted surefire-api:2.19.1 and meta data from local .m2/repository and
> successfully run your command on extracted ZIP
> mvn clean verify -DskipTests

And afterwards you will find things like this (via find . -name "*2.19.1*"):

./surefire/surefire-api/2.19.1
./surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar.lastUpdated

in your local repository: .m2/repository ...


>
> Run it like this
> $ mvn install -P run-its
>
> I have built the project with success with command
> mvn install -P run-its -DskipTests
>
> You do not need to use Nexus on localhost. Check your environment issues
> maybe.

I allways have running a Nexus (localhost) on my machine...


>
> Cheers
> Tibor
>
> On Thu, Dec 31, 2015 at 3:52 PM, Karl Heinz Marbaise-3 [via Maven] <
> ml-node+s40175n5857087h37@n5.nabble.com> wrote:
>
>> Hi Tibor,
>>
>> i have tried to test with Maven 3.0.5 via mvn -Prun-its clean verify and
>> got the following message:
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ShadeFire JUnit3 Provider 2.19.1
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
>> surefire-shadefire ---
>> [INFO]
>> [INFO] --- maven-enforcer-plugin:1.3.1:enforce
>> (enforce-bytecode-version) @ surefire-shadefire ---
>> Downloading:
>>
>> http://localhost:8081/nexus/content/groups/public/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
>> [WARNING] Could not find artifact
>> org.apache.maven.surefire:surefire-api:jar:2.19.1 in nexus
>> (http://localhost:8081/nexus/content/groups/public)
>>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.maven.surefire
>> -DartifactId=surefire-api -Dversion=2.19.1 -Dpackaging=jar
>> -Dfile=/path/to/file
>>
>> Alternatively, if you host your own repository you can deploy the file
>> there:
>>       mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire
>> -DartifactId=surefire-api -Dversion=2.19.1 -Dpackaging=jar
>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>> Path to dependency:
>>          1) org.apache.maven.surefire:surefire-shadefire:jar:2.19.1
>>          2) org.apache.maven.surefire:surefire-junit3:jar:2.12.4
>>
>>
>>     org.apache.maven.surefire:surefire-api:jar:2.19.1
>>
>> from the specified remote repositories:
>>     nexus (http://localhost:8081/nexus/content/groups/public,
>> releases=true, snapshots=true)
>>
>> [WARNING] Failure to find
>> org.apache.maven.surefire:surefire-api:jar:2.19.1 in
>> http://localhost:8081/nexus/content/groups/public was cached in the
>> local repository, resolution will not be reattempted until the update
>> interval of nexus has elapsed or updates are forced
>>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.maven.surefire
>> -DartifactId=surefire-api -Dversion=2.19.1 -Dpackaging=jar
>> -Dfile=/path/to/file
>>
>> Alternatively, if you host your own repository you can deploy the file
>> there:
>>       mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire
>> -DartifactId=surefire-api -Dversion=2.19.1 -Dpackaging=jar
>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>> Path to dependency:
>>          1) org.apache.maven.surefire:surefire-shadefire:jar:2.19.1
>>          2) org.apache.maven.surefire:surefire-booter:jar:2.12.4
>>
>>
>>     org.apache.maven.surefire:surefire-api:jar:2.19.1
>>
>> from the specified remote repositories:
>>     nexus (http://localhost:8081/nexus/content/groups/public,
>> releases=true, snapshots=true)
>>
>> Kind regards
>> Karl Heinz Marbaise
>>
>> On 12/31/15 3:14 PM, Tibor Digana wrote:
>>
>>> Hi,
>>>
>>> We solved 17 issues:
>>>
>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12317927&version=12333959
>>>
>>> There are still a couple of issues left in JIRA:
>>>
>> https://issues.apache.org/jira/i#issues/?jql=project+%3D+SUREFIRE+AND+status+%3D+Open+ORDER+BY+priority+DESC
>>>
>>> Staging repo:
>>> https://repository.apache.org/content/repositories/maven-1241/
>>>
>> https://repository.apache.org/content/repositories/maven-1241/org/apache/maven/surefire/surefire/2.19.1/surefire-2.19.1-source-release.zip
>>>
>>> Source release checksum(s):
>>> surefire-2.19.1-source-release.zip sha1:
>>> 28c645b27a90830522ce87e9581e01a8df5a7c45
>>>
>>> Staging site:
>>> http://maven.apache.org/surefire-archives/surefire-LATEST/
>>>
>>> Guide to testing staged releases:
>>> http://maven.apache.org/guides/development/guide-testing-releases.html
>>>
>>> Vote open for 72 hours.
>>>
>>> [ ] +1
>>> [ ] +0
>>> [ ] -1
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5857087&i=0>
>> For additional commands, e-mail: [hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5857087&i=1>
>>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://maven.40175.n5.nabble.com/VOTE-Release-Apache-Maven-Surefire-Plugin-version-2-19-1-TAKE-2-tp5857081p5857087.html
>> To start a new topic under Maven Developers, email
>> ml-node+s40175n142166h86@n5.nabble.com
>> To unsubscribe from Maven Developers, click here
>> <http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=142166&code=dGlib3JkaWdhbmFAYXBhY2hlLm9yZ3wxNDIxNjZ8LTI4OTQ5MjEwMg==>
>> .
>> NAML
>> <http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/VOTE-Release-Apache-Maven-Surefire-Plugin-version-2-19-1-TAKE-2-tp5857081p5857093.html
> Sent from the Maven Developers mailing list archive at Nabble.com.
>


Mit freundlichem Gruß
Karl-Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise        USt.IdNr: DE191347579
Hauptstrasse 177
52146 Würselen                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org