Re: Transfer failed in an IPv6-only (+NAT64) environment

2024-06-04 Thread Willy Manga

.
On 31/05/2024 17:46, Willy Manga wrote:

Hi,

On 31/05/2024 17:11, Tamás Cservenák wrote:

And one more hint:

See https://bugs.openjdk.org/browse/JDK-8311547
and read about java.net.preferIPv6Addresses Java system property...

Also, try to invoke Maven as:
MAVEN_OPTS="-Djava.net.preferIPv6Addresses=true" mvn package -X


java.net.preferIPv6Addresses=system

is even better. You let the OS handle that part.



--
Willy Manga


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



RE: Re: Custom auth plugin/extension - how to?

2024-06-04 Thread David Grieve
Thank you for the hint, Tamás.

The problem I’m trying to solve is that I want a custom Authentication for a 
particular server. I do not want to re-implement HttpTransporter. Here are the 
important bits of what I’ve come up with.
--
public class MyTransporterFactory implements TransporterFactory {

// copied from org.eclipse.aether.transport.http.HttpTransporterFactory
private static Map 
getManuallyCreatedExtractors() {
HashMap map = new HashMap<>();
map.put(Nexus2ChecksumExtractor.NAME, new Nexus2ChecksumExtractor());
map.put(XChecksumChecksumExtractor.NAME, new 
XChecksumChecksumExtractor());
return Collections.unmodifiableMap(map);
}

// I’m not happy with this...
private final HttpTransporterFactory httpTransporterFactory = new 
HttpTransporterFactory(getManuallyCreatedExtractors());

@Override
public Transporter newInstance(RepositorySystemSession session, 
RemoteRepository repository)  throws NoTransporterException {

if (requiresSpecialAuth(repository)) {
repository = new RemoteRepository.Builder(repository)
.setAuthentication(new MyAuthentication(repository))
.build();
}
return httpTransporterFactory.newInstance(session, repository);
}
--

Then “MyAuthentication” does the right thing for the fill method.

This approach is working for me, but I’d be interested to know if there is a 
better way. I do not want to re-implement HttpTransport!


On 2024/06/03 20:25:48 Tamás Cservenák wrote:
> Howdy,
>
> What are you trying to do? You may go better if you implement custom
> (resolver) transport maybe?
>
> Thanks
> T
>
> On Mon, Jun 3, 2024, 22:22 David Grieve 
> mailto:da...@microsoft.com.inva>lid>
> wrote:
>
> > My questions are: Is this doable and, if so, how would one go about it?
> >
> > I’m trying to cobble together a plugin/extension that will either get an
> > auth token for resolving an artifact before the artifact is resolved, or
> > will get an auth token if the resolution returns a 401.
> > The plugin route happens too late in the execution, but I’ve found that
> > with an AbstractMavenLifecycleParticipant at least afterProjectsRead gets
> > called before artifact resolution. However, I can’t seem to affect the
> > server password in a way that allows artifact resolution to  succeed.
> > I’ve also tried overriding some default implementations, but I don’t see
> > the extension getting invoked (I see that Maven is aware of the extension,
> > but it doesn’t get used AFAICT).
> >
>



[ANN] Apache Maven JXR 3.4.0 released

2024-06-04 Thread Michael Osipov
The Apache Maven team is pleased to announce the release of the Apache 
Maven JXR version 3.4.0


This module generates browsable HTML pages from Java source code.

https://maven.apache.org/jxr/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-jxr-plugin
  3.4.0



Release Notes - Maven JXR - Version 3.4.0

** Dependency upgrade
* [JXR-190] - Upgrade commons-io:commons-io to 2.16.0
* [JXR-191] - Upgrade to Parent 42 and Maven 3.6.3


Enjoy,

-The Apache Maven team

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



[ANN] Apache Maven Shared JAR 3.1.0 released

2024-06-04 Thread Michael Osipov
The Apache Maven team is pleased to announce the release of the Apache 
Maven Shared JAR, version 3.1.0.


https://maven.apache.org/shared/maven-shared-jar/


Release Notes - Apache Maven Shared JAR - Version 3.1.0

** New Feature
* [MSHARED-1256] - Add support for Multi-Release JARs

** Dependency upgrade
* [MSHARED-1354] - Upgrade parent POM to version 41
* [MSHARED-1376] - Upgrade commons-codec:commons-codec to 1.16.1
* [MSHARED-1377] - Upgrade org.apache.bcel:bcel from 6.7.0 to 6.8.2
* [MSHARED-1406] - Upgrade to Parent 42 and Maven 3.6.3


Enjoy,

-The Apache Maven team

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