0

I added this dependency chunk in my pom.xml

     <dependency>
        <groupId>freeway</groupId>
        <artifactId>axis</artifactId>
        <version>1.0</version>
    </dependency>

I have placed my jar file in the folder C:\jarhost\axis-1.0.jar And i ran the command

   mvn install:install-file -Dfile= "C:/jarhost/axis-1.0.jar" -DgroupId=freeway -DartifactId=axis -Dversion=1.0 -Dpackaging=jar

And this is the error i get is this

http://imageshack.us/f/580/cmdimage.png

I also stumbled upon this https://confluence.sakaiproject.org/display/DOC/Adding+JARs+to+an+Application and tried it too. But it was unable to 'download' dependencies.

What am i missing ?Looking for your help on this.

Thanks A

4

2 回答 2

0

Angela,

maybe you run into this bug:

Unfortunately there's a bug in the Atlassian Plugin SDK that prevents the atlas-* batch files from correctly interpreting command-line parameters that contain an equals sign

The workaround is to call "%ATLAS_HOME%\apache-maven\bin\mvn" instead of "atlas-mvn".

My solution was the following:

  • edit %ATLAS_HOME%\bin\atlas-mvn.bat

  • locate the line if "%1"=="" goto loopend (in my case it was line 69)

  • change it to:

     if `%1`==`` goto loopend
    

Hope this solves your problem!

于 2012-07-11T14:09:19.483 回答
0

您可以通过在您的 pom.xml 中添加依赖项来安装您的 jar,在您的情况下,我认为您需要添加范围编译,例如。

    <dependency>
        <groupId>org.apache.axis</groupId>
        <artifactId>axis</artifactId>
        <version>1.4</version>
        <scope>compile</scope>
    </dependency>

你可以在这里阅读

如果你开始创建插件,另一个建议是最好的做法是使用 Confluence atlas-cli
mvn-instal而不是以这种方式帮助你。

我还建议你在这里阅读这个非常有用的文档,你可以找到很多很好的文档,它们可以帮助你更轻松地开发插件以实现融合。

于 2012-07-11T11:56:02.890 回答