Stephane.
I was looking at the source of RAR plugin and found these:
1) if includeJar == true and jar file does not exist, the plugin does
nothing.
2) the rar plugin does not call project.getArtifact().setFile(
generatedRarFile ) at the end of the execution so that
maven-install-plugin can locate the packaged artifact and copy it into
the local repository.
I think those caused the issues being raised by henry.
Stephane Nicoll wrote:
Well it should. Could you please show your POM and the structure of your
project please?
Thx,
Stéphane
On 11/21/05, Henry Isidro <[EMAIL PROTECTED]> wrote:
I'm using the RAR plugin and I found out that it does not create a JAR
file to include in the package. So, I invoked the JAR plugin and
everything worked fine. Now, I tried using the install plugin to install
the rar file into my local repository and what happened was the plugin
installed the JAR file into my local repository renaming it as a RAR
file! The generated RAR file was untouched.
Here is what my POM looks like:
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>my-ra</artifactId>
<packaging>rar</packaging>
<name>My Resource Adapter</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<id>create-jar</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
....
</project>
I called M2 by the command 'mvn install'. Any thoughts would be greatly
appreciated.
Regards,
Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
.::You're welcome ::.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]