Hi all,
I have an issue based on a conflict, using Maven.

We have a project directory tree as described on the Magnolia Tutorial.

I have the main project declaring dependencies and the internal web app project 
descriptor that import the parent one.

I declared to use Magnolia 5.2.3, but when I run mvn clean install, magnolia 
5.2 dependencies are downloaded

How can I solve this issue?

My customer have the license for the Magnolia Enterprise 5.2.3, but I cannot 
deploy packages developed for the magnolia 5.2 because of some jar conflicts.

I think this is the issue which is the cause that produced the problem 
documented on my previous thread:
https://forum.magnolia-cms.com/forum/thread.html?threadId=5c42a71b-ea83-42cb-bbfc-ad11156d674f

Is there a way to set the right magnolia version?

Thanks a lot, Davide.

[b]This is the paren pom[/b]
[code]
<?xml version="1.0" encoding="UTF-8"?>
<project [OMISSIS] >
  <modelVersion>4.0.0</modelVersion>

  <name>PROJECT NAME</name>
  <groupId>my.company.group</groupId>
  <artifactId>project.name</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  
  <properties>
    <magnoliaVersion>5.2.3</magnoliaVersion>
    <javaVersion>1.6</javaVersion>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>info.magnolia.bundle</groupId>
        <artifactId>magnolia-bundle-parent</artifactId>
        <version>${magnoliaVersion}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <!--
     Build and so on...
      -->
</project>
[/code]

[b]The web application pom, referencing the parent (above) pom, has no 
dependencies:[/b]
[code]
<?xml version="1.0" encoding="UTF-8"?>
<project [OMISSIS]>

  <modelVersion>4.0.0</modelVersion>
  
  <artifactId>uniqa.extranet-webapp</artifactId> 
  <name>UNIQA-Extranet: webapp</name>
  <packaging>war</packaging>
  
  <dependencies>
  <!-- No dependencies-->
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <!-- exclude jars copied "physically" from the webapp overlay - so we 
only get those resolved by Maven's dependency management -->
          <dependentWarExcludes>WEB-INF/lib/*.jar</dependentWarExcludes>
          <filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
          <webResources>
              <webResource>
                  
<directory>${basedir}/src/main/webapp/WEB-INF/config</directory>
                  <targetPath>WEB-INF/config</targetPath>
                  <filtering>true</filtering>
                  <includes>
                      <include>**/*.properties</include>
                  </includes>
              </webResource>
          </webResources>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
[/code]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=5eb37b58-ede8-4c8e-9fc3-b71f9fb0fab8


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to