Skip to content

Instantly share code, notes, and snippets.

@DemkaAge
Created February 4, 2014 06:29
Show Gist options
  • Save DemkaAge/8799037 to your computer and use it in GitHub Desktop.
Save DemkaAge/8799037 to your computer and use it in GitHub Desktop.
Was 7.0 stab generation.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>compile</id>
<phase>package</phase>
<configuration>
<target>
<!--гененрируем stub-->
<exec executable="${was.home}/bin/createEJBStubs.bat">
<arg line="&quot;${project.build.directory}${file.separator}${project.artifactId}-${project.version}.jar&quot; -cp &quot;${ru.brbpm:datateh-common:jar}&quot;;&quot;${ru.brbpm-tnf.process-history:process-history-shared:jar}&quot;" />
</exec>
<!--подкладываем stub к скомпиленным классам-->
<unzip src="${project.build.directory}${file.separator}${project.artifactId}-${project.version}.jar" dest="${project.build.directory}${file.separator}classes">
<patternset>
<include name="**/_*Stub.class" />
</patternset>
</unzip>
<!--подкладываем stub в клиентскую библиотку-->
<jar update="yes" destfile="${project.build.directory}${file.separator}${project.artifactId}-${project.version}-client.jar" basedir="${project.build.directory}${file.separator}classes">
<patternset>
<include name="**/_*Stub.class" />
</patternset>
</jar>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment