Hi,

I just downloaded apache-tika-0.9-src.zip from 
http://www.apache.org/dyn/closer.cgi/tika/apache-tika-0.9-src.zip, unzipped and 
tried to build Tika using Maven. I used the following command:

mvn -e clean install

and got the following error message (I am also attaching the complete log):

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) 
on project tika-parsers: Compilation failure
[ERROR] 
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\src\main\java\org\apache\tika\parser\image\ImageMetadataExtractor.java:[88,34]
 cannot access JPEGDecodeParam
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) 
on project tika-parsers: Compilation failure
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\src\main\java\org\apache\tika\parser\image\ImageMetadataExtractor.java:[88,34]
 cannot access JPEGDecodeParam


                at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
                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:319)
                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:57)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:613)
                at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
                at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
                at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
                at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
failure
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\src\main\java\org\apache\tika\parser\image\ImageMetadataExtractor.java:[88,34]
 cannot access JPEGDecodeParam


                at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
                at 
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
                at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
                at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
                ... 19 more
[ERROR]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :tika-parsers

I found no info on this plugin here: http://maven.apache.org/plugins/

I am doing this on an XP Pro machine.

Why am I getting this error and how can I resolve this?

Thanks,


Mr. Ilya Zavorin, Ph.D.
Principal Research Analyst
Knowledge and Information Management Division
CACI International
4831 Walden Lane
Lanham, MD 20706
ph: 1-301-306-2859
fx: 1-301-306-8201
[email protected]
www.caci.com

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Apache Tika parent
[INFO] Apache Tika core
[INFO] Apache Tika parsers
[INFO] Apache Tika application
[INFO] Apache Tika OSGi bundle
[INFO] Apache Tika
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Tika parent 0.9
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ tika-parent ---
[INFO] Deleting file set: C:\Code\ATEK\CT\apache-tika-0.9\tika-parent\target 
(included: [**], excluded: [])
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.0:process (default) @ tika-parent ---
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] 
[INFO] --- maven-install-plugin:2.2:install (default-install) @ tika-parent ---
[INFO] Installing C:\Code\ATEK\CT\apache-tika-0.9\tika-parent\pom.xml to 
C:\Documents and 
Settings\izavorin\.m2\repository\org\apache\tika\tika-parent\0.9\tika-parent-0.9.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Tika core 0.9
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ tika-core ---
[INFO] Deleting file set: C:\Code\ATEK\CT\apache-tika-0.9\tika-core\target 
(included: [**], excluded: [])
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.0:process (default) @ tika-core ---
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ tika-core 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 21 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ tika-core ---
[INFO] Compiling 128 source files to 
C:\Code\ATEK\CT\apache-tika-0.9\tika-core\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ 
tika-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 30 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ 
tika-core ---
[INFO] Compiling 26 source files to 
C:\Code\ATEK\CT\apache-tika-0.9\tika-core\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.4.3:test (default-test) @ tika-core ---
[INFO] Surefire report directory: 
C:\Code\ATEK\CT\apache-tika-0.9\tika-core\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.tika.sax.XHTMLContentHandlerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.apache.tika.sax.SecureContentHandlerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running org.apache.tika.sax.OfflineContentHandlerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running org.apache.tika.detect.NameDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.apache.tika.utils.RegexUtilsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.apache.tika.io.TikaInputStreamTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec
Running org.apache.tika.mime.MimeTypesReaderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.266 sec
Running org.apache.tika.utils.CharsetUtilsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.apache.tika.sax.xpath.XPathParserTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.apache.tika.detect.MagicDetectorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.apache.tika.metadata.TestMetadataHelper
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.apache.tika.fork.ForkParserTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.484 sec
Running org.apache.tika.metadata.TestMetadata
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.apache.tika.TikaTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running org.apache.tika.detect.TextDetectorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.apache.tika.detect.TypeDetectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.apache.tika.mime.MediaTypeTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.apache.tika.sax.SafeContentHandlerTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.apache.tika.sax.BodyContentHandlerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.apache.tika.language.LanguageIdentifierTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.484 sec
Running org.apache.tika.language.LanguageProfileTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.apache.tika.mime.MimeDetectionTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec
Running org.apache.tika.TestRereadableInputStream
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.apache.tika.language.ProfilingWriterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests run: 83, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-bundle-plugin:2.1.0:bundle (default-bundle) @ tika-core ---
[INFO] 
[INFO] --- maven-install-plugin:2.2:install (default-install) @ tika-core ---
[INFO] Installing 
C:\Code\ATEK\CT\apache-tika-0.9\tika-core\target\tika-core-0.9.jar to 
C:\Documents and 
Settings\izavorin\.m2\repository\org\apache\tika\tika-core\0.9\tika-core-0.9.jar
[INFO] Installing C:\Code\ATEK\CT\apache-tika-0.9\tika-core\pom.xml to 
C:\Documents and 
Settings\izavorin\.m2\repository\org\apache\tika\tika-core\0.9\tika-core-0.9.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.1.0:install (default-install) @ tika-core ---
[INFO] Installing org/apache/tika/tika-core/0.9/tika-core-0.9.jar
[INFO] Writing OBR metadata
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Tika parsers 0.9
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ tika-parsers ---
[INFO] Deleting file set: C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\target 
(included: [**], excluded: [])
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.0:process (default) @ tika-parsers 
---
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ 
tika-parsers ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ tika-parsers 
---
[INFO] Compiling 92 source files to 
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Tika parent ................................ SUCCESS [0.704s]
[INFO] Apache Tika core .................................. SUCCESS [11.983s]
[INFO] Apache Tika parsers ............................... FAILURE [2.500s]
[INFO] Apache Tika application ........................... SKIPPED
[INFO] Apache Tika OSGi bundle ........................... SKIPPED
[INFO] Apache Tika ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.827s
[INFO] Finished at: Sun Mar 06 11:26:27 EST 2011
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) 
on project tika-parsers: Compilation failure
[ERROR] 
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\src\main\java\org\apache\tika\parser\image\ImageMetadataExtractor.java:[88,34]
 cannot access JPEGDecodeParam
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) 
on project tika-parsers: Compilation failure
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\src\main\java\org\apache\tika\parser\image\ImageMetadataExtractor.java:[88,34]
 cannot access JPEGDecodeParam


        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        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:319)
        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:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:613)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
failure
C:\Code\ATEK\CT\apache-tika-0.9\tika-parsers\src\main\java\org\apache\tika\parser\image\ImageMetadataExtractor.java:[88,34]
 cannot access JPEGDecodeParam


        at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
[ERROR] 
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :tika-parsers

Reply via email to