You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Ralf Eichinger <ra...@pixotec.de> on 2010/12/15 17:22:14 UTC
trunk mvn install of WAR fails
when I checked out apache-roller (trunk) and did a "mvn install" the build
failed during assembling of the WAR:
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[roller-weblogger-webapp] in
[/home/ralf/Desktop/WORKSPACES/Workspace-DataZuul/apache-roller-project/weblogger-webapp/target/roller]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.plugin.war.util.WebappStructure.getDependencies(WebappStructure.java:109)
at
org.apache.maven.plugin.war.util.WebappStructure.analyseDependencies(WebappStructure.java:288)
I fixed this by adding the version number for plugin maven-war-plugin in
pom.xml of weblogger-webapp:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<archiveClasses>true</archiveClasses>
</configuration>
</plugin>
Please fix this in trunk.
I will post more patches in the next time... saw already some translation
errors...
--
View this message in context: http://old.nabble.com/trunk-mvn-install-of-WAR-fails-tp30465374s12275p30465374.html
Sent from the Roller - User mailing list archive at Nabble.com.
Re: trunk mvn install of WAR fails
Posted by Dave <sn...@gmail.com>.
Oops. Actually, I can't reproduce this one. I mean to respond to the
"mvn jetty:run" problem.
This does seem like a good fix though, so I'll get it into trunk.
- Dave
On Sat, Dec 18, 2010 at 9:59 AM, Dave <sn...@gmail.com> wrote:
> Yes, I can reproduce this problem. I'm working on a fix now.
>
> Thanks!
> - Dave
>
>
> On Wed, Dec 15, 2010 at 11:22 AM, Ralf Eichinger
> <ra...@pixotec.de> wrote:
>>
>> when I checked out apache-roller (trunk) and did a "mvn install" the build
>> failed during assembling of the WAR:
>>
>> [INFO] [war:war {execution: default-war}]
>> [INFO] Packaging webapp
>> [INFO] Assembling webapp[roller-weblogger-webapp] in
>> [/home/ralf/Desktop/WORKSPACES/Workspace-DataZuul/apache-roller-project/weblogger-webapp/target/roller]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] null
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NullPointerException
>> at
>> org.apache.maven.plugin.war.util.WebappStructure.getDependencies(WebappStructure.java:109)
>> at
>> org.apache.maven.plugin.war.util.WebappStructure.analyseDependencies(WebappStructure.java:288)
>>
>>
>> I fixed this by adding the version number for plugin maven-war-plugin in
>> pom.xml of weblogger-webapp:
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-war-plugin</artifactId>
>> <version>2.1.1</version>
>> <configuration>
>> <archiveClasses>true</archiveClasses>
>> </configuration>
>> </plugin>
>>
>> Please fix this in trunk.
>> I will post more patches in the next time... saw already some translation
>> errors...
>> --
>> View this message in context: http://old.nabble.com/trunk-mvn-install-of-WAR-fails-tp30465374s12275p30465374.html
>> Sent from the Roller - User mailing list archive at Nabble.com.
>>
>>
>
Re: trunk mvn install of WAR fails
Posted by Dave <sn...@gmail.com>.
Yes, I can reproduce this problem. I'm working on a fix now.
Thanks!
- Dave
On Wed, Dec 15, 2010 at 11:22 AM, Ralf Eichinger
<ra...@pixotec.de> wrote:
>
> when I checked out apache-roller (trunk) and did a "mvn install" the build
> failed during assembling of the WAR:
>
> [INFO] [war:war {execution: default-war}]
> [INFO] Packaging webapp
> [INFO] Assembling webapp[roller-weblogger-webapp] in
> [/home/ralf/Desktop/WORKSPACES/Workspace-DataZuul/apache-roller-project/weblogger-webapp/target/roller]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] null
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
> at
> org.apache.maven.plugin.war.util.WebappStructure.getDependencies(WebappStructure.java:109)
> at
> org.apache.maven.plugin.war.util.WebappStructure.analyseDependencies(WebappStructure.java:288)
>
>
> I fixed this by adding the version number for plugin maven-war-plugin in
> pom.xml of weblogger-webapp:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.1.1</version>
> <configuration>
> <archiveClasses>true</archiveClasses>
> </configuration>
> </plugin>
>
> Please fix this in trunk.
> I will post more patches in the next time... saw already some translation
> errors...
> --
> View this message in context: http://old.nabble.com/trunk-mvn-install-of-WAR-fails-tp30465374s12275p30465374.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>