[ http://jira.codehaus.org/browse/MNG-1388?page=comments#action_50042 ] 

Damian Bradicich commented on MNG-1388:
---------------------------------------

Here is an example of 2 pom files that will show the problem, also note that 
the active profile is defined in settings.xml

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>test</groupId>
  <artifactId>a</artifactId>
  <version>1.0</version>
  <packaging>jar</packaging>
  <name>a test</name>
  <profiles>
    <profile>
      <id>struts-old</id>
      <dependencies>
        <dependency>
          <groupId>struts</groupId>
          <artifactId>struts</artifactId>
          <version>1.1</version>
          <scope>compile</scope>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>struts-new</id>
      <dependencies>
        <dependency>
          <groupId>struts</groupId>
          <artifactId>struts</artifactId>
          <version>1.2.7</version>
          <scope>compile</scope>
        </dependency>
      </dependencies>  
    </profile>
  </profiles>
</project>

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>test</groupId>
  <artifactId>b</artifactId>
  <version>1.0</version>
  <packaging>war</packaging>
  <name>b test</name>
  <dependencies>
    <dependency>
      <groupId>test</groupId>
      <artifactId>a</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>   
</project>

> Transitive Dependencies not used even when set to compile scope
> ---------------------------------------------------------------
>
>          Key: MNG-1388
>          URL: http://jira.codehaus.org/browse/MNG-1388
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0
>  Environment: Windows XP using Maven 2.0.
>     Reporter: Damian Bradicich
>      Fix For: 2.0.1

>
>
> I have a jar project file that defines a dependency inside a certain profile. 
>  If I then include that project inside of another war project, the 
> dependencies defined in the jar project's profile isn't getting transferred 
> over to the war.
> Ie we have this:
> A depends on SQL or Oracle depending on profile
> B depends on A.
> If sql profile is active, I would expect that when I build B, it pulls
> the transitive dependancy on sql from A.  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to