가 내 목표 파일에이 항목이 상상 (내 티코 빌드에서 활성 대상으로 사용) :티코 : 활성 대상 플랫폼에서 P2 설치 단위에 해당하는 받는다는 이슈
<location includeAllPlatforms="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<repository id="orbit_I" location="http://download.eclipse.org/tools/orbit/downloads/drops/I20131203074849/repository/"/>
<unit id="javax.servlet" version="3.0.0.v201112011016"/>
</location>
내가이 플러그인을 참조 할 수 있습니다 (maven-dependency-plugin을 사용하기 위해) maven artifact로? 묶음의 groupId/artifactId는 무엇입니까?
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>???</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0.0.v201112011016</version>
<type>???</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/alternateLocation</outputDirectory>
<destFileName>optional-new-name.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
[...]
</project>
이 예제에서 나는이 조합을 사용하여 많은 조합을 시도 했습니까? 말이되는 것.
나는 항상 같은 오류 얻을 :
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (copy) on project ** Unable to find artifact version of ???:??? in either dependency list or in project's dependency management. -> [Help 1]
감사합니다 귀하의 답변을 많이.
"mvn verify dependency : tree"명령을 사용했기 때문에 "[ERROR] 현재 프로젝트의 [maven-dependency-plugin]에 대한 플러그인이 없습니다. [org.apache. maven.plugins, org.codehaus.mojo] 저장소 [..] -> [Help 1] "에서 사용 가능합니다. 어쩌면 필자의 maven 구성이 좋지 않을 수도 있습니다. – Jmini
@Jmini 긴 버전과 짧은 버전이 모두 동일하다고 생각했습니다. 그러나 짧은 버전 만 작동한다면 나는 그 대답에 답을 칠 것입니다. – oberlies