本文介绍了Maven调试输出:(f)是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当您使用-X标志运行Maven 2时,您会看到它配置插件的过程,您可能会看到类似以下的输出:
When you run Maven 2 with the -X flag, and you watch as it configures plugins, you might see output like this:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.3:clean' -->
[DEBUG] (f) directory = e:\projects\foobar\target
[DEBUG] (f) excludeDefaultDirectories = false
[DEBUG] (f) failOnError = true
[DEBUG] (s) directory = .
[DEBUG] (s) includes = [**/*~]
[DEBUG] (f) filesets = [file set: . (included: [**/*~], excluded: [])]
[DEBUG] (f) followSymLinks = false
[DEBUG] (f) outputDirectory = e:\projects\foobar\target\classes
[DEBUG] (f) project = MavenProject: foobar:foobar:1.0-SNAPSHOT @ e:\projects\foobar\pom.xml
[DEBUG] (f) reportDirectory = e:\projects\foobar\target\site
[DEBUG] (f) skip = false
[DEBUG] (f) testOutputDirectory = e:\projects\foobar\target\test-classes
[DEBUG] -- end configuration --
(f)和(s)有什么区别?
What is the difference between an (f) and an (s)?
推荐答案
有趣的问题.我从来没有注意过这个小细节,也找不到关于它的任何文档.因此,我查看了源代码,这就是我们在 o.a.m.p.DebugConfigurationListener
(来自maven-core):
Interesting question. I never paid attention to this little detail and couldn't find any documentation on it. So I greped the sources and this is what we can see in o.a.m.p.DebugConfigurationListener
(from maven-core):
public void notifyFieldChangeUsingSetter( String fieldName, Object value, Object target )
{
if ( logger.isDebugEnabled() )
{
logger.debug( " (s) " + fieldName + " = " + toString( value ) );
}
}
public void notifyFieldChangeUsingReflection( String fieldName, Object value, Object target )
{
if ( logger.isDebugEnabled() )
{
logger.debug( " (f) " + fieldName + " = " + toString( value ) );
}
}
(f)和(s)之间的区别现在应该是自解释(叹气)了.
And the difference between (f) and (s) should be self-explaining (sigh) now.
这篇关于Maven调试输出:(f)是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!