[fedora-java] Build errors finding javax.annotation on rawhide

Orion Poplawski orion at cora.nwra.com
Mon Apr 15 18:16:43 UTC 2013


On 04/15/2013 12:55 AM, Krzysztof Daniel wrote:
> On Wed, 2013-04-10 at 17:01 -0600, Orion Poplawski wrote:
>
>> Seems like javax.annotation is in
>> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.17.x86_64/jre/lib/rt.jar, so what's up?
>>
>
> This is not exactly the javax.annotation that Eclipse/Tycho expects.
> Eclipse/Tycho requires OSGI bundle which is not in Fedora, only the
> classes are provided by the jvm. So you need to patch your features to
> not include the javax.annotation bundle and bump the execution
> environment to 1.6.
> Eclipse will use then javax.annotation classes from vm.

Commenting out the javax.annotation appears to allow it to proceed.  Not sure 
about "bump the execution environment to 1.6".  In the main pom.xml there is:


  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-pmd-plugin</artifactId>
         <version>2.5</version>
           <configuration>
             <sourceEncoding>utf-8</sourceEncoding>
             <minimumTokens>100</minimumTokens>
             <targetJdk>1.6</targetJdk>
             <format>xml</format>
             <failOnViolation>false</failOnViolation>
           </configuration>
           <executions>
             <execution>
               <goals>
                 <goal>cpd-check</goal>
              </goals>
          </execution>
       </executions>
  </plugin>

So perhaps that is it.  Or perhaps it is not specified.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the java-devel mailing list