Sumedha,

Thanks for the response.   I just created a simple mock project and added
the maven-mar plugin, a couple of logging deps, and an empty mock class,
added it as a dependency to the main project, and commented-out references
to the two projects which have Axis2 dependencies.   It worked just fine and
built the full EAR.. here is a snippet of my pom.xml where I added the
plugin in the mock project:

<build>
    <plugins>
      <plugin>
        <artifactId>maven-ejb-plugin</artifactId>
        <configuration>
          <ejbVersion>3.0</ejbVersion>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2-mar-maven-plugin</artifactId>
        <version>1.3</version>
        <extensions>true</extensions>
        <configuration>
          <includeDependencies>false</includeDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>


As far as I can tell this plugin gets resolved correctly? On a sidenote, I'm
using more than just the default Maven repo so I do have all of the rampart
deps, including the mar files in a resources folder).  So it looks like that
is not the problem?

Thanks,

- Brandon


sumedha rubasinghe wrote:
> 
> Brandon,
> This looks like mar plug-in is not being recognized inside your build
> environment.
> 1. Leave out two projects having dependencies to Axis2.
> 2. Create a dummy project which just uses Axis2 MAR plug-in.
> 3. See if you can get EAR build run with this dummy project included as a
> sub module.
> 
> /sumedha
> 
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to initialize ear modules
>>
>> Embedded error: Unknown artifact type[mar]
>> [INFO]
>> ------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can%27t-Package-Axis2-In-EAR-with-Maven2-tp14321321p14324846.html
Sent from the Axis - User mailing list archive at Nabble.com.


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

Reply via email to