Browse Source

Fix passing repo id to archetype generation function

Change-Id: Ida6871265aa3ca313960b0bca9c451f9f5f19151
tags/7.6.0.alpha3
Teemu Suo-Anttila 9 years ago
parent
commit
43a0e91b11
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/BuildArchetypes.py

+ 2
- 2
scripts/BuildArchetypes.py View File

@@ -36,7 +36,7 @@ args = None
## BUILDING METHODS ##

# Generates and modifies a maven pom file
def generateArchetype(archetype, artifactId):
def generateArchetype(archetype, artifactId, repo):
# Generate the required command line for archetype generation
cmd = [mavenCmd, "archetype:generate"]
cmd.append("-DarchetypeGroupId=%s" % (archetypeGroup))
@@ -75,7 +75,7 @@ if __name__ == "__main__":
artifactId = "test-%s-%s" % (archetype, args.version.replace(".", "-"))
try:
log = getLogFile(archetype)
generateArchetype(archetype, artifactId)
generateArchetype(archetype, artifactId, args.repo)
updateRepositories(artifactId)
mavenValidate(artifactId, logFile=log)
warFiles = copyWarFiles(artifactId, name=archetype)

Loading…
Cancel
Save