[ 
http://jira.codehaus.org/browse/MWAR-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203061#action_203061
 ] 

Eric Smalling commented on MWAR-121:
------------------------------------

FYI: We've found that if you add a classifier to the jar that causes the 
filename to differ from the .war file, the install:install step will grab both 
and not exhibt the issue described here.

i.e. 

                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>my-web-jar</id>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>jar</goal>
                                                </goals>
                                                <configuration>
                                                        
<classifier>something</classifier>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>


(Although a better solution is to refactor your jar content into a "common" 
module though)

> Maven-war-plugin not installing war. Installs ".jar" and renames it to ".war"
> -----------------------------------------------------------------------------
>
>                 Key: MWAR-121
>                 URL: http://jira.codehaus.org/browse/MWAR-121
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>         Environment: Windows XP
> Maven  2.0.7
> JDK 1.5.0_10
>            Reporter: Dave Rathnow
>            Assignee: Stephane Nicoll
>         Attachments: war.zip
>
>
> I'm trying to use the maven-war-plugin to install a war into my local 
> repository.  "mvn clean install" runs fine and completes succesfully.  If I 
> look under the target" directory in the project folder, there is, amoung 
> other things, a .jar and .war file.  Both have been built properly.  However, 
> if I look in my local repository, there is a .war file but when I open it, it 
> is actually the .jar file renamed  to .war.
> The attached zip file contains the pom for the project, the parent pom and 
> the output from the command "mvn clean install -X > output.log"

-- 
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

        

Reply via email to