Patch, the attachment go lost (I have no commits rights):

Index: tika-bundle/pom.xml
===================================================================
--- tika-bundle/pom.xml (revision 1621062)
+++ tika-bundle/pom.xml (working copy)
@@ -251,6 +251,13 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>de.thetaphi</groupId>
+        <artifactId>forbiddenapis</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
     </plugins>
   </build>


-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]


> -----Original Message-----
> From: Uwe Schindler [mailto:[email protected]]
> Sent: Thursday, August 28, 2014 9:23 AM
> To: [email protected]
> Subject: RE: Trunk broken - forbidden API check failing
> 
> Hi,
> The example problem is another problem, the problem in tika-bundle is
> another one:
> 
> If you run the maven build after "mvn clean", it works. As the bundle has no
> classes, the forbidden-api checker just logs a notice that there are no 
> classes.
> All fine :-)
> 
> The problem happens on a second build:
> 
> During the first build, while building the bundle, something in the build 
> chain
> extracts all classes from all jar files to target/classes (which is against 
> Maven
> standards). If you then run the build again, without doing "mvn clean"
> before, forbidden-apis picks the classes extracted to target/classes in the
> previous run and scans them. While doing this it fails because of a
> dependency problem.
> 
> In my opinion there is something wrong: target/classes should only contain
> classes compiled from source folder. The bad guy is here the workaround for
> TIKA-763 (Workaround to avoid including LGPL classes): The maven-
> dependncy plugin is used to extract the classes of netcdf to the classes
> folder.
> 
> To fix: As the maven-bundle plugin contains no classes to check, the easiest 
> is
> to disable the plugin for this module. Attached is a patch to do this!
> 
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
> 
> 
> > -----Original Message-----
> > From: Uwe Schindler [mailto:[email protected]]
> > Sent: Thursday, August 28, 2014 8:58 AM
> > To: '[email protected]'
> > Subject: RE: Trunk broken - forbidden API check failing
> >
> > To me it fails not in forbiddenapis, but while compiling tests of example:
> >
> > [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile)
> > @ tika-example --- [INFO] Changes detected - recompiling the module!
> > [INFO] Compiling 4 source files to C:\Users\Uwe
> > Schindler\Projects\TIKA\svn\tika-example\target\test-classes
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR] /C:/Users/Uwe Schindler/Projects/TIKA/svn/tika-
> >
> example/src/test/java/org/apache/tika/example/ContentHandlerExampleT
> > est.java:[28,30] cannot find symbol
> >   symbol:   class TikaTest
> >   location: package org.apache.tika
> >
> > Uwe
> >
> > -----
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, D-28213 Bremen
> > http://www.thetaphi.de
> > eMail: [email protected]
> >
> >
> > > -----Original Message-----
> > > From: Nick Burch [mailto:[email protected]]
> > > Sent: Thursday, August 28, 2014 8:12 AM
> > > To: [email protected]
> > > Subject: Trunk broken - forbidden API check failing
> > >
> > > Hi All
> > >
> > > Anyone know about this, which is causing trunk to not build,
> > > triggering during creating the bundle:
> > >
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > > --------------------------------------------------------------------
> > > --
> > > -- [INFO] Check for forbidden API calls failed:
> > > java.lang.ClassNotFoundException: Loading of class
> > > com.google.protobuf.Descriptors$Descriptor failed: Not found
> > >
> > > Nick

Reply via email to