GlassFish v3 und glassfish-maven-plugin (Mac)

Ich versuche, die Verwendung des glassfish-maven-plugin (https://maven-glassfish-plugin.dev.java.net/) mit GlassFish v3 (ich bin auf einem Mac und mit Eclipse) und ich kann nicht scheinen, um meine web-app bereitstellen. Ich laufen in:

Das Master-Passwort ist erforderlich, um starten Sie die Domäne. Keine Konsole, keine Rückfrage möglich. Sie sollten entweder die Domäne erstellen mit --savemasterpassword=true, oder geben Sie ein Kennwort mit der Datei --passwordfile option.

Hier ist der relevante Teil meiner POM-Datei.

<profiles>
    <profile>
        <id>development</id>
        <activation>
            <property>
                <name>phase</name>
                <value>development</value>
            </property>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.glassfish.maven.plugin</groupId>
                    <artifactId>maven-glassfish-plugin</artifactId>
                    <version>2.2-SNAPSHOT</version>
                    <configuration>
                        <glassfishDirectory>${glassfish.directory}</glassfishDirectory>
                        <user>${glassfish.user}</user>
                        <passFile>${glassfish.directory}/domains/${project.artifactId}/config/domain-passwords</passFile>
                        <domain>
                            <name>${project.artifactId}</name>
                        </domain>
                        <components>
                            <component>
                                <name>${project.artifactId}</name>
                                <artifact>${project.build.directory}/artifacts/${project.artifactId}.war</artifact>
                            </component>
                        </components>
                    </configuration>
                </plugin>
            </plugins>
        </build>
        <pluginRepositories>
            <pluginRepository>
                <id>ocean</id>
                <url>http://maven.ocean.net.au/snapshot</url>
                <releases>
                    <enabled>false</enabled>
                    <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>always</updatePolicy>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>

Hier ist der start-Domäne Befehl Maven ausgeführt wird.

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 /Anwendungen/GlassFish/v3/glassfish/domains --help=false --upgrade=false --verbose=false mvnrepo

Den --passwordfile ist mithilfe einer temp-Datei, so dass ich vermute, dass ist das problem. Für einige Grund, der passFile-parameter nicht funktioniert.

Irgendwelche Ideen? Ich bin ich falsch mit meiner Annahme?

  • haben Sie sicherzustellen, dass Ihre pom-Variablen werden korrekt aufgelöst?
  • Ja, ich wollte sicherstellen, dass meine POM Variablen wurden der Lösung.
InformationsquelleAutor anthonator | 2009-12-20
Schreibe einen Kommentar