You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2011/01/27 22:01:57 UTC

[jira] Commented: (MSITE-546) "container" field of SiteDeployMojo not populated correctly -> NPE with servers containing configuration

    [ http://jira.codehaus.org/browse/MSITE-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=253243#action_253243 ] 

Olivier Lamy commented on MSITE-546:
------------------------------------

more details here http://s.apache.org/QRQ

> "container" field of SiteDeployMojo not populated correctly -> NPE with servers containing configuration
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-546
>                 URL: http://jira.codehaus.org/browse/MSITE-546
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: Maven 3, site:deploy
>    Affects Versions: 3.0-beta-3
>            Reporter: Carl Wilund
>            Assignee: Olivier Lamy
>
> In SiteDeployMojo, the field "container" is not populated correctly (version skew with @Requirement?). When configureWagon is subsequently called, IFF the site deploy server has an entry in settings.xml AND contains a "configuration" subelement, there will be a NullPointerException thrown (line 474) when container.lookup is called. 
> Simple repro:
> settings.xml: 
> ...
> <server>
>       <id>bogus</id>
>       <username>bogus</username>
>       <password>bogus</password>      
>       <configuration>
>       </configuration>
>     </server>
> ...
> pom.xml:
> ...
> 	<build>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-site-plugin</artifactId>
> 				<version>3.0-beta-3</version>
> 			</plugin>
> 		</plugins>
> 	</build>
> 	<distributionManagement>
> 		<site>
> 			<id>bogus</id>
> 			<name>Bogus</name>
> 			<url>sftp://bogus.bogus.org/bogus</url>
> 		</site>
> 	</distributionManagement>
> ...
> While this should obviously not work, it should not NPE at line 474.

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