Cucumber JVM version does build

444 views
Skip to first unread message

fugmag

unread,
Feb 21, 2012, 3:38:19 AM2/21/12
to Cukes
Hi,
There is a problem with your tutorial for Cucumber JVM.

Building the cucumber workspace downloaded from GIT I get the
following error:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) info.cukes:cucumber-core:jar:1.0.0.RC17-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=info.cukes -
DartifactId=cucumber-core -
Dversion=1.0.0.RC17-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the
file there:

mvn deploy:deploy-file -DgroupId=info.cukes -
DartifactId=cucumber-core -Dv
ersion=1.0.0.RC17-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -
Durl=[url] -Dre
positoryId=[id]

Path to dependency:
1) info.cukes:cucumber-junit:jar:1.0.0.RC17-SNAPSHOT
2) info.cukes:cucumber-core:jar:1.0.0.RC17-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
info.cukes:cucumber-junit:jar:1.0.0.RC17-SNAPSHOT

from the specified remote repositories:
jboss.org (https://repository.jboss.org/nexus/content/groups/public-
jboss),
central (http://repo1.maven.org/maven2),
codehaus (http://repository.codehaus.org),
sonatype-nexus-snapshots (https://oss.sonatype.org/content/
repositories/snapsh
ots),
sonatype.org (https://oss.sonatype.org/content/repositories/
releases)



[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Tue Feb 21 09:33:06 CET 2012
[INFO] Final Memory: 20M/49M
[INFO]
------------------------------------------------------------------------
C:\cucumber-cucumber-jvm-30c87ef>

So the POM (as in "mother" pom or any sub pom is obviosly referring a
snapshot 1.0.0.RC17-SNAPSHOT. I do not find this in the maven central.
Does the example/tutorial for Cucumber JVM reffer something that is
not there?

Magnus

Aslak Hellesøy

unread,
Feb 21, 2012, 3:42:15 AM2/21/12
to cu...@googlegroups.com
On Feb 21, 2012, at 8:38, fugmag <magnus.jens...@testify.no> wrote:

> Hi,
> There is a problem with your tutorial for Cucumber JVM.
>

Whose tutorial? Where?

> Building the cucumber workspace


Where are you standing, what command are you running?

Aslak

> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>

fugmag

unread,
Feb 21, 2012, 3:53:33 AM2/21/12
to Cukes
Hi Aslak,
I am looking into using Cucumber for my Java project and I found out
that Cucumber JVM would be suited for that? Or is there any better?
Anyways. The tutorial/getting started I am reffering to is here:
https://github.com/cucumber/cucumber-jvm
I am downloading
cucumber-cucumber-jvm-v1.0.0.RC16-3-g30c87ef
from
https://github.com/cucumber/cucumber-jvm

BTW: this site now says build failing under README.md.

After I have downloaded this .zip file I unzip it into a directory and
navigate with CMD into that directory and say:

mvn eclipse:eclipse

Then it fails with the message described above:
Thank You for the fsta answer, Aslak.

Best Regards
Magnus



On Feb 21, 9:42 am, Aslak Hellesøy <aslak.helle...@gmail.com> wrote:

aslak hellesoy

unread,
Feb 21, 2012, 5:40:11 AM2/21/12
to cu...@googlegroups.com
On Tue, Feb 21, 2012 at 8:53 AM, fugmag
<magnus.jens...@testify.no> wrote:
> Hi Aslak,
> I am looking into using Cucumber for my Java project and I found out
> that Cucumber JVM would be suited for that? Or is there any better?

What are you trying to accomplish?

> Anyways. The tutorial/getting started I am reffering to is here:
> https://github.com/cucumber/cucumber-jvm

That's not really a tutorial - just a README with some very basic
instructions for early adopters. A web site with proper tutorials is
in the works.

> I am downloading
> cucumber-cucumber-jvm-v1.0.0.RC16-3-g30c87ef
> from
> https://github.com/cucumber/cucumber-jvm

You mean you are doing a git clone of the repo? If not, what exactly
(link) are you downloading?

>
> BTW: this site now says build failing under README.md.
>

Don't worry about that.

It's only because travis requires the build to complete in 15 minutes,
but cucumber-jvm takes longer because travis builds with an empty
local maven repo each time, causing downloads of libs to take along
time and time out the build.

I set up travis as an experiment - it might not be suitable for cucumber-jvm

> After I have downloaded this .zip file I unzip it into a directory and
> navigate with CMD into that directory and say:
>

Try to build cucumber first. See the updated README:
https://github.com/cucumber/cucumber-jvm/blob/master/README.md

fugmag

unread,
Feb 21, 2012, 6:24:45 AM2/21/12
to Cukes
I am trying to run the java calculator example in GIT. Maybe I am
doing it wrong, but I am going into

https://github.com/cucumber/cucumber-jvm

and I press the 'zip' icon and get to download the zip file

cucumber-cucumber-jvm-v1.0.0.RC16-6-g353a0fa

this file is unzipped in a directory and I want to open this in
eclipse and run the java calculator example as i.e. a junit test.

Is this the way it should work?

I have also tried to make a new maven project with
mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -
DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -
DgroupId=com.maventest -DartifactId=testingcucumber -Dversion=1.0-
SNAPSHOT

and mvn eclipse:eclipse to get a clean project with a POM. Then I have
updated the POM to include

<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.0.0.RC16</version>
</dependency>

Then I ran mvn eclipse:eclipse again and got
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building cucumbertest Maven Webapp
[INFO] task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Using Eclipse Workspace: C:\Nora
[INFO] Adding default classpath container:
org.eclipse.jdt.launching.JRE_CONTAIN
ER
Downloading: http://repo1.maven.org/maven2/info/cukes/cucumber-core/1.0.0.RC16/c
ucumber-core-1.0.0.RC16-sources.jar

Downloading: http://repo1.maven.org/maven2/info/cukes/gherkin/2.9.0/gherkin-2.9.
0-sources.jar

Downloading: http://repo1.maven.org/maven2/info/cukes/cucumber-html/0.2.1/cucumb
er-html-0.2.1-sources.jar

Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1-sources
.jar

[INFO] Not writing settings - defaults suffice
[INFO] File C:\Nora\cucumbertest\.project already exists.
Additional settings will be preserved, run mvn eclipse:clean if
you want
old settings to be removed.
[INFO] Wrote Eclipse project for "cucumbertest" to C:\Nora
\cucumbertest.
[INFO]
Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true
parameter in or
der to check remote repositories for javadoc.
List of artifacts without a javadoc archive:
o info.cukes:cucumber-core:1.0.0.RC16
o info.cukes:gherkin:2.9.0
o info.cukes:cucumber-html:0.2.1
o junit:junit:3.8.1

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Feb 21 12:09:16 CET 2012
[INFO] Final Memory: 8M/20M
[INFO]
------------------------------------------------------------------------

So as I say I want to use cucumber for a java project and I thought
Cucumber JVM was a good choice, but I find it diffuclt to run the
examples to get a bit hands-on with this.

What is the easiest way to get the examples running in eclipse (given
what you say: "That's not really a tutorial - just a README with some
very basic
instructions for early adopters. A web site with proper tutorials is
in the works."=)
Should I just follow this (int the readme)
Eclipse
Just load the root `pom.xml`
How exactly is that done in eclipse? (Just load the pom.xml). Do I
need to make a project first or?

Thanx
Magnus

On Feb 21, 11:40 am, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> On Tue, Feb 21, 2012 at 8:53 AM, fugmag
>

aslak hellesoy

unread,
Feb 21, 2012, 7:20:34 AM2/21/12
to cu...@googlegroups.com
Please respond inline so we all know what particular questions are
being answered. http://en.wikipedia.org/wiki/Posting_style

For example, you asked "Or is there any better?" upon which I answered
"What are you trying to accomplish?" but now I'm not sure where you
answered that question.

On Tue, Feb 21, 2012 at 11:24 AM, fugmag
<magnus.jens...@testify.no> wrote:
> I am trying to run the java calculator example in GIT. Maybe I am
> doing it wrong, but I am going into
>
> https://github.com/cucumber/cucumber-jvm
>
> and I press the 'zip' icon and get to download the zip file
>

The zip contains the same as the git repo when it was tagged with
v1.0.0.RC16 so that should be fine.

> cucumber-cucumber-jvm-v1.0.0.RC16-6-g353a0fa
>
> this file is unzipped in a directory and I want to open this in
> eclipse and run the java calculator example as i.e. a junit test.
>
> Is this the way it should work?
>

You have to `mvn clean install` from the root folder first. The online
README has instructions about this.

Ok? Is this what you expected to happen? If not, what did you expect?
I don't understand what you are asking now.

> So as I say I want to use cucumber for a java project and I thought
> Cucumber JVM was a good choice

Again - what are you trying to accomplish? It might sound like a dumb
question, but I'm genuinely curious.

>, but I find it diffuclt to run the
> examples to get a bit hands-on with this.
>

That's rather vague. Exactly what error messages are you seeing after
you have followed the instructions in
https://github.com/cucumber/cucumber-jvm/blob/master/README.md

Aslak

Rakesh

unread,
Feb 21, 2012, 7:41:23 AM2/21/12
to cu...@googlegroups.com
sounds like the OP is confusing getting hold of the all cucumber-jvm
sources with actually using cucumber-jvm in a project.

I think you just need this subset to get started:

https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-calculator

Does that help?

Rakesh

fugmag

unread,
Feb 21, 2012, 8:07:07 AM2/21/12
to Cukes



Dear Rakesh,
Thank you. So you suggest to just download the java-caluclator with
the corresponding pom.xml and import this in eclipse as a project,
trying to run it?

Cheers
Magnus

On Feb 21, 1:41 pm, Rakesh <rakesh.mailgro...@gmail.com> wrote:
> sounds like the OP is confusing getting hold of the all cucumber-jvm
> sources with actually using cucumber-jvm in a project.
>
> I think you just need this subset to get started:
>
> https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-ca...
>
> Does that help?
>
> Rakesh
>
> On 21 February 2012 12:20, aslak hellesoy <aslak.helle...@gmail.com> wrote:
>
>
>
> > Please respond inline so we all know what particular questions are
> > being answered.http://en.wikipedia.org/wiki/Posting_style
> ...
>
> read more »

fugmag

unread,
Feb 21, 2012, 8:12:38 AM2/21/12
to Cukes
Ok, se my inline responds, Aslak.

On Feb 21, 1:20 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> Please respond inline so we all know what particular questions are
> being answered.http://en.wikipedia.org/wiki/Posting_style
>
> For example, you asked "Or is there any better?" upon which I answered
> "What are you trying to accomplish?" but now I'm not sure where you
> answered that question.

I am trying to get the java calculator example runing in eclipse and
to be able to tweak it to create erros and so forth to understand
Cucumber better.

>
> On Tue, Feb 21, 2012 at 11:24 AM, fugmag
>
> <magnus.jensen.fugle...@testify.no> wrote:
> > I am trying to run the java calculator example in GIT. Maybe I am
> > doing it wrong, but I am going into
>
> >https://github.com/cucumber/cucumber-jvm
>
> > and I press the 'zip' icon and get to download the zip file
>
> The zip contains the same as the git repo when it was tagged with
> v1.0.0.RC16 so that should be fine.
>
> > cucumber-cucumber-jvm-v1.0.0.RC16-6-g353a0fa
>
> > this file is unzipped in a directory and I want to open this in
> > eclipse and run the java calculator example as i.e. a junit test.
>
> > Is this the way it should work?
>
> You have to `mvn clean install` from the root folder first. The online
> README has instructions about this.

I cant see that, but anyways if I do this the pom i searching for a
version not existing in the repository, maven central, obiously...
I am trying to get the java calculator example runing in eclipse and
to be able to tweak it to create erros and so forth to understand
Cucumber better.

>
> >, but I find it diffuclt to run the
> > examples to get a bit hands-on with this.
>
> That's rather vague. Exactly what error messages are you seeing after
> you have followed the instructions inhttps://github.com/cucumber/cucumber-jvm/blob/master/README.md
> ...
>
> read more »

fugmag

unread,
Feb 21, 2012, 8:15:55 AM2/21/12
to Cukes
Simple question:

Maybe u could explain step by step what to do to
"get the java calculator example runing in eclipse"

I am using eclipse and maven.

I find the readme a little hard to understand and there might be
problems with the dependiecies in the pom in the examples as I browse
the maven central not finding things that are in the pom's.

Magnus
> ...
>
> read more »

Rakesh

unread,
Feb 21, 2012, 8:17:35 AM2/21/12
to cu...@googlegroups.com
yes. Or you could create a project in eclipse from scratch and then
add the relevant dependencies and copy in the example classes.

Rakesh

Rakesh

unread,
Feb 21, 2012, 8:19:51 AM2/21/12
to cu...@googlegroups.com
maven central definately has the latest cucumber-jvm jars as I am using them.

http://search.maven.org/#search%7Cga%7C1%7Ccucumber-java

Rakesh

aslak hellesoy

unread,
Feb 21, 2012, 8:23:36 AM2/21/12
to cu...@googlegroups.com
On Tue, Feb 21, 2012 at 1:15 PM, fugmag
<magnus.jens...@testify.no> wrote:
> Simple question:
>
> Maybe u could explain step by step what to do to
> "get the java calculator example runing in eclipse"
>
> I am using eclipse and maven.
>
> I find the readme a little hard to understand and there might be
> problems with the dependiecies in the pom in the examples as I browse
> the maven central not finding things that are in the pom's.
>

Let's take a step back and make sure we all understand what you have done.

2 questions:

1) What dependency in what pom is not in maven central?
2) How did you obtain the example (git clone command or zip download url)

Aslak

fugmag

unread,
Feb 21, 2012, 8:28:56 AM2/21/12
to Cukes
Ok Rakesh, I need this clearified, so bear with me.

On Feb 21, 2:17 pm, Rakesh <rakesh.mailgro...@gmail.com> wrote:
> yes. Or you could create a project in eclipse from scratch

A java project created in a predfined workspace with i.e. command:

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -
DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -
DgroupId=com.maventest -DartifactId=myproject -Dversion=1.0-SNAPSHOT

right?

Then navigate to the project folder with cmd and type

mvn eclipse:eclipse

right?

and then
> add the relevant dependencies and copy in the example classes.

Do you happen to have your pom.xml that is working or can I just use/
replace the one created with mvn eclipse:eclipse with the one found
in:

https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-calculator

and you're talking about the classes within the project

https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-calculator

right?

Cheers

Magnus

>
> Rakesh
> ...
>
> read more »

fugmag

unread,
Feb 21, 2012, 8:31:36 AM2/21/12
to Cukes


On Feb 21, 2:23 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> On Tue, Feb 21, 2012 at 1:15 PM, fugmag
>
> <magnus.jensen.fugle...@testify.no> wrote:
> > Simple question:
>
> > Maybe u could explain step by step what to do to
> > "get the java calculator example runing in eclipse"
>
> > I am using eclipse and maven.
>
> > I find the readme a little hard to understand and there might be
> > problems with the dependiecies in the pom in the examples as I browse
> > the maven central not finding things that are in the pom's.
>
> Let's take a step back and make sure we all understand what you have done.
>
> 2 questions:
>
> 1) What dependency in what pom is not in maven central?



1.0.0.RC17-SNAPSHOT



[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.


Missing:
----------
1) info.cukes:cucumber-core:jar:1.0.0.RC17-SNAPSHOT


Try downloading the file manually from the project website.


Then, install it using the command:
mvn install:install-file -DgroupId=info.cukes -
DartifactId=cucumber-core -
Dversion=1.0.0.RC17-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


Alternatively, if you host your own repository you can deploy the
file there:



> 2) How did you obtain the example (git clone command or zip download url)

I navigated into https://github.com/cucumber/cucumber-jvm

and pressed the 'zip' button in the top left corner.

Cheers

Magnus
> ...
>
> read more »

Rakesh

unread,
Feb 21, 2012, 8:33:08 AM2/21/12
to cu...@googlegroups.com
Magnus,

I don't use Eclipse (I use IntelliJ) and I don't use Maven either (I
use Gradle). So I'm not sure exactly of the commands.

It sounds right what you have done - you are basically creating a new
maven project in Eclipse - are you new to Java development with
Eclipse?

Give that a go and post back.

Rakesh

Rakesh

unread,
Feb 21, 2012, 8:37:09 AM2/21/12
to cu...@googlegroups.com
Magnus,

best use the release candidates rather than the snapshots for cucumber-jvm.

I think this is the dependencies you need:

<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.0.0.RC16</version>
</dependency>

you'll also need:
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.0.0.RC16</version>
</dependency>

I think cucumber-core will automatically be included.

Rakesh

fugmag

unread,
Feb 21, 2012, 8:40:41 AM2/21/12
to Cukes
Ok I will try this out.
Thanx for your help.

Magnus

On Feb 21, 2:37 pm, Rakesh <rakesh.mailgro...@gmail.com> wrote:
> Magnus,
>
> best use the release candidates rather than the snapshots for cucumber-jvm.
>
> I think this is the dependencies you need:
>
> <dependency>
>     <groupId>info.cukes</groupId>
>     <artifactId>cucumber-java</artifactId>
>     <version>1.0.0.RC16</version>
> </dependency>
>
> you'll also need:
> <dependency>
>     <groupId>info.cukes</groupId>
>     <artifactId>cucumber-junit</artifactId>
>     <version>1.0.0.RC16</version>
> </dependency>
>
> I think cucumber-core will automatically be included.
>
> Rakesh
>
> On 21 February 2012 13:33, Rakesh <rakesh.mailgro...@gmail.com> wrote:
>
>
>
> > Magnus,
>
> > I don't use Eclipse (I use IntelliJ) and I don't use Maven either (I
> > use Gradle). So I'm not sure exactly of the commands.
>
> > It sounds right what you have done - you are basically creating a new
> > maven project in Eclipse - are you new to Java development with
> > Eclipse?
>
> > Give that a go and post back.
>
> > Rakesh
>
> > On 21 February 2012 13:28, fugmag <magnus.jensen.fugle...@testify.no> wrote:
> >> Ok Rakesh, I need this clearified, so bear with me.
>
> >> On Feb 21, 2:17 pm, Rakesh <rakesh.mailgro...@gmail.com> wrote:
> >>> yes. Or you could create a project in eclipse from scratch
>
> >> A java project created in a predfined workspace with i.e. command:
>
> >> mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -
> >> DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -
> >> DgroupId=com.maventest -DartifactId=myproject -Dversion=1.0-SNAPSHOT
>
> >> right?
>
> >> Then navigate to the project folder with cmd and type
>
> >> mvn eclipse:eclipse
>
> >> right?
>
> >> and then
> >>> add the relevant dependencies and copy in the example classes.
>
> >> Do you happen to have your pom.xml that is working or can I just use/
> >> replace the one created with mvn eclipse:eclipse with the one found
> >> in:
>
> >>https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-ca...
>
> >> and you're talking about the classes within the project
>
> >>https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-ca...
> ...
>
> read more »

aslak hellesoy

unread,
Feb 21, 2012, 8:41:41 AM2/21/12
to cu...@googlegroups.com

In that case you're getting the latest code in git, and this code
isn't released to maven central. You therefore have to `mvn clean
install` from the root before the examples can work.

Alternatively, download a zip from a release instead, in which case
the jars *will* be in maven central:
https://github.com/cucumber/cucumber-jvm/tags

Ok?

fugmag

unread,
Feb 21, 2012, 8:52:59 AM2/21/12
to Cukes
Ok Aslak,
I have just downloaded a zip from a release from
https://github.com/cucumber/cucumber-jvm/tags
the v1.0.0.RC16.zip.

Now I guess I would have to add some dependencies in my pom.xml file
as stated by Rakesh:

Rakesh:

**********************************************************************************


I think this is the dependencies you need:


<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.0.0.RC16</version>
</dependency>


you'll also need:
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.0.0.RC16</version>
</dependency>


I think cucumber-core will automatically be included.

**********************************************************************************

On Feb 21, 2:41 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> On Tue, Feb 21, 2012 at 1:31 PM, fugmag
> > I navigated intohttps://github.com/cucumber/cucumber-jvm
> ...
>
> read more »

Rakesh

unread,
Feb 21, 2012, 8:59:45 AM2/21/12
to cu...@googlegroups.com
Magnus,

normally, if you declare dependencies in your pom, then maven will
check the public repos (if your work allows it) and download the jars
for you.

If you manually downloaded the jars then things get more complex and
you have to install the jar locally:

http://maven.apache.org/general.html#importing-jars

Try just getting maven to find the dependencies for you.

Rakesh

fugmag

unread,
Feb 21, 2012, 9:07:09 AM2/21/12
to Cukes
Ok I got further now.
I did copy and paste from the java calculator folder the main and test
folder and put it into my new maven project.
After that I did a 'mvn eclipse:eclipse' but got this error and a
build failure:


[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\Nora\mycucumber\src\main\java\cucumber\examples\java\calculator
\RpnCalculator
.java:[7,7] static import declarations are not supported in -source
1.3
(use -source 5 or higher to enable static import declarations)
import static java.util.Arrays.asList;

C:\Nora\mycucumber\src\main\java\cucumber\examples\java\calculator
\RpnCalculator
.java:[10,23] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
private final Deque<Number> stack = new LinkedList<Number>();


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Feb 21 15:02:28 CET 2012
[INFO] Final Memory: 9M/22M
[INFO]
------------------------------------------------------------------------
C:\Nora\mycucumber>

So I need to use -source 5 or higher to enable static import
declarations. This is not clear to me.
Any thoughts?
BTW: Thanks for all your help so far!

Magnus

On Feb 21, 2:41 pm, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> On Tue, Feb 21, 2012 at 1:31 PM, fugmag
> > I navigated intohttps://github.com/cucumber/cucumber-jvm
> ...
>
> read more »

Rakesh

unread,
Feb 21, 2012, 9:12:19 AM2/21/12
to cu...@googlegroups.com
Magnus,

can you not ask a Java dev to help you out? This stuff is very basic
and to do with setting up java projects in general rather than
cucumber.

Rakesh

fugmag

unread,
Feb 21, 2012, 9:14:53 AM2/21/12
to Cukes
Ok, I did and it was fixed. I am sorry.
But:
I got an error in my ide that is cucumber related and fits in this
post:


The project was not built since its build path is incomplete. Cannot
find the class file for org.junit.runners.ParentRunner. Fix the build
path then try building this project

Or is it?

Magnus

On Feb 21, 3:12 pm, Rakesh <rakesh.mailgro...@gmail.com> wrote:
> Magnus,
>
> can you not ask a Java dev to help you out? This stuff is very basic
> and to do with setting up java projects in general rather than
> cucumber.
>
> Rakesh
>
> ...
>
> read more »

Rakesh

unread,
Feb 21, 2012, 9:21:33 AM2/21/12
to cu...@googlegroups.com
have you a dependency on junit?

fugmag

unread,
Feb 21, 2012, 10:09:11 AM2/21/12
to Cukes
Hi again,
I Imported the entire cucumber jvm into eclipse an ran mvn clean
install on the root (as Aslak told me to).
I still get some errors in cmd:

__________________________________________________________________________________________________

[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac, but could not parse the error:


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:
283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(Isol
atedClassLoader.java:56)
at com.sun.tools.javac.code.Lint.<init>(Lint.java:100)
at com.sun.tools.javac.code.Lint.instance(Lint.java:43)
__________________________________________________________________________________________________


In Eclipse I get 4 errors (just for the cucumber-java project (i
closed the other ones to islotae and stick with java only):



1: Cannot nest 'cucumber-java/target/generated-sources/i18n/java'
inside output folder 'cucumber-java/target'
2: Project 'cucumber-java' is missing required Java project: 'cucumber-
core'
3. Project 'cucumber-java' is missing required source folder: 'target/
generated-sources/i18n/java'
4. The project cannot be built until build path errors are resolved

Any clues what to do with these?

Magnus







On Feb 21, 3:21 pm, Rakesh <rakesh.mailgro...@gmail.com> wrote:
> have you a dependency on junit?
>
> ...
>
> read more »

Kikyoung Kwon

unread,
Oct 10, 2014, 9:40:34 AM10/10/14
to cu...@googlegroups.com, magnus.jens...@testify.no
I am not sure it is correct, but when I searched Google, I found the information that Eclipse does not support nested output folders.
So I changed target/generated-sources to tmp/generated-sources from cucumber-java and everything is working fine now....

aslak hellesoy

unread,
Oct 10, 2014, 4:25:28 PM10/10/14
to Cucumber Users
On Fri, Oct 10, 2014 at 2:40 PM, Kikyoung Kwon <kiky...@ustwo.com> wrote:
I am not sure it is correct, but when I searched Google, I found the information that Eclipse does not support nested output folders.
So I changed target/generated-sources to tmp/generated-sources from cucumber-java and everything is working fine now....


The thread you replied to is 2.5 years old. I doubt any of it is relevant anymore with the most recent version of cucumber-jvm (1.1.8).

Aslak
 
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages