functions-framework-java icon indicating copy to clipboard operation
functions-framework-java copied to clipboard

Port option no take in account with maven plugin

Open fb64 opened this issue 5 years ago • 2 comments

Set port option in pom.xml file or in command line has no effect on function:run maven target. Invoker start always on 8080 port

<plugin>
    <groupId>com.google.cloud.functions</groupId>
    <artifactId>function-maven-plugin</artifactId>
    <version>0.9.4</version>
        <configuration>
            <functionTarget>myTarget</functionTarget>
            <port>9090</port>
        </configuration>
</plugin>
 com.google.cloud.functions:function-maven-plugin:0.9.4:run  -Drun.functionTarget=myTarget -Drun.port=9090

fb64 avatar Sep 03 '20 13:09 fb64

Same for me. I'm working on a bugfix right now.

torbenmoeller avatar Sep 17 '20 21:09 torbenmoeller

It's actually already fixed in the current version. However, the code hasn't been released as maven plugin yet.

torbenmoeller avatar Sep 20 '20 21:09 torbenmoeller

There have been several releases since the last comment here: https://central.sonatype.com/artifact/com.google.cloud.functions/function-maven-plugin/0.10.1?smo=true so I'm going to close this as fixed.

josephlewis42 avatar Apr 06 '23 20:04 josephlewis42