【发布时间】:2011-07-03 10:05:20
【问题描述】:
如何使用源代码安装 Maven 工件?
所以以后我不需要在eclipse中打开一个项目来查看一些代码。
编辑: 我知道我可以将这段代码添加到 pom.xml 中
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
但我想从命令行执行(使其更通用)。
【问题讨论】:
-
你想要这些资源在哪里?