[
https://issues.apache.org/jira/browse/AVRO-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Busbey updated AVRO-1900:
------------------------------
Status: In Progress (was: Patch Available)
moving out of patch available.
I pulled this down and tried to build the 'dist' target prior to doing a 'test'
run. It failed with an error in finding avro-tools.
{code}
busbey@a00d895e99ef:~/avro$ rm -rf ~/.m2/repository/org/apache/avro/
busbey@a00d895e99ef:~/avro$ ./build.sh dist
+ for target in '"$@"'
+ case "$target" in
+ mkdir -p build
+ SRC_DIR=avro-src-1.9.0-SNAPSHOT
+ DOC_DIR=avro-doc-1.9.0-SNAPSHOT
+ rm -rf build/avro-src-1.9.0-SNAPSHOT
+ '[' -d .svn ']'
+ '[' -d .git ']'
+ mkdir -p build/avro-src-1.9.0-SNAPSHOT
+ git archive HEAD
+ tar -x -C build/avro-src-1.9.0-SNAPSHOT
+ mvn -N -P rat antrun:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Avro Toplevel 1.9.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (default-cli) @ avro-toplevel ---
[INFO] No ant target defined - SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.808s
[INFO] Finished at: Mon Aug 29 14:19:42 UTC 2016
[INFO] Final Memory: 8M/225M
[INFO] ------------------------------------------------------------------------
+ mkdir -p dist
+ cd build
+ tar czf ../dist/avro-src-1.9.0-SNAPSHOT.tar.gz avro-src-1.9.0-SNAPSHOT
+ cd lang/java
+ mvn package -DskipTests -Dhadoop.version=1
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Avro Java
[INFO] Apache Avro Guava Dependencies
[INFO] Apache Avro
[INFO] Apache Avro Compiler
[INFO] Apache Avro Maven Plugin
[INFO] Apache Avro IPC
[INFO] Trevni Java
[INFO] Trevni Java Core
[INFO] Apache Avro Mapred API
[INFO] Trevni Java Avro
[INFO] Trevni Specification
[INFO] Apache Avro Tools
[INFO] Apache Avro Protobuf Compatibility
[INFO] Apache Avro Thrift Compatibility
[INFO] Apache Avro Maven Archetypes
[INFO] Apache Avro Maven Service Archetype
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Avro Java 1.9.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ avro-parent
---
[INFO]
[INFO] --- maven-bundle-plugin:2.5.3:manifest (bundle-manifest) @ avro-parent
---
[WARNING] Ignoring project type pom - supportedProjectTypes = [bundle]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ avro-parent
---
Downloading:
http://repository.apache.org/snapshots/org/apache/avro/dev-tools/1.9.0-SNAPSHOT/maven-metadata.xml
Downloading:
http://repository.apache.org/snapshots/org/apache/avro/dev-tools/1.9.0-SNAPSHOT/dev-tools-1.9.0-SNAPSHOT.pom
[WARNING] The POM for org.apache.avro:dev-tools:jar:1.9.0-SNAPSHOT is missing,
no dependency information available
Downloading:
http://repository.apache.org/snapshots/org/apache/avro/dev-tools/1.9.0-SNAPSHOT/dev-tools-1.9.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Avro Java .................................. FAILURE [2.092s]
[INFO] Apache Avro Guava Dependencies .................... SKIPPED
[INFO] Apache Avro ....................................... SKIPPED
[INFO] Apache Avro Compiler .............................. SKIPPED
[INFO] Apache Avro Maven Plugin .......................... SKIPPED
[INFO] Apache Avro IPC ................................... SKIPPED
[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] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.728s
[INFO] Finished at: Mon Aug 29 14:19:48 UTC 2016
[INFO] Final Memory: 19M/285M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle-check)
on project avro-parent: Execution checkstyle-check of goal
org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check failed: Plugin
org.apache.maven.plugins:maven-checkstyle-plugin:2.17 or one of its
dependencies could not be resolved: Could not find artifact
org.apache.avro:dev-tools:jar:1.9.0-SNAPSHOT in apache.snapshots
(http://repository.apache.org/snapshots) -> [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/PluginResolutionException
{code}
My guess is that if one first does a {{./build.sh test}} run, we end up with a
cached build of the avro-tools jar in the local repository. AFAICT the docker
image mounts a system .m2 folder, so that caching will persist across runs.
[~sacharya], could you add proactively building the avro-tools artifact for the
dist part of build.sh as well?
> build.sh test fails for dev-tools.jar
> -------------------------------------
>
> Key: AVRO-1900
> URL: https://issues.apache.org/jira/browse/AVRO-1900
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.9.0
> Reporter: Suraj Acharya
> Assignee: Suraj Acharya
> Labels: build
> Attachments: AVRO-1900.patch
>
>
> When i ran {{./build.sh test}} in the docker container I was getting an error
> mentioning dev-tools.jar was not present.
> When I looked further into it I realized that {{build.sh}} never actually
> builds dev-tools.jar.
> I added a line in the test option to first {{mvn install}} on the dev-tools
> folder.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)