Can't compile widgetset witn v8.7.0

I get this error.
The requested profile “compileWidgetset” could not be activated because it does not exist.
[ERROR]
Failed to execute goal com.vaadin:vaadin-maven-plugin:8.7.0:compile (default) on project dashboard: GWT Module com.vaadin.v7.Vaadin7WidgetSet not found in project sources or resources.

I know I’m missing something that’s probably obvious but I can’t find what’s missing/incorrect. Any help would be appreciated. UI and POM are below.

Here is the UI
public class DashboardUI extends CustomUI implements LogInListener {
/**
*
*/
private static final long serialVersionUID = 1L;

private static final Logger LOGGER = Logger.getLogger(DashboardUI.class.getName());

@WebServlet(urlPatterns = "/*", name = "DashboardServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = DashboardUI.class, productionMode = false, closeIdleSessions = false, widgetset= "com.parent.project.dashboard.DashboardUI") 
@Widgetset("com.vaadin.v7.Vaadin7WidgetSet") 
public static class DashboardServlet extends VaadinServlet  {
	private static final long serialVersionUID = 1L;


	
 

}

@Override
public void logInSuccessful(String sessionId) {
	super.logInSuccessful(sessionId);
	layout = new DashboardView();
	setContent(layout);
	layout.init(username, session, username, this);

}

}

Here is my POM:

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


4.0.0

<parent>
	<groupId>com.wunderman</groupId>
	<artifactId>kosmos5</artifactId>
	<version>1.0-SNAPSHOT</version>
</parent>

<groupId>com.parent.project</groupId>
<artifactId>dashboard</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>

<prerequisites>
	<maven>3</maven>
</prerequisites>



<repositories>
	<repository>
		<id>vaadin-addons</id>
		<url>http://maven.vaadin.com/vaadin-addons</url>
	</repository>
</repositories>

<dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>com.vaadin</groupId>
			<artifactId>vaadin-bom</artifactId>
			<version>${vaadin.version}</version>
			<type>pom</type>
			<scope>import</scope>
		</dependency>
	</dependencies>
</dependencyManagement>

<dependencies>
	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>javax.servlet-api</artifactId>
		<!-- <version>3.0.1</version> -->
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-server</artifactId>
		<!-- <version>8.7.0</version> -->
	</dependency>
	<dependency>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-push</artifactId>
	</dependency>
	<dependency>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-client-compiled</artifactId>
	</dependency>
	<dependency>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-client</artifactId>
			<version>${vaadin.version}</version>
	</dependency>
	<dependency>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-themes</artifactId>
	</dependency>
	<dependency>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-shared</artifactId>
	</dependency>


	<!-- addons -->
	<dependency>
		<groupId>org.vaadin.addons</groupId>
		<artifactId>dragdroplayouts</artifactId>
	</dependency>
	<dependency>
		<groupId>org.vaadin.haijian</groupId>
		<artifactId>exporter</artifactId>
	</dependency>
	<dependency>
		<groupId>org.vaadin.addons</groupId>
		<artifactId>window-header-extension</artifactId>
	</dependency>
	<dependency>
		<groupId>com.vaadin.addon</groupId>
		<artifactId>pagination</artifactId>
	</dependency>
	<!-- end addons -->

	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi-ooxml</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.poi</groupId>
		<artifactId>poi</artifactId>
	</dependency>
	


	<dependency>
		<groupId>com.parent.project</groupId>
		<artifactId>DAO</artifactId>
	</dependency>

</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-war-plugin</artifactId>
			<version>3.2.0</version>
			<configuration>
				<failOnMissingWebXml>false</failOnMissingWebXml>
				<!-- Exclude an unnecessary file generated by the GWT compiler. -->
				<packagingExcludes>WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes>
			</configuration>
		</plugin>
		<plugin>
			<groupId>com.vaadin</groupId>
			<artifactId>vaadin-maven-plugin</artifactId>
			<version>${vaadin.plugin.version}</version>
			
			<executions>
				<execution>
					<goals>
						<goal>update-theme</goal>
						<goal>update-widgetset</goal>
						<goal>compile</goal>
						<!-- Comment out compile-theme goal to use on-the-fly theme compilation -->
						<!-- <goal>compile-theme</goal> -->
					</goals>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-clean-plugin</artifactId>
			<version>3.0.0</version>
			<!-- Clean up also any pre-compiled themes -->
			<configuration>
				<filesets>
					<fileset>
						<directory>src/main/webapp/VAADIN/themes</directory>
						<includes>
							<include>**/styles.css</include>
							<include>**/styles.scss.cache</include>
						</includes>
					</fileset>
				</filesets>
			</configuration>
		</plugin>

		<!-- The Jetty plugin allows us to easily test the development build by 
			running jetty:run on the command line. -->
		<plugin>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-maven-plugin</artifactId>
			<version>${jetty.plugin.version}</version>
			<configuration>
				<scanIntervalSeconds>2</scanIntervalSeconds>
			</configuration>
		</plugin>
	</plugins>
</build>

<profiles>
	<profile>
		<!-- Vaadin pre-release repositories -->
		<id>vaadin-prerelease</id>
		<activation>
			<activeByDefault>false</activeByDefault>
		</activation>

		<repositories>
			<repository>
				<id>vaadin-prereleases</id>
				<url>http://maven.vaadin.com/vaadin-prereleases</url>
			</repository>
			<repository>
				<id>vaadin-snapshots</id>
				<url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
				<releases>
					<enabled>false</enabled>
				</releases>
				<snapshots>
					<enabled>true</enabled>
				</snapshots>
			</repository>
		</repositories>
		<pluginRepositories>
			<pluginRepository>
				<id>vaadin-prereleases</id>
				<url>http://maven.vaadin.com/vaadin-prereleases</url>
			</pluginRepository>
			<pluginRepository>
				<id>vaadin-snapshots</id>
				<url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
				<releases>
					<enabled>false</enabled>
				</releases>
				<snapshots>
					<enabled>true</enabled>
				</snapshots>
			</pluginRepository>
		</pluginRepositories>
	</profile>
</profiles>

Hi,

you are using the widgetset @Widgetset(“com.vaadin.v7.Vaadin7WidgetSet”), i.e. the Vaadin 7 compatibility package for Vaadin 8. For this to work, you need to have the correct dependencies in the pom.xml. You need to change the vaadin-server, vaadin-client, etc. to vaadin-compatibility-server, vaadin-compatibility-client, etc. See more detailed instructions for migration and the dependency changes needed in [here in the documentation]
(https://vaadin.com/docs/v8/framework/migration/migrating-to-vaadin8.html).

If you have a custom widgetset, you need to inherit the com.vaadin.v7.Vaadin7WidgetSet widgetset instead of the default Vaadin 8 one. It is set in your widgetset file like this : <inherits name="com.vaadin.v7.Vaadin7WidgetSet" />.

Best,

Katri

Thanks. I don’t know why it wants to use that widgetset. I think it might be an addon. I tried compatibility mode and it worked.