fix publishing script
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
diff --git a/pom.xml b/pom.xml
index baceca8..0769c81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -210,7 +210,6 @@
<goal>plugin-source</goal>
</goals>
<configuration>
- <!--<finalName>${project.artifactId}.source_${release.version}.${build.qualifier}</finalName>-->
<sourceBundle>true</sourceBundle>
<sourceBundleSuffix>.source</sourceBundleSuffix>
<!--<qualifier>${build.qualifier}</qualifier>-->
@@ -244,7 +243,6 @@
<directory>./resource</directory>
</resource>
</resources>
- <!--<finalName>${project.artifactId}_${release.version}.${build.qualifier}</finalName>-->
</build>
</project>
diff --git a/uploadToNexus.xml b/uploadToNexus.xml
index 406c2c8..8070db7 100644
--- a/uploadToNexus.xml
+++ b/uploadToNexus.xml
@@ -108,15 +108,8 @@
<taskdef name="stripQualifier" classname="${custom.stripqualifier.task.class}" classpath="${custom.tasks.lib}"/>
<property name="bundle.prefix" value="jakarta.persistence"/>
- <property name="bundle.criteria" value="[2.0.100, 2.3)"/>
<property name="bundle.name" value="Java Persistence"/>
-
- <!-- Determine Version info from built bundle filename -->
- <selectbundle basename="${bundle.prefix}" directory="${maven.2.target.dir}"
- criterion="${bundle.criteria}" property="OSGi.version" versiononly="true"
- />
- <say message="OSGi.version: ${OSGi.version}" if="OSGi.version"/>
- <fail message="${OSGi.version} property not set! SelectBundle failure. Exiting..." unless="OSGi.version"/>
+ <property name="OSGi.version" value="2.2.2" />
<!-- Maven standards state we should publish with a stripped down 3-part version rather -->
<!-- than the 4-part OSGi version. So we need to generate a "base.version" from the -->