Answer the question
In order to leave comments, you need to log in
What is wrong with maven?
Trying to just get started with maven.
habrahabr.ru/post/77382
habrahabr.ru/post/77333
Stupidly I can't start.
I downloaded maven from the official site. installed. shows the version, path registered.
I have read the above articles.
Half of the links are no longer working. Plugin under eclipse I can not understand where and how it works.
The specified commands for creating a maven repository swear:
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache. maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository -> [Help 1]
Has everyone abandoned maven for a long time, or why is it so difficult to start an empty project from scratch according to the official documentation?
Answer the question
In order to leave comments, you need to log in
Yep, I found it like this
https://maven.apache.org/guides/getting-started/in...
But damn, how much outdated documentation is everywhere.
In total, pom.xml looks like this:
<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>com.my-site.app</groupId>
<artifactId>SortingVisualization</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>my-project-name</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>Run</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question