fix for newer jar plugin
This commit is contained in:
parent
4f029eacc4
commit
a1cf128ce3
1 changed files with 15 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Reference in a new issue