The problem is that the web plugin hides its port setting inside the configuration. It allows you to use several containers with different port settings. However, it does not pull a port from a non-scoped key (like many plugins).
So you have to explicitly do:
port to: = 8081
On the sbt console, if you are doing an inspect tree in the task of starting the server, you will probably see somewhere that it relies on the setting of <config>:part .
I think by default you want:
port in container.Configuration := 8081
If you are in a .scala file, you may also need to include the file with Container , i.e.
import com.earldouglas.xsbtwebplugin.WebPlugin.container
I also recommend opening a feature request in a web plugin to automatically delegate the port setting to Global and specify the default there for the default web plugin.
You can simulate this yourself with these two settings:
port in container.Configuration := port in Global port in Global := 8081
Hope this helps!
source share