-Pdev is a "quick" profile that runs only the faster-build modules and strips out the ones that don't change much. It's a compromise for development - a bit more than "mvn verify" in one module, less than a full build. It assumes it is not running from uninitialized.

    Andy

On 25/05/17 14:31, Lorenz B. wrote:
Ah, I didn't know about the bootstrap profile.
Works for me with Maven v3.2.1

Cheers,
Lorenz

Did you "install"?

A clean build needs -Pbootstrap or no -P.

-Pdev assumes Guava has been shaded.

I just tried:

git pull
find ~/.m2/repo/org/apache/jena/ -name 3.4.0-SNAPSHOT | xargs rm -rf
mvn clean install -Pbootstrap

and it worked

[INFO] -----------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] -----------------------------------------------------------------
[INFO] Total time: 03:54 min
[INFO] Finished at: 2017-05-25T11:45:33+01:00
[INFO] Final Memory: 77M/831M


Laura's error could be down to maven : v3.0.5 is pretty old and there
have been various problems with 3.0.x for early x. I have 3.3.9.

     Andy

On 25/05/17 09:16, Lorenz B. wrote:
Interesting.

I tried to reproduce this with the latest build [1] and my build even
failed before the SPARQL Text Search ES module:

[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
jena-base ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 156 source files to
/tmp/jena-265266c/jena-base/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[27,51]

package org.apache.jena.ext.com.google.common.cache does not exist
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[29,51]

package org.apache.jena.ext.com.google.common.cache does not exist
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[30,51]

package org.apache.jena.ext.com.google.common.cache does not exist
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[37,56]

package org.apache.jena.ext.com.google.common.cache does not exist
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[114,12]

cannot find symbol
    symbol:   class CacheStats
    location: class org.apache.jena.atlas.lib.cache.CacheGuava<K,V>
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/Lib.java:[28,50]

package org.apache.jena.ext.com.google.common.base does not exist
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheInfo.java:[21,51]

package org.apache.jena.ext.com.google.common.cache does not exist
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheInfo.java:[31,37]

cannot find symbol
    symbol:   class CacheStats
    location: class org.apache.jena.atlas.lib.cache.CacheInfo
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[41,9]

cannot find symbol
    symbol:   class RemovalListener
    location: class org.apache.jena.atlas.lib.cache.CacheGuava<K,V>
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[41,37]

lambda expression not expected here
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheGuava.java:[47,17]

cannot find symbol
    symbol:   variable CacheBuilder
    location: class org.apache.jena.atlas.lib.cache.CacheGuava<K,V>
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/Lib.java:[50,16]

cannot find symbol
    symbol:   variable Objects
    location: class org.apache.jena.atlas.lib.Lib
[ERROR]
/tmp/jena-265266c/jena-base/src/main/java/org/apache/jena/atlas/lib/Lib.java:[62,17]

cannot find symbol
    symbol:   variable Objects
    location: class org.apache.jena.atlas.lib.Lib
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Jena - Parent .............................. SUCCESS [
3.096 s]
[INFO] Apache Jena - Shadowed external libraries ......... SUCCESS [
0.677 s]
[INFO] Apache Jena - IRI ................................. SUCCESS [
3.792 s]
[INFO] Apache Jena - Base Common Environment ............. FAILURE [
3.375 s]
[INFO] Apache Jena - Core ................................ SKIPPED


Looks like an issue with the shaded Guava libs.


[1]
https://git-wip-us.apache.org/repos/asf?p=jena.git;a=snapshot;h=265266ca6b8536dd6d746c66af959d7c93eab0f8;sf=tgz


I've downloaded Jena from
https://git-wip-us.apache.org/repos/asf?p=jena.git, snapshot
"master"
https://git-wip-us.apache.org/repos/asf?p=jena.git;a=snapshot;h=8161dedb740faf9c31a77f8ca15e631411a9e149;sf=tgz
(should be the most recent one). I've got this error when running
"mvn clean install" and I'm not sure how to fix it. My mvn is on
version 3.0.5.


May 24, 2017 10:58:23 PM
org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting:
com.github.alexcojocaru.mojo.elasticsearch.v2.RunForkedMojo
com.google.inject.ProvisionException: Unable to provision, see the
following errors:

1) No implementation for org.eclipse.aether.RepositorySystem was bound.
    while locating
com.github.alexcojocaru.mojo.elasticsearch.v2.RunForkedMojo

1 error
     at
com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1018)
     at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
     at
org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
     at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
     at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
     at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
     at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:113)
     at
org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
     at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:122)
     at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
     at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
     at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
     at
com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)

     at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
     at
com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
     at com.google.inject.Scopes$1$1.get(Scopes.java:59)
     at
org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
     at
org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
     at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
     at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
     at
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
     at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
     at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
     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:84)
     at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
     at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
     at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
     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)

[INFO]
------------------------------------------------------------------------

