简体   繁体   English

码头暴徒和行家(com.adobe.flex#flex-messaging-core缺失)

[英]jetty-blazeds and maven (com.adobe.flex#flex-messaging-core missing)

I want to setup jetty with jetty-blazeds extension. 我想设置带有码头火焰扩展的码头。 Everything looks fine but when I run maven to get the dependencies, I get: 一切看起来都很好,但是当我运行maven获取依赖项时,我得到了:

UNRESOLVED DEPENDENCIES
com.adobe.flex#flex-messaging-core;3.2.0: not found 
com.adobe.flex#flex-messaging-common;3.2.0: not found 

I've tried many repositories but no success. 我尝试了很多存储库,但没有成功。 I am wondering has anyone managed to successfully locate these dependencies through maven ? 我想知道是否有人能够通过Maven成功找到这些依赖关系? If yes, could you please share the repository ! 如果是,请您共享存储库!

Thank you, -A 谢谢-A

If you look at the pom of jetty-blazeds, for example jetty-blazeds-7.0.0.1beta3.pom , you'll see this: 如果您查看Jetty-blazeds的pom,例如jetty-blazeds-7.0.0.1beta3.pom ,您将看到以下内容:

  <repositories>
    <repository>
      <id>project-repo</id>
      <name>project repo</name>
      <url>file:${basedir}/maven_repo</url>
      <releases><enabled>true</enabled></releases>
      <snapshots><enabled>true</enabled></snapshots>
    </repository>
  </repositories>

Jetty is using a file based repository. Jetty正在使用基于文件的存储库。 And if you look at this file based repository in their svn repository, you will see that it contains the mentioned artifacts (which are thus very likely not available in any known public repository). 并且,如果您在他们的svn存储中查看此基于文件的存储库,您将看到它包含上述工件(因此,在任何已知的公共存储库中很可能没有这些工件)。

So my suggestion would be to use the same strategy ie to install the artifacts locally, either in your local repository or in a file based repository in your VCS (you could also declare https://svn.codehaus.org/jetty/jetty/branches/jetty-7/jetty-blazeds/maven_repo/ as repository but this is extremely ugly). 因此,我的建议是使用相同的策略,即在本地存储库中或在VCS中的基于文件的存储库中本地安装工件(您也可以声明https://svn.codehaus.org/jetty/jetty/ branch / jetty-7 / jetty-blazeds / maven_repo /作为存储库,但这非常丑陋)。

If you have a corporate repository, the alternative is obvious: deploy the adobe artifacts in it. 如果您有公司存储库,则显而易见的选择是:在其中部署Adobe工件。

It is recommended to set up a central Maven repository for your project/department and configure it in the project pom. 建议为您的项目/部门建立一个中央Maven存储库,并在项目pom中对其进行配置。 Then you can download such dependencies by hand and deploy them manually to the project repo. 然后,您可以手动下载此类依赖项,并将其手动部署到项目存储库中。 Although this is a bit more extra work, it eliminates the whole class of problems in the long run. 尽管这是额外的工作,但从长远来看,它消除了整个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM