You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guilherme Silveira <gu...@caelum.com.br> on 2006/11/29 19:55:15 UTC

assembly plugin with modules

Hello there,

Im using the assembly plugin with some modules and want to create a
fat zip with all module jars and its dependencies. The problem is, I
only need the RUNTIME dependencies of my submodules... looking at
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
it says I can do:

      <binaries>
        <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
        <includeDependencies>false</includeDependencies>
        <dependencySets></dependencySets>
        <unpack>false</unpack>

But if I add such a tag (dependency sets), in order to set its scope, I get an:

Embedded error: Unrecognised tag: 'dependencySets' (position:
START_TAG seen ...</includeDependencies>\n        <dependencySets>...
@19:25)


Looks like the binaries tag doesnt really accept the dependencySets
tag. Im using the latest (?) release from assembly: 2.1

Any tips on it?

Guilherme

-- 
Guilherme Silveira
--------------------------------------------------
guilherme.silveira@caelum.com.br
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

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


Re: assembly plugin with modules

Posted by Guilherme Silveira <gu...@caelum.com.br>.
Hello Franz,

You mean like this:

      <binaries>
        <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
        <includeDependencies>true</includeDependencies>
  <dependencySets>
    <dependencySet>
      <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
      <unpack>false</unpack>
      <scope>runtime</scope>
    </dependencySet>
  </dependencySets>
        <unpack>false</unpack>
      </binaries>

I don't believe that would be the error as the message doesnt describe
that it misses the dependencySet tag. But anyhow, the error for the
above code is still the same:

Embedded error: Unrecognised tag: 'dependencySets' (position:
START_TAG seen ...</includeDependencies>\n  <dependencySets>...
@19:19)

Cheers

Guilherme

On 11/30/06, franz see <fr...@gmail.com> wrote:
>
> Good dayt o you, Guilherme,
>
> Try adding a <dependencySet>...</dependencySet> inside your
> <dependencySets>.
>
> Cheers,
> Franz
>
>
> guilherme_silveira wrote:
> >
> > Sorry... correcting:
> >
> >>         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
> >>         <includeDependencies>true</includeDependencies>
> >>         <dependencySets></dependencySets>
> >>         <unpack>false</unpack>
> >
> > On 11/29/06, Guilherme Silveira <gu...@caelum.com.br> wrote:
> >> Hello there,
> >>
> >> Im using the assembly plugin with some modules and want to create a
> >> fat zip with all module jars and its dependencies. The problem is, I
> >> only need the RUNTIME dependencies of my submodules... looking at
> >> http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
> >> it says I can do:
> >>
> >>       <binaries>
> >>         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
> >>         <includeDependencies>false</includeDependencies>
> >>         <dependencySets></dependencySets>
> >>         <unpack>false</unpack>
> >>
> >> But if I add such a tag (dependency sets), in order to set its scope, I
> >> get an:
> >>
> >> Embedded error: Unrecognised tag: 'dependencySets' (position:
> >> START_TAG seen ...</includeDependencies>\n        <dependencySets>...
> >> @19:25)
> >>
> >>
> >> Looks like the binaries tag doesnt really accept the dependencySets
> >> tag. Im using the latest (?) release from assembly: 2.1
> >>
> >> Any tips on it?
> >>
> >> Guilherme
> >>
> >> --
> >> Guilherme Silveira
> >> --------------------------------------------------
> >> guilherme.silveira@caelum.com.br
> >> Caelum - Ensino e Solucoes em Java
> >> www.caelum.com.br
> >>
> >
> >
> > --
> > Guilherme Silveira
> > --------------------------------------------------
> > guilherme.silveira@caelum.com.br
> > Caelum - Ensino e Solucoes em Java
> > www.caelum.com.br
> >
> > ---------------------------------------------------------------------
> > 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/assembly-plugin-with-modules-tf2727062s177.html#a7623648
> 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
>
>


-- 
Guilherme Silveira
--------------------------------------------------
guilherme.silveira@caelum.com.br
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

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


Re: assembly plugin with modules

Posted by franz see <fr...@gmail.com>.
Good dayt o you, Guilherme,

Try adding a <dependencySet>...</dependencySet> inside your
<dependencySets>. 

Cheers,
Franz


guilherme_silveira wrote:
> 
> Sorry... correcting:
> 
>>         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
>>         <includeDependencies>true</includeDependencies>
>>         <dependencySets></dependencySets>
>>         <unpack>false</unpack>
> 
> On 11/29/06, Guilherme Silveira <gu...@caelum.com.br> wrote:
>> Hello there,
>>
>> Im using the assembly plugin with some modules and want to create a
>> fat zip with all module jars and its dependencies. The problem is, I
>> only need the RUNTIME dependencies of my submodules... looking at
>> http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
>> it says I can do:
>>
>>       <binaries>
>>         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
>>         <includeDependencies>false</includeDependencies>
>>         <dependencySets></dependencySets>
>>         <unpack>false</unpack>
>>
>> But if I add such a tag (dependency sets), in order to set its scope, I
>> get an:
>>
>> Embedded error: Unrecognised tag: 'dependencySets' (position:
>> START_TAG seen ...</includeDependencies>\n        <dependencySets>...
>> @19:25)
>>
>>
>> Looks like the binaries tag doesnt really accept the dependencySets
>> tag. Im using the latest (?) release from assembly: 2.1
>>
>> Any tips on it?
>>
>> Guilherme
>>
>> --
>> Guilherme Silveira
>> --------------------------------------------------
>> guilherme.silveira@caelum.com.br
>> Caelum - Ensino e Solucoes em Java
>> www.caelum.com.br
>>
> 
> 
> -- 
> Guilherme Silveira
> --------------------------------------------------
> guilherme.silveira@caelum.com.br
> Caelum - Ensino e Solucoes em Java
> www.caelum.com.br
> 
> ---------------------------------------------------------------------
> 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/assembly-plugin-with-modules-tf2727062s177.html#a7623648
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


Re: assembly plugin with modules

Posted by Guilherme Silveira <gu...@caelum.com.br>.
Sorry... correcting:

>         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
>         <includeDependencies>true</includeDependencies>
>         <dependencySets></dependencySets>
>         <unpack>false</unpack>

On 11/29/06, Guilherme Silveira <gu...@caelum.com.br> wrote:
> Hello there,
>
> Im using the assembly plugin with some modules and want to create a
> fat zip with all module jars and its dependencies. The problem is, I
> only need the RUNTIME dependencies of my submodules... looking at
> http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
> it says I can do:
>
>       <binaries>
>         <outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
>         <includeDependencies>false</includeDependencies>
>         <dependencySets></dependencySets>
>         <unpack>false</unpack>
>
> But if I add such a tag (dependency sets), in order to set its scope, I get an:
>
> Embedded error: Unrecognised tag: 'dependencySets' (position:
> START_TAG seen ...</includeDependencies>\n        <dependencySets>...
> @19:25)
>
>
> Looks like the binaries tag doesnt really accept the dependencySets
> tag. Im using the latest (?) release from assembly: 2.1
>
> Any tips on it?
>
> Guilherme
>
> --
> Guilherme Silveira
> --------------------------------------------------
> guilherme.silveira@caelum.com.br
> Caelum - Ensino e Solucoes em Java
> www.caelum.com.br
>


-- 
Guilherme Silveira
--------------------------------------------------
guilherme.silveira@caelum.com.br
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

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