Hi Michael,
On 26.05.19 23:15, Michael Osipov wrote:
Folks,
I am trying to investigate an issue with MINSTALL 3.0.0-M1 for MNG-6556
where the GroupRepositoryMetadata file is simply not written to disk,
thus the IT for MNG-3372 is failing.
As far as I can see everything in Maven 2 for this task has been moved
to Maven Artifact Transfer, Maven31ArtifactInstaller.
I do see in
for ( ArtifactMetadata metadata : mavenArtifact.getMetadataList() )
everything I need is there, but the instanceof tests simply ignore this
kind of metadata and it is never persisted to disk.
I am a bit lost because it looks like a several issue in our codebase.
Is the IT flawed and should exclude the Maven version which will include
MNG-6556 or am I just too stupid to see the obvious?
Here is a simple reproducer:
* Clone MINSTALL
I suppose you maven-install-plugin git repo? ..
* Open pom.xml and add MINSTALL 3.0.0-M1 to override from parent
* Delete org/apache/maven/plugins from your local repo
* Use Maven 3.6.1 to install MINSTALL 3.0.0-M2-SNAPSHOT
maven-metadata-local.xml will *not* be generated, remove change in
pom.xml and repeat, metadata file is there.
Would be nice if someone can confirm this.
Hm...I've tried your steps:
plugins (master)$ ls -la maven-install-plugin/
3.0.0-M1/ 3.0.0-M2-SNAPSHOT/
maven-metadata-local.xml
plugins (master)$ ls -la maven-install-plugin/3.0.0-M2-SNAPSHOT/
total 96
drwxr-xr-x 6 khmarbaise staff 192 May 27 20:35 .
drwxr-xr-x 5 khmarbaise staff 160 May 27 20:35 ..
-rw-r--r-- 1 khmarbaise staff 231 May 27 20:35 _remote.repositories
-rw-r--r-- 1 khmarbaise staff 29457 May 27 20:35
maven-install-plugin-3.0.0-M2-SNAPSHOT.jar
-rw-r--r-- 1 khmarbaise staff 6346 May 27 20:30
maven-install-plugin-3.0.0-M2-SNAPSHOT.pom
-rw-r--r-- 1 khmarbaise staff 739 May 27 20:35 maven-metadata-local.xml
plugins (master)$ cat
maven-install-plugin/3.0.0-M2-SNAPSHOT/maven-metadata-local.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M2-SNAPSHOT</version>
<versioning>
<snapshot>
<localCopy>true</localCopy>
</snapshot>
<lastUpdated>20190527183515</lastUpdated>
<snapshotVersions>
<snapshotVersion>
<extension>jar</extension>
<value>3.0.0-M2-SNAPSHOT</value>
<updated>20190527183515</updated>
</snapshotVersion>
<snapshotVersion>
<extension>pom</extension>
<value>3.0.0-M2-SNAPSHOT</value>
<updated>20190527183515</updated>
</snapshotVersion>
</snapshotVersions>
</versioning>
</metadata>
plugins (master)$
and I get a written maven-metadata-local.xml file?
Do I miss something?
In artifact-transfer the generation of the checksum has been moved from
install to deploy...?
Kind regards
Karl Heinz Marbaise
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]