https://bz.apache.org/bugzilla/show_bug.cgi?id=63308

--- Comment #3 from David Gauntt <[email protected]> ---
I have followed the steps described in http://poi.apache.org/devel/index.html,
but it still doesn't work.  Note that the steps do not actually list which ant
targets to run in which order.

The challenging step was "Remember to set the ANT_HOME environment variable and
add ANT_HOME/bin to your shell's PATH."  It took a while to figure out what
value the ANT_HOME environment variable should have, so I wrote up a brief
description that could be added to "How to Build":

"To determine the correct value for ANT_HOME, search your file system for
"ant.jar".  This file will be in the directory %ANT_HOME%/lib."  For example,
if the path to ant.jar is "C:/Programs/Ant/lib/ant.jar", then set ANT_HOME to
"C:/Progams/Ant"."

I will bring this to the mailing list for help, but will describe here the
steps that I have taken for the record.

Once I determined where ANT_HOME is, I set the ANT_HOME environment variable in
Windows, added %ANT_HOME% to the path, and then typed the following into a
command prompt to verify that i had done this correctly:

dir "%ANT_HOME/lib"
set path

To make sure that I am working from a clean project, I checked out the trunk
branch of POI, and ran the Ant target "compile" of build.xml.  The build failed
due to 10 missing libraries (mockito-core-2.23.4.jar, objenesis-2.6.jar,
xmlunit-core-2.5.1.jar, curvesapi-1.06.jar, ooxml-schemas-1.4.jar,
ooxml-security-1.1.jar, xmlbeans-3.1.0.jar, guava.jar, javaassist.jar,
reflections.jar).

I ran fetch-jars, and it suceeded without installing the libraries listed
above.

I then ran "fetch-ooxml-xsds", which downloaded more files but which did not
download the libraries listed above.

Finally I ran mvn_install, which failed with the followoing error message:

BUILD FAILED
C:\Users\David M. Gauntt\eclipse-workspaces\General\ApachePOI\build.xml:2149:
Maven ant tasks not found.
      Please make sure the maven-ant-tasks jar is in ANT_HOME/lib, or made
      available to Ant using other mechanisms like -lib or CLASSPATH.

      You can download the Maven Ant Tasks from
https://maven.apache.org/ant-tasks/download.html

This error message is posted by the target "maven.ant.tasks-check", which
appears to be looking for something named "org.apache.maven.artifact.ant.Pom".

I then added ANT_HOME/lib/maven-ant-task-2.1.3.jar as a library to my Eclipse
build path, ran mvn-install again, with the same result.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to