You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by "Adam R. B. Jack" <aj...@trysybase.com> on 2004/02/11 22:40:37 UTC

Building using Maven ...

I'd like to walk through this, to share information, and perhaps find the
problem...

1) We have these two Maven projects (in SVN):

http://svn.apache.org/repos/test/gump-test/maven-project1/project.xml
http://svn.apache.org/repos/test/gump-test/maven-project2/project.xml

2) We describe these to Gump:

http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-gump/project/gump-test.xml?content-type=text%2Fplain&rev=1.7

3) And during the run we get some way, but not all the way:

http://gump.dotnot.org/buildLog.html

3.1) Project1 builds, producing a jar:

http://gump.dotnot.org/jakarta-gump-test/gump-test-maven1.html

3.2) Gump references that jar (by id) to pass to project2:

Note: We have a bug in Gump's xdoc generation for work (two works with same
name on two projects become same file under module.) I'll fix this, but for
now trust me that this does show the contents of project2/build.properties.
[I manually checked, and ran maven by hand.]

http://gump.dotnot.org/jakarta-gump-test/work/display_file_cat_build.properties.html

3.2) Project2 fails to build...

http://gump.dotnot.org/jakarta-gump-test/work/build_jakarta-gump-test_gump-test-maven2.html

... it doesn't seem to find the class MavenTest1 that I put into project1.

/var/gump/jakarta-gump-test/maven-project2/src/java/org/apache/gump/test/Mav
enTest2.java:11: cannot resolve symbol
symbol  : class MavenTest1
location: class org.apache.gump.test.MavenTest2
MavenTest1 test1;
        ^
2 errors

Anybody see anything in here? I turned on debug and see some things that
look promising:

[DEBUG] Adding reference: maven.dependency.classpath ->
/var/gump/jakarta-gump-test/maven-project1/target/gump-test-maven1-0.1.jar

Looking in the Jar:

[ajack@nyx maven-project2]$ jar tvf !-3$
jar tvf ../maven-project1/target/gump-test-maven1-0.1.jar
    [...]
   297 Wed Feb 11 16:05:26 CST 2004 org/apache/gump/test/MavenTest1.class

Any thoughts?

regards

Adam
--
Experience the Unwired Enterprise:
http://www.sybase.com/unwiredenterprise
Try Sybase: http://www.try.sybase.com


Re: Building using Maven ...

Posted by "Adam R. B. Jack" <aj...@trysybase.com>.
> 3.2) Project2 fails to build...
>
>
http://gump.dotnot.org/jakarta-gump-test/work/build_jakarta-gump-test_gump-test-maven2.html
>
> ... it doesn't seem to find the class MavenTest1 that I put into project1.
>

That project1 isn't referenced here seems 'bad' to me.

regards

Adam

    -----------------------------------------------------------------

java:compile:
    [echo] Compiling to
/var/gump/jakarta-gump-test/maven-project2/target/classes
    [javac] [DEBUG] fileset: Setup scanner in dir
/var/gump/jakarta-gump-test/maven-project2/src/java with patternSet{
includes: [] excludes: [**/package.html] }
    [javac] [VERBOSE] org/apache/gump/test/MavenTest2.java added as
org/apache/gump/test/MavenTest2.class doesn't exist.
    [javac] Compiling 1 source file to
/var/gump/jakarta-gump-test/maven-project2/target/classes
    [javac] [VERBOSE] Using modern compiler
    [javac] [VERBOSE] Compilation arguments:
'-d'
'/var/gump/jakarta-gump-test/maven-project2/target/classes'
'-classpath'
'/var/gump/jakarta-gump-test/maven-project2/target/classes:/home/gump/maven-
1.0-rc1/lib/forehead-1.0-beta-5.jar'
'-sourcepath'
'/var/gump/jakarta-gump-test/maven-project2/src/java'
'-target'
'1.1'
'-g'