1.1 KiB
1.1 KiB
eseguendo mvn install
su gcat, ricevo questo errore
[ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (default) on project gcat: Execution default of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: startup failed: [ERROR] script1.groovy: 1: expecting EOF, found 'matcher' @ line 1, column 100. [ERROR] ANGELOG.md").getText('UTF-8') matcher = [ERROR] ^ [ERROR] [ERROR] 1 error [ERROR]
cd ~/.m2/repository grep -R "getText('UTF-8') matcher" .
def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8') matcher = (fileContents =~ /(?s).\[v$project.version\].*?/) if (!matcher.find()) { throw new IllegalArgumentException("Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md") } assert matcher[0][1]: "Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md"