Hi,

 

I'm using jboss-packaging-maven-plugin to create a SAR and it works fine
for me, but only the created JAR file is deployed in the repository so I
can't use the SAR to be included in my EAR project.

How can I force it to deploy my SAR into the repository?

Below is the relevant code:

--- SAR pom.xml ---

  <groupId>com.test</groupId>

  <artifactId>mySar</artifactId>

      <name>mySar</name>

...

    <plugins>

      <plugin>

        <groupId>org.codehaus.mojo</groupId>

        <artifactId>jboss-packaging-maven-plugin</artifactId>

          <version>2.0-SNAPSHOT</version>

        <executions>

          <execution>  

            <phase>package</phase> 

            <goals>

                    <goal>sar</goal>

                </goals>

            <configuration>  

 
<jbossServiceFile>src/conf/jboss-service.xml</jbossServiceFile>  

               <excludes>  

                 <exclude>jboss:jboss-system</exclude>  

                 <exclude>jboss:jboss-jmx</exclude>  

                 <exclude>jboss:jboss-common</exclude>  

                 </excludes>  

              </configuration> 

          </execution>

        </executions>

      </plugin>

    </plugins>

--- EAR pom.xml ---

                        <modules>

                              <sarModule>

  <groupId>com.test</groupId>

  <artifactId>mySar</artifactId>

                              </sarModule>

...

      <dependency>

            <groupId> com.test </groupId>

            <artifactId> mySar </artifactId>

            <version>1.0-SNAPSHOT<version>

            <type>sar</type>

      </dependency>

--------------------

 

Thanks,

 

      Yoram

Reply via email to