Hmm, I don't know why your first example is working, because that is not a 
valid layout for the POM. See [1].

Could you give us the output of mvn -e -P <your-profile> <your-goal>

With regards,

Nick Stolwijk

[1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html

-----Original Message-----
From: supareno [mailto:[EMAIL PROTECTED]
Sent: Thu 1/31/2008 2:34 PM
To: Maven Users List
Subject: problems with multiple profiles...
 
hello,

i read a lot about profiles ans i 'm stuck on a problem
i'm using eclipse 3.2
my maven version is :
Maven version: 2.0.8
my java version is:
Java version: 1.6.0_03

so, in my pom.xml, i have a profile with build, plugins and depedencies 
like this:

<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>groupid</groupId>
    <artifactId>artifactid</artifactId>
    [...]
    <profile>
       <build>
          [...]
       </build>
       <depedencies>
          [...]
       </depedencies>
       [...]
    </profile>
</project>

when i run this pom with the eclipse external tools launcher, everything 
works fine
but i put mu profile between <profiles> tag like this

<project>
    [...]
    <profiles>
        <profile>
           [...]
        </profile>
    </profiles>
</project>

to add another profile, i've got an error which is:

INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
----------------------------------------------------------------------------
[INFO] Error scanning for extensions: Error building model lineage in 
order to pre-scan for extensions: Failed to parse model from: 
/home/<project>/pom.xml for project unknown at /home/<project>/pom.xml
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jan 31 14:23:32 CET 2008
[INFO] Memory 2M/4M
[INFO] 
----------------------------------------------------------------------------

what's wrong with my config??

regards
supareno

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


Reply via email to