nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Meng <Ben.M...@lifelock.com.INVALID>
Subject Re: Build error with processor project
Date Fri, 24 Jun 2016 16:27:33 GMT
Thanks Andrew. I don’t have any proxy settings, don’t even have settings.xml. I just tried
again and it worked fine this time. Not sure what caused it, but I’m able to work on my
customized processor now.

Thanks,
Ben




On 6/24/16, 4:32 AM, "Andrew Psaltis" <psaltis.andrew@gmail.com> wrote:

>Hi Ben,
>I followed your steps and was able to build the testprocessor just fine.
>From looking at your output, specifically these lines:
>
>Downloading:
>https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
>
>Downloaded:
>https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
>(0
>B at 0.0 KB/sec)
>
>Downloading:
>https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.jar
>
>Downloaded:
>https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.jar
>(0
>B at 0.0 KB/sec)
>
>
>I wonder if it is a more general maven or system configuration issue that
>is causing the problem here. Seems like maven cannot pulldown plugins it
>needs. Do you have any proxy settings by chance in a ~/m2/settings.xml
>file? What version of maven are you using? If it helps here are the
>particulars of my environment:
>
>
>HW13095:testprocessor apsaltis$ mvn --version
>Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
>2015-11-10T11:41:47-05:00)
>Maven home: /usr/local/Cellar/maven/3.3.9/libexec
>Java version: 1.8.0_77, vendor: Oracle Corporation
>Java home:
>/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre
>Default locale: en_US, platform encoding: UTF-8
>OS name: "mac os x", version: "10.11.5", arch: "x86_64", family: "mac"
>
>
>Thanks,
>Andrew
>
>On Fri, Jun 24, 2016 at 2:48 AM, Ben Meng <Ben.Meng@lifelock.com.invalid>
>wrote:
>
>> Hi,
>>
>> I created a project with Maven processor archetype (followed the
>> instruction on NiFi Wiki). When I tried to build it, I got a
>> NoClassDefFoundError. What am I missing?
>>
>> Thanks,
>> Ben
>>
>>
>> $ mvn archetype:generate -DarchetypeGroupId=org.apache.nifi
>> -DarchetypeArtifactId=nifi-processor-bundle-archetype
>> -DarchetypeVersion=0.6.1 -DnifiVersion=0.6.1
>>
>> [INFO] Scanning for projects...
>>
>> [INFO]
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Building Maven Stub Project (No POM) 1
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO]
>>
>> [INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) >
>> generate-sources @ standalone-pom >>>
>>
>> [INFO]
>>
>> [INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) <
>> generate-sources @ standalone-pom <<<
>>
>> [INFO]
>>
>> [INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @
>> standalone-pom ---
>>
>> [INFO] Generating project in Interactive mode
>>
>> [INFO] Archetype repository not defined. Using the one from
>> [org.apache.nifi:nifi-processor-bundle-archetype:0.6.1] found in catalog
>> remote
>>
>> Define value for property 'groupId': : com.mydomain
>>
>> Define value for property 'artifactId': : testprocessor
>>
>> Define value for property 'version':  1.0-SNAPSHOT: :
>>
>> Define value for property 'artifactBaseName': : testprocessor
>>
>> Define value for property 'package':
>> com.mydomain.processors.testprocessor: :
>>
>> [INFO] Using property: nifiVersion = 0.6.1
>>
>> Confirm properties configuration:
>>
>> groupId: com.mydomain
>>
>> artifactId: testprocessor
>>
>> version: 1.0-SNAPSHOT
>>
>> artifactBaseName: testprocessor
>>
>> package: com.mydomain.processors.testprocessor
>>
>> nifiVersion: 0.6.1
>>
>>  Y: :
>>
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> [INFO] Using following parameters for creating project from Archetype:
>> nifi-processor-bundle-archetype:0.6.1
>>
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> [INFO] Parameter: groupId, Value: com.mydomain
>>
>> [INFO] Parameter: artifactId, Value: testprocessor
>>
>> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
>>
>> [INFO] Parameter: package, Value: com.mydomain.processors.testprocessor
>>
>> [INFO] Parameter: packageInPathFormat, Value:
>> com/mydomain/processors/testprocessor
>>
>> [INFO] Parameter: package, Value: com.mydomain.processors.testprocessor
>>
>> [INFO] Parameter: artifactBaseName, Value: testprocessor
>>
>> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
>>
>> [INFO] Parameter: groupId, Value: com.mydomain
>>
>> [INFO] Parameter: artifactId, Value: testprocessor
>>
>> [INFO] Parameter: nifiVersion, Value: 0.6.1
>>
>> [INFO] project created from Archetype in dir:
>> /Users/ben.meng/IdeaProjects/test/testprocessor
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] BUILD SUCCESS
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Total time: 38.897 s
>>
>> [INFO] Finished at: 2016-06-23T23:02:47-07:00
>>
>> [INFO] Final Memory: 15M/245M
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> $ cd testprocessor/
>>
>> $ mvn clean install
>>
>> [INFO] Scanning for projects...
>>
>> [INFO] Inspecting build with total of 3 modules...
>>
>> [INFO] Installing Nexus Staging features:
>>
>> [INFO]   ... total of 3 executions of maven-deploy-plugin replaced with
>> nexus-staging-maven-plugin
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Reactor Build Order:
>>
>> [INFO]
>>
>> [INFO] testprocessor
>>
>> [INFO] nifi-testprocessor-processors
>>
>> [INFO] nifi-testprocessor-nar
>>
>> [INFO]
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Building testprocessor 1.0-SNAPSHOT
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.pom
>> (0 B at 0.0 KB/sec)
>>
>> Downloading:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.jar
>>
>> Downloaded:
>> https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.5.2/maven-install-plugin-2.5.2.jar
>> (0 B at 0.0 KB/sec)
>>
>> [INFO]
>>
>> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ testprocessor ---
>>
>> [INFO]
>>
>> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @
>> testprocessor ---
>>
>> [INFO]
>>
>> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
>> testprocessor ---
>>
>> [INFO]
>>
>> [INFO] --- maven-compiler-plugin:3.2:testCompile (groovy-tests) @
>> testprocessor ---
>>
>> [INFO] No sources to compile
>>
>> [INFO]
>>
>> [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @
>> testprocessor ---
>>
>> [WARNING] Error injecting:
>> org.apache.maven.plugins.site.SiteDescriptorAttachMojo
>>
>> java.lang.NoClassDefFoundError: Lorg/apache/maven/doxia/tools/SiteTool;
>>
>> at java.lang.Class.getDeclaredFields0(Native Method)
>>
>> at java.lang.Class.privateGetDeclaredFields(Class.java:2509)
>>
>> at java.lang.Class.getDeclaredFields(Class.java:1819)
>>
>> at
>> com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:675)
>>
>> at
>> com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:380)
>>
>> at
>> com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:164)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:613)
>>
>> at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:569)
>>
>> at
>> com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:555)
>>
>> at
>> com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:884)
>>
>> at
>> com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:805)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:282)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:214)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:1006)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1038)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1001)
>>
>> at
>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
>>
>> at
>> org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
>>
>> at
>> com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
>>
>> at
>> com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
>>
>> at
>> com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
>>
>> at
>> com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
>>
>> at
>> org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
>>
>> at
>> com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
>>
>> at
>> com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
>>
>> at
>> com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
>>
>> at
>> com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
>>
>> at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
>>
>> at
>> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
>>
>> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
>>
>> at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
>>
>> at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
>>
>> at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
>>
>> at
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
>>
>> at
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
>>
>> at
>> org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
>>
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
>>
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>>
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>
>> at
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:606)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.maven.doxia.tools.SiteTool
>>
>> 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)
>>
>> ... 58 more
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Reactor Summary:
>>
>> [INFO]
>>
>> [INFO] testprocessor ...................................... FAILURE [
>> 1.564 s]
>>
>> [INFO] nifi-testprocessor-processors ...................... SKIPPED
>>
>> [INFO] nifi-testprocessor-nar ............................. SKIPPED
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] BUILD FAILURE
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Total time: 3.200 s
>>
>> [INFO] Finished at: 2016-06-23T23:44:06-07:00
>>
>> [INFO] Final Memory: 25M/310M
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-site-plugin:3.4:attach-descriptor
>> (attach-descriptor) on project testprocessor: Execution attach-descriptor
>> of goal org.apache.maven.plugins:maven-site-plugin:3.4:attach-descriptor
>> failed: A required class was missing while executing
>> org.apache.maven.plugins:maven-site-plugin:3.4:attach-descriptor:
>> Lorg/apache/maven/doxia/tools/SiteTool;
>>
>> [ERROR] -----------------------------------------------------
>>
>> [ERROR] realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.4
>>
>> [ERROR] strategy =
>> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
>>
>> [ERROR] urls[0] =
>> file:/Users/ben.meng/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.4/maven-site-plugin-3.4.jar
>>
>> [ERROR] urls[1] =
>> file:/Users/ben.meng/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
>>
>> [ERROR] urls[2] =
>> file:/Users/ben.meng/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
>>
>> [ERROR] urls[3] =
>> file:/Users/ben.meng/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
>>
>> [ERROR] urls[4] =
>> file:/Users/ben.meng/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
>>
>> [ERROR] urls[5] =
>> file:/Users/ben.meng/.m2/repository/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar
>>
>> [ERROR] urls[6] =
>> file:/Users/ben.meng/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar
>>
>> [ERROR] urls[7] =
>> file:/Users/ben.meng/.m2/repository/org/codehaus/plexus/plexus-archiver/2.4.4/plexus-archiver-2.4.4.jar
>>
>> [ERROR] urls[8] =
>> file:/Users/ben.meng/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
>>
>> [ERROR] urls[9] =
>> file:/Users/ben.meng/.m2/repository/org/codehaus/plexus/plexus-io/2.0.10/plexus-io-2.0.10.jar
>>
>> [ERROR] urls[10] =
>> file:/Users/ben.meng/.m2/repository/org/apache/commons/commons-compress/1.5/commons-compress-1.5.jar
>>
>> [ERROR] urls[11] =
>> file:/Users/ben.meng/.m2/repository/org/tukaani/xz/1.2/xz-1.2.jar
>>
>> [ERROR] urls[12] =
>> file:/Users/ben.meng/.m2/repository/org/apache/maven/doxia/doxia-core/1.6/doxia-core-1.6.jar
>>
>> [ERROR] urls[13] =
>> file:/Users/ben.meng/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.6/doxia-sink-api-1.6.jar
>>
>> [ERROR] urls[14] =
>> file:/Users/ben.meng/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.6/doxia-logging-api-1.6.jar
>>
>> [ERROR] urls[15] =
>> file:/Users/ben.meng/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
>>
>> [ERROR] urls[16] =
>> file:/Users/ben.meng/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
>>
>> [ERROR] urls[17] =
>> file:/Users/ben.meng/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
>>
>> [ERROR] urls[18] =
>> file:/Users/ben.meng/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
>>
>> [ERROR] urls[19] =
>> file:/Users/ben.meng/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
>>
>> [ERROR] urls[20] =
>> file:/Users/ben.meng/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
>>
>> [ERROR] urls[21] =
>> file:/Users/ben.meng/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
>>
>> [ERROR] Number of foreign imports: 1
>>
>> [ERROR] import: Entry[import  from realm
>> ClassRealm[project>com.mydomain:testprocessor:1.0-SNAPSHOT, parent:
>> ClassRealm[maven.api, parent: null]]]
>>
>> [ERROR]
>>
>> [ERROR] -----------------------------------------------------:
>> org.apache.maven.doxia.tools.SiteTool
>>
>> [ERROR] -> [Help 1]
>>
>> [ERROR]
>>
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>>
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>
>> [ERROR]
>>
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>>
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
>>
>> ________________________________
>> The information contained in this transmission may contain privileged and
>> confidential information. It is intended only for the use of the person(s)
>> named above. If you are not the intended recipient, you are hereby notified
>> that any review, dissemination, distribution or duplication of this
>> communication is strictly prohibited. If you are not the intended
>> recipient, please contact the sender by reply email and destroy all copies
>> of the original message.
>> ________________________________
>>
>
>
>
>--
>Thanks,
>Andrew
>
>Subscribe to my book: Streaming Data <http://manning.com/psaltis>
><https://www.linkedin.com/pub/andrew-psaltis/1/17b/306>
>twiiter: @itmdata <http://twitter.com/intent/user?screen_name=itmdata>
________________________________
 The information contained in this transmission may contain privileged and confidential information.
It is intended only for the use of the person(s) named above. If you are not the intended
recipient, you are hereby notified that any review, dissemination, distribution or duplication
of this communication is strictly prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original message.
________________________________
Mime
View raw message