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

All collections/iterable/etc constructor should accept wildcarded values #1169

Closed
victornoel opened this issue Jul 27, 2019 · 33 comments
Closed

Comments

@victornoel
Copy link
Collaborator

The following code has two problems with typing:

List<Socket> sockets = new ListOf(new Socket());
// here Java can't infer the type Closeable
new Joined<>(new ServerSocket(), sockets);
// here java refuse to compile with the type Closeable
new Joined<>(new ServerSocket(), sockets);

The problem is that collections are covariant with their parameter (at least) but the current declaration of the constructors of classes like Joined, or even ListOf and IterableOffail to capture that:

Joined(final T item, final Iterable<T> items)

If they were declared as:

Joined(final T item, final Iterable<? extends T> items)

Then they could be usable more generally and without incurring any problem.

The same problem can happen with say And:

List<Socket> sockets = new ListOf(new Socket());
// this could be a reusable Proc in the codebase
Proc<Closeable> close = Closeable::close;
// this does not compile because the type of the generic of close is not exactly the same as the type of the genric of sockets.
new And(close, sockets);

I believe all of our constructors should accept covariant version of the collection they take, especially those that mixes collections with a single item (as in Joined) so as to help Java inference, and those that mixes collection with say a Scalar or a Proc (as in And) to ease composition.

@0crat
Copy link
Collaborator

0crat commented Jul 27, 2019

@llorllale/z please, pay attention to this issue

@victornoel
Copy link
Collaborator Author

@0crat in

Let's do that, first for iterable and iterator.

@0crat
Copy link
Collaborator

0crat commented Jul 4, 2020

@0crat in Let's do that, first for iterable and iterator. (here)

@victornoel Argument "Let's" doesn't match regex [A-Z]{2,3}

@victornoel
Copy link
Collaborator Author

@0crat in

@victornoel
Copy link
Collaborator Author

@0crat in

@fabriciofx
Copy link
Contributor

@0crat refuse

@victornoel
Copy link
Collaborator Author

@0crat status

@0crat
Copy link
Collaborator

0crat commented Sep 18, 2020

@0crat refuse (here)

@fabriciofx The user @fabriciofx/z resigned from #1169, please stop working. Reason for job resignation: Order was cancelled

@0crat
Copy link
Collaborator

0crat commented Sep 18, 2020

@0crat status (here)

@victornoel This is what I know about this job in C63314D6Z, as in §32:

  • The job #1169 is in scope for 5days
  • The role is DEV
  • The job is not assigned to anyone
  • The budget is not set yet
  • These users are banned and won't be assigned:
  • Job footprint (restricted area)

@0crat
Copy link
Collaborator

0crat commented Sep 18, 2020

@0crat refuse (here)

@fabriciofx Job refused in 5 hours - no penalty, see §6

andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Sep 29, 2020
@victornoel
Copy link
Collaborator Author

@0crat status

1 similar comment
@victornoel
Copy link
Collaborator Author

@0crat status

@0crat
Copy link
Collaborator

0crat commented Oct 1, 2020

@0crat status (here)

@victornoel This is what I know about this job in C63314D6Z, as in §32:

@0crat
Copy link
Collaborator

0crat commented Oct 1, 2020

@0crat status (here)

@victornoel This is what I know about this job in C63314D6Z, as in §32:

andreoss added a commit to andreoss/cactoos that referenced this issue Oct 3, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 3, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 3, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 20, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 20, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 20, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 21, 2020
andreoss added a commit to andreoss/cactoos that referenced this issue Oct 21, 2020
@0crat 0crat added the qa label Oct 24, 2020
@0crat
Copy link
Collaborator

0crat commented Oct 24, 2020

@sereshqua/z please review this job completed by @andreoss/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat 0crat removed the 0crat/scope label Oct 24, 2020
@sereshqua
Copy link

@0crat quality good

@0crat 0crat added quality/good and removed qa labels Oct 24, 2020
@victornoel
Copy link
Collaborator Author

@rultor release, tag is 0.47

@rultor
Copy link
Collaborator

