Noah Watkins <jayhawk@...> writes:
>
> Cool, this got me to where I needed to be.
>
> Thanks a lot!
> -Noah
>
> On Aug 1, 2011, at 11:18 AM, Rottinghuis, Joep wrote:
>
> > Run a compile with a -verbose option to the ant command.
> > That makes it more verbose and may reveal what the problem is.
> >
> > Another trick you can try is to add a regular dependency (in Ivy) and drop
the file in your local ~/.ivy2 directory.
> > You'll probably have to create a directory structure to mimick the group
(com.company.tool/tool/version).
> > See the other files in .ivy2 and/or the pattern in the ivy.xml for the
right pattern.
> >
> > Cheers,
> >
> > Joep
> > ________________________________________
> > From: Noah Watkins [jayhawk@...]
> > Sent: Sunday, July 31, 2011 5:02 PM
> > To: common-dev@...
> > Subject: Trouble resolving external jar dependency
> >
> > I'm experimenting with a new file system that depends on an external jar
that is not available right now via
> maven. I added the jar to the lib/ directory and hadoop-common builds fine.
However, when running 'ant
> mvn-install' I get the following error. It seems as though a reference to
the external jar needs to be added
> in an additional location. Where might this reference be? Thanks, Noah
> >
> > -compile-fault-inject:
> > [echo] Start weaving aspects in place
> > [iajc] error at import net.newdream.ceph.rados.Cluster;
> > [iajc] ^^
> > [iajc]
> /home/nwatkins/Projects/hadoop/hadoop-
common/common/src/java/org/apache/hadoop/fs/rados/RadosFileSystem.java:44:0::0
> The import net cannot be resolved
> > [iajc] MessageHolder: (565 info) (1 error)
> > [iajc] [error 0]: error at import net.newdream.ceph.rados.Cluster;
> > [iajc] ^^
> > [iajc]
> /home/nwatkins/Projects/hadoop/hadoop-
common/common/src/java/org/apache/hadoop/fs/rados/RadosFileSystem.java:44:0::0
> The import net cannot be resolved
>
>
I am new to the ant build procedure. I am running build in hadoop-
0.21.0/common.
I am encountering exactly the same error.
Running with -verbose gave a lot of output that I am unable to figure out the
problem.
When compiling the classes it seems to find my own classes fine by using the
CLASSPATH environment variable to find new classes that I would like to use,
but it does not seem to be finding it when running "-compile-fault-inject"
target.
It looks as if it is not using CLASSPATH when doing this target. Can anyone
please suggest a solution to this problem?
Included is the tail end of the build output.
--------------------
-compile-fault-inject:
[echo] Start weaving aspects in place
[iajc] error at ServerSocket.setSocketFactory(new
org.newsclub.net.unix.AFUNIXSocketImplFactory()); //[email protected]
[iajc] ^^^^^
[iajc] /usr/uo/9/rreddy/private/hadoop/Server.java:286:0::0 org.newsclub
cannot be resolved to a type
[iajc] MessageHolder: (850 info) (1 error)
[iajc] [error 0]: error at ServerSocket.setSocketFactory(new
org.newsclub.net.unix.AFUNIXSocketImplFactory()); //[email protected]
[iajc] ^^^^^
[iajc] /usr/uo/9/rreddy/private/hadoop/Server.java:286:0::0 org.newsclub
cannot be resolved to a type
BUILD FAILED
/brashear/rreddy/hadoop/hadoop-0.21.0/common/src/test/aop/build/aop.xml:160:
The following error occurred while executing this line:
/brashear/rreddy/hadoop/hadoop-0.21.0/common/src/test/aop/build/aop.xml:147:
The following error occurred while executing this line:
/brashear/rreddy/hadoop/hadoop-0.21.0/common/src/test/aop/build/aop.xml:72: 1
errors
Total time: 6 minutes 35 seconds
--------------------
Thanks!