maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MSITE-546) "container" field of SiteDeployMojo not populated correctly -> NPE with servers containing configuration
Date Thu, 10 Mar 2011 23:04:22 GMT

     [ http://jira.codehaus.org/browse/MSITE-546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olivier Lamy closed MSITE-546.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-4

fixed rev [1080389|http://svn.apache.org/viewvc?rev=1080389&view=rev]

> "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
>             Fix For: 3.0-beta-4
>
>
> 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

        

Mime
View raw message