Can't mvn install when using source and target option 1.6 in pom.xml

To make my URCap able to run in cb3, I changed the source and target option in pom.xml from 1.7 to 1.6, and the dependency version from 1.12.0 to 1.8.0. Now It can be opened by the UrCap, but it gives a new error:

The new pom.xml is:

<configuration>
	<source>1.6</source>
	<target>1.6</target>
</configuration>

<dependency>
	<version>1.8.0</version>
</dependency>

Error, after pom.xml update:
image

Then I tried running ‘mvn clean install’, including clean. Now maven stops being able to build the URCap at all: the terminal provides the following error:
[ERROR] Source option 6 is no longer supported. Use 7 or later.
[ERROR] Target option 6 is no longer supported. Use 7 or later.

Question:
I am not able to run maven when the source and target option is set, I change it to 1.6 to make it work for cb3. What should I do to fix this error? Or have I mabey changed anything that should not be changed in the pom.xml?