Ok, it is getting closer.
Here is my pom.xml and plugin:
<groupId>org.delta.esp.dap.c2.bpel</groupId>
<version>1.0.0.0</version>
<artifactId>mis-file-intake</artifactId>
<packaging>jar</packaging>
....
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>target/bpel_MISFileIntakeProcess_1.0.0.0.jar</file>
<type>jar</type>
<classifier>bpel</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
Then in my local repo, I get:
C:\opt\.m2\repository\org\delta\esp\dap\c2\bpel\mis-file-intake\1.0.0.0\mis-
file-intake-1.0.0.0.jar (50k from the pom.xml)
C:\opt\.m2\repository\org\delta\esp\dap\c2\bpel\mis-file-intake\1.0.0.0\mis-
file-intake-1.0.0.0-bpel.jar (600k generated from ant)
I have 2 questions:
1. how do I NOT get mis-file-intake-1.0.0.0.jar into the repo or even
generated?
2. How do I get mis-file-intake-1.0.0.0-bpel.jar into my other modules...???
<dependency>
<groupId>org.delta.esp.dap.bpel</groupId>
<artifactId>mis-file-intake-1.0.0.0-bpel</artifactId>
<version>1.0.0.0</version>
<type>jar</type>
</dependency>
This seems like the classifier won't work.....
On 7/26/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Yes, I think I understand, and I still think the
> build-helper-maven-plugin can help you. Take a look at goal
> "attach-artifact" in the usage page:
> http://mojo.codehaus.org/build-helper-maven-plugin/howto.html
>
> Wayne
>
> On 7/26/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > Not sure i understand what this plugin will do for the artifact.
> >
> > I have a modele, that runs an ant task that creates a jar. So maven
> module
> > is not creating the jar from the target DIR, the ant task already
> creates
> > the jar I want inside the target DIR that I want to add to my
> repository.
> >
> >
> >
> >
> > On 7/26/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > >
> > > If I understand you correctly, build-helper-maven-plugin should be
> > > what you're looking for:
> > >
> > >
> http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html
> > >
> > > Wayne
> > >
> > > On 7/26/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > > To give a little more idea of what I am looking for:
> > > >
> > > > I want to see if in my jar module, I can have something like this:
> > > >
> > > > <plugin>
> > > > <groupId>org.apache.maven.plugins</groupId>
> > > > <artifactId>maven-jar-plugin</artifactId>
> > > > <executions>
> > > > <execution>
> > > > <goals>
> > > > <goal>package</goal>
> > > > </goals>
> > > > </execution>
> > > > </executions>
> > > > <configuration>
> > > > <includes>/target/bpel.jar</includes>
> > > > </configuration>
> > > > </plugin>
> > > >
> > > > Then the bpel.jar can get renamed to moduleone-1.0.3.jar and added
> to my
> > > > repository (if I use the install goal)
> > > > But regaurdless, moduleone-1.0.3.jar is now a valid dependency for
> my
> > > > moduletwo module.
> > > >
> > > >
> > > >
> > > >
> > > > On 7/26/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I have a module that is defined as a jar as this jar is a
> dependency
> > > > > within other modules in my project.
> > > > >
> > > > > This pom.xml: jar calls a bpel and task that creates a bpel
> suitcase
> > > JAR.
> > > > > The bpel jar is the artifact I actually want in my repository and
> > > available
> > > > > as a dependency.
> > > > >
> > > > > So, how do I accomplish this as I end up with 2 different jars
> right
> > > now.
> > > > >
> > > > > --
> > > > >
> > > > > Thanks,
> > > > > Mick Knutson
> > > > >
> > > > > http://www.baselogic.com
> > > > > http://www.blincmagazine.com
> > > > > http://www.djmick.com
> > > > > http://www.myspace.com/mickknutson
> > > > > http://www.myspace.com/djmick_dot_com
> > > > > http://www.myspace.com/sexybeotches
> > > > > http://www.thumpradio.com
> > > > > ---
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Thanks,
> > > > Mick Knutson
> > > >
> > > > http://www.baselogic.com
> > > > http://www.blincmagazine.com
> > > > http://www.djmick.com
> > > > http://www.myspace.com/mickknutson
> > > > http://www.myspace.com/djmick_dot_com
> > > > http://www.myspace.com/sexybeotches
> > > > http://www.thumpradio.com
> > > > ---
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> >
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---