Kunal - if you follow the newly updated READMEs and run mvn package (or mvn
clean package just to be very safe) from within the root java directory then
you shouldn't have any problems. The java/pom.xml file which maven reads
takes care of compiling everything in order.

- Cassie


On Thu, Apr 24, 2008 at 5:09 PM, Kunal Shah <
[EMAIL PROTECTED]> wrote:

> I ran into the same problem while I checked out the project first time.
> Even though I do not know much about Maven (but I know or faced similar
> problems with ant before), I think dependencies of jars is not properly
> handled at present.
>
> I had to run "mvn package" six times in order to create shinding.war and
> have a successful build.
>
> 1) common compiles -
> gadget compile fails as it common.jar is unavailable
> 2) gadget compiles
> common.jar is available
> gadget tests fails as gadgets.jar is unavailable
> 3) gadget tests compile
> common.jar and gadgets.jar are available
> 4) social-api compiles
> you got the idea ...
> 5) social-api tests compile-
> you got the idea ...
> 6) Finally everything compiled - shinding.war with the following message
> [INFO] Apache Shindig Project Parent ......................... SUCCESS
> [2.610s]
> [INFO] Apache Shindig Java Common Code ....................... SUCCESS
> [1.770s]
> [INFO] Apache Shindig Java Gadget Server ..................... SUCCESS
> [7.737s]
> [INFO] Apache Shindig Java REST API Server ................... SUCCESS
> [1.949s]
> [INFO] Apache Shindig Java Gadget Server ..................... SUCCESS
> [3.057s]
>
> Let me know if I am doing something wrong.  I wish I knew maven better and
> can give you a better answer.
>
> Thanks,
> Kunal
>
> On Thu, Apr 24, 2008 at 7:38 AM, Cassie <[EMAIL PROTECTED]> wrote:
>
> > Are you following this process exactly?
> > cd <shindig>
> > cd java
> > mvn package
> > cd gadgets
> > mvn jetty:run-war
> >
> >
> > - Cassie
> >
> >
> > On Thu, Apr 24, 2008 at 1:48 AM, Jason Burgess <[EMAIL PROTECTED]>
> wrote:
> >
> > > I've been trying to get the trunk to build when running mvn package for
> > the
> > > last few days.  It will build inside of /java/common, but not under
> > > /java/gadgets (either from mvn package in /java or after running mvn
> > > install
> > > on /java/common).
> > >
> > > I've tried clearing out my repository, and I've tried trunk at several
> > > different points in time from the last several days.
> > >
> > > The message is sometimes different, depending on the revision, but it
> > > always
> > > takes the form of: (I'm including a full dump at the bottom of this
> > email)
> > >
> > > [INFO] Compilation failure
> > >
> > > could not parse error message: incorrect classpath: /not_a_directory
> > > ----------
> > > 1. ERROR in
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/src/main/java/org/apache/shindig/gadgets
> > > /spec/View.java (at line 1)
> > >        /*
> > >        ^^
> > >
> > > Prior to trying to build this, I did not have a JDK or maven installed.
> > >  The
> > > system is Fedora Core 6 (2.6.20-1.2962.fc6).  I'm using JDK 1.6.0_06
> and
> > > Maven 2.0.0.9.
> > >
> > > Please let me know if I'm just doing something wrong, or if you can
> point
> > > me
> > > a specific revision that's more stable (or should build properly).  I
> saw
> > > there has been quite a bit of flux in the tree lately.  Thanks for any
> > help
> > > you can provide.
> > >
> > > Jason Burgess
> > > [EMAIL PROTECTED]
> > >
> > >
> > > [INFO] nothing to do,
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/target/classes/files/samplecontainer/sta
> > > te.opt.dtd is younger than original, use 'force' option or clean your
> > > target
> > > [INFO] nothing to do,
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/target/classes/files/container/cookiebas
> > > eduserprefstore.opt.js is younger than original, use 'force' option or
> > > clean
> > > your target
> > > [INFO] nothing to do,
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/target/classes/files/container/gadgets.o
> > > pt.js is younger than original, use 'force' option or clean your target
> > > [INFO] nothing to do,
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/target/classes/files/container/util.opt.
> > > js is younger than original, use 'force' option or clean your target
> > > [INFO] nothing to do,
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/target/classes/files/container/gadgets.o
> > > pt.css is younger than original, use 'force' option or clean your
> target
> > > [INFO] nothing to do,
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/target/classes/files/container/cookies.o
> > > pt.js is younger than original, use 'force' option or clean your target
> > > [INFO] nothing to do,
> > >
> /usr/local/src/shindig/java/gadgets/target/classes/config/oauth.opt.json
> > is
> > > younger than original, use 'force' option or clean your target
> > > [INFO] nb warnings: 0, nb errors: 0
> > > [INFO] [compiler:compile]
> > > [INFO] Compiling 86 source files to
> > > /usr/local/src/shindig/java/gadgets/target/classes
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Compilation failure
> > >
> > > could not parse error message: incorrect classpath: /not_a_directory
> > > ----------
> > > 1. ERROR in
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/src/main/java/org/apache/shindig/gadgets
> > > /spec/View.java (at line 1)
> > >        /*
> > >        ^^
> > >
> > > no more tokens - could not parse error message: The type Enum is not
> > > generic; it cannot be parameterized with arguments <View.ContentType>
> > > ----------
> > > ----------
> > > 2. ERROR in
> > >
> > >
> >
> /usr/local/src/shindig/java/gadgets/src/main/java/org/apache/shindig/gadgets
> > > /http/JsonRpcHandler.java (at line 129)
> > >        private class Job implements Callable<JSONObject> {
> > >                                     ^^^^^^^^
> > >
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Trace
> > > org.apache.maven.BuildFailureException: Compilation failure
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
> > > cycleExecutor.java:579)
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > > (DefaultLifecycleExecutor.java:499)
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
> > > ycleExecutor.java:478)
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
> > > ures(DefaultLifecycleExecutor.java:330)
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
> > > ultLifecycleExecutor.java:291)
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> > > Executor.java:142)
> > >        at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >        at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > > )
> > >        at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > > .java:25)
> > >        at java.lang.reflect.Method.invoke(Method.java:597)
> > >        at
> > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >        at
> > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > Caused by: org.apache.maven.plugin.CompilationFailureException:
> > Compilation
> > > failure
> > >        at
> > >
> > >
> >
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.ja
> > > va:516)
> > >        at
> > > org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
> > >        at
> > >
> > >
> >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
> > > r.java:451)
> > >        at
> > >
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
> > > cycleExecutor.java:558)
> > >        ... 16 more
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 10 seconds
> > > [INFO] Finished at: Wed Apr 23 16:33:12 MST 2008
> > > [INFO] Final Memory: 17M/30M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > >
> >
>

Reply via email to