That does seem to be the convention in Maven (it's not a continuum
thing), that the modules are most often in subfolders of the parent
project, and have folder names the same as the project name.
On Mon, 25 Sep 2006 14:07:01 +0200, "Francois Le Fevre"
<flefevre@genoscope.cns.fr> said:
> Dear all,
>
> I have identified my error: it seems that module and parent artifact id
> have to match to the folder name when using subversion and continuum!
> Could you please confirm the convention?
>
> Francois
>
> My folder
>
> * nemo-andromda-profiles/
> o pom.xml
> o uml-1.4
> + owl
> + pom.xml
>
> My poms.xml
>
> * Parent pom.xml
> o <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>fr.cns.genoscope.nemo.andromda.profiles</groupId>
> <artifactId>nemo-andromda-profiles</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>pom</packaging>
> <modules>
> <module>uml-1.4</module>
> </modules>
> ....
> </project>
> * Module pom.xml
> o <project>
> <modelVersion>4.0.0</modelVersion>
>
> <parent>
>
> <groupId>fr.cns.genoscope.nemo.andromda.profiles</groupId>
> <artifactId>nemo-andromda-profiles</artifactId>
> <version>1.0-SNAPSHOT</version>
> </parent>
>
>
> <groupId>fr.cns.genoscope.nemo.andromda.profiles.uml14</groupId>
> <artifactId>uml-1.4</artifactId> <!-- BEFORE I have
> <artifactId>nemo-andromda-profiles-uml-1.4</artifactId> -->
> <name>Nemo AndroMDA UML 1.4 Profile</name>
> ....
> </project>
>
>
>
> Francois
>
>
> > Dear all,
> >
> > I am trying to add a maven2 project using multiple module to continuum.
> > When I add my project, continum find all submodule but when I build
> > the project, I get an error for the modules.
> > The parent module is well compile but the
> > Do I need to declare in each sub module, the svn url ?
> > Or normally Continuum can discover it?
> > If you need more information to investigate, do not hesitate to ask
> >
> > Thanks for your help.
> >
> > Francois
> >
> >
> > =========
> > parent pom.xml
> > =========
> > <project>
> > <modelVersion>4.0.0</modelVersion>
> > <groupId>fr.cns.genoscope.nemo.andromda.profiles</groupId>
> > <artifactId>nemo-andromda-profiles</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > <packaging>pom</packaging>
> > <name>Nemo AndroMDA Profiles</name>
> > <description>
> > These profiles allow all AndroMDA stereotypes, tagged values,
> > and datatypes to be referenced from a model.
> > </description>
> > <!-- Continuous integration -->
> > <ciManagement>
> > <system>continuum</system>
> > <url>http://mars.pc.local:8090/continuum</url>
> > <notifiers>
> > <notifier>
> > <type>mail</type>
> > <configuration>
> > <sendOnSuccess>true</sendOnSuccess>
> > <sendOnWarning>true</sendOnWarning>
> > <sendOnFailure>true</sendOnFailure>
> > <sendOnError>true</sendOnError>
> > <address>flefevre@genoscope.cns.fr</address>
> > </configuration>
> > </notifier>
> > </notifiers>
> > </ciManagement>
> >
> > <!-- The source repository -->
> > <scm>
> > <!-- connection>
> >
> > scm:svn:http://subversion/nemo/nemo_studio_repo/${project.artifactId}/trunk
> >
> > </connection -->
> > <!-- >developerConnection>
> >
> > scm:svn:http://subversion/nemo/nemo_studio_repo/${project.artifactId}/trunk
> >
> > </developerConnection -->
> > <connection>
> >
> > scm:svn:svn+ssh://subversion/env/database/subversion/nemo/nemo_studio_repo/${project.artifactId}/trunk
> >
> > </connection>
> > <developerConnection>
> >
> > scm:svn:svn+ssh://subversion/env/database/subversion/nemo/nemo_studio_repo/${project.artifactId}/trunk
> >
> > </developerConnection>
> > <!-- Si viewCVS or fisheye -->
> > <!--
> > <url>http://www.genoscope.cns.fr/viewcvs.cgi/${project.artifactId}</url>-->
> >
> > </scm>
> >
> > <modules>
> > <module>uml-1.4</module>
> > </modules>
> > <build>
> >
> > <pluginManagement>
> > <plugins>
> > <plugin>
> > <groupId>org.andromda.maven.plugins</groupId>
> > <artifactId>andromdapp-maven-plugin</artifactId>
> > <version>${andromda.version}</version>
> > </plugin>
> > <plugin>
> > <extensions>true</extensions>
> > <groupId>org.andromda.maven.plugins</groupId>
> > <artifactId>
> > andromda-model-archiver-plugin
> > </artifactId>
> > <version>${andromda.version}</version>
> > </plugin>
> > </plugins>
> > </pluginManagement>
> > </build>
> > <repositories>
> > <repository>
> > <id>andromda</id>
> > <name>AndroMDA Repository</name>
> > <url>http://team.andromda.org/maven2</url>
> > </repository>
> > </repositories>
> > <pluginRepositories>
> > <pluginRepository>
> > <id>andromda</id>
> > <name>AndroMDA Repository</name>
> > <url>http://team.andromda.org/maven2</url>
> > </pluginRepository>
> > </pluginRepositories>
> > <properties>
> > <andromda.version>3.2-SNAPSHOT</andromda.version>
> > </properties>
> > </project>
> >
> >
> > =======
> > module pom.xml
> > ==========
> >
> > <project>
> > <modelVersion>4.0.0</modelVersion>
> > <parent>
> > <groupId>fr.cns.genoscope.nemo.andromda.profiles</groupId>
> > <artifactId>nemo-andromda-profiles</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > </parent>
> > <groupId>fr.cns.genoscope.nemo.andromda.profiles.uml14</groupId>
> > <artifactId>nemo-andromda-profiles-uml14</artifactId>
> > <name>Nemo AndroMDA UML 1.4 Profile</name>
> > <packaging>pom</packaging>
> > <description>
> > Contains the Nemo AndroMDA UML 1.4 profiles.
> > </description>
> > <build>
> > <plugins>
> > <plugin>
> > <groupId>org.andromda.maven.plugins</groupId>
> > <artifactId>andromda-model-archiver-plugin</artifactId>
> > <configuration>
> > <replaceExtensions>true</replaceExtensions>
> > </configuration>
> > </plugin>
> > </plugins>
> > </build>
> > <modules>
> > <module>owl</module>
> > </modules>
> > </project>
> >
> >
> > =====================
> > Parent project trace
> > =====================
> > [INFO] Scanning for projects...
> > [INFO]
> > ----------------------------------------------------------------------------
> >
> > [INFO] Building Nemo AndroMDA Profiles
> > [INFO] task-segment: [clean, install]
> > [INFO]
> > ----------------------------------------------------------------------------
> >
> > [INFO] [clean:clean]
> > [INFO] Deleting directory
> > /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/17/target
> > [INFO] Deleting directory
> > /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/17/target/classes
> >
> > [INFO] Deleting directory
> > /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/17/target/test-classes
> >
> > [INFO] [site:attach-descriptor]
> > [INFO] [install:install]
> > [INFO] Installing
> > /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/17/pom.xml
> > to
> > /env/cns/home/continum/.m2/repository/fr/cns/genoscope/nemo/andromda/profiles/nemo-andromda-profiles/1.0-SNAPSHOT/nemo-andromda-profiles-1.0-SNAPSHOT.pom
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 4 seconds
> > [INFO] Finished at: Mon Sep 25 13:01:17 CEST 2006
> > [INFO] Final Memory: 6M/120M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > ====================
> > Module project trace
> > ====================
> > Provider message: The svn command failed.
> > Command output:
> > svn: URL
> > 'svn+ssh://subversion/env/database/subversion/nemo/nemo_studio_repo/nemo-andromda-profile-owl/trunk/nemo-andromda-profiles-uml14/nemo-andromda-profile-owl'
> > doesn't exist
> > ---
> >
> >
> >
>
>
> --
> Francois Le Fevre
> Bioinformatics Engineer
> Computational Biology Group - NeMo group
> Genoscope
> Tél. : (+33) 1 60 87 45 83
> Web : http://www.genoscope.cns.fr/bioinfo
>
|