Skip to content

Commit

Permalink
Upgrade org.apache.maven.archetype to 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Sep 28, 2024
1 parent 1f8cc24 commit f624be7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.Objects;
import java.util.TimeZone;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;

/**
* Represents a specific artifact in a Maven repository. Implements {@link Comparable} to sort based on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ public long getMetadataLastModified(String path) throws MetadataNotFoundExceptio

@Override
public ArchetypeCatalog getArchetypeCatalog() {
return archetypeManager.getLocalCatalog(session.getProjectBuildingRequest());
return archetypeManager.getLocalCatalog(session.getRepositorySession());
}

@Override
public long getArchetypeCatalogLastModified() throws ArchetypeCatalogNotFoundException {
if (archetypeManager.getLocalCatalog(session.getProjectBuildingRequest()) != null) {
if (archetypeManager.getLocalCatalog(session.getRepositorySession()) != null) {
return System.currentTimeMillis();
} else {
throw new ArchetypeCatalogNotFoundException();
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,20 @@
<dependency>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-common</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
<exclusions>
<!-- exclude some unneeded staff -->
<exclusion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-aether-provider</artifactId>
<artifactId>maven-resolver-provider</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.ivy</groupId>
Expand All @@ -179,7 +179,7 @@
<dependency>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-catalog</artifactId>
<version>3.2.1</version>
<version>3.3.0</version>
</dependency>

<!-- http server -->
Expand Down

0 comments on commit f624be7

Please sign in to comment.