如何从命令行安装带有源代码的 Maven 工件?
如何用源代码安装 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>
但我想从命令行执行此操作(使其更加通用)。