Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Avoid providing Mantis server's authentication settings directly in the pom.xml but prefer settings.xml #10

Open
ghusta opened this issue Nov 11, 2012 · 3 comments

Comments

@ghusta
Copy link
Owner

ghusta commented Nov 11, 2012

Instead of providing username and password data directly to the pom.xml in the plugin configuration, we can configure the server section of settings.xml.
See http://maven.apache.org/settings.html#Servers

The repositories for download and deployment are defined by the repositories and distributionManagement elements of the POM. However, certain settings such as username and password should not be distributed along with the pom.xml. This type of information should exist on the build server in the settings.xml.

@ghusta
Copy link
Owner Author

ghusta commented Nov 11, 2012

Example : Tomcat Maven Plugin - usage
Paragraph "Using different Tomcat manager authentication details"
Configuration :

  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>tomcat-maven-plugin</artifactId>
    <version>1.2-SNAPSHOT</version>
    <configuration>
      <server>myserver</server>
    </configuration>
  </plugin>

@chupetoide
Copy link

Hi @ghusta, I forked your project and implemented this feature. I also moved the URL and projectName to the configuration section on the plugin:

<plugin>
	<groupId>fr.husta.maven.plugin</groupId>
	<artifactId>mantis-maven-plugin</artifactId>
	<version>0.2-SNAPSHOT</version>
	<configuration>
		<server>bt</server>
		<url>http://10.1.1.153/btora/</url>
		<projectName>Identicum - IRM</projectName>
	</configuration>
</plugin>

If you are still interested on this issue I can post a pull request to merge my changes.

Regards

@ghusta
Copy link
Owner Author

ghusta commented Jan 11, 2017

Hello.
I don't really maintain this project anymore, but feel free to fork it and adapt it to your needs.
I'm glad it could be useful and serve as a start to anyone !

Regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants