Skip to content

Commit 0b2812b

Browse files
fix package name
1 parent 73cd105 commit 0b2812b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mavenPush.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
print( p[1] )
3232
raise( "build failed" )
3333

34-
def build_metadata_xml(path, groupid, artifactid):
34+
def build_metadata_xml(path, artifactid):
35+
groupid = os.path.split(path)[1]
3536
xml = '<metadata>'
3637
xml += '<groupId>org.%s</groupId>' % (groupid,)
3738
xml += '<artifactId>%s</artifactId>' % (artifactid,)
3839
xml += '<versioning><versions>'
39-
print( "listing versions in %s" % (path,) )
40+
4041
entries = os.listdir(path)
4142
for entry in entries:
4243
if os.path.isdir(os.path.join(path, entry)):
@@ -72,7 +73,7 @@ def go( pkgName, shortName , longName ):
7273
out.close()
7374

7475
out = open( os.path.join(os.path.split(dir)[0], "maven-metadata.xml") , 'w' )
75-
out.write( build_metadata_xml(os.path.split(dir)[0], shortName, longName) )
76+
out.write( build_metadata_xml(os.path.split(dir)[0], longName) )
7677
out.close()
7778

7879
go( "/org/mongodb/" , "mongo" , "mongo-java-driver" )

0 commit comments

Comments
 (0)