eXist-db / expath-file-module

EXPath File Module for eXist-db XQuery
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Truncated jar entries in package.xml prevent installation #3

Closed joewiz closed 7 years ago

joewiz commented 8 years ago

The maven package builds correctly and without error, but when I try to install the .xar (target/exist-expath-file-module-1.0-SNAPSHOT.xar), the Dashboard Package Manager gives me this error:

Inconsistent package descriptor, the JAR file is not in the package: ntinuations-library_2.11-1.0.1.jar

Digging into the project directory to try to find the reference to this apparently truncated filename, I found that exist-expath-file-module/target/expath-descriptors-3e387942-9387-4536-b560-05e6de31a0b9/exist.xml matched, along with several other jars whose names also appeared to be truncated:

<package xmlns="http://exist-db.org/ns/expath-pkg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <jar>ule-1.0-SNAPSHOT.jar</jar>
    <jar>ile-module-1.0-SNAPSHOT.jar</jar>
    <jar>m_2.11-1.3.3.jar</jar>
    <jar>ntinuations-library_2.11-1.0.1.jar</jar>
    <jar>-core_2.11-0.4.3-1.jar</jar>
    <jar>-file_2.11-0.4.3-1.jar</jar>
    <jar>brary-2.11.5.jar</jar>
    <jar>rser-combinators_2.11-1.0.2.jar</jar>
    <jar>flect-2.11.0.jar</jar>
    <jar>l_2.11-1.0.2.jar</jar>
    <jar>oncurrent_2.11-7.1.0.jar</jar>
    <jar>ore_2.11-7.1.1.jar</jar>
    <jar>ffect_2.11-7.1.0.jar</jar>
    <jar>tream_2.11-0.6a.jar</jar>
    <jar>its_2.11-1.0.4.jar</jar>
</package>

I'm afraid I don't know how to address this issue. I'm happy to try any suggestion you might have!

Below is the console output of mvn package should there be any clues.

$ mvn package

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building eXist EXPath File Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ file-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/exist-expath-file-module/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.0:compile (default) @ file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exist.expath.module:file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /Users/joe/workspace/exist-expath-file-module/src/main/scala:-1: info: compiling
[INFO] Compiling 3 source files to /Users/joe/workspace/exist-expath-file-module/target/classes at 1454789630804
[WARNING] warning: there were two deprecation warnings; re-run with -deprecation for details
[WARNING] warning: there were 12 feature warnings; re-run with -feature for details
[WARNING] two warnings found
[INFO] prepare-compile in 0 s
[INFO] compile in 10 s
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ file-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/exist-expath-file-module/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.0:testCompile (default) @ file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exist.expath.module:file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ file-module ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ file-module ---
[INFO] Building jar: /Users/joe/workspace/exist-expath-file-module/target/file-module-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-assembly-plugin:2.5.3:single (make-assembly) @ file-module ---
[INFO] Reading assembly descriptor: src/assembly/unpacked-dist.xml
[WARNING] The assembly descriptor contains a filesystem-root relative reference,which is not cross platform compatible /
[INFO] Copying files to /Users/joe/workspace/exist-expath-file-module/target/file-module-1.0-SNAPSHOT-bin
[WARNING] Assembly file: /Users/joe/workspace/exist-expath-file-module/target/file-module-1.0-SNAPSHOT-bin is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.
[INFO] Building jar: /Users/joe/workspace/exist-expath-file-module/target/file-module-1.0-SNAPSHOT-jar-with-dependencies.jar
[INFO] 
[INFO] --- kuberam-expath-plugin:0.4.1:make-xar (create-xar) @ file-module ---
mavenResourcesExecution: org.apache.maven.shared.filtering.MavenResourcesExecution@1e1b4e8b
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to /Users/joe/workspace/exist-expath-file-module/target/make-xar-tmp
mavenResourcesExecution: org.apache.maven.shared.filtering.MavenResourcesExecution@75c85a8a
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to /Users/joe/workspace/exist-expath-file-module/target/expath-descriptors-78d6ebbc-07f6-4ae7-8446-dedb7f1a2727
[INFO] Building zip: /Users/joe/workspace/exist-expath-file-module/target/exist-expath-file-module-1.0-SNAPSHOT.xar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.511 s
[INFO] Finished at: 2016-02-06T12:14:10-08:00
[INFO] Final Memory: 23M/472M
[INFO] ------------------------------------------------------------------------
sentheel commented 7 years ago

