title: How do I install a test-jar in maven?
body: <p>I have a test-jar which I would like to install. I am not sure if there is a different way to install test-jars, such as defining a property that tells maven it is a test-jar.</p>
  
  <p>Also, the groupId and artifactId are the same as another jar for which the test is made from.</p>
  
  <p>So far this is how my install command looks like:</p>
  
  <pre><code>mvn install:install-file -DgroupId=com.example -DartifactId=example -Dpackaging=jar -Dversion=1.2.3 -Dfile=example-test.jar -DgeneratePom=true
  </code></pre>
  
  <p>So how exactly would I install a test jar? I know there has to be something to tell maven it is a test-jar since the groupId and artifactId is the same as another jar(which would be the jar that example-test.jar is a test of).</p>