You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rui Vilão <rp...@gmail.com> on 2010/03/29 20:08:00 UTC
Some questions about the assembly plugin
Hi there,
I'm trying to do the following:
I want to be able to specify in what phase the maven assembly plugin runs.
Is this possible? I'm only able to run it using mvn assembly:assembly,
otherwise it won't run.
I've tried with 2.2-beta-5 and 2.1 with no success.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>release.xml</descriptor>
</descriptors>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</configuration>
</plugin>
Does anyone had this problem?
Thanks in advance,
Rui Vilão
Re: Some questions about the assembly plugin
Posted by Justin Edelson <ju...@justinedelson.com>.
It is valid XML and a valid POM. As I said, this is because the
<configuration> element can accept any content.
Justin
On Mon, Mar 29, 2010 at 2:37 PM, Rui Vilão <rp...@gmail.com> wrote:
> Thank you and sorry for the dumb question.
> However, the XML validation passes. It is suppose?
>
> --
> Rui
>
> On Mon, Mar 29, 2010 at 7:13 PM, Justin Edelson <ju...@gmail.com>wrote:
>
>> This isn't the correct XML. Although since the <configuration> element
>> accepts any content, it is a valid POM.
>>
>> You have:
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-assembly-plugin</artifactId>
>> <version>2.2-beta-5</version>
>> <configuration>
>> <descriptors>
>> <descriptor>release.xml</descriptor>
>> </descriptors>
>> <executions>
>> <execution>
>> <id>make-assembly</id>
>> <phase>package</phase>
>> <goals>
>> <goal>single</goal>
>> </goals>
>> </execution>
>> </executions>
>> </configuration>
>> </plugin>
>>
>> You want:
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-assembly-plugin</artifactId>
>> <version>2.2-beta-5</version>
>> <executions>
>> <execution>
>> <id>make-assembly</id>
>> <phase>package</phase>
>> <goals>
>> <goal>single</goal>
>> </goals>
>> <configuration>
>> <descriptors>
>> <descriptor>release.xml</descriptor>
>> </descriptors>
>> </configuration>
>> </execution>
>> </executions>
>> </plugin>
>>
>> HTH,
>> Justin
>>
>>
>> Rui Vilão wrote:
>>
>>> Hi there,
>>>
>>> I'm trying to do the following:
>>>
>>> I want to be able to specify in what phase the maven assembly plugin
>>> runs.
>>> Is this possible? I'm only able to run it using mvn assembly:assembly,
>>> otherwise it won't run.
>>> I've tried with 2.2-beta-5 and 2.1 with no success.
>>>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-assembly-plugin</artifactId>
>>> <version>2.2-beta-5</version>
>>> <configuration>
>>> <descriptors>
>>> <descriptor>release.xml</descriptor>
>>> </descriptors>
>>> <executions>
>>> <execution>
>>> <id>make-assembly</id>
>>> <phase>package</phase>
>>> <goals>
>>> <goal>single</goal>
>>> </goals>
>>> </execution>
>>> </executions>
>>> </configuration>
>>> </plugin>
>>>
>>> Does anyone had this problem?
>>>
>>> Thanks in advance,
>>>
>>> Rui Vilão
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
Re: Some questions about the assembly plugin
Posted by Rui Vilão <rp...@gmail.com>.
Thank you and sorry for the dumb question.
However, the XML validation passes. It is suppose?
--
Rui
On Mon, Mar 29, 2010 at 7:13 PM, Justin Edelson <ju...@gmail.com>wrote:
> This isn't the correct XML. Although since the <configuration> element
> accepts any content, it is a valid POM.
>
> You have:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-5</version>
> <configuration>
> <descriptors>
> <descriptor>release.xml</descriptor>
> </descriptors>
> <executions>
> <execution>
> <id>make-assembly</id>
> <phase>package</phase>
> <goals>
> <goal>single</goal>
> </goals>
> </execution>
> </executions>
> </configuration>
> </plugin>
>
> You want:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-5</version>
> <executions>
> <execution>
> <id>make-assembly</id>
> <phase>package</phase>
> <goals>
> <goal>single</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>release.xml</descriptor>
> </descriptors>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> HTH,
> Justin
>
>
> Rui Vilão wrote:
>
>> Hi there,
>>
>> I'm trying to do the following:
>>
>> I want to be able to specify in what phase the maven assembly plugin runs.
>> Is this possible? I'm only able to run it using mvn assembly:assembly,
>> otherwise it won't run.
>> I've tried with 2.2-beta-5 and 2.1 with no success.
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-assembly-plugin</artifactId>
>> <version>2.2-beta-5</version>
>> <configuration>
>> <descriptors>
>> <descriptor>release.xml</descriptor>
>> </descriptors>
>> <executions>
>> <execution>
>> <id>make-assembly</id>
>> <phase>package</phase>
>> <goals>
>> <goal>single</goal>
>> </goals>
>> </execution>
>> </executions>
>> </configuration>
>> </plugin>
>>
>> Does anyone had this problem?
>>
>> Thanks in advance,
>>
>> Rui Vilão
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Some questions about the assembly plugin
Posted by Justin Edelson <ju...@gmail.com>.
This isn't the correct XML. Although since the <configuration> element
accepts any content, it is a valid POM.
You have:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>release.xml</descriptor>
</descriptors>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</configuration>
</plugin>
You want:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>release.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
HTH,
Justin
Rui Vilão wrote:
> Hi there,
>
> I'm trying to do the following:
>
> I want to be able to specify in what phase the maven assembly plugin runs.
> Is this possible? I'm only able to run it using mvn assembly:assembly,
> otherwise it won't run.
> I've tried with 2.2-beta-5 and 2.1 with no success.
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.2-beta-5</version>
> <configuration>
> <descriptors>
> <descriptor>release.xml</descriptor>
> </descriptors>
> <executions>
> <execution>
> <id>make-assembly</id>
> <phase>package</phase>
> <goals>
> <goal>single</goal>
> </goals>
> </execution>
> </executions>
> </configuration>
> </plugin>
>
> Does anyone had this problem?
>
> Thanks in advance,
>
> Rui Vilão
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org