我正在尝试在ACS Commons 的 MCP 工具中编写一个自定义类
在“pom.xml”中包含“azure storage”api,如下所示:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.0.0</version>
</dependency>
构建运行良好,没有任何编译错误,但是在运行程序时,我在错误日志中看到以下内容:
示例用法:
import com.microsoft.azure.storage.CloudStorageAccount;
..
public class AzureAssetIngestor extends AssetIngestor {
private CloudStorageAccount storageAccount;
..
storageAccount = CloudStorageAccount.parse(storageConnectionString);
执行程序时出现日志错误
引起:java.lang.ClassNotFoundException:com.adobe.acs.acs-aem-commons-bundle 找不到 com.microsoft.azure.storage.CloudStorageAccount
Caused by: java.lang.ClassNotFoundException: com.microsoft.azure.storage.CloudStorageAccount not found by com.adobe.acs.acs-aem-commons-bundle [521]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
感谢任何帮助!