使用ant文件执行sonar时出错

使用ant文件执行sonar时出错,ant,sonarqube,Ant,Sonarqube,下面的几行是我的ant构建文件的开始,当我尝试使用它执行implemnet sonar时,它会显示以下错误 与元素类型“project”关联的属性“xmlns:sonar”的值不能包含“您向ANT提交了无效的XML文件”。您在Sonar URI中缺少一个结尾引号: $ xmllint build.xml .. .. build.xml:3: namespace error : xmlns:sonar: 'antlib:org.sonar.ant> ' is not a val

下面的几行是我的ant构建文件的开始,当我尝试使用它执行implemnet sonar时,它会显示以下错误


与元素类型“project”关联的属性“xmlns:sonar”的值不能包含“您向ANT提交了无效的XML文件”。您在Sonar URI中缺少一个结尾引号:

$ xmllint build.xml
..
..
build.xml:3: namespace error : xmlns:sonar: 'antlib:org.sonar.ant>        ' is not a valid URI
..
..
以下是更正的XML文件:

<project name="DokLink"  default="all"  basedir="." xmlns:sonar="antlib:org.sonar.ant">

      <description> Build the DevEnvExample, to illustrate how DevEnv works </description>

</project>

构建DevEnv示例,以说明DevEnv是如何工作的
<project name="DokLink"  default="all"  basedir="." xmlns:sonar="antlib:org.sonar.ant">

      <description> Build the DevEnvExample, to illustrate how DevEnv works </description>

</project>