[ http://jira.codehaus.org/browse/MSITE-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263579#action_263579 ]
Marcin Kuthan commented on MSITE-546: ------------------------------------- Thanks Lukas for quick reply. You are right, the older snapshot was used (my Artifactory installation does not support M3 metadata files and served the outdated plugin). Now I get another exception, but the exception is not related to the site plugin. {code} Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: ClassNotFoundException: Class name which was explicitly given in configuration using 'implementation' attribute: 'org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider' cannot be loaded {code} Thanks again. > "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