Also
https://lists.apache.org/thread.html/r7f5a62fd35dc6698c8f7097734f7c4acf4bb657d6c721e8a7bc76b8c%40%3Cusers.maven.apache.org%3E

T

On Tue, Aug 24, 2021 at 2:19 PM Tamás Cservenák <ta...@cservenak.net> wrote:

> See this https://issues.apache.org/jira/browse/MNG-7219
>
> HTH
> T
>
> On Tue, Aug 24, 2021 at 2:15 PM Alexander Kriegisch <
> alexan...@kriegisch.name> wrote:
>
>> In a Maven plugin project, I use the Maven Core API and also
>> maven-plugin-testing-harness 3.3.0. It looks as if the testing harness at
>> some point wans to access Plexus Cipher and then while running tests with
>> Surefire, it throws:
>>
>> java.lang.ClassNotFoundException:
>> org.sonatype.plexus.components.cipher.PlexusCipherException
>>
>> If I compare the dependency trees of Maven Core between 3.8.1 and 3.8.2,
>> I see:
>>
>> +- org.apache.maven:maven-core:jar:3.8.1:provided
>> |  +- org.apache.maven:maven-settings:jar:3.8.1:compile
>> |  +- org.apache.maven:maven-settings-builder:jar:3.8.1:compile
>> |  |  \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
>> |  |     \- org.sonatype.plexus:plexus-cipher:jar:1.4:compile
>>
>>
>> Versus:
>>
>> +- org.apache.maven:maven-core:jar:3.8.2:provided
>> |  +- org.apache.maven:maven-settings:jar:3.8.2:compile
>> |  +- org.apache.maven:maven-settings-builder:jar:3.8.2:compile
>> |  |  \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
>>
>>
>> In 3.8.2, Plexus Cipher is defined in the Maven Core POM as a test-scoped
>> dependency. This seems to lead to the effect of it not being found by the
>> test harness class. The workaround to add Plexus Cipher as a direct
>> dependency to my plugin project works, but my own classes do not depend on
>> it, so dependency:analyze would always report it as a declared but unused
>> dependency, and rightly so.
>>
>> Please advise me what I should do: File an issue? If so, in which Jira
>> project?
>> --
>> Alexander Kriegisch
>> https://scrum-master.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>

Reply via email to