Well I tried directly calling site:stage after removing the distribution management configuration for the site and I get the following error :
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:stage (default-cli) on project unomi-root: Missing site information in the distribution management of the project Apache Unomi :: Root Project (org.apache.unomi:unomi-root:2.0.0-incubating-SNAPSHOT) -> [Help 1] (actually it seems it’s the site:stage goal and not the site:site goal that is failing). I’m basically trying to follow the procedure described here : https://maven.apache.org/plugins/maven-scm-publish-plugin/usage.html Is there another way to generate the site for publication without calling site:stage ? I believe the site:stage is used to make sure everything is aggregated under a single repository before uploading to the SVN repository, but I may also be wrong :) cheers, Serge… > On 24 nov. 2015, at 14:26, Jean-Baptiste Onofré <[email protected]> wrote: > > Yes, but we don't need site:site, do we ? > > On 11/24/2015 02:24 PM, Serge Huber wrote: >> Hi JB, >> >> The problem is that site:site will not run without the >> distributionManagement configuration. >> >> cheers, >> Serge… >> >> >>> On 24 nov. 2015, at 14:21, Jean-Baptiste Onofré <[email protected]> wrote: >>> >>> Hi Serge, >>> >>> I don't think we need the distributionManagement for the site. Just a note >>> to inform that site:site and scm-publish:publish-scm is required. >>> >>> Just my $0.02. >>> >>> Regards >>> JB >>> >>> On 11/24/2015 02:17 PM, Serge Huber wrote: >>>> Hello all, >>>> >>>> I have updated the website to point the source repository to the new >>>> Apache Git location. >>>> >>>> But in order to do that I had to add the following to the root pom.xml : >>>> >>>> <distributionManagement> >>>> <site> >>>> <id>website</id> >>>> <!-- we put a fake URL here for staging to work --> >>>> <url>scp://www.mycompany.com/www/docs/project/</url> >>>> </site> >>>> </distributionManagement> >>>> >>>> We don’t use the site:deploy anyway so this is just to be able to run >>>> site:site and site:stage. We deploy the site using the >>>> mvn scm-publish:publish-scm Maven plugin goal (see the root >>>> generate-site-and-upload.sh script). >>>> >>>> Does anybody know a cleaner way of achieving this ? >>>> >>>> cheers, >>>> Serge… >>>> >>> >>> -- >>> Jean-Baptiste Onofré >>> [email protected] >>> http://blog.nanthrax.net >>> Talend - http://www.talend.com >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
