【问题标题】:jdb maven: InstallMojo sourcejdb maven:安装Mojo源
【发布时间】:2012-07-09 11:26:50
【问题描述】:

我尝试使用mvnDebug/jdb -attach 8000 调试install::install 我很容易找到org.apache.maven.plugin.DefaultBuildPluginManager:101 然后踩mojo.execute(),这导致我:

main[1] where
  [1] org.apache.maven.plugin.install.InstallMojo.execute (InstallMojo.java:76)
  [2] org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:101)
...

我从 svn 中找到 InstallMojo.java 的源代码,但是我应该如何知道要签出的标签?
谢谢,
马克

【问题讨论】:

  • 你知道你要分析的安装插件的版本吗?
  • 对不起...我没有注意到你的问题:2.3.1

标签: debugging maven-plugin jdb


【解决方案1】:

根据您正在使用 2.3.1 版本的 maven-install-plugin 的给定信息,您可以简单地读取该特定版本的 pom 文件,这意味着在 maven central 中搜索该版本。 pom file 将为您提供所需的信息:

摘录:

<scm><connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-install-plugin-2.3.1</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-install-plugin-2.3.1</developerConnection>

这为您提供了 Apache SVN 存储库中 SVN 标签的确切位置,当然还有您可以签出的正确位置。

【讨论】:

    猜你喜欢
    • 2012-01-25
    • 1970-01-01
    • 2013-10-10
    • 2011-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多