java - AspectJ Maven Plugin cannot compile my project -
java - AspectJ Maven Plugin cannot compile my project -
i seek utilize aspectj maven plugin compile project aspectj compiler , seek bundle classes "war" file. unfortunately, doesn't work next configuration (pom.xml):
<build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <version>2.17</version> <configuration> <skiptests>true</skiptests> </configuration> </plugin> <plugin> <groupid>com.liferay.maven.plugins</groupid> <artifactid>liferay-maven-plugin</artifactid> <version>${liferay.maven.plugin.version}</version> <executions> <execution> <phase>generate-sources</phase> </execution> </executions> <configuration> <autodeploydir>${liferay.auto.deploy.dir}</autodeploydir> <appserverdeploydir>${liferay.app.server.deploy.dir}</appserverdeploydir> <appserverlibglobaldir>${liferay.app.server.lib.global.dir}</appserverlibglobaldir> <appserverportaldir>${liferay.app.server.portal.dir}</appserverportaldir> <liferayversion>${liferay.version}</liferayversion> <plugintype>portlet</plugintype> </configuration> </plugin> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>2.5</version> <configuration> <encoding>utf-8</encoding> <source>1.7</source> <target>1.7</target> <showwarnings>true</showwarnings> <failonerror>true</failonerror> </configuration> </plugin> <plugin> <artifactid>maven-resources-plugin</artifactid> <version>2.5</version> <configuration> <encoding>utf-8</encoding> </configuration> </plugin> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>aspectj-maven-plugin</artifactid> <version>1.7</version> <configuration> <source>1.7</source> <target>1.7</target> <compilationlevel>1.7</compilationlevel> <encoding>utf-8</encoding> </configuration> <executions> <execution> <phase>process-sources</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependency> <groupid>org.aspectj</groupid> <artifactid>aspectjrt</artifactid> <version>1.7.4</version> <type>jar</type> </dependency>
after mvn clean install
see next exceptions:
[info] --- aspectj-maven-plugin:1.7:compile (default) @ tvbs-portlet --- [info] showing ajc message detail messages of types: [error, warning, fail] [error] missing message: configure.incompatiblecomplianceforsource in: org.aspectj.ajdt.ajc.messages <unknown source file>:<no line information> [error] no sources specified <unknown source file>:<no line information> [error] aspectj compiler 1.8.2 usage: <options> <source file | @argfile>.. aspectj-specific options: -inpath <list> utilize classes in dirs , jars/zips in <list> source
could suggest me solution?
it seems known issue http://jira.codehaus.org/browse/maspectj-125
you can prepare adding next pom file.
<compliancelevel>1.6</compliancelevel>
java maven java-ee aspectj
Comments
Post a Comment