You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mailming <ma...@gmail.com> on 2007/10/31 01:55:50 UTC

Re: Install/Deploy an artifact with classifier

My work around solution is in the end of install specify deploy:deploy-file
"mvn install deploy:deploy-file"

Then in the pom specify
                        <plugin>
                         <artifactId>maven-deploy-plugin</artifactId>
                                <version>2.3</version>
                                <configuration>
                                <groupId>${parent.groupId}</groupId>
                                <artifactId>deployment</artifactId>
                               
<file>target/deployment-0.7.0-SNAPSHOT-alpha.zip</file>
                                <version>0.7.0-SNAPSHOT</version>
                                <uniqueVersion>false</uniqueVersion>
                                <url>file:///repository/deployment</url>
                                <packaging>zip</packaging>
                                <classifier>alpha</classifier>
                                </configuration>
                        </plugin>
Not the perfect solution, but at least working for me until next deploy
release working out.

Please let me know if you have better ideas.


Jonathan Anstey wrote:
> 
> Yeah, this approach is a workaround at best. I searched for a way to 
> configure the normal install and deploy goals a while back but had no 
> luck :(
> 
> Cheers,
> Jon
> 
> Tommy Knowlton wrote:
>> On 2/28/07, Jonathan Anstey <ja...@iona.com> wrote:
>>> Tommy,
>>>
>>> If you are just worried about the installed/deployed name, use the
>>> classifier option of the install-file and deploy-file goals (see
>>> install/deploy plugins).
>>
>> so, you're saying, run the package goal to produce an artifact and
>> then "manually" install-file and deploy-file to put the artifacts
>> (with classifiers manually crafted) in the repo.
>>
>> I suppose this would be a workaround, I was wondering whether there's
>> a way to configure the normal install and deploy goals to do it. In
>> particular, the above approach is going to be difficult to use for
>> snapshot deploys - unless deploy-file munges the artifact name to add
>> timestamp when the version has '-SNAPSHOT'. Even if that works, it
>> still breaks e.g., Continuum.
>>
>>>
>>> Cheers,
>>> Jon
>>>
>>> Tommy Knowlton wrote:
>>> > I'm trying to produce a POM for building several different artifacts
>>> > from the same sources.
>>> > In the <profiles> section, I have accomplished
>>> >
>>> > 1) configuring the build tools to do something different for each 
>>> profile
>>> > 2) activating the profiles
>>> > 3) give the profile's artifact a unique name using classifier
>>> > configuration in the maven-war-plugin
>>> >
>>> > but what I haven't been able to do is to support the install/deploy of
>>> > the profile's artifact.
>>> > It seems install and deploy expect a "base" artifact that I'm not
>>> > building (since each profile is building it's own "classified"
>>> > artifact).
>>> >
>>> > I'm thinking others must have solved this problem, but I haven't yet
>>> > seen anything useful in Google.
>>> >
>>> > Thanks,
>>> > --
>>> > Tommy
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> > For additional commands, e-mail: users-help@maven.apache.org
>>> >
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Install-Deploy-an-artifact-with-classifier-tf3321017s177.html#a13501000
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org