Inside the tag put the default to fix the errors
<build>compile</build>
Inside the tag put the default to fix the errors
<build>compile</build>
You are missing one of the plugins in your POM.xml just add the following plugins
and you mvn clean install
Add the Surface Plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
package com.company; | |
import javax.xml.bind.annotation.XmlElement; | |
import javax.xml.bind.annotation.XmlRootElement; | |
@XmlRootElement(name="airline") | |
public class Airline { | |
private String airlineName; | |
private int seatsAvailable; |
package com.company; | |
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by FernFlower decompiler) | |
// | |
import com.alibaba.fastjson.JSON; | |
import com.fasterxml.jackson.core.JsonGenerationException; | |
import com.fasterxml.jackson.databind.JsonMappingException; |
package com.company; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.xml.bind.annotation.XmlElement; | |
import javax.xml.bind.annotation.XmlRootElement; | |
@XmlRootElement(name ="products") |