You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "F. Wildenhain" <fw...@mms-dresden.de> on 2006/07/03 17:25:35 UTC

Re: RAR plugin problem

Henry S. Isidro <hisidro <at> exist.com> writes:
> 
> On Saturday, June 24, 2006 05:11, Nidhi Tuli wrote:
> > RAR plug in I downloaded doesn't seem to generate jar file. It is simply
> > compiling the code and generating a rar file with just the dependencies
> > in it. The generated rar file does not contain the jar of the compiled
> > source.
> >
> > Is there a way to get this plugin to generate jar files of the compiled
> > code before bundling it up in rar file?
> >
> > Thanks
> > Nidhi
> 
> The recommended way is to break up your project into two modules, one for 
> generating the jar and another for the rar. Then, have the rar module depend 
> on the jar module.
> 
> HTH,
> Henry
> 

I recommend to integrate a call of the jar plugin in the lifecycle 
phase "process-classes". Then the rar plugin finds a jar file with 
the compiled sources.
Include the jar plugin in the pom.xml via ...<build><plugins><plugin>:
...
<build>
  <plugins>
    <plugin>
      <artifactId>maven-jar-plugin</artifactId>
      <executions>
        <execution>
          <id>build_jar</id>
          <phase>process-classes</phase>
          <goals>
            <goal>jar</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>
... 

Hope that helps,
Frank



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org