Have you found any solution, i am also facing same issue.

joewiz commented 7 years ago

I haven't, I'm afraid. Perhaps @adamretter or @claudius108 would have some insights?

claudius108 commented 7 years ago

Do this happens also with the latest version (0.4.9) of the kuberam-expath-plugin plugin?

joewiz commented 7 years ago

With a fresh checkout, I successfully built the package without error. I was even able to install the .xar file into eXist 3.3.0-DEVELOP (current head, c018bd44b). But I couldn't figure out how to call any of its functions. I tried running this and got errors about the module not being found. I even unregistered the eXist file module from conf.xml and restarted - with no change to the results below:

xquery version "3.1";

import module namespace f="http://expath.org/ns/file";

"test"

returned the following error:

Cannot compile xquery: err:XQST0059 error found while loading module f: failed to load module: 'http://expath.org/ns/file' from: 'http://expath.org/ns/file', location: 'http://expath.org/ns/file'. Source not found.

I'm happy to test, if anyone has suggestions. I've attached the .xar file here: exist-expath-file-module-1.0-SNAPSHOT.xar.zip

adamretter commented 7 years ago

@joewiz Okay I fixed the build and make a few updates to the XAR creation process, you should be good to go now :-)

joewiz commented 7 years ago

I updated to bf120f4 and tried the updated build directions in the README.md file, but running mvn clean compile package fails on this error (even after running mvn clean install on exquery/expath-file-module):

[INFO] ------------------------------------------------------------------------
[INFO] Building EXPath File Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.scalaz.stream:scalaz-stream_2.11:jar:0.6a is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.306 s
[INFO] Finished at: 2017-06-28T09:31:40-04:00
[INFO] Final Memory: 16M/233M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project expath-file-module: Could not resolve dependencies for project org.exist-db.xquery.extensions.expath:expath-file-module:jar:1.0-SNAPSHOT: Could not find artifact org.scalaz.stream:scalaz-stream_2.11:jar:0.6a in exist (https://raw.github.com/eXist-db/mvn-repo/master/) -> [Help 1]
adamretter commented 7 years ago

@joewiz Can you try mvn -U clean compile package?

joewiz commented 7 years ago

Here's what I get:

$ mvn -U clean compile package
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building EXPath File Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://raw.github.com/eXist-db/mvn-repo/master/org/scalaz/stream/scalaz-stream_2.11/0.6a/scalaz-stream_2.11-0.6a.pom
Downloading: https://repo.maven.apache.org/maven2/org/scalaz/stream/scalaz-stream_2.11/0.6a/scalaz-stream_2.11-0.6a.pom
[WARNING] The POM for org.scalaz.stream:scalaz-stream_2.11:jar:0.6a is missing, no dependency information available
Downloading: https://raw.github.com/eXist-db/mvn-repo/master/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.github.com/eXist-db/mvn-repo/master/org/scalaz/stream/scalaz-stream_2.11/0.6a/scalaz-stream_2.11-0.6a.jar
Downloading: https://repo.maven.apache.org/maven2/org/scalaz/stream/scalaz-stream_2.11/0.6a/scalaz-stream_2.11-0.6a.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.235 s
[INFO] Finished at: 2017-06-28T10:58:15-04:00
[INFO] Final Memory: 16M/215M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project expath-file-module: Could not resolve dependencies for project org.exist-db.xquery.extensions.expath:expath-file-module:jar:1.0-SNAPSHOT: Could not find artifact org.scalaz.stream:scalaz-stream_2.11:jar:0.6a in exist (https://raw.github.com/eXist-db/mvn-repo/master/) -> [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/DependencyResolutionException
adamretter commented 7 years ago

@joewiz Doh! Sorry I had removed the repository definition in pom.xml for org.scalaz.stream:scalaz-stream_2.11:jar:0.6a. I have now added it back in. I didn't see it as I had a cached copy in my own ~/.m2.

joewiz commented 7 years ago

I've pulled in d64b25f and am now getting this (after re-running mvn clean install on exquery/expath-file-module):

Joes-Mac-mini:expath-file-module joe$ mvn -U clean compile package
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building EXPath File Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.github.com/eXist-db/mvn-repo/master/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/maven-metadata.xml
Downloading: http://dl.bintray.com/scalaz/releases/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/maven-metadata.xml
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ expath-file-module ---
[INFO] Deleting /Users/joe/workspace/expath-file-module/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ expath-file-module ---
[INFO] 
[INFO] --- buildversion-plugin:1.0.3:set-properties (default) @ expath-file-module ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ expath-file-module ---
[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:3.0.24 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.codehaus.plexus:plexus-interpolation:jar:1.24 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/expath-file-module/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ expath-file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ expath-file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exist-db.xquery.extensions.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /Users/joe/workspace/expath-file-module/src/main/scala:-1: info: compiling
[INFO] Compiling 3 source files to /Users/joe/workspace/expath-file-module/target/classes at 1498677673701
[WARNING] warning: there were four deprecation warnings; re-run with -deprecation for details
[WARNING] warning: there were 12 feature warnings; re-run with -feature for details
[WARNING] two warnings found
[INFO] prepare-compile in 0 s
[INFO] compile in 9 s
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ expath-file-module ---
[INFO] 
[INFO] --- buildversion-plugin:1.0.3:set-properties (default) @ expath-file-module ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ expath-file-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/expath-file-module/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ expath-file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:compile (default) @ expath-file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exist-db.xquery.extensions.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ expath-file-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/expath-file-module/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ expath-file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.2:testCompile (default) @ expath-file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exist-db.xquery.extensions.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ expath-file-module ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ expath-file-module ---
[WARNING] The POM for org.codehaus.plexus:plexus-archiver:jar:3.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
java.lang.NoClassDefFoundError: org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
    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:99)
    at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:658)
    at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:882)
    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 com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
    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:1103)
    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.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250)
    at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
    at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:140)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
    at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
    at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
    at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
    at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
    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 com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
    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:519)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    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:309)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
    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)
    ... 85 more
