[英]Adding dependency using Maven to eclipse-pdt in pom.xml
I am trying to import the parser from Eclipse PDT in a project using Maven, however, I cannot find how to do it. 我试图在一个使用Maven的项目中从Eclipse PDT导入解析器,但是,我找不到如何做到这一点。
I added the following in pom.xml
: 我在
pom.xml
添加了以下内容:
<dependency>
<groupId>org.eclipse.php</groupId>
<artifactId>org.eclipse.php.core</artifactId>
<version>5.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.php</groupId>
<artifactId>org.eclipse.php.core.parser</artifactId>
<version>5.2.0-SNAPSHOT</version>
</dependency>
However, these packages are not located on https://repo.maven.apache.org/maven2 , like for example Eclipse JDT ( org.eclipse.jdt ) 但是,这些软件包不在https://repo.maven.apache.org/maven2上 ,例如Eclipse JDT ( org.eclipse.jdt )
Is there a maven repository from where these packages (org.eclipse.php.core, org.eclipse.php.core.parser) can be downloaded using Maven, together with all their dependencies? 是否有一个Maven存储库,可以使用Maven及其所有依赖项从中下载这些软件包(org.eclipse.php.core,org.eclipse.php.core.parser)?
Since newer versions are not available in public Maven repositories, the following two ways to get the Eclipse PDT PHP parser JAR via Maven remain: 由于较新的版本在公共Maven存储库中不可用,因此通过Maven获取Eclipse PDT PHP解析器JAR的以下两种方法仍然存在:
http://download.eclipse.org/tools/pdt/updates/5.2-nightly/
http://download.eclipse.org/tools/pdt/updates/5.2-nightly/
: http://download.eclipse.org/tools/pdt/updates/5.2-nightly/
: http://download.eclipse.org/tools/pdt/updates/5.2-nightly/
plugins/org.eclipse.php.core.parser_{version}.jar
JAR from an Eclipse PDT installation and include the local JAR in your pom.xml
file plugins/org.eclipse.php.core.parser_{version}.jar
JAR, 并将本地JAR包含在pom.xml
文件中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.