Re: Build errors finding javax.annotation on rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
Boulder, CO 80301                   http://www.nwra.com
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel





[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux