Closed nukul25 closed 2 years ago
I don't quite understand what's going on here. Is this a warning that is only shown when executing from Eclipse?
Do you get the same warning if you run mvn test
in a terminal?
The eclipse plugin launches Cucumber via the cli runner and is using the old main method.
The eclipse plugin launches Cucumber via the cli runner and is using the old main method.
If we uninstall Cucumber eclipse plugin then obviously we will not get the option of running Feature File only.
I don't quite understand what's going on here. Is this a warning that is only shown when executing from Eclipse?
Do you get the same warning if you run
mvn test
in a terminal?
Hello If i understood correctly,running the command mvn test from the command line(which is opened from the locaion of pom) will result in success sincewe have default test class called App.test which contains prin HELLO WORLD. My concern is when I am running feature file only ,i got the issue as mentioned above. Thanks
I am also getting similar issue with 4.7.4 version
Hello Team
Any updates on the issue.?I tried with different version such as 5.6.0 and also faced the same issue. Can you please help
When I run a feature file directly, I get the same warning in Eclipse 4.17.0 with the Cucumber plugin from the Eclipse Marketplace. I am using this dependency in Maven:
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>6.8.1</version>
</dependency>
Still getting warnings even for Cucumber versions: 4.4.0, 6.7.0, 5.7.0, and 5.6.0.
Any update? I have the same problem when upgraded project to cucumber 6.x
Having the same issue Anyone found any solution for this?
Having the same issue Anyone found any solution for this pls update
Jan 16, 2021 2:17:50 AM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
VERSION OF CUCUMBER IS 6.9.0
SAME HERE , GETTING ERROR
I think this is a duplicate of #370.
Any update on deprecated Main class warning while using Cucumber 6.0 onwards version
it worked for me when i downgraded my testng dependency version from 7.4.0 to 7.1.0. try adding this dependency to your pom.xml
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.1.0</version>
</dependency>
This is a duplicate of #370
i am the same problem
I have the sane problem using Eclipse . My pom.xml is below:
``
`` Could someone help please?
This is not a problem but a warning, there will be no "fix" unless someone opens a PR for this to the v1.x
branch.
We are currently developing a new version of the cucumber-plugin with improved support for more recent cucumber versions, if you like try out the following update-site (please uninstall the old plugin before): https://github.com/cucumber/cucumber-eclipse#follow-the-latest-snapshot
I am still facing this issue and not getting resolution for this. Can anyone please help me.
I see this issue has been marked as closed, but no where I see the solution. @laeubi or @nukul25 could you please help me ? Please tell me the steps to resolve this issue.
Hi, I am facing the same issue.
Sep 14, 2022 12:20:02 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main Sep 14, 2022 12:20:03 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier get WARNING: No features found at file:
If you have any solution here please share here
Thanks!
Having the same issue Anyone found any solution for this?
yes. same issue of deprecated class but my browser is not opening.
same issue of deprecated class but my browser is not opening.
Build Path-> check -> Junit is added or not and also check for related libraries -> if not then-> Add libraries -> Add Junit -> Apply and close.
try with this. (I have just created demo cucumber project after done with this steps my warning was gone.)
I have installed Cucumber plugin in latest eclipse version and added dependencies for cucumber 6.1.1 via maven pom.xml
I have added all the necessary dependencies from the Github location :https://github.com/cucumber/cucumber-java-skeleton/blob/master/pom.xml
Now when I am trying to run my feature file which contains a scenario ,I am getting the warning as
Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
And as a result of this somehow execution is failing and my output is:
Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Scenario: Add a menu item # src/test/java/linkedlearning/cucumbercourse/features/MenuManagement.feature:3
0 Scenarios 0 Steps 0m1.020s
Now in the cucumber-core-6.1.1.jar,I can see that it has
--cucumber.api.cli package which has Main class and I suppose the execution is referring to this instead of
--io.cucumber.core.cli package which has Main class
Console is not showing the usual suggestions of creating steps in step definition file and is blank.
Same I did by using Cucumber 5.6.0
Can you please help.
My pom.xml
4.0.0
<groupId>linkedlearning</groupId> <artifactId>cucumbercourse</artifactId> <version>0.0.1-SNAPSHOT</version> <name>cucumbercourse</name> <!-- FIXME change it to the project's website --> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.8</java.version> <junit.version>4.13</junit.version> <cucumber.version>5.6.0</cucumber.version> <maven.compiler.version>3.8.1</maven.compiler.version> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-core</artifactId> <version>${cucumber.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-java</artifactId> <version>${cucumber.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-junit</artifactId> <version>${cucumber.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-java8</artifactId> <version>${cucumber.version}</version> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-plugin</artifactId> <version>${cucumber.version}</version> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-jvm</artifactId> <version>${cucumber.version}</version> <type>pom</type> </dependency> </dependencies> <build> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <plugins> <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.7.1</version> </plugin> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>3.0.0</version> </plugin> </plugins> </pluginManagement> </build>
Than
Please recheck feature file, may be you syntactical mistake
Hi I have the same issue. Can someone help me with latest stable dependencies that might work.
My console shows like this:
Nov 28, 2023 7:54:51 AM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
0 Scenarios 0 Steps 0m0.057s
┌───────────────────────────────────────────────────────────────────────────────────┐ │ Share your Cucumber Report with your team at https://reports.cucumber.io │ │ Activate publishing with one of the following: │ │ │ │ src/test/resources/cucumber.properties: cucumber.publish.enabled=true │ │ src/test/resources/junit-platform.properties: cucumber.publish.enabled=true │ │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │ │ JUnit: @CucumberOptions(publish = true) │ │ │ │ More information at https://cucumber.io/docs/cucumber/environment-variables/ │ │ │ │ Disable this message with one of the following: │ │ │ │ src/test/resources/cucumber.properties: cucumber.publish.quiet=true │ │ src/test/resources/junit-platform.properties: cucumber.publish.quiet=true │
After I added all the jars with the specific versions as mentioned in the video, my issue got resolved. I did this 6 months back. You can also check.
Link- https://youtu.be/d56lRIAwQEI?si=dk_hOfsbHaYRClyT
On Tue, 28 Nov 2023, 07:59 AshokMarrapu, @.***> wrote:
Hi I have the same issue. Can someone help me with latest stable dependencies that might work.
My console shows like this:
Nov 28, 2023 7:54:51 AM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
0 Scenarios 0 Steps 0m0.057s
┌───────────────────────────────────────────────────────────────────────────────────┐ │ Share your Cucumber Report with your team at https://reports.cucumber.io │ │ Activate publishing with one of the following: │ │ │ │ src/test/resources/cucumber.properties: cucumber.publish.enabled=true │ │ src/test/resources/junit-platform.properties: cucumber.publish.enabled=true │ │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │ │ JUnit: @CucumberOptions(publish = true) │ │ │ │ More information at https://cucumber.io/docs/cucumber/environment-variables/ │ │ │ │ Disable this message with one of the following: │ │ │ │ src/test/resources/cucumber.properties: cucumber.publish.quiet=true │ │ src/test/resources/junit-platform.properties: cucumber.publish.quiet=true │
— Reply to this email directly, view it on GitHub https://github.com/cucumber/cucumber-eclipse/issues/415#issuecomment-1828961942, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZWAGWDROHY5WPB5U2MUNDYGVEBTAVCNFSM4OHFNL52U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSHA4TMMJZGQZA . You are receiving this because you commented.Message ID: @.***>
I am getting following error with latest version of cucumber.
my pom.xml file and error attached here under
**
I have installed Cucumber plugin in latest eclipse version and added dependencies for cucumber 6.1.1 via maven pom.xml
I have added all the necessary dependencies from the Github location :https://github.com/cucumber/cucumber-java-skeleton/blob/master/pom.xml
Now when I am trying to run my feature file which contains a scenario ,I am getting the warning as
Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
And as a result of this somehow execution is failing and my output is:
Jun 23, 2020 7:03:00 PM cucumber.api.cli.Main run WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Scenario: Add a menu item # src/test/java/linkedlearning/cucumbercourse/features/MenuManagement.feature:3
0 Scenarios 0 Steps 0m1.020s
Now in the cucumber-core-6.1.1.jar,I can see that it has
--cucumber.api.cli package which has Main class and I suppose the execution is referring to this instead of
--io.cucumber.core.cli package which has Main class
Console is not showing the usual suggestions of creating steps in step definition file and is blank.
Same I did by using Cucumber 5.6.0
Can you please help.
My pom.xml <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Thanks