Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 857897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:28:14+00:00 2026-05-15T08:28:14+00:00

I used maven-glassfish-plugin create a new domain but file isn’t existed master-password? Why? Command

  • 0

I used maven-glassfish-plugin create a new domain but file isn’t existed master-password? Why? Command is glassfish:start-domain. My pom.xml declares the following:

   <build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.1</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>utf-8</encoding>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.glassfish.maven.plugin</groupId>
            <artifactId>maven-glassfish-plugin</artifactId>
            <version>2.2-SNAPSHOT</version>
            <configuration>
                <glassfishDirectory>${glassfish.home}</glassfishDirectory>
                <user>${domain.username}</user>
                <passwordFile>${glassfish.home}/domains/${project.artifactId}/master-password</passwordFile>    

                <debug>true</debug>
                <echo>true</echo>
                <domain>
                    <name>${project.artifactId}</name>
                    <adminPort>4848</adminPort> <!-- mandatory for mvn glassfish:deploy -->
                </domain>
                <components>
                    <component>
                        <name>${project.artifactId}</name>
                        <artifact>${project.build.directory}/${project.build.finalName}.war</artifact>
                    </component>
                </components>
            </configuration>
        </plugin>
    </plugins>
    <finalName>SSH2Maven</finalName>
</build>

The exception is : IoException

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:28:15+00:00Added an answer on May 15, 2026 at 8:28 am

    I’m not sure the glassfish plugin can persist the master password in a file when creating a domain.

    But you can do this on the command line:

    $ asadmin change-master-password --savemasterpassword=true my-domain
    Please enter the new master password>
    Please enter the new master password again>
    Master password changed for domain my-domain
    

    The important part is the --savemasterpassword=true (put the generated file wherever you want).

    For reference, you can also do this when creating a domain on the command line:

    $ asadmin create-domain --savemasterpassword=true my-domain
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a used the maven assembly plugin to create multiple jar from one
I used the hibernate3-maven-plugin to automatically create a SQL script I can use to
New to Maven. Ok so I used Maven to package up my project, but
I have used Maven extensively for my personal projects, but now I have to
Note: I'm just getting started with Jenkins plugin development and have never used maven
I have used YUI maven plugin to compress css and js when building war
I have used the maven plugin axistools-maven-plugin in version 1.4 for many projects to
I used Maven before in quite a few projects but they we already configured
I have used maven plugin for hibernate and it has generated entity classes without
I have successfully used hibernate3-maven-plugin with Hibernate-Core and EntityManager 3.6.6-FINAL, hibernate-commons-annotations-3.2.0.Final, hibernate-jpa-2.0-api-1.0.1.Final and hibernate-validator-4.0.0.GA

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.