24 lines
1.1 KiB
Markdown
24 lines
1.1 KiB
Markdown
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]
|
|
|
|
|
|
https://maven.d4science.org/nexus/content/repositories/gcube-externals/org/gcube/tools/maven-parent/1.1.0/maven-parent-1.1.0.pom
|
|
|
|
|
|
|
|
cd ~/.m2/repository
|
|
grep -R "getText('UTF-8') matcher" .
|
|
|
|
|
|
<source> 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" </source>
|
|
</configuration>
|
|
|
|
|