Jar不会在netbeans中基于Maven的项目中执行

时间:2014-09-27 08:12:53

标签: java maven

您好我正在研究在netbeans 8.0.1中创建的项目。 它是在Maven.Now中创建的。完成后尝试打开创建的jar时它没有被执行。 下面是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>com.elitechweb.asm</groupId>
<artifactId>Test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
</properties>
 <build>

 </build>

</project>

1 个答案:

答案 0 :(得分:0)

添加了maven-install-plugin-2.3.1 jar文件。并在POM.xml中更改相应的jar