Take a look at maven-model in the Maven sources. It does exactly this,
and last time I checked it worked :)

- Brett

On 11/4/05, Julien Stern <[EMAIL PROTECTED]> wrote:
> On Fri, Nov 04, 2005 at 09:22:25AM +1100, Brett Porter wrote:
> > I think you need:
> >
> > <phase>package</phase>
> >
> > and
> >
> > <goals>
> >   <goal>jar</goal>
> > </goals>
> >
> > in the jar plugin as it is not being run otherwise.
> >
> > - Brett
>
> No luck with this either unfortunately.
> I still have:
>
> [INFO] [jar:jar]
> [INFO] Building jar:
> /home/julien/cvs/java/libs/attr/target/libattr-3.0-nodebug.jar
> [INFO] [install:install]
> [INFO] Installing /home/julien/cvs/java/libs/attr/target/classes to
> /home/julien/.m2/repository/unicity/libattr/3.0/libattr-3.0.jar
>
> I guess I'll file a bug report :)
> Thanks for your help.
>
> --
> Julien
>
> > On 11/3/05, Julien Stern <[EMAIL PROTECTED]> wrote:
> > > On Thu, Nov 03, 2005 at 10:05:50AM +1100, Brett Porter wrote:
> > > > How are you calling it?
> > > >
> > > > Sounds like you are running install:install over a multiproject -
> > > > instead you should use "install".
> > >
> > > Well, I believe I'm doing something fairly standard.
> > > I'm calling:
> > >
> > > $ mvn -Pnodebug install
> > > or
> > > $ mvn -Pnodebug clean install
> > >
> > > With "nodebug" containing:
> > >
> > >       <build>
> > >         <plugins>
> > >           <plugin>
> > >             <inherited>true</inherited>
> > >             <groupId>org.apache.maven.plugins</groupId>
> > >             <artifactId>maven-compiler-plugin</artifactId>
> > >             <configuration>
> > >               <fork>true</fork>
> > >               <debug>false</debug>
> > >               <verbose>true</verbose>
> > >               <compilerArguments>
> > >                 <g:none></g:none>
> > >               </compilerArguments>
> > >             </configuration>
> > >           </plugin>
> > >           <plugin>
> > >             <inherited>true</inherited>
> > >             <groupId>org.apache.maven.plugins</groupId>
> > >             <artifactId>maven-jar-plugin</artifactId>
> > >             <configuration>
> > >               <classifier>nodebug</classifier>
> > >             </configuration>
> > >           </plugin>
> > >         </plugins>
> > >       </build>
> > >
> > > There are two levels of POM inheritance if that may also diagnose...
> > >
> > > By the way, thanks a lot for your answers to my other emails,
> > > I'll try to find time to add improvements requests in JIRA.
> > >
> > > --
> > > Julien Stern
> > >
> > >
> > > >
> > > > I've used this successfully with classifiers before.
> > > >
> > > >  -Brett
> > > >
> > > > On 11/3/05, Julien Stern <[EMAIL PROTECTED]> wrote:
> > > > > The install plugin does not seem to work when used with classifiers.
> > > > > When I use the jar plugin with a classifier, the install fails
> > > > > (the install plugin tries to use "$MYPROJECTDIR/target/classes"
> > > > > as the artifact name to install.
> > > > >
> > > > > Is it forbidden to use classifier with install/deploy ?
> > > > > Or is it a bug ?
> > > > > Or is there a correct way to configure the use of this case ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > --
> > > > > Julien Stern
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to