Am using maven 3 + tycho to build eclipse plugins:

i wrote a windows batch file to simulate a CI setup locally:

1. checkout projects from SVN
2. Build from parent

It fails with following err:

[ERROR] Failed to execute goal org.apache.maven.plugins:
maven-site-plugin:3.0-be
ta-2:attach-descriptor (attach-descriptor) on project
XXX<http://com.ebay.rules.ci/>:
Executi
on attach-descriptor of goal org.apache.maven.plugins:
maven-site-plugin:3.0-beta
-2:attach-descriptor failed: Unable to load the mojo 'attach-descriptor' in
the
plugin 'org.apache.maven.plugins:maven-site-plugin:3.0-beta-2'. A required
class
 is missing: org.apache.maven.doxia.tools.SiteTool

However strange thing is that, i have another small batch that does just
1. move to previously downloaded projects (by prev batch)
2. build from parent

and this passes (atleast above err didn't come)

-------------------------

https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html

https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-SiteandReporting

i already saw these maven 3 changes against maven 2 and hence i have

<profiles>
        <profile>
            <id>maven-3</id>
            <activation>
                <file>

                        This employs that the basedir expression is only
recognized by
                        Maven 3.x (see MNG-2363)

                    <exists>${basedir}</exists>
                </file>
            </activation>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-site-plugin</artifactId>
                            <version>3.0-beta-1</version>
                        </plugin>
                    </plugins>
                </pluginManagement>
                <plugins>
                    <plugin>
                        <artifactId>maven-site-plugin</artifactId>

                            Automatic execution of this goal in maven-2 is
not done any more
                            in maven-3

                        <executions>
                            <execution>
                                <id>attach-descriptor</id>
                                <goals>
                                    <goal>attach-descriptor</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

i already tried commenting above profile and giving something like

..........
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.0-beta-2</version>
                <!--
                    Automatic execution of this goal in maven-2 is not done
any more in
                    maven-3
                -->
                <executions>
                    <execution>
                        <id>attach-descriptor</id>
                        <goals>
                            <goal>attach-descriptor</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

but both didn't work. Any help is highly appreciated. Thanks much

p.s. also i verified that in my local maven repo, the class in error is
present in a plugin named maven-doxio-tools (or something). This plugin is
seemed to be referenced by maven-site-plugin

Reply via email to