title: GlassFish v3 and glassfish-maven-plugin (Mac)
body: <p>I'm trying to use the glassfish-maven-plugin (<a href="https://maven-glassfish-plugin.dev.java.net/" rel="noreferrer">https://maven-glassfish-plugin.dev.java.net/</a>) with GlassFish v3 (I'm on a Mac and using Eclipse) and I can't seem to get my web app to deploy. I keep running into:</p>
  
  <blockquote>
    <p>The Master Password is required to start the domain.  No console, no prompting possible.  You should either create the domain with --savemasterpassword=true or provide a password file with the --passwordfile option.</p>
  </blockquote>
  
  <p>Here is the relevant portion of my POM file.</p>
  
  <pre><code>&lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;development&lt;/id&gt;
          &lt;activation&gt;
              &lt;property&gt;
                  &lt;name&gt;phase&lt;/name&gt;
                  &lt;value&gt;development&lt;/value&gt;
              &lt;/property&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.glassfish.maven.plugin&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-glassfish-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.2-SNAPSHOT&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;glassfishDirectory&gt;${glassfish.directory}&lt;/glassfishDirectory&gt;
                          &lt;user&gt;${glassfish.user}&lt;/user&gt;
                          &lt;passFile&gt;${glassfish.directory}/domains/${project.artifactId}/config/domain-passwords&lt;/passFile&gt;
                          &lt;domain&gt;
                              &lt;name&gt;${project.artifactId}&lt;/name&gt;
                          &lt;/domain&gt;
                          &lt;components&gt;
                              &lt;component&gt;
                                  &lt;name&gt;${project.artifactId}&lt;/name&gt;
                                  &lt;artifact&gt;${project.build.directory}/artifacts/${project.artifactId}.war&lt;/artifact&gt;
                              &lt;/component&gt;
                          &lt;/components&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
          &lt;pluginRepositories&gt;
              &lt;pluginRepository&gt;
                  &lt;id&gt;ocean&lt;/id&gt;
                  &lt;url&gt;http://maven.ocean.net.au/snapshot&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/pluginRepository&gt;
          &lt;/pluginRepositories&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  </code></pre>
  
  <p>Here is the start-domain command Maven is executing.</p>
  
  <blockquote>
    <p>asadmin --host localhost --port 4848 --user admin --passwordfile /var/folders/sk/skcc8rAVGSynOBBaOwWN3U+++TI/-Tmp-/mgfp5377058868244877698.tmp --interactive=false --echo=true --terse=true start-domain --debug=false --domaindir /Applications/GlassFish/v3/glassfish/domains --help=false --upgrade=false --verbose=false mvnrepo</p>
  </blockquote>
  
  <p>The --passwordfile is using a temp file so I'm guessing that is the problem. For some reason the passFile parameter isn't working.</p>
  
  <p>Any ideas? I'm I wrong with my assumption?</p>