Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plugins 是否有将外部JAR添加到自定义汇流插件开发环境的过程_Plugins_Jar_Dependencies_Confluence - Fatal编程技术网

Plugins 是否有将外部JAR添加到自定义汇流插件开发环境的过程

Plugins 是否有将外部JAR添加到自定义汇流插件开发环境的过程,plugins,jar,dependencies,confluence,Plugins,Jar,Dependencies,Confluence,我在pom.xml中添加了这个依赖项块 <dependency> <groupId>freeway</groupId> <artifactId>axis</artifactId> <version>1.0</version> </dependency> 这是我得到的错误是 我也偶然发现了这一点,并尝试了它。但它无法“下载”依赖项 我

我在pom.xml中添加了这个依赖项块

     <dependency>
        <groupId>freeway</groupId>
        <artifactId>axis</artifactId>
        <version>1.0</version>
    </dependency>
这是我得到的错误是

我也偶然发现了这一点,并尝试了它。但它无法“下载”依赖项

我错过了什么?在这件事上寻求你的帮助

谢谢
A

通过在pom.xml中添加dependencie,您可以使用插件安装jar 在您的情况下,我认为您需要添加范围编译 例如


org.apache.axis

如果您开始创建插件,另一个建议是最佳做法是使用Confluence
atlas cli

mvn instal
在这方面对您没有帮助

此外,我建议您阅读这篇非常有用的文章,您可以在这里找到许多优秀的文档,这些文档可以帮助您更轻松地开发汇流插件。

Angela

可能您遇到了以下错误:

不幸的是,Atlassian Plugin SDK中有一个错误,它阻止了 atlas-*批处理文件来自正确解释命令行 包含等号的参数

解决方法是调用“%ATLAS\u HOME%\apache maven\bin\mvn”而不是“ATLAS mvn”

我的解决办法如下:

  • 编辑
    %ATLAS\u HOME%\bin\ATLAS mvn.bat

  • 如果“%1”=“goto loopend”
(在我的例子中是第69行),则查找该行

  • 将其更改为:

     if `%1`==`` goto loopend
    
  • 希望这能解决你的问题

    尝试添加编译
        <dependency>
            <groupId>org.apache.axis</groupId>
            <artifactId>axis</artifactId>
            <version>1.4</version>
            <scope>compile</scope>
        </dependency>
    
     if `%1`==`` goto loopend