Re: Retrieving maven.build.timestamp at plugin

2023-11-22 Thread Dan Tran
It works.

Thank you so much for the quick response. Very much appreciated

-D

On Wed, Nov 22, 2023 at 12:05 PM Slawomir Jaranowski 
wrote:

> Hi,
>
> Please use:
>
> org.apache.maven.execution.MavenSession#getStartTime
>
> There is no property maven.build.timestamp, this value is used only during
> model interpolation.
>
>
> śr., 22 lis 2023 o 20:47 Dan Tran  napisał(a):
>
> > Hi
> >
> > My plugin invokes
> >
> >   this.project.getProperties().getProperty("maven.build.timestamp")
> >
> > It returns NULL.   This means this property is not available
> >
> > is there a way to get it?
> >
> > Thanks
> >
>
>
> --
> Sławomir Jaranowski
>


Re: Retrieving maven.build.timestamp at plugin

2023-11-22 Thread Slawomir Jaranowski
Hi,

Please use:

org.apache.maven.execution.MavenSession#getStartTime

There is no property maven.build.timestamp, this value is used only during
model interpolation.


śr., 22 lis 2023 o 20:47 Dan Tran  napisał(a):

> Hi
>
> My plugin invokes
>
>   this.project.getProperties().getProperty("maven.build.timestamp")
>
> It returns NULL.   This means this property is not available
>
> is there a way to get it?
>
> Thanks
>


-- 
Sławomir Jaranowski


Retrieving maven.build.timestamp at plugin

2023-11-22 Thread Dan Tran
Hi

My plugin invokes

  this.project.getProperties().getProperty("maven.build.timestamp")

It returns NULL.   This means this property is not available

is there a way to get it?

Thanks


Re: .sha256 artifact checksums on Central

2023-11-22 Thread Tamás Cservenák
Most probably is, this should never happen.
There is NO global policy change, SHA-1 is still _mandatory_, while you CAN
add SHA256 or whatever "better" if you want... but SHA-1 is mandatory. This
should be enforced by Sonatype...

T

On Wed, Nov 22, 2023 at 5:38 PM Bernd Eckenfels 
wrote:

>
>
> Michael Osipov wrote on 22. Nov 2023 17:18 (GMT +01:00):
>
> > Look at this:
> >
> https://repo.maven.apache.org/maven2/com/microsoft/sqlserver/mssql-jdbc/12.4.2.jre11/
> >
> > Whatever they did, they did wrong.
>
> Microsoft is responsive in their bug tracker, will let them know.
>
> But how can you upload a incomplete submission to oss, is that a bug on
> sonatype?
>
> Gruß
> Bernd
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: .sha256 artifact checksums on Central

2023-11-22 Thread Bernd Eckenfels



Michael Osipov wrote on 22. Nov 2023 17:18 (GMT +01:00):

> Look at this:
> https://repo.maven.apache.org/maven2/com/microsoft/sqlserver/mssql-jdbc/12.4.2.jre11/
> 
> Whatever they did, they did wrong.

Microsoft is responsive in their bug tracker, will let them know.

But how can you upload a incomplete submission to oss, is that a bug on 
sonatype?

Gruß
Bernd

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



Re: .sha256 artifact checksums on Central

2023-11-22 Thread Michael Osipov
Look at this: 
https://repo.maven.apache.org/maven2/com/microsoft/sqlserver/mssql-jdbc/12.4.2.jre11/

Whatever they did, they did wrong. It is pointless to upload hashes for 
signatures. Moreover, MD5 and SHA1 are missing. They are mandatory, at least on 
oss.sonatype.org.

They have just failed. Good luck in complaining: The pom.properties says:
#Created by Apache Maven 3.8.1
artifactId=mssql-jdbc
groupId=com.microsoft.sqlserver
version=12.4.2


Can't stop laughing...

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



Re: [ANN] Maven Resolver 1.9.17 released

2023-11-22 Thread Tamás Cservenák
Howdy,

since 1.9.17 release went out, we detected some possible problems with
1.9.17 and decided to quickly roll out 1.9.18 with two important changes:
- MRESOLVER-372 fix in 1.9.17 introduced some unwanted changes in FileUtils
non-Windows execution path (undo those),
- backport MRESOLVER-437, that altered changes happened as part of
MRESOLVER-433 that is in 1.9.17. This prevents source level breakage
between 1.9.x and 2.0.x, as backport removes a field added in (and present
only in) 1.9.17 that was in subsequent changes removed in 2.0.x.

Hence I declare 1.9.17 as <>, this version should be skipped.
Upcoming 1.9.18 will correct these issues.

Thanks
T

On Tue, Nov 21, 2023 at 11:31 AM Tamás Cservenák  wrote:

> The Apache Maven team is pleased to announce the release of the
> Maven Resolver 1.9.17:
>
> The 1.x resolver lineage is in "bugfix only" maintenance mode.
>
> ===
>
> https://maven.apache.org/resolver/
>
> Release Notes - Maven Resolver - Version 1.9.17
> ** Bug
> * [MRESOLVER-372] - Sporadic AccessDeniedEx on Windows
> ** Task
> * [MRESOLVER-433] - Expose configuration for inhibiting
> Expect-Continue handshake in 1.x
> * [MRESOLVER-435] - Refresh download page
> ** Dependency upgrade
> * [MRESOLVER-434] - Upgrade Parent to 41
>
> Have fun,
> -The Apache Maven team
>