<?xml version="1.0" encoding="UTF-8"?>
<settings>
	<servers>
		<server>
			<id>ossrh</id>
			<username>${env.SONATYPE_USERNAME}</username>
			<password>${env.SONATYPE_PASSWORD}</password>
		</server>
	
		<profiles>
			<profile>
				<id>ossrh</id>
				<activation>
					<activeByDefault>true</activeByDefault>
				</activation>
				<properties>
					<gpg.executable>gpg</gpg.executable>
					<gpg.keyname>${env.GPG_KEY_NAME}</gpg.keyname>
					<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
				</properties>
			</profile>
		</profiles>
		
	</servers>
</settings>

<?xml version="1.0" encoding="UTF-8"?>
<settings>
	<servers>
		<server>
			<id>ossrh</id>
			<username>${env.SONATYPE_USERNAME}</username>
			<password>${env.SONATYPE_PASSWORD}</password>
		</server>
	</servers>

	<profiles>
		<profile>
			<id>ossrh</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<gpg.executable>gpg</gpg.executable>
				<gpg.keyname>${env.GPG_KEY_NAME}</gpg.keyname>
				<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
			</properties>
		</profile>
	</profiles>
</settings>

Fix maven setting file because profiles was inside servers tag.
Fix maven setting file because profiles was inside servers tag.
