I am in process of writting a plugin for RAD6/WSAD.  Most of the
functionality is provided by the eclipse plugin , ie, creating .classpath
and .project.  One thing that is missing is creating Manifest.mf for EJB and
WAR projects. For this IDE , I need to manuplate creation of MANIFEST.MF.
Basically, if an artifact is in list of modules, then in Manifest.mf should
have an entry as <artifact>.jar instead of
<atrifact>-<version>.jar.  (Something similar to what we do when we create
.classpath file) This change is only for IDE.

I started digging in the code.  I create EclipseManifestBuilder and
EclipseManifestCreater.  Currently, I am stuck on populating
ManifestConfiguration class in MavenArchiveConfiguration class.


In EclipsePlugin.java , I created variable

 private MavenArchiveConfiguration archive;

and in pom.xml I have the following configuration :-


<plugin>

 <groupId>org.apache.maven.plugins</groupId>

 <artifactId>maven-eclipse-plugin</artifactId>

 <version>2.2.1-SNAPSHOT</version>

 <configuration>

    <archive>

        <index>true</index>

        <manifest>

       <addClasspath>true</addClasspath>

       <addExtensions />

       <classpathPrefix />

   </manifest>

<manifestEntries>

<Source-Control-Identifier>${scm.connection}-${pom.version
}</Source-Control-Identifier>>

</manifestEntries>

</archive>

</configuration>

<inherited>true</inherited>

</plugin>
I was hoping that maven will automatically populate
MavenArchiveConfiguration variable, but for some reason it is not. Is there
something extra I need to do to populate this.

Please advice.

Thanks,
Sanjay

Reply via email to