flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject AW: Help proofreading Maven documentation
Date Wed, 29 Apr 2015 20:18:45 GMT
Please stick to version 7.1.0-SNAPSHOT for now as this is the one I'm writing the documentation
for. I put an enormous amount of effort into making Flexmojos work with Maven versions above
3.0 and changes to Aether were some of the major changes I had to deal with. So please try
the 7.1.0-SNAPSHOT.

Chris


-----Urspr√ľngliche Nachricht-----
Von: lynwall [mailto:lyn.wall@kbmg.com] 
Gesendet: Mittwoch, 29. April 2015 18:47
An: users@flex.apache.org
Betreff: Re: Help proofreading Maven documentation

Hi Chris 

I get this error trying to build my war, based on the instructions at https://cwiki.apache.org/confluence/display/FLEX/Your+first+Flex+multi-module+project.
Thanks in advance for your help.

This is the error:
[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:copy-flex-resources (default) on project war:
Execution default of goal net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:copy-flex-resources
failed:
An API incompatibility was encountered while executing
net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:copy-flex-resources:
java.lang.NoSuchMethodError:
org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;
[ERROR] -----------------------------------------------------
[ERROR] realm =   
extension>net.flexmojos.oss:flexmojos-maven-plugin:7.0.1-50681597
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

And here is the war pom:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<properties>
		<flexmojos.version>7.0.1</flexmojos.version>
		<flex.version>4.14.1</flex.version>
		<flash.version>16.0</flash.version>
		<kosmos.version>4.0.1-SNAPSHOT</kosmos.version>
		<application>application</application>
	</properties>
	<parent>
		<artifactId>MyProjectMain</artifactId>
		<groupId>com.company.project</groupId>
		<version>4.0.1-SNAPSHOT</version>
	</parent>
	<artifactId>war</artifactId>
	<packaging>war</packaging>
	<properties>
		<swf>swf-1.0.0-SNAPSHOT</swf>
		<width>100%</width>
		<height>100%</height>
		<title>MyProject</title>
		<useBrowserHistory>true</useBrowserHistory>

		<expressInstallSwf>expressInstall.swf</expressInstallSwf>
		<application>application</application>
	</properties>
	<build>
		<plugins>
			<plugin>
				<groupId>net.flexmojos.oss</groupId>
				<artifactId>flexmojos-maven-plugin</artifactId>
				<version>${flexmojos.version}</version>
				<executions>
					<execution>
						<goals>
							<goal>copy-flex-resources</goal>
						</goals>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>org.apache.flex</groupId>
						<artifactId>compiler</artifactId>
						<version>${flex.version}</version>
						<type>pom</type>
					</dependency>
				</dependencies>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.4</version>
				<configuration>
					<overlays>
						<overlay>
							<groupId>org.apache.flex.wrapper
							</groupId>
							<artifactId>swfobject</artifactId>
							<type>war</type>
							<filtered>true</filtered>
						</overlay>
					</overlays>
				</configuration>
				<dependencies>
				<dependency>
			<groupId>org.apache.flex.wrapper</groupId>
			<artifactId>swfobject</artifactId>
			<version>${flex.version}</version>
			<type>war</type>
			<scope>runtime</scope>
		</dependency>
				</dependencies>
			</plugin>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<version>6.1.17</version>
			</plugin>
		</plugins>
			<pluginManagement>
			<plugins>
				
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>net.flexmojos.oss</groupId>
										<artifactId>
											flexmojos-maven-plugin
										</artifactId>
										<versionRange>[7.0.0,)</versionRange>
										<goals>
											<goal>copy-flex-resources</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<dependencies>
		<dependency>
			<groupId>com.company.project</groupId>
			<artifactId>swf</artifactId>
			<version>${project.version}</version>
			<type>swf</type>
		</dependency>
		<dependency>
			<groupId>org.apache.flex.wrapper</groupId>
			<artifactId>swfobject</artifactId>
			<version>${flex.version}</version>
			<type>pom</type>
			<scope>runtime</scope>
		</dependency>

	</dependencies>

</project>



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Help-proofreading-Maven-documentation-tp10169p10227.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message