You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Sean Schofield <se...@gmail.com> on 2005/12/01 00:51:22 UTC

Re: Maven scripts?

I've created a myfaces project in the *test* SVN repostiory[1].  I've
only included the src files but the "resources" are also mixed in
there and will need to come out.  This is just for test purposes so
that we can tweak the build.

Maybe we should also start a wiki as we move things around so that we
know what to do when we are ready for the real reorg.  For now lets
play with this repos (feel free to add stuff and modify the poms.)  I
could use some help with the resources next.

mvn install from the root should do everything you need.

Also, the site stuff is using a dev version (in my local repo) of the
javadoc plugin but everything will be fine if you don't run the site
command.


sean

[1] http://svn.apache.org/repos/test/myfaces/



On 11/30/05, Bernd Bohmann <be...@atanion.com> wrote:
> Hello,
>
> I would prefer following approach:
>
> First we should create a 'common' package.
> (proposal is done)
>
> Then we move the source to the src/main/java,
> src/main/resources and src/test/java folders
> and change the ant scripts.
>
> Afterwards we can start creating the pom's.
>
> Until the maven build is stable the build files and the pom's exists in
> parallel.
>
> After the maven build is stable we should define the names of the
> artifacts and change the directory names to the name of the artifact.
> For example:
> common -> myfaces-common
> sandbox -> myfaces-sandbox
> impl -> myfaces-imp
> api -> myfaces-api
> ...
>
> I have no real opinion now, how the sites should organized.
>
> Best Regards
>
> Bernd
>

Re: Maven scripts?

Posted by Sean Schofield <se...@gmail.com>.
@ Brend: Thanks for the info.

@ Everyone: I moved all of the resources in the test repository.  So
now they are included in the jars.

The only major thing left is transforming and including the TLD's.

Then its on to examples, javadoc and site.  So far so good ...

sean


On 12/1/05, Bernd Bohmann <be...@atanion.com> wrote:
> Maybe: http://jira.codehaus.org/browse/MNG-1615
>
> In
>
> maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/AbstractJarMojo.java
>
> is a  @todo Add license files in META-INF directory.
>
> Sean Schofield schrieb:
> > Quick question.  How do you include LICENSE.txt in your jar file.
> > Isn't it supposed to be automatic if its in your top level dir?
> >
> > sean
> >
> > On 12/1/05, Sean Schofield <se...@gmail.com> wrote:
> >
> >>I set up a wiki[1] to record the steps needed.  If anyone wants to
> >>move things around feel free.  Just be sure to update the wiki so (a)
> >>we know you did it (no emails from the test repos) and (b) we remember
> >>to do it again when its time to reorg for real.
> >>
> >>sean
> >>
> >>[1] http://wiki.apache.org/myfaces/Maven_Reorg
> >>
> >>On 11/30/05, Sean Schofield <se...@gmail.com> wrote:
> >>
> >>>I've created a myfaces project in the *test* SVN repostiory[1].  I've
> >>>only included the src files but the "resources" are also mixed in
> >>>there and will need to come out.  This is just for test purposes so
> >>>that we can tweak the build.
> >>>
> >>>Maybe we should also start a wiki as we move things around so that we
> >>>know what to do when we are ready for the real reorg.  For now lets
> >>>play with this repos (feel free to add stuff and modify the poms.)  I
> >>>could use some help with the resources next.
> >>>
> >>>mvn install from the root should do everything you need.
> >>>
> >>>Also, the site stuff is using a dev version (in my local repo) of the
> >>>javadoc plugin but everything will be fine if you don't run the site
> >>>command.
> >>>
> >>>
> >>>sean
> >>>
> >>>[1] http://svn.apache.org/repos/test/myfaces/
> >>>
> >>>
> >>>
> >>>On 11/30/05, Bernd Bohmann <be...@atanion.com> wrote:
> >>>
> >>>>Hello,
> >>>>
> >>>>I would prefer following approach:
> >>>>
> >>>>First we should create a 'common' package.
> >>>>(proposal is done)
> >>>>
> >>>>Then we move the source to the src/main/java,
> >>>>src/main/resources and src/test/java folders
> >>>>and change the ant scripts.
> >>>>
> >>>>Afterwards we can start creating the pom's.
> >>>>
> >>>>Until the maven build is stable the build files and the pom's exists in
> >>>>parallel.
> >>>>
> >>>>After the maven build is stable we should define the names of the
> >>>>artifacts and change the directory names to the name of the artifact.
> >>>>For example:
> >>>>common -> myfaces-common
> >>>>sandbox -> myfaces-sandbox
> >>>>impl -> myfaces-imp
> >>>>api -> myfaces-api
> >>>>...
> >>>>
> >>>>I have no real opinion now, how the sites should organized.
> >>>>
> >>>>Best Regards
> >>>>
> >>>>Bernd
> >>>>
> >>>
> >
>
> --
> Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
> Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
> phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
>

