You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2012/11/04 11:35:35 UTC
directory/documentation/samples code not building
Hi guys,
I was trying to update the
http://directory.apache.org/apacheds/1.5/01-reporting-bugs.html pag, and
especially the "Creating a testcase project" part.
The samples project has been moved from
http://svn.apache.org/repos/asf/directory/samples/trunk/ to
http://svn.apache.org/repos/asf/directory/docuentation/samples/trunk/,
and I tried to update the pom.xml :
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.directory.project</groupId>
<artifactId>project</artifactId>
<version>29</version>
</parent>
<groupId>org.apache.directory.samples</groupId>
<artifactId>apacheds-archetype-testcase</artifactId>
<packaging>maven-archetype</packaging>
<name>ApacheDS Archetype Testcase</name>
<description>Archetype to generate a testcase for ApacheDS</description>
<version>2.0.0-M9-SNAPSHOT</version>
<prerequisites>
<maven>3.0.4</maven>
</prerequisites>
<inceptionYear>2009</inceptionYear>
<issueManagement>
<system>JIRA</system>
<url>http://issues.apache.org/jira/browse/DIRSERVER</url>
</issueManagement>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/directory/documentation/samples/trunk/apacheds-archetype-testcase/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/directory/documentation/samples/trunk/apacheds-archetype-testcase/</developerConnection>
<url>http://svn.apache.org/viewvc/directory/documentation/samples/trunk/apacheds-archetype-testcase/</url>
</scm>
<distributionManagement>
<site>
<id>apache.directory.samples</id>
<url>${distMgmtSiteUrl}</url>
</site>
</distributionManagement>
<properties>
<distMgmtSiteUrl>scpexe://people.apache.org/www/directory.apache.org/samples/apacheds-archetype-testcase/gen-docs/${project-version}/</distMgmtSiteUrl>
<skin.version>1.0.1</skin.version>
</properties>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>2.0-alpha-4</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.2</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
</reporting>
</project>
but doing so, I get this error :
$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building ApacheDS Archetype Testcase 2.0.0-M9-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.924s
[INFO] Finished at: Sun Nov 04 11:31:06 CET 2012
[INFO] Final Memory: 7M/138M
[INFO]
------------------------------------------------------------------------
[ERROR] Could not find goal 'add-archetype-metadata' in plugin
org.apache.maven.plugins:maven-archetype-plugin:2.2 among available
goals create, generate, crawl, update-local-catalog, integration-test,
create-from-project, jar, help -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
I don't get this error with the old version of maven-archetype-plugin
(2.0.0-alpha-4). We don't use the add-archetype-metadata goal, AFAICT.
Someone has a clue about what's going on ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: directory/documentation/samples code not building
Posted by Emmanuel Lécharny <el...@gmail.com>.
Never mind : I fixed it. I haven't updated the archetype-packaging
version to 2.2...
Le 11/4/12 11:35 AM, Emmanuel Lécharny a écrit :
> Hi guys,
>
> I was trying to update the
> http://directory.apache.org/apacheds/1.5/01-reporting-bugs.html pag,
> and especially the "Creating a testcase project" part.
>
> The samples project has been moved from
> http://svn.apache.org/repos/asf/directory/samples/trunk/ to
> http://svn.apache.org/repos/asf/directory/docuentation/samples/trunk/,
> and I tried to update the pom.xml :
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.apache.directory.project</groupId>
> <artifactId>project</artifactId>
> <version>29</version>
> </parent>
>
> <groupId>org.apache.directory.samples</groupId>
> <artifactId>apacheds-archetype-testcase</artifactId>
> <packaging>maven-archetype</packaging>
> <name>ApacheDS Archetype Testcase</name>
> <description>Archetype to generate a testcase for
> ApacheDS</description>
> <version>2.0.0-M9-SNAPSHOT</version>
>
> <prerequisites>
> <maven>3.0.4</maven>
> </prerequisites>
>
> <inceptionYear>2009</inceptionYear>
>
> <issueManagement>
> <system>JIRA</system>
> <url>http://issues.apache.org/jira/browse/DIRSERVER</url>
> </issueManagement>
>
> <scm>
> <connection>scm:svn:http://svn.apache.org/repos/asf/directory/documentation/samples/trunk/apacheds-archetype-testcase/</connection>
>
> <developerConnection>scm:svn:https://svn.apache.org/repos/asf/directory/documentation/samples/trunk/apacheds-archetype-testcase/</developerConnection>
>
> <url>http://svn.apache.org/viewvc/directory/documentation/samples/trunk/apacheds-archetype-testcase/</url>
>
> </scm>
>
> <distributionManagement>
> <site>
> <id>apache.directory.samples</id>
> <url>${distMgmtSiteUrl}</url>
> </site>
> </distributionManagement>
>
> <properties>
> <distMgmtSiteUrl>scpexe://people.apache.org/www/directory.apache.org/samples/apacheds-archetype-testcase/gen-docs/${project-version}/</distMgmtSiteUrl>
>
> <skin.version>1.0.1</skin.version>
> </properties>
>
> <build>
> <extensions>
> <extension>
> <groupId>org.apache.maven.archetype</groupId>
> <artifactId>archetype-packaging</artifactId>
> <version>2.0-alpha-4</version>
> </extension>
> </extensions>
> <plugins>
> <plugin>
> <artifactId>maven-archetype-plugin</artifactId>
> <version>2.2</version>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </build>
>
> <reporting>
> <excludeDefaults>true</excludeDefaults>
> </reporting>
> </project>
>
>
> but doing so, I get this error :
>
> $ mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ApacheDS Archetype Testcase 2.0.0-M9-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.924s
> [INFO] Finished at: Sun Nov 04 11:31:06 CET 2012
> [INFO] Final Memory: 7M/138M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Could not find goal 'add-archetype-metadata' in plugin
> org.apache.maven.plugins:maven-archetype-plugin:2.2 among available
> goals create, generate, crawl, update-local-catalog, integration-test,
> create-from-project, jar, help -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
>
>
> I don't get this error with the old version of maven-archetype-plugin
> (2.0.0-alpha-4). We don't use the add-archetype-metadata goal, AFAICT.
>
> Someone has a clue about what's going on ?
>
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com