Error: The filename, directory name, or volume label syntax is incorrect.Maven TestNG project build failure and showing below error message.
Solution:
<configuration>
<from>builder@myhost.com</from>
<subject>a subject</subject>
<failonerror>true</failonerror>
<mailhost>mail.dummy.ch</mailhost>
<mailuser>XXXXX</mailuser>
<mailpassword>XXXXX</mailpassword>
<htmlMessageFile>src/main/MailContent.html</htmlMessageFile>
<receivers>
<receiver>dani</receiver>
<receiver>sam@any-company.com</receiver>
</receivers>
<fileSets>
<fileSet>
<directory>${basedir}/src/main</directory>
<includes>
<include>**/*.pdf</include>
</includes>
</fileSet>
</fileSets>
</configuration>
check weather you are using htmlMessageFile or htmlMessage in configuration.if you are using htmlMessageFile then provide your html file name only.otherwise you should use html code.
<configuration>
<from>builder@myhost.com</from>
<subject>a subject</subject>
<failonerror>true</failonerror>
<mailhost>mail.dummy.ch</mailhost>
<mailuser>XXXXX</mailuser>
<mailpassword>XXXXX</mailpassword>
<htmlMessageFile>src/main/MailContent.html</htmlMessageFile>
<receivers>
<receiver>dani</receiver>
<receiver>sam@any-company.com</receiver>
</receivers>
<fileSets>
<fileSet>
<directory>${basedir}/src/main</directory>
<includes>
<include>**/*.pdf</include>
</includes>
</fileSet>
</fileSets>
</configuration>
check weather you are using htmlMessageFile or htmlMessage in configuration.if you are using htmlMessageFile then provide your html file name only.otherwise you should use html code.
0 comments: