jetty-project / jetty-alpn-agent

Enables Jetty ALPN/NPN support via -javaagent JVM option
Apache License 2.0
47 stars 16 forks source link

Don`t work with Lagom + Maven #12

Closed mgolovatiy-atconsulting-ru closed 5 years ago

mgolovatiy-atconsulting-ru commented 5 years ago

It seems, agent is not downloaded when Lagom-maven-plugin is used (lagom:runAll task).

      <plugin>
        <groupId>com.lightbend.lagom</groupId>
        <artifactId>lagom-maven-plugin</artifactId>
        <configuration>
          <lagomService>true</lagomService>
          <serviceEnableSsl>true</serviceEnableSsl>
          <serviceHttpsPort>30443</serviceHttpsPort>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.1.1</version>
        <executions>
          <execution>
            <id>get-jetty-alpn-agent</id>
            <phase>validate</phase>
            <goals>
              <goal>get</goal>
            </goals>
            <configuration>
              <groupId>org.mortbay.jetty.alpn</groupId>
              <artifactId>jetty-alpn-agent</artifactId>
              <version>${jetty.alpn.agent.version}</version>
            </configuration>
          </execution>
          <execution>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.0.0-M1</version>
        <configuration>
          <argLine>
            -Dconfig.file=${project.basedir}/src/test/resources/application.test.conf -javaagent:${jetty.alpn.agent.path}
          </argLine>
          <useSystemClassLoader>false</useSystemClassLoader>
        </configuration>
      </plugin>

Check:

 jps -mlv
sbordet commented 5 years ago

It seems, agent is not downloaded

I don't understand what we can do about this? You should report a problem to the lagom-maven-plugin, or double check your internet connection.