Remove unsupported Eclipse platforms. Fix the MVN URL resolution.
diff --git a/parent/pom.xml b/parent/pom.xml
index a779e2e..0882795 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -235,34 +235,6 @@
<profiles>
<profile>
- <id>platform-helios</id>
- <activation>
- <property>
- <name>platform-version-name</name>
- <value>helios</value>
- </property>
- </activation>
- <properties>
- <eclipse-site>http://download.eclipse.org/releases/helios</eclipse-site>
- <platform-version>[3.6,3.7)</platform-version>
- <swtbot-site>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site</swtbot-site>
- </properties>
- </profile>
- <profile>
- <id>platform-indigo</id>
- <activation>
- <property>
- <name>platform-version-name</name>
- <value>indigo</value>
- </property>
- </activation>
- <properties>
- <eclipse-site>http://download.eclipse.org/releases/indigo</eclipse-site>
- <platform-version>[3.7,3.8)</platform-version>
- <swtbot-site>http://download.eclipse.org/technology/swtbot/indigo/dev-build/update-site</swtbot-site>
- </properties>
- </profile>
- <profile>
<id>platform-juno</id>
<activation>
<property>
@@ -277,6 +249,20 @@
</properties>
</profile>
<profile>
+ <id>platform-kepler</id>
+ <activation>
+ <property>
+ <name>platform-version-name</name>
+ <value>kepler</value>
+ </property>
+ </activation>
+ <properties>
+ <eclipse-site>http://download.eclipse.org/releases/kepler</eclipse-site>
+ <platform-version>[4.3,5)</platform-version>
+ <swtbot-site>http://download.eclipse.org/technology/swtbot/kepler/dev-build/update-site</swtbot-site>
+ </properties>
+ </profile>
+ <profile>
<id>release</id>
<build>
<plugins>
diff --git a/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/FeaturesBundlesStartLevels.java b/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/FeaturesBundlesStartLevels.java
index 6fc7d21..b4f08cf 100644
--- a/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/FeaturesBundlesStartLevels.java
+++ b/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/FeaturesBundlesStartLevels.java
@@ -93,9 +93,6 @@
}
private String getSymbolicName(String bundleUrl) {
- if (bundleUrl == null) {
- return null;
- }
File bundlePath = new File(baseBundlesDir, converter.getPath(bundleUrl));
BundleDescription bundleDescription = karafPlatformModel.getState().getBundleByLocation(bundlePath.getAbsolutePath());
if (bundleDescription != null) {
diff --git a/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/MvnUrlConverter.java b/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/MvnUrlConverter.java
index b7563df..9685305 100644
--- a/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/MvnUrlConverter.java
+++ b/plugins/org.apache.karaf.eik.ui/src/main/java/org/apache/karaf/eik/ui/features/MvnUrlConverter.java
@@ -20,26 +20,25 @@
public class MvnUrlConverter {
- public String getPath(String mvnUrl) {
- if(mvnUrl != null) {
- if(mvnUrl.startsWith("mvn:")) {
- mvnUrl = mvnUrl.substring(4);
- }
+ public String getPath(String url) {
+ if (url != null) {
+ if (url.startsWith("mvn:")) {
+ url = url.substring(4);
+ String[] repositorySplit = url.split("!");
+ String urlWithoutRepository = repositorySplit[repositorySplit.length - 1];
- String[] repositorySplit = mvnUrl.split("!");
- String urlWithoutRepository = repositorySplit[repositorySplit.length - 1];
-
- String[] segments = urlWithoutRepository.split("/");
- if(segments.length == 3) {
- String groupId = segments[0];
- String artifactId = segments[1];
- String version = segments[2];
-
- return groupId.replace(".", "/") + "/" + artifactId + "/" + version + "/" + artifactId + "-" + version + ".jar";
+ String[] segments = urlWithoutRepository.split("/");
+ if (segments.length >= 3) {
+ String groupId = segments[0];
+ String artifactId = segments[1];
+ String version = segments[2];
+
+ return groupId.replace(".", "/") + "/" + artifactId + "/" + version + "/" + artifactId + "-" + version + ".jar";
+ }
}
}
- return null;
+ return url;
}
}