rultor commented Oct 25, 2020

@rultor release, tag is 0.47

@victornoel OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Oct 25, 2020

@rultor release, tag is 0.47

@victornoel Oops, I failed. You can see the full log here (spent 5min)

    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.StreamAllocation.findConnection (\u001b[1mStreamAllocation.java:186\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.StreamAllocation.findHealthyConnection (\u001b[1mStreamAllocation.java:121\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.StreamAllocation.newStream (\u001b[1mStreamAllocation.java:100\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept (\u001b[1mConnectInterceptor.java:42\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:92\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:67\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept (\u001b[1mCacheInterceptor.java:93\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:92\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:67\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept (\u001b[1mBridgeInterceptor.java:93\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:92\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept (\u001b[1mRetryAndFollowUpInterceptor.java:120\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:92\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed (\u001b[1mRealInterceptorChain.java:67\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain (\u001b[1mRealCall.java:179\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute (\u001b[1mRealCall.java:63\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.ServerConnection.callUrl (\u001b[1mServerConnection.java:113\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.ServerConnection.downloadString (\u001b[1mServerConnection.java:98\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex (\u001b[1mJars.java:96\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.Jars.getScannerEngineFiles (\u001b[1mJars.java:76\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.Jars.download (\u001b[1mJars.java:70\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.JarDownloader.download (\u001b[1mJarDownloader.java:39\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run (\u001b[1mIsolatedLauncherFactory.java:75\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run (\u001b[1mIsolatedLauncherFactory.java:71\u001b[m)
    \u001b[1mat\u001b[m java.security.AccessController.doPrivileged (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher (\u001b[1mIsolatedLauncherFactory.java:71\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher (\u001b[1mIsolatedLauncherFactory.java:67\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.EmbeddedScanner.doStart (\u001b[1mEmbeddedScanner.java:218\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.EmbeddedScanner.start (\u001b[1mEmbeddedScanner.java:156\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (\u001b[1mScannerBootstrapper.java:59\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.maven.SonarQubeMojo.execute (\u001b[1mSonarQubeMojo.java:139\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (\u001b[1mDefaultBuildPluginManager.java:137\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:210\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:156\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:148\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:117\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:81\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (\u001b[1mSingleThreadedBuilder.java:56\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute (\u001b[1mLifecycleStarter.java:128\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:305\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:192\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.execute (\u001b[1mDefaultMaven.java:105\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.execute (\u001b[1mMavenCli.java:956\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.doMain (\u001b[1mMavenCli.java:288\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.main (\u001b[1mMavenCli.java:192\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:62\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:498\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:282\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:225\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:406\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:347\u001b[m)
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] Re-run Maven using the \u001b[1m-X\u001b[m switch to enable full debug logging.
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] For more information about the errors and possible solutions, please read the following articles:
[\u001b[1;31mERROR\u001b[m] \u001b[1m[Help 1]\u001b[m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
container b2a2f539643c45fd5d5856adb9517afd623347087d944ce47e9799123840e6e7 is dead
Sun Oct 25 13:52:06 CET 2020

@victornoel
Copy link
Collaborator Author

@yegor256 it seems rultor in cactoos was setup to execute the build with sonar but I get the error above. I suppose it has worked in the past because I don't remember changing anything about this... do you know if this is expected and what should be done to solve it, either:

  • have this experted sonarqube server running again or (I can't do it)
  • remove sonar reporting from the build (I can do it :)

@victornoel
Copy link
Collaborator Author

@yegor256 actually it seems it was meant to send the reports to https://sonarcloud.io/dashboard?id=org.cactoos%3Acactoos (according to the previous working release: https://www.rultor.com/t/21864-624598768) but it is not doing that anymore, so I will investigate a bit first.

@victornoel
Copy link
Collaborator Author

@paulodamaso it seems you removed the sonar configuration in the commit 1e8f4d0, do you know why?

@victornoel
Copy link
Collaborator Author

@rultor release, tag is 0.47

@victornoel
Copy link
Collaborator Author

@paulodamaso @yegor256 I've tried to fix this with 51f8686

@rultor
Copy link
Collaborator

rultor commented Oct 25, 2020

@rultor release, tag is 0.47

@victornoel OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Oct 25, 2020

@rultor release, tag is 0.47

@victornoel Oops, I failed. You can see the full log here (spent 9min)

    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:62\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:498\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:282\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:225\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:406\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:347\u001b[m)
\u001b[1mCaused by\u001b[m: java.lang.NullPointerException
    \u001b[1mat\u001b[m org.sonar.scanner.report.ComponentsPublisher.convert (\u001b[1mComponentsPublisher.java:89\u001b[m)
    \u001b[1mat\u001b[m org.sonar.scanner.report.ComponentsPublisher.publish (\u001b[1mComponentsPublisher.java:54\u001b[m)
    \u001b[1mat\u001b[m org.sonar.scanner.report.ReportPublisher.generateReportFile (\u001b[1mReportPublisher.java:163\u001b[m)
    \u001b[1mat\u001b[m org.sonar.scanner.report.ReportPublisher.execute (\u001b[1mReportPublisher.java:136\u001b[m)
    \u001b[1mat\u001b[m org.sonar.scanner.scan.ProjectScanContainer.doAfterStart (\u001b[1mProjectScanContainer.java:403\u001b[m)
    \u001b[1mat\u001b[m org.sonar.core.platform.ComponentContainer.startComponents (\u001b[1mComponentContainer.java:122\u001b[m)
    \u001b[1mat\u001b[m org.sonar.core.platform.ComponentContainer.execute (\u001b[1mComponentContainer.java:108\u001b[m)
    \u001b[1mat\u001b[m org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart (\u001b[1mGlobalContainer.java:126\u001b[m)
    \u001b[1mat\u001b[m org.sonar.core.platform.ComponentContainer.startComponents (\u001b[1mComponentContainer.java:122\u001b[m)
    \u001b[1mat\u001b[m org.sonar.core.platform.ComponentContainer.execute (\u001b[1mComponentContainer.java:108\u001b[m)
    \u001b[1mat\u001b[m org.sonar.batch.bootstrapper.Batch.doExecute (\u001b[1mBatch.java:58\u001b[m)
    \u001b[1mat\u001b[m org.sonar.batch.bootstrapper.Batch.execute (\u001b[1mBatch.java:52\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute (\u001b[1mBatchIsolatedLauncher.java:46\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:62\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:498\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke (\u001b[1mIsolatedLauncherProxy.java:60\u001b[m)
    \u001b[1mat\u001b[m com.sun.proxy.$Proxy34.execute (\u001b[1mUnknown Source\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.EmbeddedScanner.doExecute (\u001b[1mEmbeddedScanner.java:189\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.api.EmbeddedScanner.execute (\u001b[1mEmbeddedScanner.java:138\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (\u001b[1mScannerBootstrapper.java:65\u001b[m)
    \u001b[1mat\u001b[m org.sonarsource.scanner.maven.SonarQubeMojo.execute (\u001b[1mSonarQubeMojo.java:104\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (\u001b[1mDefaultBuildPluginManager.java:137\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:210\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:156\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:148\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:117\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:81\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (\u001b[1mSingleThreadedBuilder.java:56\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute (\u001b[1mLifecycleStarter.java:128\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:305\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:192\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.execute (\u001b[1mDefaultMaven.java:105\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.execute (\u001b[1mMavenCli.java:956\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.doMain (\u001b[1mMavenCli.java:288\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.main (\u001b[1mMavenCli.java:192\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:62\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:498\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:282\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:225\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:406\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:347\u001b[m)
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] Re-run Maven using the \u001b[1m-X\u001b[m switch to enable full debug logging.
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] For more information about the errors and possible solutions, please read the following articles:
[\u001b[1;31mERROR\u001b[m] \u001b[1m[Help 1]\u001b[m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
container 44f13216b351e2b4b41f9d3936e8a1a0562912da2018a8a1583d7bac9753ae6d is dead
Sun Oct 25 14:42:26 CET 2020

@victornoel
Copy link
Collaborator Author

@rultor release, tag is 0.47

@rultor
Copy link
Collaborator

rultor commented Oct 25, 2020

@rultor release, tag is 0.47

@victornoel OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Oct 25, 2020

@rultor release, tag is 0.47

@victornoel Oops, I failed. You can see the full log here (spent 8min)

    \u001b[1mat\u001b[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (\u001b[1mDefaultBuildPluginManager.java:137\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:210\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:156\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:148\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:117\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:81\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (\u001b[1mSingleThreadedBuilder.java:56\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute (\u001b[1mLifecycleStarter.java:128\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:305\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:192\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.execute (\u001b[1mDefaultMaven.java:105\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.execute (\u001b[1mMavenCli.java:956\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.doMain (\u001b[1mMavenCli.java:288\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.main (\u001b[1mMavenCli.java:192\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:62\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:498\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:282\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:225\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:406\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:347\u001b[m)
\u001b[1mCaused by\u001b[m: com.sonatype.nexus.staging.client.StagingRuleFailuresException: \u001b[1;31mStaging rules failure!\u001b[m
    \u001b[1mat\u001b[m com.sonatype.nexus.staging.client.internal.StagingWorkflowV3ServiceImpl.monitorRepositoryTransition (\u001b[1mStagingWorkflowV3ServiceImpl.java:272\u001b[m)
    \u001b[1mat\u001b[m com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$7.perform (\u001b[1mStagingWorkflowV2ServiceImpl.java:205\u001b[m)
    \u001b[1mat\u001b[m com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$7.perform (\u001b[1mStagingWorkflowV2ServiceImpl.java:200\u001b[m)
    \u001b[1mat\u001b[m com.sonatype.nexus.staging.client.internal.ExceptionConverter.runAndReturn (\u001b[1mExceptionConverter.java:38\u001b[m)
    \u001b[1mat\u001b[m com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl.finishStaging (\u001b[1mStagingWorkflowV2ServiceImpl.java:199\u001b[m)
    \u001b[1mat\u001b[m org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.afterUpload (\u001b[1mAbstractStagingDeployStrategy.java:202\u001b[m)
    \u001b[1mat\u001b[m org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy (\u001b[1mStagingDeployStrategy.java:129\u001b[m)
    \u001b[1mat\u001b[m org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute (\u001b[1mDeployMojo.java:213\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (\u001b[1mDefaultBuildPluginManager.java:137\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:210\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:156\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:148\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:117\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:81\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (\u001b[1mSingleThreadedBuilder.java:56\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute (\u001b[1mLifecycleStarter.java:128\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:305\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:192\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.execute (\u001b[1mDefaultMaven.java:105\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.execute (\u001b[1mMavenCli.java:956\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.doMain (\u001b[1mMavenCli.java:288\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.main (\u001b[1mMavenCli.java:192\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:62\u001b[m)
    \u001b[1mat\u001b[m sun.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:498\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:282\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:225\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:406\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:347\u001b[m)
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] Re-run Maven using the \u001b[1m-X\u001b[m switch to enable full debug logging.
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] For more information about the errors and possible solutions, please read the following articles:
[\u001b[1;31mERROR\u001b[m] \u001b[1m[Help 1]\u001b[m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
container e310f03aecedf5cccf0b3c0007fbcffd05d7c15d0740f7067a96b902dde54df4 is dead
Sun Oct 25 15:17:42 CET 2020

@victornoel
Copy link
Collaborator Author

@yegor256 it seems the settings.xml file used by rultor in cactoos does not contain the property gpg.keyname and thus the artefacts aren't signed, which prevent them being deployed to sonatype. Can you do something about that?

@andreoss
Copy link
Contributor

@victornoel @yegor256 The problem seems to be similar to jcabi/jcabi-jdbc#86

@victornoel
Copy link
Collaborator Author

@andreoss yes, totally, thx

@victornoel
Copy link
Collaborator Author

@andreoss anyway I have continued to try to release in #1490, almost there ^^

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

No branches or pull requests

6 participants