its
mvn -Prun
this runs a profile, called "run" in the base pom that configures the
maven jetty plugin to launch the right thing. If you just do mvn
jetty:run the environment and more importantly the target webapp to
run will not be configured.
Does that make sense ?
About 2 months back the build was different. I am curious.
Where did you get the information on how to build and run Shindig
first time round (ie package, jetty:run) ?
Ian
On 4 Jun 2008, at 08:19, Neo Anderson wrote:
mvn install
completed successfully.
But mvn jetty:run is bringing up some errors.
On Wed, Jun 4, 2008 at 12:43 PM, jeremi joslin <[EMAIL PROTECTED]>
wrote:
Hi,
try :
cd ShindigGadgetsCode
mvn clean install
and if you want to run it in jetty:
mvn -Prun
You can find a useful howto there :
http://chrisschalk.com/shindig_docs/io/shindig-io.html
Jeremi
On Wed, Jun 4, 2008 at 2:07 PM, Neo Anderson
<[EMAIL PROTECTED]> wrote:
cd ShindigGadgetsCode\java
mvn package
and also tried
cd ShindigGadgetsCode\java\gadgets
mvn package
On Tue, Jun 3, 2008 at 11:04 PM, Kevin Brown <[EMAIL PROTECTED]>
wrote:
Where are you building from?
On Mon, Jun 2, 2008 at 11:55 PM, Neo Anderson <
[EMAIL PROTECTED]>
wrote:
Just now I updated my code and when I am trying to build it, I got
following
error:
org.apache.maven.surefire.booter.SurefireExecutionException:
org/apache/shindig/
common/SecurityToken; nested exception is
java.lang.NoClassDefFoundError:
org/ap
ache/shindig/common/SecurityToken
java.lang.NoClassDefFoundError:
org/apache/shindig/common/SecurityToken
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:
2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at
org.junit.internal.requests.ClassRequest.hasSuiteMethod
(ClassRequest.
java:61)
at
org.junit.internal.requests.ClassRequest.getRunnerClass
(ClassRequest.
java:50)
at
org.junit.internal.requests.ClassRequest.getRunner
(ClassRequest.java:
28)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.<init>
(JUnit4TestSet.j
ava:45)
at
org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTe
stS
et(JUnit4DirectoryTestSuite.java:56)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateT
est
Sets(AbstractDirectoryTestSuite.java:96)
at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition
(Surefire
.java:150)
at org.apache.maven.surefire.Surefire.run(Surefire.java:
111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
(Su
refireBooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main
(SurefireBooter.j
ava:818)
[INFO]
---------------------------------------------------------------------
---
[ERROR] BUILD FAILURE
[INFO]
---------------------------------------------------------------------
---
[INFO] There are test failures.
[INFO]
---------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO]
---------------------------------------------------------------------
---
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Jun 03 12:35:08 IST 2008
[INFO] Final Memory: 7M/12M
[INFO]
---------------------------------------------------------------------
---