Search in sources :

Example 1 with MavenServerEmbedder

use of org.jetbrains.idea.maven.server.MavenServerEmbedder in project intellij-community by JetBrains.

the class MavenServerEmbedderTest method initEmbedder.

private void initEmbedder() throws RemoteException {
    if (myEmbedder != null)
        releaseEmbedder();
    myEmbedderImpl = Maven2ServerEmbedderImpl.create(MavenServerManager.convertSettings(getMavenGeneralSettings()));
    myEmbedder = new MavenEmbedderWrapper(null) {

        @NotNull
        @Override
        protected MavenServerEmbedder create() throws RemoteException {
            return myEmbedderImpl;
        }
    };
}
Also used : MavenEmbedderWrapper(org.jetbrains.idea.maven.server.MavenEmbedderWrapper) RemoteException(java.rmi.RemoteException) NotNull(org.jetbrains.annotations.NotNull) MavenServerEmbedder(org.jetbrains.idea.maven.server.MavenServerEmbedder)

Aggregations

RemoteException (java.rmi.RemoteException)1 NotNull (org.jetbrains.annotations.NotNull)1 MavenEmbedderWrapper (org.jetbrains.idea.maven.server.MavenEmbedderWrapper)1 MavenServerEmbedder (org.jetbrains.idea.maven.server.MavenServerEmbedder)1