Fridrich Strba 2019-03-20 12:08:45 +00:00 committed by Git OBS Bridge
parent 68b8bf19ec
commit dfd106db76
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f36478a0f1f937760ece7b0cb4adffd16f3c359f1e2e7cd0698729c8aaa62796
size 5304
oid sha256:63368742daee444654b66cafef5b7f8b0837c58c582aa132ede291338d15557d
size 5448

View File

@ -184,6 +184,15 @@ done
%pom_remove_parent .
%pom_remove_plugin :maven-jar-plugin .
for i in api spi test-util util impl connector-basic transport-classpath transport-file transport-http transport-wagon; do
mkdir -p %{name}-${i}/src/main/resources/META-INF/maven/org.apache.maven.resolver/%{name}-${i}
echo "#Created by openSUSE" >> %{name}-${i}/src/main/resources/META-INF/maven/org.apache.maven.resolver/%{name}-${i}/pom.properties
echo "groupId=org.apache.maven.resolver" >> %{name}-${i}/src/main/resources/META-INF/maven/org.apache.maven.resolver/%{name}-${i}/pom.properties
echo "artifactId=%{name}-${i}" >> %{name}-${i}/src/main/resources/META-INF/maven/org.apache.maven.resolver/%{name}-${i}/pom.properties
echo "version=%{version}" >> %{name}-${i}/src/main/resources/META-INF/maven/org.apache.maven.resolver/%{name}-${i}/pom.properties
cp %{name}-${i}/pom.xml %{name}-${i}/src/main/resources/META-INF/maven/org.apache.maven.resolver/%{name}-${i}/
done
%build
mkdir -p lib
build-jar-repository -s lib \
@ -217,7 +226,7 @@ build-jar-repository -s lib \
mkdir -p target/site/apidocs
for i in api spi test-util util impl connector-basic transport-classpath transport-file transport-http transport-wagon; do
ln -s $(pwd)/%{name}-${i}/target/site/apidocs target/site/apidocs/%{name}-${i}
cp -r %{name}-${i}/target/site/apidocs target/site/apidocs/%{name}-${i}
%{mvn_artifact} %{name}-${i}/pom.xml %{name}-${i}/target/%{name}-${i}-%{version}.jar
done