Skip to content
Ralph Schaer edited this page Mar 21, 2018 · 16 revisions

Migration from ExtDirectSpring 1.3.x to Ext Class Generator 2.0.x

  • Add annotation dependency to the project

      <dependency>
      	<groupId>ch.rasc</groupId>
          <artifactId>extclassgenerator-annotations</artifactId>
          <version>1.0.10</version>		  
      </dependency>
    
  • Replace import statements

    Replace import ch.ralscha.extdirectspring.generator.Model; with import ch.rasc.extclassgenerator.Model;

    Replace import ch.ralscha.extdirectspring.generator.ModelField; with import ch.rasc.extclassgenerator.ModelField;

  • Change processor class from <processor>ch.ralscha.extdirectspring.generator.ModelAnnotationProcessor</processor> to <processor>ch.rasc.extclassgenerator.ModelAnnotationProcessor</processor> and add generator dependency to the apt-maven-plugin plugin

	<dependency>
		<groupId>ch.rasc</groupId>
		<artifactId>extclassgenerator</artifactId>
		<version>2.0.0</version>
	</dependency>

Complete apt-maven-plugin example:

	<plugin>
		<groupId>com.mysema.maven</groupId>
		<artifactId>apt-maven-plugin</artifactId>
		<version>1.1.2</version>
		<executions>
			<execution>
				<id>modelgen</id>
				<goals>
					<goal>process</goal>
				</goals>
				<configuration>
					<processor>ch.rasc.extclassgenerator.ModelAnnotationProcessor</processor>
					<outputDirectory>src/main/webapp/app</outputDirectory>
					<options>
						<debug>true</debug>
						<outputFormat>extjs4</outputFormat>
						<surroundApiWithQuotes>true</surroundApiWithQuotes>
					</options>
				</configuration>
			</execution>
		</executions>
		<dependencies>
			<dependency>
				<groupId>ch.rasc</groupId>
				<artifactId>extclassgenerator</artifactId>
				<version>2.0.0</version>			  
			</dependency>				
		</dependencies>
	</plugin>

Clone this wiki locally