Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Maven 安装特定的包,如 derbytools,而不将其指定为项目的依赖项?
这是使用mvn install目标的示例。我使用 Windows 风格的环境变量代替您需要提供的参数。
mvn install
mvn install:install-file -DgroupId=%DERBYTOOLS_GROUP_ID% \ -DartifactId=%DERBYTOOLS_ARTIFACT_ID% \ -Dversion=%DERBYTOOLS_VERSION% \ -Dpackaging=jar \ -Dfile=%DERBYTOOLS_FILE_PATH%