[INFO] Reactor Summary:
[INFO]
[INFO] Apache Jena - Parent .............................. SUCCESS
[7.609s]
[INFO] Apache Jena - Shadowed external libraries ......... SUCCESS
[5.367s]
[INFO] Apache Jena - IRI ................................. SUCCESS
[9.438s]
[INFO] Apache Jena - Base Common Environment ............. SUCCESS
[20.031s]
[INFO] Apache Jena - Core ................................ SUCCESS
[1:24.350s]
[INFO] Apache Jena - ARQ (SPARQL 1.1 Query Engine) ....... SUCCESS
[1:21.782s]
[INFO] Apache Jena - RDF Connection ...................... SUCCESS
[4.955s]
[INFO] Apache Jena - TDB (Native Triple Store) ........... SUCCESS
[3:06.139s]
[INFO] Apache Jena - Libraries POM ....................... SUCCESS
[0.200s]
[INFO] Apache Jena - Command line tools .................. SUCCESS
[12.177s]
[INFO] Apache Jena - SPARQL Text Search .................. SUCCESS
[16.909s]
[INFO] Apache Jena - SPARQL Text Search .................. FAILURE
[17.991s]
[INFO] Apache Jena - SPARQL Spatial Search ............... SKIPPED
[INFO] Apache Jena - Data Tables for RDF and SPARQL ...... SKIPPED
[INFO] Apache Jena - SDB (SQL based triple store) ........ SKIPPED
[INFO] Apache Jena - Fuseki1 ............................. SKIPPED
[INFO] Apache Jena - Fuseki - A SPARQL 1.1 Server ........ SKIPPED
[INFO] Apache Jena - Fuseki Server Engine ................ SKIPPED
[INFO] Apache Jena - Fuseki Embedded Server .............. SKIPPED
[INFO] Apache Jena - Fuseki WAR File ..................... SKIPPED
[INFO] Apache Jena - Fuseki Server Standalone Jar ........ SKIPPED
[INFO] Apache Jena - Fuseki Binary Distribution .......... SKIPPED
[INFO] Apache Jena - Integration Testing ................. SKIPPED
[INFO] Apache Jena - Security Permissions ................ SKIPPED
[INFO] Apache Jena - JDBC Parent ......................... SKIPPED
[INFO] Apache Jena - JDBC Core API ....................... SKIPPED
[INFO] Apache Jena - JDBC Remote Endpoint Driver ......... SKIPPED
[INFO] Apache Jena - JDBC In-Memory Driver ............... SKIPPED
[INFO] Apache Jena - JDBC TDB Driver ..................... SKIPPED
[INFO] Apache Jena - JDBC Driver Bundle .................. SKIPPED
[INFO] Apache Jena - Elephas ............................. SKIPPED
[INFO] Apache Jena - Elephas - Common API ................ SKIPPED
[INFO] Apache Jena - Elephas - I/O ....................... SKIPPED
[INFO] Apache Jena - Elephas - Map/Reduce ................ SKIPPED
[INFO] Apache Jena - Elephas - Statistics Demo App ....... SKIPPED
[INFO] Apache Jena - Distribution ........................ SKIPPED
[INFO] Apache Jena - OSGi ................................ SKIPPED
[INFO] Apache Jena - OSGi bundle ......................... SKIPPED
[INFO] Apache Jena - OSGi Karaf features ................. SKIPPED
[INFO] Apache Jena - Extras .............................. SKIPPED
[INFO] Apache Jena - Extras - Query Builder .............. SKIPPED
[INFO] Apache Jena ....................................... SKIPPED
[INFO]
------------------------------------------------------------------------

[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------

[INFO] Total time: 7:29.571s
[INFO] Finished at: Wed May 24 22:58:23 CEST 2017
[INFO] Final Memory: 79M/869M
[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal
com.github.alexcojocaru:elasticsearch-maven-plugin:5.2:runforked
(start-elasticsearch) on project jena-text-es: Execution
start-elasticsearch of goal
com.github.alexcojocaru:elasticsearch-maven-plugin:5.2:runforked
failed: Unable to load the mojo 'runforked' (or one of its required
components) from the plugin
'com.github.alexcojocaru:elasticsearch-maven-plugin:5.2':
com.google.inject.ProvisionException: Unable to provision, see the
following errors:
[ERROR]
[ERROR] 1) No implementation for org.eclipse.aether.RepositorySystem
was bound.
[ERROR] while locating
com.github.alexcojocaru.mojo.elasticsearch.v2.RunForkedMojo
[ERROR] at
ClassRealm[plugin>com.github.alexcojocaru:elasticsearch-maven-plugin:5.2,
parent: sun.misc.Launcher$AppClassLoader@677327b6] (via modules:
org.sonatype.guice.bean.binders.MergedModule ->
org.sonatype.guice.plexus.binders.PlexusBindingModule)
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with
@com.google.inject.name.Named(value=com.github.alexcojocaru:elasticsearch-maven-plugin:5.2:runforked)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint:
com.github.alexcojocaru:elasticsearch-maven-plugin:5.2:runforked
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR]   mvn <goals> -rf :jena-text-es


Reply via email to