Closed aplsms closed 6 years ago
+1 here. Building with mvn, not with docker.
Tried with docker, too, same issue.
diff --git a/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java b/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java
index 88e7eba..202c932 100644
--- a/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java
+++ b/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java
@@ -36,14 +36,14 @@ public class AptHostedComponentMaintenanceFacet
{
@Transactional(retryOn = ONeedRetryException.class)
@Override
- protected void deleteAssetTx(EntityId assetId) {
+ protected void deleteAssetTx(EntityId assetId, boolean deleteBlobs) {
StorageTx tx = UnitOfWork.currentTx();
Asset asset = tx.findAsset(assetId, tx.findBucket(getRepository()));
if (asset == null) {
return;
}
String assetKind = asset.formatAttributes().get(P_ASSET_KIND, String.class);
- super.deleteAssetTx(assetId);
+ super.deleteAssetTx(assetId, true);
if ("DEB".equals(assetKind)) {
try {
getRepository().facet(AptHostedFacet.class)
I have no idea what boolean deleteBlobs does in that context, but this way it compiles.
The deleteBlobs
boolean is for some upcoming functionality on moving components between repos in the same blob store. Apologies for breaking the signature on that method! We left behind proper signatures for deleteComponent
and deleteAsset
but not deleteComponentTx
and deleteAssetTx
.
Passing true
is the correct solution so the above fix is correct.
Thanks @collinpeters !!!
Newer builds work with newer versions of Nexus, so closing this out
Mike,
Could you please point me to proper docker image?
https://hub.docker.com/r/sonatype/nexus3/tags/ https://hub.docker.com/r/sonatype/nexus3/tags/
Latest Image updated 1 month ago.
Andrii Petrenko aplsms@gmail.com
On May 15, 2018, at 20:13, Mike Poindexter notifications@github.com wrote:
Newer builds work with newer versions of Nexus, so closing this out
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sonatype-nexus-community/nexus-repository-apt/issues/37#issuecomment-389381293, or mute the thread https://github.com/notifications/unsubscribe-auth/ACM-Mn0Ar8oZV_m2vWt4ZAGOVp5vkomvks5ty5lHgaJpZM4SZK27.
Not sure what you're asking. Proper docker image for what? If you mean the docker image that works with the latest version of the code, the master branch works with Nexus 3.11 right now.
Thanks for creating an issue! Please fill out this form so we can be sure to have all the information we need, and to minimize back and forth.
Compiling of plugin with nexus-3.9.0-01 is failing.