Re: Maven scripts?

Posted by Bernd Bohmann <be...@atanion.com>.
Maybe: http://jira.codehaus.org/browse/MNG-1615

In

maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/AbstractJarMojo.java

is a  @todo Add license files in META-INF directory.

Sean Schofield schrieb:
> Quick question.  How do you include LICENSE.txt in your jar file. 
> Isn't it supposed to be automatic if its in your top level dir?
> 
> sean
> 
> On 12/1/05, Sean Schofield <se...@gmail.com> wrote:
> 
>>I set up a wiki[1] to record the steps needed.  If anyone wants to
>>move things around feel free.  Just be sure to update the wiki so (a)
>>we know you did it (no emails from the test repos) and (b) we remember
>>to do it again when its time to reorg for real.
>>
>>sean
>>
>>[1] http://wiki.apache.org/myfaces/Maven_Reorg
>>
>>On 11/30/05, Sean Schofield <se...@gmail.com> wrote:
>>
>>>I've created a myfaces project in the *test* SVN repostiory[1].  I've
>>>only included the src files but the "resources" are also mixed in
>>>there and will need to come out.  This is just for test purposes so
>>>that we can tweak the build.
>>>
>>>Maybe we should also start a wiki as we move things around so that we
>>>know what to do when we are ready for the real reorg.  For now lets
>>>play with this repos (feel free to add stuff and modify the poms.)  I
>>>could use some help with the resources next.
>>>
>>>mvn install from the root should do everything you need.
>>>
>>>Also, the site stuff is using a dev version (in my local repo) of the
>>>javadoc plugin but everything will be fine if you don't run the site
>>>command.
>>>
>>>
>>>sean
>>>
>>>[1] http://svn.apache.org/repos/test/myfaces/
>>>
>>>
>>>
>>>On 11/30/05, Bernd Bohmann <be...@atanion.com> wrote:
>>>
>>>>Hello,
>>>>
>>>>I would prefer following approach:
>>>>
>>>>First we should create a 'common' package.
>>>>(proposal is done)
>>>>
>>>>Then we move the source to the src/main/java,
>>>>src/main/resources and src/test/java folders
>>>>and change the ant scripts.
>>>>
>>>>Afterwards we can start creating the pom's.
>>>>
>>>>Until the maven build is stable the build files and the pom's exists in
>>>>parallel.
>>>>
>>>>After the maven build is stable we should define the names of the
>>>>artifacts and change the directory names to the name of the artifact.
>>>>For example:
>>>>common -> myfaces-common
>>>>sandbox -> myfaces-sandbox
>>>>impl -> myfaces-imp
>>>>api -> myfaces-api
>>>>...
>>>>
>>>>I have no real opinion now, how the sites should organized.
>>>>
>>>>Best Regards
>>>>
>>>>Bernd
>>>>
>>>
> 

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333

Re: Maven scripts?

Posted by Mario Ivankovits <ma...@ops.co.at>.
Sean Schofield wrote:
> Quick question.  How do you include LICENSE.txt in your jar file. 
> Isn't it supposed to be automatic if its in your top level dir?
>   
I am not an expert, but my project.xml contains

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>/LICENSE.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>


bundling other stuff you have to add a resource

<build>
    <resources>
.....
            <resource>
                <directory>${basedir}</directory>
                <targetPath>META-INF</targetPath>
                <includes>
                    <include>NOTICE.txt</include>
                </includes>
            </resource>
        </resources>

Hope that helps!

Mario


Re: Maven scripts?

Posted by Sean Schofield <se...@gmail.com>.
Quick question.  How do you include LICENSE.txt in your jar file. 
Isn't it supposed to be automatic if its in your top level dir?

