mirror of https://github.com/apache/nifi.git
NIFI-10286 This closes #6251. Removed c2-client-api references from nifi-nar-utils
Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
parent
9bb22fcb11
commit
afa85a03ce
|
@ -32,7 +32,6 @@ limitations under the License.
|
|||
<groupId>org.apache.nifi</groupId>
|
||||
<artifactId>c2-client-api</artifactId>
|
||||
<version>1.17.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
|
|
|
@ -32,7 +32,6 @@ limitations under the License.
|
|||
<groupId>org.apache.nifi</groupId>
|
||||
<artifactId>c2-client-api</artifactId>
|
||||
<version>1.17.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
|
|
|
@ -303,7 +303,7 @@ public class StandardFlowService implements FlowService, ProtocolHandler {
|
|||
c2NifiClientService = new C2NifiClientService(nifiProperties, this.controller);
|
||||
c2NifiClientService.start();
|
||||
} else {
|
||||
logger.info("C2 Property [{}] missing or disabled: C2 client not created", C2NiFiProperties.C2_ENABLE_KEY);
|
||||
logger.debug("C2 Property [{}] missing or disabled: C2 client not created", C2NiFiProperties.C2_ENABLE_KEY);
|
||||
c2NifiClientService = null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,11 +34,6 @@
|
|||
<groupId>org.apache.nifi</groupId>
|
||||
<artifactId>nifi-framework-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
<artifactId>c2-client-api</artifactId>
|
||||
<version>1.17.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Compile-only dependency. At runtime, the agent will use aspectjweaver.jar directly, not from the classpath (see bootstrap.conf).-->
|
||||
<dependency>
|
||||
|
|
|
@ -20,7 +20,6 @@ import org.apache.nifi.NiFiServer;
|
|||
import org.apache.nifi.bundle.Bundle;
|
||||
import org.apache.nifi.bundle.BundleCoordinate;
|
||||
import org.apache.nifi.bundle.BundleDetails;
|
||||
import org.apache.nifi.c2.client.api.C2Client;
|
||||
import org.apache.nifi.util.FileUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -43,7 +42,6 @@ import java.util.stream.Collectors;
|
|||
|
||||
/**
|
||||
* Used to initialize the extension and framework classloaders.
|
||||
*
|
||||
* The core framework should obtain a singleton reference from NarClassLoadersHolder.
|
||||
*/
|
||||
public final class NarClassLoaders {
|
||||
|
@ -69,7 +67,6 @@ public final class NarClassLoaders {
|
|||
final Bundle frameworkBundle,
|
||||
final Bundle jettyBundle,
|
||||
final NiFiServer serverInstance,
|
||||
final C2Client c2ClientInstance,
|
||||
final Map<String, Bundle> bundles) {
|
||||
this.frameworkWorkingDir = frameworkDir;
|
||||
this.extensionWorkingDir = extensionDir;
|
||||
|
@ -168,7 +165,6 @@ public final class NarClassLoaders {
|
|||
}
|
||||
|
||||
NiFiServer serverInstance = null;
|
||||
C2Client c2ClientInstance = null;
|
||||
if (!narWorkingDirContents.isEmpty()) {
|
||||
final List<BundleDetails> narDetails = new ArrayList<>();
|
||||
final Map<String, String> narCoordinatesToWorkingDir = new HashMap<>();
|
||||
|
@ -311,7 +307,7 @@ public final class NarClassLoaders {
|
|||
.filter(b -> b.getBundleDetails().getCoordinate().getId().equals(JETTY_NAR_ID))
|
||||
.findFirst().orElse(null);
|
||||
|
||||
return new InitContext(frameworkWorkingDir, extensionsWorkingDir, frameworkBundle, jettyBundle, serverInstance, c2ClientInstance, new LinkedHashMap<>(narDirectoryBundleLookup));
|
||||
return new InitContext(frameworkWorkingDir, extensionsWorkingDir, frameworkBundle, jettyBundle, serverInstance, new LinkedHashMap<>(narDirectoryBundleLookup));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue