Skip to content

Commit

Permalink
Merge pull request #80 from fossas/fix/mvn-colors
Browse files Browse the repository at this point in the history
Run Maven in batch mode to turn off ANSI ctrl characters
  • Loading branch information
xizhao committed Mar 3, 2018
2 parents bfe8a33 + c77092b commit 01e3820
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- run:
name: Run integration test
command: |
# Load shell helpers (e.g. sdkman)
source /home/fossa/.bashrc
# Run tests
go test ./builders
- run:
name: Run FOSSA build
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "test/fixtures/maven"]
path = test/fixtures/maven
url = https://github.com/neo4j/neo4j
url = https://github.com/apache/hadoop
[submodule "test/fixtures/sbt"]
path = test/fixtures/sbt
url = https://github.com/apache/spark
Expand Down
2 changes: 1 addition & 1 deletion builders/maven.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (builder *MavenBuilder) Analyze(m module.Module, allowUnresolved bool) ([]m
func (builder *MavenBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error) {
mavenLogger.Debugf("Checking Maven build: %#v %#v", m, allowUnresolved)

output, _, err := runLogged(mavenLogger, m.Dir, builder.MvnCmd, "dependency:list")
output, _, err := runLogged(mavenLogger, m.Dir, builder.MvnCmd, "dependency:list", "-B")
if err != nil {
if strings.Index(output, "Could not find artifact") != -1 {
return false, nil
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/maven
Submodule maven updated from 4fe03c to ac0538

0 comments on commit 01e3820

Please sign in to comment.