problem with 'narrative'

2 views
Skip to first unread message

codecraig

unread,
Mar 18, 2009, 2:56:49 PM3/18/09
to Easyb Users
I am using easyb 0.9.5 and easyb-maven-plugin 0.9 (unless 0.9.5 can be
downloaded somewhere).

My story is plain right now just has:

description "hello world"

narrative "blah", {
as_a "coder"
i_want "mt. dew"
so_that "i can stay awake"
}

when I run: mvn test

It complains:
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Attribute name "role" associated with an element type
"narrative" must be followed by the ' =
' character.

i'm stuck here since I thought what I have is correct based on the
documentation.

Rod

unread,
Mar 19, 2009, 9:38:14 AM3/19/09
to Easyb Users
Hi codecraig,

Could you try running with the 0.9.5 version of the maven plugin? It
is not currently on the central maven repo but is available at
http://easyb.org/maven2/. Try adding declaring this repo in your pom
and upping the version to 0.9.5. I hope to work today on syncing our
easyb repo to central.

Regards,

Rod

codecraig

unread,
Mar 19, 2009, 1:26:42 PM3/19/09
to Easyb Users
Now I get:

[INFO] [easyb:test {execution: default}]
[INFO] Using easyb dependency org.easyb:easyb:jar:0.9.5:compile
[INFO] Using easyb dependency commons-cli:commons-cli:jar:1.1:compile
[INFO] Using easyb dependency org.codehaus.groovy:groovy-all-
minimal:jar:1.5.0:compile
[java] Exception in thread "main" java.lang.NoSuchMethodError:
org.codehaus.groovy.runtime.Groo
vyCategorySupport.getCategoryNameUsage(Ljava/lang/String;)Ljava/util/
concurrent/atomic/AtomicInteger
;
[java] at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.<init>
(AbstractCallSite.jav
a:45)
[java] at
org.codehaus.groovy.runtime.callsite.CallSiteArray.<init>
(CallSiteArray.java:38)
[java] at org.easyb.report.TxtReportWriter.
$createCallSiteArray(TxtReportWriter.groovy)
[java] at org.easyb.report.TxtReportWriter.$getCallSiteArray
(TxtReportWriter.groovy)
[java] at org.easyb.report.TxtReportWriter.<init>
(TxtReportWriter.groovy)
[java] at org.easyb.report.TxtStoryReportWriter.<init>
(TxtStoryReportWriter.groovy)
[java] at org.easyb.ConsoleConfigurator.getConfiguredReports
(ConsoleConfigurator.java:79)
[java] at org.easyb.ConsoleConfigurator.configure
(ConsoleConfigurator.java:30)
[java] at org.easyb.BehaviorRunner.main(BehaviorRunner.java:
56)
[java] Java Result: 1
[INFO] [easyb:storyReport {execution: default}]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------

On Mar 19, 9:38 am, Rod <rfc...@gmail.com> wrote:
> Hi codecraig,
>
> Could you try running with the 0.9.5 version of the maven plugin?  It
> is not currently on the central maven repo but is available athttp://easyb.org/maven2/.  Try adding declaring this repo in your pom

Andy Glover

unread,
Mar 19, 2009, 1:53:40 PM3/19/09
to easyb...@googlegroups.com
Looks like the version of Groovy is incorrect- should be 1.6.0. Looks
like maven thinks 1.5.0?

Sent from my iPhone

codecraig

unread,
Mar 19, 2009, 2:40:06 PM3/19/09
to Easyb Users
I agree, perhaps I can change the maven-easyb-plugin pom file in my
local maven repo to use groovy 1.6?

On Mar 19, 1:53 pm, Andy Glover <ajglo...@gmail.com> wrote:
> Looks like the version of Groovy is incorrect- should be 1.6.0. Looks  
> like maven thinks 1.5.0?
>
> Sent from my iPhone
>

codecraig

unread,
Mar 19, 2009, 2:48:22 PM3/19/09
to Easyb Users
Ok so I modified the .pom file in my local repo (C:\Users\craig
\.m2\repository\org\easyb\easyb\0.9.5\easyb-0.9.5.pom) so that it has:

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.6.0</version>
</dependency>

instead of

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all-minimal</artifactId>
<version>1.5.0</version>
</dependency>

and that works :)

now i just need to get groovy-all-minimal 1.6.0 (instead of using the
groovy-all) and it'll be "correct".

Should I put in a bug so that pom can get fixed??

Rod

unread,
Mar 20, 2009, 9:57:15 AM3/20/09
to Easyb Users
No need to file a bug report, upped groovy version to 1.6.0 and
released to the easyb.org maven repository. Thanks for figuring this
out!

Rod
Reply all
Reply to author
Forward
0 new messages