Intellij IDEA: I can't gather Maven
-
There's a maven project in Intellij IDEA 14, there's a 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"> <modelVersion>4.0.0</modelVersion>
<groupId>test</groupId> <artifactId>testId</artifactId> <packaging>jar</packaging> <version>1.0</version> <name>test</name> <url>http://maven.apache.org</url> <properties> <jdk.version>1.8</jdk.version> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>${jdk.version}</source> <target>${jdk.version}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <configuration> <archive> <manifest> <mainClass>Main</mainClass> </manifest> </archive> </configuration> </plugin> </plugins> </build>
</project>
What do you have to do to collect the jar file, how do you do it with the IDEA, what am I doing wrong?
-
You're choosing me.
Build -> Build Artifacts..
♪ On this list, you choose an artifact and press it.Build
♪ The director will be at the root of the project.out
♪ Your jar will be there.