Comments (8)
+1 here. Building with mvn, not with docker.
from nexus-repository-apt.
Tried with docker, too, same issue.
from nexus-repository-apt.
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.
from nexus-repository-apt.
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.
from nexus-repository-apt.
Thanks @collinpeters !!!
from nexus-repository-apt.
Newer builds work with newer versions of Nexus, so closing this out
from nexus-repository-apt.
from nexus-repository-apt.
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.
from nexus-repository-apt.
Related Issues (20)
- Upgrade from 3.14.0-04 to 3.15.2-01 fails HOT 2
- Add docker image to Docker Hub with CI HOT 11
- Does not compile HOT 2
- 'all' arch apparently not honored by repo HOT 3
- Where is 1.0.10 release? HOT 2
- problem during apt update HOT 3
- Update to 3.16.1 HOT 2
- How to update the version HOT 1
- Could not upload asset HOT 1
- Having trouble using nexus as apt-repo HOT 2
- Support PUT in addition to POST so maven-deploy-plugin and maven-wagon-plugin can be used HOT 4
- Feature Request: Cleanup Task HOT 2
- missing requirements on install
- New APT features won't work for existing users
- [DepShield] (CVSS 9.8) Vulnerability due to usage of com.fasterxml.jackson.core:jackson-databind:2.9.2 HOT 2
- Update to use Nexus Repo 3.15 HOT 2
- Auto startup HOT 1
- Using a GPG secret key without a private key included causes a NullPointerException when uploading an artifact HOT 7
- Incorrect format of Date field in Release file
- No packages/pool folder generation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexus-repository-apt.