maven 3.0.5를 사용 중이고 maven 3.2.5로 업그레이드하려고합니다. 모든 것이 flexmojos가 아닌 다른 곳으로 간다.maven에서 flexmojo 지원 3.2.5
것은 내가 받는다는 3.0.5을 사용하여 빌드 경우 - 3.2.5적인 버전이 나에게 다음 오류 제공하는 반면 응용 프로그램이 잘 구축 :
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:copy-flex-resources
(기본) 프로젝트 NGI-웹 : 목표 의 실행의 기본 org.sonatype.flexmojos : flexmojos-maven-plugin : 4.0-RC2 : copy-flex-resources 실패 : 실행 중 API 비 호환성 문제가 발생했습니다. org.sonatype.flexmojos : flexmojos-maven-plugin : 4.0-RC2 : copy- flex-resources : java.lang.NoSuchMethodError : org.apache.maven.execution.MemberSession.getRepositorySession() Lorg/sonatype/aether/RepositorySystemSession;
는이 문제를 해결하기 위해, 나는 6.0.0에 flexmojo 버전을 업데이트하지만 여전히 나는
[ERROR] Plugin net.flexmojos.oss:flexmojos-maven-plugin:6.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for net.flexmojos.oss:flexmojos-maven-plugin:jar:6.0.0: Could not find artifact com.adobe.flex:framework:pom:4.6.0.23201 in all-repos (http://repo.cdiapps.com/repo) -> [Help 1]
[ERROR] [ERROR] 오류의 전체 스택 추적을 보려면, 다시 아래로 오류 -e 스위치를 사용하여 Maven을 실행하십시오. [오류] 전체 디버그 로깅을 사용하려면 -X 스위치를 사용하여 Maven을 다시 실행하십시오.
flexmojo 4.0-RC2는 maven 3.0.5에서만 작동합니까? 누군가 날 도와 줄 수 있니?
<flexVersion>4.5.1.21328</flexVersion>
<flexUnitVersion>4.0-rc-1</flexUnitVersion>
<flexMojosVersion>4.0-RC2</flexMojosVersion>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flexVersion}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.compiler</groupId>
<artifactId>asdoc</artifactId>
<version>${flexVersion}</version>
<classifier>template</classifier>
<type>zip</type>
</dependency>
</dependencies>
<version>${flexMojosVersion}</version>
<executions>
<execution>
<goals>
<goal>copy-flex-resources</goal>
</goals>
</execution>
</executions>
<configuration>
<webappDirectory>${basedir}/src/main/webapp/static</webappDirectory>
<storepass/>
</configuration>
</plugin>
좋아 .. 이걸 시도해보고 계속 올리겠습니다. – Suresh
나는 이것에 대한 해결책을 이미 가지고 있었다. maven을 업그레이드 할 때 pom.xml에 구성된 응용 프로그램 별 종속성을 공식적으로 릴리스해야합니다. 종속성이 알파 또는 베타 버전 인 경우, 상위 버전의 maven이 작동하지 않을 수 있습니다. 이것은 나의 코드에서도 일어난 일이다. Flexmojo는 4.0.Beta로 구성되었으며 MAven3.0.5에서 지원되었습니다. 그러나 실패했다. 3.2.5. flexmojo를 공식 릴리스 인 3.8로 수정하면 3.2.5에서 정상적으로 빌드되었습니다. – Suresh
@Suresh : "flexmojo to 3.8". 오래된 벨로 릴리스에 대해 이야기하고 있습니까? 마지막 안정 버전은 7 번째 버전 (https://flexmojos.atlassian.net/wiki/display/FLEXMOJOS/Versions)입니다. – atao