[WARNING] Error injecting: org.apache.maven.plugins.jar.JarMojo
java.lang.NoClassDefFoundError: org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
    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:99)
    at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:658)
    at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:882)
    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 com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
    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:1103)
    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.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250)
    at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
    at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:140)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
    at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
    at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
    at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
    at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
    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 com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:133)
    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:519)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    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:309)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
    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)
    ... 85 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.762 s
[INFO] Finished at: 2017-06-28T15:21:23-04:00
[INFO] Final Memory: 24M/264M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project expath-file-module: Execution default-jar of goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar failed: A required class was missing while executing org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar: org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-jar-plugin:3.0.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/joe/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/3.0.2/maven-jar-plugin-3.0.2.jar
[ERROR] urls[1] = file:/Users/joe/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[2] = file:/Users/joe/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[3] = file:/Users/joe/.m2/repository/org/apache/maven/maven-aether-provider/3.0/maven-aether-provider-3.0.jar
[ERROR] urls[4] = file:/Users/joe/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[5] = file:/Users/joe/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/Users/joe/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[7] = file:/Users/joe/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[8] = file:/Users/joe/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[9] = file:/Users/joe/.m2/repository/org/apache/maven/maven-archiver/3.1.1/maven-archiver-3.1.1.jar
[ERROR] urls[10] = file:/Users/joe/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.0.1/maven-shared-utils-3.0.1.jar
[ERROR] urls[11] = file:/Users/joe/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[12] = file:/Users/joe/.m2/repository/org/codehaus/plexus/plexus-archiver/3.4/plexus-archiver-3.4.jar
[ERROR] urls[13] = file:/Users/joe/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] : org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
[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

Here's my maven version info:

$ mvn --version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: /usr/local/Cellar/maven/3.5.0/libexec
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.5", arch: "x86_64", family: "mac"

And just so you have the full picture, here's the output from building exquery/expath-file-module:

Joes-Mac-mini:expath-file-module joe$ mvn clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building EXPath File Module Abstractions 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ expath-file-module ---
[INFO] Deleting /Users/joe/workspace/exquery/expath-file-module/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ expath-file-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/exquery/expath-file-module/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ expath-file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.0:compile (default) @ expath-file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exquery.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /Users/joe/workspace/exquery/expath-file-module/src/main/scala:-1: info: compiling
[INFO] Compiling 1 source files to /Users/joe/workspace/exquery/expath-file-module/target/classes at 1498677617790
[WARNING] warning: there was one deprecation warning; re-run with -deprecation for details
[WARNING] one warning found
[INFO] prepare-compile in 0 s
[INFO] compile in 6 s
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ expath-file-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/joe/workspace/exquery/expath-file-module/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ expath-file-module ---
[INFO] No sources to compile
[INFO] 
[INFO] --- scala-maven-plugin:3.2.0:testCompile (default) @ expath-file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exquery.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /Users/joe/workspace/exquery/expath-file-module/src/test/scala:-1: info: compiling
[INFO] Compiling 1 source files to /Users/joe/workspace/exquery/expath-file-module/target/test-classes at 1498677624420
[INFO] prepare-compile in 0 s
[INFO] compile in 6 s
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ expath-file-module ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ expath-file-module ---
[INFO] Building jar: /Users/joe/workspace/exquery/expath-file-module/target/expath-file-module-1.0-SNAPSHOT.jar
[INFO] 
[INFO] >>> scala-maven-plugin:3.2.0:doc-jar (scala-doc-jar) > generate-sources @ expath-file-module >>>
[INFO] 
[INFO] <<< scala-maven-plugin:3.2.0:doc-jar (scala-doc-jar) < generate-sources @ expath-file-module <<<
[INFO] 
[INFO] 
[INFO] --- scala-maven-plugin:3.2.0:doc-jar (scala-doc-jar) @ expath-file-module ---
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exquery.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
[WARNING]  Expected all dependencies to require Scala version: 2.11.5
[WARNING]  org.exquery.expath:expath-file-module:1.0-SNAPSHOT requires scala version: 2.11.5
[WARNING]  org.scalaz:scalaz-core_2.11:7.1.1 requires scala version: 2.11.5
[WARNING]  org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2 requires scala version: 2.11.1
[WARNING] Multiple versions of scala libraries detected!
warning: there was one deprecation warning; re-run with -deprecation for details
model contains 10 documentable templates
one warning found
[INFO] Building jar: /Users/joe/workspace/exquery/expath-file-module/target/expath-file-module-1.0-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- specs2-maven-plugin:0.4.4:run-specs (verify) @ expath-file-module ---
[WARNING] The POM for org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.0 is missing, no dependency information available
[INFO] org.exquery.expath.module.file.FileModuleSpec:
[INFO] Success: 5, Error: 0, Failure: 0, Skipped: 0
[INFO] 
[INFO] --- license-maven-plugin:2.9:check (default) @ expath-file-module ---
[INFO] Checking licenses...
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ expath-file-module ---
[INFO] Installing /Users/joe/workspace/exquery/expath-file-module/target/expath-file-module-1.0-SNAPSHOT.jar to /Users/joe/.m2/repository/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/expath-file-module-1.0-SNAPSHOT.jar
[INFO] Installing /Users/joe/workspace/exquery/expath-file-module/pom.xml to /Users/joe/.m2/repository/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/expath-file-module-1.0-SNAPSHOT.pom
[INFO] Installing /Users/joe/workspace/exquery/expath-file-module/target/expath-file-module-1.0-SNAPSHOT-javadoc.jar to /Users/joe/.m2/repository/org/exquery/expath/expath-file-module/1.0-SNAPSHOT/expath-file-module-1.0-SNAPSHOT-javadoc.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.793 s
[INFO] Finished at: 2017-06-28T15:20:39-04:00
[INFO] Final Memory: 19M/273M
[INFO] ------------------------------------------------------------------------
adamretter commented 7 years ago

@joewiz I am not certain but something looks corrupt on your machine, can you try removing ~/.m2/repository and trying again?

joewiz commented 7 years ago

@adamretter Success! This time on my home laptop with a fresh installation of maven, exquery, and expath-file-module. When I return to the other machine I'll clear the maven repository as you suggested.

[INFO] Building zip: /Users/joe/workspace/expath-file-module/target/expath-file-module-1.0-SNAPSHOT.xar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:06 min
[INFO] Finished at: 2017-06-28T19:31:24-04:00
[INFO] Final Memory: 41M/470M
[INFO] ------------------------------------------------------------------------

Unfortunately, when I install the package, quit eXist, comment out the native file module in conf.xml, restart eXist (develop c018bd44b from today), and run the sample query above, I get the following error in exist.log:

2017-06-28 19:40:51,675 [qtp94682872-21] ERROR (XQueryServlet.java [process]:534) - Cannot compile xquery: exerr:ERROR error found while loading module f: Problem instantiating module class from EXPath repository: org.exist.xquery.modules.expath.file.ExpathFileModule 
org.exist.EXistException: Cannot compile xquery: exerr:ERROR error found while loading module f: Problem instantiating module class from EXPath repository: org.exist.xquery.modules.expath.file.ExpathFileModule
    at org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:428) [exist-optional.jar:3.3.0-SNAPSHOT]
    at org.exist.http.servlets.XQueryServlet.doPost(XQueryServlet.java:191) [exist-optional.jar:3.3.0-SNAPSHOT]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [servlet-api-3.1.jar:3.1.0]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [servlet-api-3.1.jar:3.1.0]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566) [jetty-security-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:159) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:74) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:50) [exist-optional.jar:3.3.0-SNAPSHOT]
    at org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:545) [exist-optional.jar:3.3.0-SNAPSHOT]
    at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:349) [exist-optional.jar:3.3.0-SNAPSHOT]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [servlet-api-3.1.jar:3.1.0]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:171) [betterform-exist-5.1-SNAPSHOT-20160615.jar:?]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) [jetty-servlet-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:396) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.Server.handle(Server.java:524) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253) [jetty-server-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [jetty-io-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [jetty-io-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [jetty-io-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [jetty-util-9.3.9.v20160517.jar:9.3.9.v20160517]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: org.exist.xquery.XPathException: exerr:ERROR error found while loading module f: Problem instantiating module class from EXPath repository: org.exist.xquery.modules.expath.file.ExpathFileModule
    at org.exist.repo.ExistRepository.getModule(ExistRepository.java:135) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.repo.ExistRepository.resolveJavaModule(ExistRepository.java:110) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQueryContext.resolveInEXPathRepository(XQueryContext.java:346) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2690) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.importDecl(XQueryTreeParser.java:5862) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4877) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.mainModule(XQueryTreeParser.java:4010) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3955) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3612) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:128) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:79) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:71) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:425) ~[exist-optional.jar:3.3.0-SNAPSHOT]
    ... 48 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_131]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_131]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_131]
    at org.exist.repo.ExistRepository.instantiateModule(ExistRepository.java:151) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.repo.ExistRepository.getModule(ExistRepository.java:124) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.repo.ExistRepository.resolveJavaModule(ExistRepository.java:110) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQueryContext.resolveInEXPathRepository(XQueryContext.java:346) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2690) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.importDecl(XQueryTreeParser.java:5862) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4877) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.mainModule(XQueryTreeParser.java:4010) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3955) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3612) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:128) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:79) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:71) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:425) ~[exist-optional.jar:3.3.0-SNAPSHOT]
    ... 48 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.exist.xquery.modules.expath.file.ExpathFileModule$
    at org.exist.xquery.modules.expath.file.ExpathFileModule.<init>(ExpathFileModule.scala:77) ~[expath-file-module-1.0-SNAPSHOT.jar:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_131]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_131]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_131]
    at org.exist.repo.ExistRepository.instantiateModule(ExistRepository.java:151) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.repo.ExistRepository.getModule(ExistRepository.java:124) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.repo.ExistRepository.resolveJavaModule(ExistRepository.java:110) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQueryContext.resolveInEXPathRepository(XQueryContext.java:346) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:2690) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.importDecl(XQueryTreeParser.java:5862) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:4877) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.mainModule(XQueryTreeParser.java:4010) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:3955) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:3612) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:128) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:79) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.xquery.XQuery.compile(XQuery.java:71) ~[exist.jar:3.3.0-SNAPSHOT]
    at org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:425) ~[exist-optional.jar:3.3.0-SNAPSHOT]
    ... 48 more
joewiz commented 7 years ago

Moving the current discussion to a new issue, as the original problem has been overcome.