You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/08/02 04:40:14 UTC

[GitHub] [helix] pkuwm opened a new issue #1203: mvn site fails because of missing class

pkuwm opened a new issue #1203:
URL: https://github.com/apache/helix/issues/1203


   ### Description
   
   Maven version: `3.6.1`
   
   `mvn site` fails with below error stack trace.
   
   ```
   [INFO] --- maven-site-plugin:3.2:site (default-cli) @ helix ---
   [WARNING] Error injecting: org.apache.maven.reporting.exec.DefaultMavenReportExecutor
   java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter
       at java.lang.Class.getDeclaredConstructors0 (Native Method)
       at java.lang.Class.privateGetDeclaredConstructors (Class.java:2671)
       at java.lang.Class.getDeclaredConstructors (Class.java:2020)
       at com.google.inject.spi.InjectionPoint.forConstructorOf (InjectionPoint.java:245)
       at com.google.inject.internal.ConstructorBindingImpl.create (ConstructorBindingImpl.java:115)
       at com.google.inject.internal.InjectorImpl.createUninitializedBinding (InjectorImpl.java:706)
       at com.google.inject.internal.InjectorImpl.createJustInTimeBinding (InjectorImpl.java:930)
       at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive (InjectorImpl.java:852)
       at com.google.inject.internal.InjectorImpl.getJustInTimeBinding (InjectorImpl.java:291)
       at com.google.inject.internal.InjectorImpl.getBindingOrThrow (InjectorImpl.java:222)
       at com.google.inject.internal.InjectorImpl.getProviderOrThrow (InjectorImpl.java:1040)
       at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1071)
       at com.google.inject.internal.InjectorImpl.getProvider (InjectorImpl.java:1034)
       at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1086)
       at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
       at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:85)
       at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:57)
       at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:66)
       at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:112)
       at org.eclipse.sisu.bean.BeanScheduler$CycleActivator.onProvision (BeanScheduler.java:230)
       at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:120)
       at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:66)
       at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:61)
       at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:47)
       at com.google.inject.internal.ProviderToInternalFactoryAdapter.get (ProviderToInternalFactoryAdapter.java:40)
       at com.google.inject.internal.SingletonScope$1.get (SingletonScope.java:168)
       at com.google.inject.internal.InternalFactoryToProviderAdapter.get (InternalFactoryToProviderAdapter.java:39)
       at com.google.inject.internal.InjectorImpl$1.get (InjectorImpl.java:1050)
   ...
   Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.graph.DependencyFilter
       at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
       at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
       at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
       at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
   ...
   ```
   
   This issue has been fixed since mvn-site-plugin 3.3
   But helix pom is still using 3.2
   
   ### How to fix
   Update maven plugin versions in pom.xml


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] pkuwm commented on issue #1203: mvn site fails because of missing class

Posted by GitBox <gi...@apache.org>.
pkuwm commented on issue #1203:
URL: https://github.com/apache/helix/issues/1203#issuecomment-708088152


   @jiajunwang I didn't know the history that `mvn site` doesn't work in the root folder. Yeah, the result I expected is `mvn site` also passes in the root folder. Is my expectation appropriate? Since it works fine in the `/website` folder, this is not urgent, but maybe nice to fix.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] jiajunwang commented on issue #1203: mvn site fails because of missing class

Posted by GitBox <gi...@apache.org>.
jiajunwang commented on issue #1203:
URL: https://github.com/apache/helix/issues/1203#issuecomment-708080761


   I was working on hotfix release today. The site build process works fine in the website folder. To be clear, are you talking about the root "mvn site" will fail? I think it never works, or does not work for a long time.
   And what is the expected output if we run mvn site in the root folder?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org