Skip to content

Commit

Permalink
Fix missing release version in maven-metadata.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Nov 28, 2022
1 parent d5d278f commit 1edb028
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ target
.project
*.iml
.idea
.DS_Store
8 changes: 8 additions & 0 deletions mrm-maven-plugin/src/it/hostedrepo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
<goal>start</goal>
<goal>stop</goal>
</goals>
<configuration>
<repositories>
<mockRepo>
<source>${project.build.directory}/mock-repo</source>
</mockRepo>
<proxyRepo/>
</repositories>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
invoker.goals = org.apache.maven.plugins:maven-help-plugin:RELEASE:system
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<distributionManagement>
<repository>
<id>mrm</id>
<url>@mrm.distribution.url@</url>
</repository>
</distributionManagement>

<groupId>org.mojohaus.mrm.hostedrepo.its</groupId>
<artifactId>deploy</artifactId>
<artifactId>release</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>

<description>Test RELEASED plugin version - it needs release version in metadata</description>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public Metadata getMetadata( String path )
}

if (!StringUtils.isEmpty(pVers.getRelease())) {
rVers.setLatest(pVers.getRelease());
rVers.setRelease(pVers.getRelease());
}
rVers.setLastUpdated(pVers.getLastUpdated());
}
Expand Down

0 comments on commit 1edb028

Please sign in to comment.