fix for newer jar plugin

This commit is contained in:
gil 2016-06-20 19:34:04 +02:00
commit a1cf128ce3

View file

@ -101,25 +101,24 @@ This package contains javadoc for %{name}.
</execution>
</executions>'
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:executions/pom:execution" %{name}-core
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:executions" "
<execution>
<id>default-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
%pom_remove_plugin :maven-jar-plugin %{name}-core
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin: %{name}-core "
<configuration>
<archive>
<manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</execution>
<execution>
<id>test-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>" %{name}-core
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>"
sed -i 's/\r//' NOTICE