So if you are trying to build only java then I would recommend you go to the java dir in lang and run maven from there.
You can also run ./build.sh and build all the modules from there. Hope this unblocks you. Suraj Sent from my phone. On Wed, May 9, 2018, 12:35 AM Rumesh Krishnan <[email protected]> wrote: > Hi everyone, > > > I was able to clone the Avro from git using the bellow commend. > > git clone https://github.com/apache/avro.git -o github > > where as, building the project without any modification, facing some issue. > > D:\Rumesh\OpenSource\avro>mvn compile > [INFO] Scanning for projects... > [WARNING] The project org.apache.avro:avro-toplevel:pom:1.9.0-SNAPSHOT > uses prerequisites which is only intended for maven-plugin projects > but not for > non maven-plugin projects. For such purposes you should use the > maven-enforcer-plugin. See > https://maven.apache.org/enforcer/enforcer-rules/requireMa > venVersion.html > <https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Build Order: > [INFO] > [INFO] Apache Avro Toplevel > [pom] > [INFO] Apache Avro Java > [pom] > [INFO] Apache Avro Guava Dependencies > [jar] > [INFO] Apache Avro > [bundle] > [INFO] Apache Avro Compiler > [bundle] > [INFO] Apache Avro Maven Plugin > [maven-plugin] > [INFO] Apache Avro IPC > [bundle] > [INFO] Trevni Java > [pom] > [INFO] Trevni Java Core > [jar] > [INFO] Apache Avro Mapred API > [bundle] > [INFO] Trevni Java Avro > [jar] > [INFO] Trevni Specification > [pom] > [INFO] Apache Avro Tools > [jar] > [INFO] Apache Avro Protobuf Compatibility > [bundle] > [INFO] Apache Avro Thrift Compatibility > [bundle] > [INFO] Apache Avro Maven Archetypes > [pom] > [INFO] Apache Avro Maven Service Archetype > [maven-archetype] > [INFO] Apache Avro gRPC > [bundle] > [INFO] > [INFO] -------------------< org.apache.avro:avro-toplevel > >-------------------- > [INFO] Building Apache Avro Toplevel 1.9.0-SNAPSHOT > [1/18] > [INFO] --------------------------------[ pom > ]--------------------------------- > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ > avro-toplevel --- > [INFO] > [INFO] --------------------< org.apache.avro:avro-parent > >--------------------- > [INFO] Building Apache Avro Java 1.9.0-SNAPSHOT > [2/18] > [INFO] --------------------------------[ pom > ]--------------------------------- > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ > avro-parent --- > [INFO] > [INFO] --------------< org.apache.avro:avro-guava-dependencies > >--------------- > [INFO] Building Apache Avro Guava Dependencies 1.9.0-SNAPSHOT > [3/18] > [INFO] --------------------------------[ jar > ]--------------------------------- > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ > avro-guava-dependencies --- > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ > avro-guava-dependencies --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 0 resource > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ > avro-guava-dependencies --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 1 source file to > D:\Rumesh\OpenSource\avro\lang\java\guava\target\classes > [INFO] > [INFO] ------------------------< org.apache.avro:avro > >------------------------ > [INFO] Building Apache Avro 1.9.0-SNAPSHOT > [4/18] > [INFO] -------------------------------[ bundle > ]------------------------------- > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ avro --- > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ avro > --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 1 resource > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ avro --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 138 source files to > D:\Rumesh\OpenSource\avro\lang\java\avro\target\classes > [WARNING] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/reflect/FieldAccessUnsafe.java:[27,16] > sun.misc.Unsafe is internal p > roprietary API and may be removed in a future release > [WARNING] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/reflect/FieldAccessUnsafe.java:[32,24] > sun.misc.Unsafe is internal p > roprietary API and may be removed in a future release > [WARNING] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/reflect/FieldAccessUnsafe.java:[36,25] > sun.misc.Unsafe is internal p > roprietary API and may be removed in a future release > [WARNING] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/reflect/FieldAccessUnsafe.java:[38,17] > sun.misc.Unsafe is internal p > roprietary API and may be removed in a future release > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/Schema.java: > Some input files use or override a deprecated API. > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/Schema.java: > Recompile with -Xlint:deprecation for details. > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/Schema.java: > Some input files use unchecked or unsafe operations. > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/avro/src/main/java/org/apache/avro/Schema.java: > Recompile with -Xlint:unchecked for details. > [INFO] > [INFO] -------------------< org.apache.avro:avro-compiler > >-------------------- > [INFO] Building Apache Avro Compiler 1.9.0-SNAPSHOT > [5/18] > [INFO] -------------------------------[ bundle > ]------------------------------- > Downloading from apache.snapshots: > > http://repository.apache.org/snapshots/org/apache/avro/avro/1.9.0-SNAPSHOT/maven-metadata.xml > Downloaded from apache.snapshots: > > http://repository.apache.org/snapshots/org/apache/avro/avro/1.9.0-SNAPSHOT/maven-metadata.xml > (1.2 kB at 638 B/s) > [INFO] > [INFO] --- javacc-maven-plugin:2.6:javacc (javacc) @ avro-compiler --- > Java Compiler Compiler Version 5.0 (Parser Generator) > (type "javacc" with no arguments for help) > Reading from file > > D:\Rumesh\OpenSource\avro\lang\java\compiler\src\main\javacc\org\apache\avro\compiler\idl\idl.jj > . . . > Note: UNICODE_INPUT option is specified. Please make sure you create > the parser/lexer using a Reader with the correct character encoding. > Warning: Choice conflict in (...)* construct at line 1157, column 4. > Expansion nested within construct and expansion following > construct > have common prefixes, one of which is: "@" > Consider using a lookahead of 2 or more for nested expansion. > Warning: Choice conflict in (...)* construct at line 1302, column 3. > Expansion nested within construct and expansion following > construct > have common prefixes, one of which is: "@" > Consider using a lookahead of 2 or more for nested expansion. > File "TokenMgrError.java" does not exist. Will create one. > File "ParseException.java" does not exist. Will create one. > File "Token.java" does not exist. Will create one. > File "JavaCharStream.java" does not exist. Will create one. > Parser generated with 0 errors and 2 warnings. > [INFO] Processed 1 grammar > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ > avro-compiler --- > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ > avro-compiler --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 0 resource > [INFO] Copying 4 resources > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ > avro-compiler --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 16 source files to > D:\Rumesh\OpenSource\avro\lang\java\compiler\target\classes > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java: > Some input files use or ov > erride a deprecated API. > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/compiler/src/main/java/org/apache/avro/compiler/specific/SpecificCompiler.java: > Recompile with -Xlint:depr > ecation for details. > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java: > Some input files use unchecked or uns > afe operations. > [INFO] > /D:/Rumesh/OpenSource/avro/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java: > Recompile with -Xlint:unchecked for d > etails. > [INFO] > [INFO] -----------------< org.apache.avro:avro-maven-plugin > >------------------ > [INFO] Building Apache Avro Maven Plugin 1.9.0-SNAPSHOT > [6/18] > [INFO] ----------------------------[ maven-plugin > ]---------------------------- > [INFO] > [INFO] --- maven-plugin-plugin:3.5:helpmojo (generated-helpmojo) @ > avro-maven-plugin --- > [INFO] Using 'UTF-8' encoding to read mojo source files. > [INFO] java-javadoc mojo extractor found 3 mojo descriptors. > [INFO] java-annotations mojo extractor found 0 mojo descriptor. > [INFO] > [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ > avro-maven-plugin --- > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ > avro-maven-plugin --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] skip non existing resourceDirectory > D:\Rumesh\OpenSource\avro\lang\java\maven-plugin\src\main\resources > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ > avro-maven-plugin --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 5 source files to > D:\Rumesh\OpenSource\avro\lang\java\maven-plugin\target\classes > [INFO] > [INFO] ----------------------< org.apache.avro:avro-ipc > >---------------------- > [INFO] Building Apache Avro IPC 1.9.0-SNAPSHOT > [7/18] > [INFO] -------------------------------[ bundle > ]------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Avro Toplevel 1.9.0-SNAPSHOT ................ SUCCESS [ > 3.350 s] > [INFO] Apache Avro Java ................................... SUCCESS [ > 0.640 s] > [INFO] Apache Avro Guava Dependencies ..................... SUCCESS [ > 4.223 s] > [INFO] Apache Avro ........................................ SUCCESS [ > 5.801 s] > [INFO] Apache Avro Compiler ............................... SUCCESS [ > 8.733 s] > [INFO] Apache Avro Maven Plugin ........................... SUCCESS [ > 11.998 s] > [INFO] Apache Avro IPC .................................... FAILURE [ > 0.000 s] > [INFO] Trevni Java ........................................ SKIPPED > [INFO] Trevni Java Core ................................... SKIPPED > [INFO] Apache Avro Mapred API ............................. SKIPPED > [INFO] Trevni Java Avro ................................... SKIPPED > [INFO] Trevni Specification ............................... SKIPPED > [INFO] Apache Avro Tools .................................. SKIPPED > [INFO] Apache Avro Protobuf Compatibility ................. SKIPPED > [INFO] Apache Avro Thrift Compatibility ................... SKIPPED > [INFO] Apache Avro Maven Archetypes ....................... SKIPPED > [INFO] Apache Avro Maven Service Archetype ................ SKIPPED > [INFO] Apache Avro gRPC 1.9.0-SNAPSHOT .................... SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 46.162 s > [INFO] Finished at: 2018-05-09T12:55:41+05:30 > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to parse plugin descriptor for > org.apache.avro:avro-maven-plugin:1.9.0-SNAPSHOT > (D:\Rumesh\OpenSource\avro\lang\java\maven-plugin\targe > t\classes): No plugin descriptor found at META-INF/maven/plugin.xml -> > [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with > the -e switch. > [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/PluginDescriptorParsingException > > > *Environment:* > > > *1. Apache Maven 3.5.3* > *2. java version "1.8.0_141"* > *3. Windows 7 - 64 bit* > > > Any help, will help me to take forward to contribute. > > > By - > > Rumeshkrishnan( *KrI$H *) >
