I see, so you are using JDK1.5. Will send out a fix for this. On Thu, Apr 28, 2011 at 12:07 AM, CRozeboom <clrozeb...@gmail.com> wrote:
> I installed maven and am trying to build the java jar files for a > project. I've tried this on a Windows XP and Ubuntu 10.10 system with > the same results. I've even tried removing the @Override annotations > that are being complained about and simply doing a "maven package", > but that fails as well. > > If there were a pre-built jar file for 2.4.0a, I'd just as soon work > with that. > > mvn test > [INFO] Scanning for projects... > [WARNING] > [WARNING] Some problems were encountered while building the effective > model for com.google.protobuf:protobuf-java:jar:2.4.0a > [WARNING] 'build.plugins.plugin.version' for > org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 57, > column 15 > [WARNING] 'build.plugins.plugin.version' for > org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 64, > column 15 > [WARNING] > [WARNING] It is highly recommended to fix these problems because they > threaten the stability of your build. > [WARNING] > [WARNING] For this reason, future Maven versions might no longer > support building such malformed projects. > [WARNING] > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Protocol Buffer Java API 2.4.0a > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-antrun-plugin:1.3:run (generate-sources) @ protobuf- > java --- > [INFO] Executing tasks > [INFO] Executed tasks > [INFO] Registering compile source root /root/protobuf-2.4.0a/java/ > target/generated-sources > [INFO] > [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) > @ protobuf-java --- > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] skip non existing resourceDirectory /root/protobuf-2.4.0a/java/ > src/main/resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ > protobuf-java --- > [WARNING] File encoding has not been set, using platform encoding > UTF-8, i.e. build is platform dependent! > [INFO] Compiling 38 source files to /root/protobuf-2.4.0a/java/target/ > classes > [INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > GeneratedMessage.java:[424,5] method does not override a method from > its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > GeneratedMessage.java:[448,7] method does not override a method from > its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > GeneratedMessage.java:[1133,11] method does not override a method from > its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > GeneratedMessage.java:[1228,11] method does not override a method from > its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[414,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[419,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[424,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[429,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[538,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[544,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[555,5] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[592,7] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[596,7] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[600,7] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SmallSortedMap.java:[607,7] method does not override a method from its > superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > RepeatedFieldBuilder.java:[576,3] method does not override a method > from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > SingleFieldBuilder.java:[237,3] method does not override a method from > its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[63,3] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[68,3] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[78,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[83,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[88,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[93,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[98,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[103,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[108,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[113,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[118,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[130,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[135,7] method does not override a > method from its superclass > [ERROR] /root/protobuf-2.4.0a/java/src/main/java/com/google/protobuf/ > UnmodifiableLazyStringList.java:[140,7] method does not override a > method from its superclass > [INFO] 31 errors > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to protobuf@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.