Skip to content

Commit

Permalink
cleanup and fixing eclipse import issues with m2e
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeec committed Apr 14, 2023
1 parent 35ca10a commit 603c105
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 50 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
source "$(dirname "${0}")"/functions.sh
source "$(dirname ${0})/functions.sh"

echo ""
echo "##########################################"
Expand Down
7 changes: 4 additions & 3 deletions cobigen-eclipse/cobigen-eclipse-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
</parent>

<properties>
<tycho.testArgLine.enriched>${surefireArgLineIntegration} -Xms512m -Xmx2048m -XX:+DisableExplicitGC</tycho.testArgLine.enriched>
<tycho.testArgLine.enriched>${surefireArgLineIntegration} -Xms512m -Xmx2048m
-XX:+DisableExplicitGC</tycho.testArgLine.enriched>
<enforcer.skip>true</enforcer.skip>
</properties>

Expand Down Expand Up @@ -120,8 +121,8 @@
<artifact>
<groupId>${project.groupId}</groupId>
<artifactId>cobigen-eclipse-releng</artifactId>
<version>${revision}</version>
<relativePath>../cobigen-eclipse-releng/pom.xml</relativePath>
<version>${revision}</version>
<relativePath>../cobigen-eclipse-releng/pom.xml</relativePath>
</artifact>
</target>
</configuration>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.devonfw.cobigen.impl.extension;

import java.lang.reflect.InvocationTargetException;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.HashMap;
Expand Down Expand Up @@ -39,7 +40,9 @@ public class PluginRegistry {
private static Map<String, TriggerInterpreter> registeredTriggerInterpreter = Maps
.<String, TriggerInterpreter> newHashMap();

/** Currently registered {@link TriggerInterpreter}s mapped by their supporting file extensions */
/**
* Currently registered {@link TriggerInterpreter}s mapped by their supporting file extensions
*/
private static Multimap<String, TriggerInterpreter> registeredTriggerInterpreterByFileExtension = HashMultimap
.<String, TriggerInterpreter> create();

Expand All @@ -63,7 +66,7 @@ public class PluginRegistry {
private static <T extends GeneratorPluginActivator> GeneratorPluginActivator loadPlugin(Class<T> generatorPlugin) {

try {
Object plugin = generatorPlugin.newInstance();
Object plugin = generatorPlugin.getDeclaredConstructor().newInstance();
LOG.info("Register CobiGen Plug-in '{}'.", generatorPlugin.getCanonicalName());
if (plugin instanceof GeneratorPluginActivator) {
// Collect Mergers
Expand All @@ -87,7 +90,8 @@ private static <T extends GeneratorPluginActivator> GeneratorPluginActivator loa
GeneratorPluginActivator.class.getCanonicalName());
return null;
}
} catch (InstantiationException | IllegalAccessException e) {
} catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException
| NoSuchMethodException | SecurityException e) {
throw new CobiGenRuntimeException(
"Could not intantiate CobiGen Plug-in '" + generatorPlugin.getCanonicalName() + "'.", e);
}
Expand Down
14 changes: 0 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -514,20 +514,6 @@
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<versionRange>[1.12,)</versionRange>
<goals>
<goal>regex-property</goal>
<goal>add-source</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.commonjava.maven.plugins</groupId>
Expand Down

0 comments on commit 603c105

Please sign in to comment.