0
我想用maven运行独立的java应用程序并添加maven-jar-plugin。 这里是我的pom.xmlmaven-jar-plugin与maven-jar的依赖关系
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<type>maven-plugin</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</build>
怎么会这样的插件被添加为依赖和插件?我怎样才能使用这个作为依赖?
感谢
这个问题在这里被问过很多次之前:)例如http://stackoverflow.com/questions/11881663/what-is-the-difference-in-maven-between-dependency-and-plugin-tags-in-pom-xml或http://stackoverflow.com/questions/ 15917352/is-there-difference-between-dependencies-and-dependencies-in-plugin-tags – user3159253
我的问题更多地是关于如何在eclipse中选择其中一个时使用 – hakkican