Skip to content

Commit

Permalink
#59 fixed dependency resolution for mvn-golang:vet
Browse files Browse the repository at this point in the history
  • Loading branch information
raydac committed Jun 14, 2019
1 parent 43afde3 commit 84e7e2e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# __2.3.2 SNAPSHOT__
- fixed `mvn-golang:vet does not have maven dependency resolution` [#59](https://github.com/raydac/mvn-golang/issues/59)
- default version of GoSDK updated to 1.12.6

# __2.3.1 (14-apr-2019)__
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Changelog
__2.3.2 SNAPSHOT__
- fixed `mvn-golang:vet does not have maven dependency resolution` [#59](https://github.com/raydac/mvn-golang/issues/59)
- default version of GoSDK updated to 1.12.6

__2.3.1 (14-apr-2019)__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,27 @@
<goVersion>${go.sdk.version}</goVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
<configuration>
<env>
<GO111MODULE>off</GO111MODULE>
</env>
<packages>
<package>main.go</package>
</packages>
</configuration>
</execution>
</executions>
<execution>
<id>do-vet</id>
<goals>
<goal>vet</goal>
</goals>
</execution>
<execution>
<id>do-run</id>
<goals>
<goal>run</goal>
</goals>
<configuration>
<env>
<GO111MODULE>off</GO111MODULE>
</env>
<packages>
<package>main.go</package>
</packages>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
/**
* The Mojo wraps the 'vet' command.
*/
@Mojo(name = "vet", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true, requiresDependencyResolution = ResolutionScope.NONE)
public class GolangVetMojo extends AbstractGoPackageAwareMojo {
@Mojo(name = "vet", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME)
public class GolangVetMojo extends AbstractGoPackageAndDependencyAwareMojo {

@Override
@Nullable
Expand Down

0 comments on commit 84e7e2e

Please sign in to comment.