Yes, sure; you are absolutely right :)

original pom is:

<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>
  <groupId>at.oekb.adas</groupId>
  <artifactId>adasBase</artifactId>
  <packaging>jar</packaging>
  <version>SNAPSHOT</version>
  <name>ADAS II - AdasBase</name>
  <url>http://www.oekb.at</url>
  <description>
    This is the Base Bundle needed for AdasMain and AdasScheduler
  </description>

  <dependencies>
        ...
  </dependencies>

  <build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.5</source>
                <target>1.5</target>
            </configuration>
         </plugin>
     </plugins>
  </build>

  <repositories>
    <repository>
      <id>ibiblio</id>
      <url>http://www.ibiblio.org/maven2</url>
    </repository>
  </repositories>

</project>

Nothing special in here i think. The dependencies are "hardcopied"
with system scope and are located in a own lib directory.

The generated pom is:

<?xml version="1.0"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>at.oekb.adas</groupId>
  <artifactId>adasBase</artifactId>
  <name>ADAS II - AdasBase</name>
  <version>SNAPSHOT</version>
  <description>This is the Base Bundle needed for AdasMain and
AdasScheduler</description>
  <url>http://www.oekb.at</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>ibiblio</id>
      <url>http://www.ibiblio.org/maven2</url>
    </repository>
  </repositories>
  <dependencies>
    ...
  </dependencies>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>

I miss the schema definition, but normally there is no need to touch
the file, isn't it?

Thanks,

regards,

Gerald

On 1/11/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> Can you copy one of the pom? Hard to tell without any information.
>
> On 1/11/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> >
> > Hi *,
> >
> > I started to migrate the structure of a project to maven 2.0.1.
> > The project consists of three modules, like this:
> >
> > -Base
> > -Main
> > -Other Stuff
> >
> > However, the last two have a dependency to the base module.
> >
> > So, first task was to install a jar from base module to the local
> > repository.
> > This works fine, but while trying to compile the other two, there was
> > the exception of a not valide pom.
> >
> > The pom was generated by maven from the first install corresponding to
> > the base pom, right? But this one was valid. However, what could be
> > the reason for the not validated pom?
> >
> > I have checked out myfaces, there i tried to build the project.
> > Exception was: Not a v4.0.0 POM
> >
> > Do i miss a plugin?
> >
> > Thx for help,
> >
> > regards,
> >
> > Gerald
> >
> > --
> > Gerald Muellan
> > Schelleingasse 2/11
> > 1040 Wien
> > 0043 699 11772506
> > [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
>


--
Gerald Muellan
Schelleingasse 2/11
1040 Wien
0043 699 11772506
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to