Hello. I want to start a project that parses the site using http://ru.selenide.org . Here is 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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.selenide.examples</groupId> <artifactId>my-app</artifactId> <packaging>jar</packaging> <version>1.0</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>com.codeborne</groupId> <artifactId>selenide</artifactId> <version>4.4.3</version> <type>jar</type> </dependency> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>3.4.2</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-archetype-webapp</artifactId> <version>3.0.2</version> <configuration> <archive> <manifest> <mainClass>org.selenide.examples.NBU</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build> </project> I collect using the mvn clean package command. Then I go to the target folder and run it like this: java -jar my-app-1.0.jar. In the console, I see the error no main manifest attribute, in my-app-1.0.jar. I have been eating to fix it for the third day but do not get it. Please help me. thank