Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with latest Nexus3 version (3.47.1) #33

Open
fhaefemeier opened this issue Feb 18, 2023 · 1 comment
Open

Compile error with latest Nexus3 version (3.47.1) #33

fhaefemeier opened this issue Feb 18, 2023 · 1 comment

Comments

@fhaefemeier
Copy link

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.

  • What are you trying to do?
    Try to compile plugin 0.0.4 with Nexus3 3.47.1 print following error
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 40 source files to /nexus-repository-cargo/target/classes
[INFO] /nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/ui/UiPluginDescriptorImpl.java: Some input files use or override a deprecated API.
[INFO] /nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/ui/UiPluginDescriptorImpl.java: Recompile with -Xlint:deprecation for details.
[INFO] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/git/assets/AssetKindObjectAttributes.java:[91,33] no suitable method found for createBlob(java.lang.String,com.google.common.base.Supplier<java.io.InputStream>,java.util.List<org.sonatype.nexus.common.hash.HashAlgorithm>,<nulltype>,java.lang.String,boolean)
    method org.sonatype.nexus.repository.storage.StorageTx.createBlob(java.lang.String,org.sonatype.nexus.common.io.InputStreamSupplier,java.lang.Iterable<org.sonatype.nexus.common.hash.HashAlgorithm>,java.util.Map<java.lang.String,java.lang.String>,java.lang.String,boolean) is not applicable
      (argument mismatch; no instance(s) of type variable(s) T exist so that com.google.common.base.Supplier<T> conforms to org.sonatype.nexus.common.io.InputStreamSupplier)
    method org.sonatype.nexus.repository.storage.StorageTx.createBlob(java.lang.String,java.nio.file.Path,java.util.Map<org.sonatype.nexus.common.hash.HashAlgorithm,com.google.common.hash.HashCode>,java.util.Map<java.lang.String,java.lang.String>,java.lang.String,long) is not applicable
      (argument mismatch; no instance(s) of type variable(s) T exist so that com.google.common.base.Supplier<T> conforms to java.nio.file.Path)
[ERROR] /nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/registry/assets/AssetKindMetadataAttributes.java:[81,11] no suitable method found for setBlob(org.sonatype.nexus.repository.storage.Asset,java.lang.String,com.google.common.base.Supplier<java.io.InputStream>,java.util.List<org.sonatype.nexus.common.hash.HashAlgorithm>,<nulltype>,java.lang.String,boolean)
    method org.sonatype.nexus.repository.storage.StorageTx.setBlob(org.sonatype.nexus.repository.storage.Asset,java.lang.String,org.sonatype.nexus.common.io.InputStreamSupplier,java.lang.Iterable<org.sonatype.nexus.common.hash.HashAlgorithm>,java.util.Map<java.lang.String,java.lang.String>,java.lang.String,boolean) is not applicable
      (argument mismatch; no instance(s) of type variable(s) T exist so that com.google.common.base.Supplier<T> conforms to org.sonatype.nexus.common.io.InputStreamSupplier)
    method org.sonatype.nexus.repository.storage.StorageTx.setBlob(org.sonatype.nexus.repository.storage.Asset,java.lang.String,java.nio.file.Path,java.util.Map<org.sonatype.nexus.common.hash.HashAlgorithm,com.google.common.hash.HashCode>,java.util.Map<java.lang.String,java.lang.String>,java.lang.String,long) is not applicable
      (argument mismatch; no instance(s) of type variable(s) T exist so that com.google.common.base.Supplier<T> conforms to java.nio.file.Path)
[ERROR] /nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/registry/assets/AssetKindTarballAttributes.java:[86,11] no suitable method found for setBlob(org.sonatype.nexus.repository.storage.Asset,java.lang.String,com.google.common.base.Supplier<java.io.InputStream>,java.util.List<org.sonatype.nexus.common.hash.HashAlgorithm>,<nulltype>,java.lang.String,boolean)
    method org.sonatype.nexus.repository.storage.StorageTx.setBlob(org.sonatype.nexus.repository.storage.Asset,java.lang.String,org.sonatype.nexus.common.io.InputStreamSupplier,java.lang.Iterable<org.sonatype.nexus.common.hash.HashAlgorithm>,java.util.Map<java.lang.String,java.lang.String>,java.lang.String,boolean) is not applicable
      (argument mismatch; no instance(s) of type variable(s) T exist so that com.google.common.base.Supplier<T> conforms to org.sonatype.nexus.common.io.InputStreamSupplier)
    method org.sonatype.nexus.repository.storage.StorageTx.setBlob(org.sonatype.nexus.repository.storage.Asset,java.lang.String,java.nio.file.Path,java.util.Map<org.sonatype.nexus.common.hash.HashAlgorithm,com.google.common.hash.HashCode>,java.util.Map<java.lang.String,java.lang.String>,java.lang.String,long) is not applicable
      (argument mismatch; no instance(s) of type variable(s) T exist so that com.google.common.base.Supplier<T> conforms to java.nio.file.Path)
[INFO] 3 errors 
  • What feature or behavior is this required for?

  • How could we solve this issue? (Not knowing is okay!)

  • Anything else?

@fhaefemeier
Copy link
Author

I did overseen there is a new version 0.0.6. It compiles with 3.47.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant