Goddag
<?xml version="1.0" encoding="UTF-8"?>
<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";>
<!-- parent pom.xml declaration creates axis2.war-->
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2</artifactId>
    <version>1.5.1</version>
    <modules>
       <module>modules/child_artifactid</module>
    </modules>

//the aar piece is break this into a child module located in 
modules/child_artifactid
     <groupId>child.package</groupId>
     <artifactId>child_artifactId</artifactId>
     <version>1.0</version>
     <packaging>aar</packaging>
     <build>
       <plugins>
                <plugin>                        
<groupId>org.apache.axis2</groupId>                     
<artifactId>axis2-aar-maven-plugin</artifactId>                 
<version>1.5.4</version>                        <extensions>true</extensions>
                        <configuration>
                          <!-- point this to exact location of services.xml -->
                          
<servicesXmlFile>${basedir}/src/sample/axisversion/META-INF/services.xml</servicesXmlFile>
                          <includeDependencies>false</includeDependencies>
                        </configuration>
                </plugin>
       </plugins>
     </build>

bedankt!
Martin 
______________________________________________ 
Note de déni et de confidentialité
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: [email protected]
Subject: Maven AAR plugin creates to many aar files
Date: Tue, 24 May 2011 00:15:15 +0200
CC: [email protected]
To: [email protected]



Dear list,
Recently we moved a big project [1] to maven, into several modules. One of 
these modules creates an AAR with the maven aar plugin. 
When we run a full clean install on the parent project, everything seems to 
work find when inspecting the target folders. However, any module that is built 
*after* the aar module is installed into the local repository as an .aar file. 
Other projects depending on these modules break because they cannot find the 
.jar file. 
The parent pom contains:
<pluginManagement>              <plugin>                        
<groupId>org.apache.axis2</groupId>                     
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>                   
<version>1.5.4</version>                        <executions>                    
        <execution>                                     <goals>                 
                        <goal>wsdl2code</goal>                                  
</goals>                                </execution>                    
</executions>           </plugin>               <plugin>                        
<groupId>org.apache.axis2</groupId>                     
<artifactId>axis2-aar-maven-plugin</artifactId>                 
<version>1.5.4</version>                        <extensions>true</extensions>   
        </plugin>       </plugins></pluginManagement>
The aar module pom has:
<build> <plugins>               <plugin>                        
<groupId>org.apache.axis2</groupId>                     
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>                   
<configuration>                         
<wsdlFile>${basedir}/src/main/axis2/service.wsdl</wsdlFile>                     
        <packageName>net.ontopia.topicmaps.utils.tmrap.axis2</packageName>      
                        <generateServerSide>true</generateServerSide>           
                <generateServerSideInterface>true</generateServerSideInterface> 
                        <generateServicesXml>true</generateServicesXml>         
                
<namespaceToPackages>http://localhost:8080/tmrap/services/TMRAP=net.ontopia.topicmaps.utils.tmrap.axis2</namespaceToPackages>
                   </configuration>                </plugin>               
<plugin>                        <groupId>org.apache.axis2</groupId>             
        <artifactId>axis2-aar-maven-plugin</artifactId>         </plugin>       
</plugins></build>
Any clue why this is happening, and how to prevent it?


[1] http://code.google.com/p/ontopia/
With regards,


Quintin Siebers
[email protected]

Morpheus Kennistechnologie BV
<URL: http://www.mssm.nl >
postbus 69
3500 CD Utrecht
KVK 30 26 04 30


                                          

Reply via email to