[ 
https://issues.apache.org/jira/browse/MSITE-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885576#comment-17885576
 ] 

Claude Warren commented on MSITE-1016:
--------------------------------------

Under Maven 3.9.9

with
{quote}<distributionManagement>
</distributionManagement>{quote}
or
{quote}<distributionManagement>
    <site>
   <site>
</distributionManagement>{quote}
 or
{quote}<distributionManagement>
    <site>
        <id>staging</id>
   <site>
</distributionManagement>{quote}

when executing "mvn site:stage" after "mvn site"  I receive the following error:
{quote}[[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:3.20.0:stage (default-cli) on 
project apache-rat-project: Missing site data: specify url and id for project 
Apache Creadur Rat (org.apache.rat:apache-rat-project:0.17-SNAPSHOT) -> [Help 
1]{quote}

with
{quote}<distributionManagement>
    <site>
        <id>staging</id>
        <url>invalid:url</url>
   <site>
</distributionManagement>{quote}

the staging works.  I literally put "<url>invalid:url</url>" entry.  Previously 
our pom listed "<url>file:bogus</file>" which also worked.





> site:stage should function without a URL specified in the POM
> -------------------------------------------------------------
>
>                 Key: MSITE-1016
>                 URL: https://issues.apache.org/jira/browse/MSITE-1016
>             Project: Maven Site Plugin
>          Issue Type: Improvement
>          Components: Maven 3
>    Affects Versions: 3.8.2
>            Reporter: Claude Warren
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>
> Note: actual version is 3.8.6
> *Documentation states:*
> {quote}By default, the site will be staged in a directory 
> {{{}target/staging/{}}}.
> {quote}
> *Issue description:*
> When I try to run site:stage without a site entry in the pom 
> distrobutionManagement section I get an error that says the site entry must 
> be specified.
> {quote}Specifying 
> <distributionManagement>
> <site>
> <id>staging</id>
> </site>
> </distributionManagement>
> {quote}
> Will yield an error that states the URL must be specified. Entering an 
> invalid URL solves the problem.
> {quote}<distributionManagement>
> <site>
> <id>staging</id>
> <url>invalid:url</url>
> </site>
> </distributionManagement>
> {quote}
> The above is literally the text in my pom file.
> *Desired setup:*
> I would like to see the URL be optional so that I can trigger the site:stage 
> goal without having to specify the URL in the pom and without having to 
> specify the stagingDirectory on the command line.
> I would also like this better documented.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to