Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 55237a7

Browse files
author
Petra Horvath
committed
removing unused maven-project dependency and functions
1 parent 7851e7a commit 55237a7

File tree

4 files changed

+9
-49
lines changed

4 files changed

+9
-49
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ target/
2828
/.classpath
2929
/.project
3030
/.settings/
31+
/.metadata/

pom.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>de.viadee</groupId>
55
<artifactId>viadeeProcessApplicationValidator</artifactId>
66

7-
<version>2.5.3</version>
7+
<version>2.5.4</version>
88

99
<packaging>maven-plugin</packaging>
1010

@@ -55,6 +55,12 @@
5555
<organization>viadee Unternehmensberatung GmbH</organization>
5656
<organizationUrl>http://www.viadee.de</organizationUrl>
5757
</developer>
58+
<developer>
59+
<name>Petra Horvath</name>
60+
<email>[email protected]</email>
61+
<organization>viadee Unternehmensberatung GmbH</organization>
62+
<organizationUrl>http://www.viadee.de</organizationUrl>
63+
</developer>
5864
</developers>
5965

6066
<scm>
@@ -117,11 +123,6 @@
117123
<artifactId>camunda-engine</artifactId>
118124
<version>7.8.0</version>
119125
</dependency>
120-
<dependency>
121-
<groupId>org.apache.maven</groupId>
122-
<artifactId>maven-project</artifactId>
123-
<version>3.0-alpha-2</version>
124-
</dependency>
125126
<dependency>
126127
<groupId>org.apache.maven</groupId>
127128
<artifactId>maven-artifact</artifactId>

src/main/java/de/viadee/bpm/vPAV/FileScanner.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
import org.apache.commons.io.FileUtils;
5353
import org.apache.commons.io.filefilter.DirectoryFileFilter;
5454
import org.apache.commons.io.filefilter.TrueFileFilter;
55-
import org.apache.maven.artifact.DependencyResolutionRequiredException;
56-
import org.apache.maven.project.MavenProject;
5755
import org.apache.tools.ant.DirectoryScanner;
5856
import org.camunda.bpm.model.bpmn.Bpmn;
5957
import org.camunda.bpm.model.bpmn.BpmnModelException;
@@ -253,28 +251,6 @@ public Collection<String> getResourcesNewestVersions() {
253251
return resourcesNewestVersions;
254252
}
255253

256-
/**
257-
* Get class loader for the maven project, which uses this plugin
258-
*
259-
* @param project
260-
* @return
261-
* @throws MalformedURLException
262-
* @throws DependencyResolutionRequiredException
263-
*/
264-
static ClassLoader getClassLoader(final MavenProject project)
265-
throws MalformedURLException, DependencyResolutionRequiredException {
266-
@SuppressWarnings("unchecked")
267-
final List<String> classPathElements = project.getRuntimeClasspathElements();
268-
final List<URL> classpathElementUrls = new ArrayList<URL>(classPathElements.size());
269-
for (final String classPathElement : classPathElements) {
270-
classpathElementUrls.add(new File(classPathElement).toURI().toURL());
271-
}
272-
classpathElementUrls.add(new File(ConfigConstants.TEST_BASEPATH).toURI().toURL());
273-
classpathElementUrls.add(new File(ConfigConstants.JAVAPATH).toURI().toURL());
274-
return new URLClassLoader(classpathElementUrls.toArray(new URL[classpathElementUrls.size()]),
275-
Thread.currentThread().getContextClassLoader());
276-
}
277-
278254
/**
279255
* Map for getting bpmn reference by process id
280256
*

src/main/java/de/viadee/bpm/vPAV/RuntimeConfig.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
import java.util.ResourceBundle;
4141
import java.util.logging.Logger;
4242

43-
import org.apache.maven.artifact.DependencyResolutionRequiredException;
44-
import org.apache.maven.project.MavenProject;
4543
import org.springframework.context.ApplicationContext;
4644

4745
import de.viadee.bpm.vPAV.config.model.Rule;
@@ -104,23 +102,7 @@ public void setClassLoader(ClassLoader classLoader) {
104102

105103
public ClassLoader getClassLoader() {
106104
return classLoader;
107-
}
108-
109-
/**
110-
* Retrieves the classloader for a given MavenProject
111-
*
112-
* @param project
113-
* MavenProject
114-
* @return Classloader
115-
* @throws MalformedURLException
116-
* indicate that a malformed URL has occurred
117-
* @throws DependencyResolutionRequiredException
118-
* DependencyResolutionRequiredException
119-
*/
120-
public ClassLoader getClassLoader(MavenProject project)
121-
throws MalformedURLException, DependencyResolutionRequiredException {
122-
return FileScanner.getClassLoader(project);
123-
}
105+
}
124106

125107
public boolean isTest() {
126108
return test;

0 commit comments

Comments
 (0)