[ 
http://jira.codehaus.org/browse/MJBOSS-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=185280#action_185280
 ] 

David Wallace Croft commented on MJBOSS-28:
-------------------------------------------

That worked, thanks.  Here is what I added to my ear POM to get "mvn clean 
install -P harddeploy" to work from the parent directory:
{code}
[...]

      <properties>
        <jboss.home>C:\jboss-portal</jboss.home>
        <harddeploy.fileName>
          ${project.build.directory}/logsim-deploy.zip
        </harddeploy.fileName>
      </properties>

[...]

      <profiles>
        <profile>
          <id>harddeploy</id>
          <build>
            <plugins>
              <plugin>
                <groupId>org.codehaus.mojo</groupId>            
                <artifactId>jboss-maven-plugin</artifactId>
                <executions>
                  <execution>
                    <phase>integration-test</phase>
                    <goals>
                      <goal>harddeploy</goal>
                    </goals>
                    <configuration>
                      <jbossHome>${jboss.home}</jbossHome>
                      <fileName>${harddeploy.fileName}</fileName>
                    </configuration>
                  </execution>
                </executions>
              </plugin>
            </plugins>
          </build>          
        </profile>
      </profiles>
{code}


> harddeploy should skip unconfigured POMs without failing
> --------------------------------------------------------
>
>                 Key: MJBOSS-28
>                 URL: http://jira.codehaus.org/browse/MJBOSS-28
>             Project: Maven 2.x JBoss Plugin
>          Issue Type: Improvement
>            Reporter: David Wallace Croft
>            Priority: Minor
>
> I would like to be able to do a clean compile and deploy to JBoss from the 
> command line like this:
> mvn clean install jboss:harddeploy
> This works if the working directory does not have 
> sub-directories/sub-modules.  If it does have sub-modules, each must also 
> have a configuration for the plug or it will fail.  I have my directory 
> structure like this, each with a POM:
> project (parent POM)
> project/war
> project/ejb
> project/ear
> The file I want to deploy is in the ear module but I would like to be able to 
> run "mvn clean install jboss:harddeploy" from the parent directory level to 
> clean compile everything and then just deploy ear module.
> Please change the harddeploy goal so that it silently skips or skips with a 
> warning any module that does not have a plugin config.  This will allow me to 
> add a plugin config to just my ear module POM but run the mvn command at the 
> parent level.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to