[GLASSFISH-14411] Maven Glassfish plugin does not work with Maven 3 Created: 04/Nov/10  Updated: 12/Nov/12

Status: Open
Project: glassfish
Component/s: other
Affects Version/s: v3.0.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Vetle Leinonen-Roeim Assignee: Bhavanishankar
Resolution: Unresolved Votes: 8
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows 7
Platform: All
URL: http://jira.codehaus.org/browse/MNG-4843


Issuezilla Id: 14,411
Tags: 3_1-exclude

 Description   

The Maven Glassfish plugin for deployment and starting/stopping Glassfish does
not work with Maven 3, as the dependencies are configured incorrectly.

More information here: http://jira.codehaus.org/browse/MNG-4843



 Comments   
Comment by Alexis MP [ 04/Nov/10 ]

cc

Comment by Alexis MP [ 04/Nov/10 ]

adding a few relevant folks

Comment by dochez [ 08/Nov/10 ]

reassigning to bhavani for evaluation.

Comment by arungupta [ 17/Nov/10 ]

Adding myself

Comment by Nazrul [ 22/Dec/10 ]

This is more like an RFE. Lets consider this during 3.2.

Comment by kevinpauli [ 17/Jun/11 ]

Until the fix is made, is there any known workaround for this issue?

Comment by lfischer [ 18/Aug/11 ]

I'm also interested in a workaround.

Comment by Peter Butkovic [ 12/Nov/12 ]

I've found this place while answering one of stack overflow questions: http://stackoverflow.com/questions/13138383/maven-glassfish-plugin-in-maven-3-0-4/13339268#13339268

As you might find it useful too, posting workaround also here (as suggested here: http://jira.codehaus.org/browse/MNG-4843 you should override the plugin dependencies in your project with proper versions.):

<build>
    <plugins>
        <plugin>
            <groupId>org.glassfish.maven.plugin</groupId>
            <artifactId>maven-glassfish-plugin</artifactId>
            <version>2.1</version>
...           
        </plugin>
    </plugins>
</build>
<dependencies>
    <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-project</artifactId>
        <version>3.0-alpha-2</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>3.0.4</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-artifact</artifactId>
        <version>3.0.4</version>
        <scope>provided</scope>
    </dependency>
</dependencies>
Generated at Wed May 06 06:55:38 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.