Skip to content

Commit

Permalink
Bugs everywhere!
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed May 2, 2024
1 parent 117c92d commit 2527167
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public JReleaserContext createContext(MavenSession session, Path stagingDirector
String url;
// TODO: externalize config
switch (target) {
case "asf-repository": {
service = "nx2";
url = "https://repository.apache.org/service/local";
break;
}
case "sonatype-oss": {
service = "nx2";
url = "https://oss.sonatype.org/service/local";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension>
<exportedPackages>
<exportedPackage>org.apache.maven.plugins.deploy.spi</exportedPackage>
<exportedPackage>eu.maveniverse.maven.mdk.kurt</exportedPackage>
<exportedPackage>eu.maveniverse.maven.mdk.kurt.jreleaser</exportedPackage>
</exportedPackages>

<exportedArtifacts>
<exportedArtifact>eu.maveniverse.maven.mdk:api</exportedArtifact>
<exportedArtifact>eu.maveniverse.maven.mdk:kurt</exportedArtifact>
<exportedArtifact>eu.maveniverse.maven.mdk:kurt-releaser</exportedArtifact>
</exportedArtifacts>
</extension>
4 changes: 2 additions & 2 deletions kurt/src/main/java/eu/maveniverse/maven/mdk/kurt/Kurt.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public Kurt(Map<String, DeployerFactory> deployerFactories) {
}

@Override
public void afterSessionStart(MavenSession session) throws MavenExecutionException {
public void afterProjectsRead(MavenSession session) throws MavenExecutionException {
if (sessionRef.compareAndSet(null, session)) {
RepositorySystemSession repoSession = session.getRepositorySession();
String deployerName = KurtConfig.DEPLOYER.require(repoSession);
DeployerFactory deployerFactory = deployerFactories.get(deployerName);
if (deployerFactory == null) {
throw new MavenExecutionException(
"Non existing deployer selected, supported ones are: " + deployerFactories.keySet(),
session.getCurrentProject().getFile());
(Throwable) null);
}
repoSession
.getData()
Expand Down

0 comments on commit 2527167

Please sign in to comment.