sean

On 12/1/05, Sean Schofield <se...@gmail.com> wrote:
> I set up a wiki[1] to record the steps needed.  If anyone wants to
> move things around feel free.  Just be sure to update the wiki so (a)
> we know you did it (no emails from the test repos) and (b) we remember
> to do it again when its time to reorg for real.
>
> sean
>
> [1] http://wiki.apache.org/myfaces/Maven_Reorg
>
> On 11/30/05, Sean Schofield <se...@gmail.com> wrote:
> > I've created a myfaces project in the *test* SVN repostiory[1].  I've
> > only included the src files but the "resources" are also mixed in
> > there and will need to come out.  This is just for test purposes so
> > that we can tweak the build.
> >
> > Maybe we should also start a wiki as we move things around so that we
> > know what to do when we are ready for the real reorg.  For now lets
> > play with this repos (feel free to add stuff and modify the poms.)  I
> > could use some help with the resources next.
> >
> > mvn install from the root should do everything you need.
> >
> > Also, the site stuff is using a dev version (in my local repo) of the
> > javadoc plugin but everything will be fine if you don't run the site
> > command.
> >
> >
> > sean
> >
> > [1] http://svn.apache.org/repos/test/myfaces/
> >
> >
> >
> > On 11/30/05, Bernd Bohmann <be...@atanion.com> wrote:
> > > Hello,
> > >
> > > I would prefer following approach:
> > >
> > > First we should create a 'common' package.
> > > (proposal is done)
> > >
> > > Then we move the source to the src/main/java,
> > > src/main/resources and src/test/java folders
> > > and change the ant scripts.
> > >
> > > Afterwards we can start creating the pom's.
> > >
> > > Until the maven build is stable the build files and the pom's exists in
> > > parallel.
> > >
> > > After the maven build is stable we should define the names of the
> > > artifacts and change the directory names to the name of the artifact.
> > > For example:
> > > common -> myfaces-common
> > > sandbox -> myfaces-sandbox
> > > impl -> myfaces-imp
> > > api -> myfaces-api
> > > ...
> > >
> > > I have no real opinion now, how the sites should organized.
> > >
> > > Best Regards
> > >
> > > Bernd
> > >
> >
>

Re: Maven scripts?

Posted by Sean Schofield <se...@gmail.com>.
I set up a wiki[1] to record the steps needed.  If anyone wants to
move things around feel free.  Just be sure to update the wiki so (a)
we know you did it (no emails from the test repos) and (b) we remember
to do it again when its time to reorg for real.

sean

[1] http://wiki.apache.org/myfaces/Maven_Reorg

On 11/30/05, Sean Schofield <se...@gmail.com> wrote:
> I've created a myfaces project in the *test* SVN repostiory[1].  I've
> only included the src files but the "resources" are also mixed in
> there and will need to come out.  This is just for test purposes so
> that we can tweak the build.
>
> Maybe we should also start a wiki as we move things around so that we
> know what to do when we are ready for the real reorg.  For now lets
> play with this repos (feel free to add stuff and modify the poms.)  I
> could use some help with the resources next.
>
> mvn install from the root should do everything you need.
>
> Also, the site stuff is using a dev version (in my local repo) of the
> javadoc plugin but everything will be fine if you don't run the site
> command.
>
>
> sean
>
> [1] http://svn.apache.org/repos/test/myfaces/
>
>
>
> On 11/30/05, Bernd Bohmann <be...@atanion.com> wrote:
> > Hello,
> >
> > I would prefer following approach:
> >
> > First we should create a 'common' package.
> > (proposal is done)
> >
> > Then we move the source to the src/main/java,
> > src/main/resources and src/test/java folders
> > and change the ant scripts.
> >
> > Afterwards we can start creating the pom's.
> >
> > Until the maven build is stable the build files and the pom's exists in
> > parallel.
> >
> > After the maven build is stable we should define the names of the
> > artifacts and change the directory names to the name of the artifact.
> > For example:
> > common -> myfaces-common
> > sandbox -> myfaces-sandbox
> > impl -> myfaces-imp
> > api -> myfaces-api
> > ...
> >
> > I have no real opinion now, how the sites should organized.
> >
> > Best Regards
> >
> > Bernd
> >
>