I'm also affected by this issue, when releasing project using
maven-release-plugin, prepare goes well, perform fails as it detects
site in distributionManagement and default goals run are "deploy
site-deploy" so maven tries to generate and deploy site, but since
site plugin tries to resolve something that's not installed/deployed
yet, release:perform fails.

One workaround could be to configure prepare mojo's
http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#preparationGoals
to be "clean install" instead of default "clean verify", install is
after verify, if verification fails install will not be performed, if
verification is successful install will be performed and artifacts
will be available in local repository, so as long as release:perform
is run on same node/machine by same user as release:prepare, site
should be generated and deployed; deploy will install/overwrite
artifacts again in local repo and deploy them to remote repo.

Regards,
Stevo.

On Wed, Apr 13, 2011 at 9:17 AM, Lukas Theussl <[email protected]> wrote:
>
> That's an old issue, see http://jira.codehaus.org/browse/MSITE-171 and
> related tickets.
>
> -Lukas
>
>
> Andrew Hughes wrote:
>>
>> Hi All,
>>
>> Before each of the following test, I delete my project/module artifacts
>> from
>> my local repo....
>>
>> The following works :)
>>
>> *mvn clean install *
>> *mvn site*
>>
>>
>> The following fails :(
>>
>> *mvn clean install site*
>>
>>
>> The following also fails :(
>>
>> *mvn clean install site:site*
>>
>>
>> The error I consistently get is:
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site (default-site)
>> on
>> project acme-project: failed to get Reports: Failed to execute goal on
>> project acme-project-d: Could not resolve dependencies for project
>> com.acme.project:acme-project-module-d:ejb:5.1.0-SNAPSHOT: *Could not find
>> artifact com.acme.project:acme-project-module-a:jar:5.1.0-SNAPSHOT* in
>> archiva (http://acme.com/repository/all/) ->  [Help 1]
>>
>> ...site appears to be running on the incorrect phase or build lifecycle.
>> Consequently, the (module) dependencies have not been install/deployed to
>> my
>> local repository yet.
>>
>> Any idea's how I can fix this???
>>
>> Cheers.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to