Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed site and licenses.

  • Loading branch information...
commit 1023a1d7ef421f32aeec6a3cd28e53828ce1d0dc 1 parent 8f3a3ec
@jakewins authored
View
3  CHANGES.txt
@@ -0,0 +1,3 @@
+1.0
+------------------------
+o Initial release
View
6 COPYRIGHT.txt
@@ -0,0 +1,6 @@
+Requirejs-maven
+Copyright (c) 2002-2011 Jacob Hansson <jacob@voltvoodoo.com>
+
+This software is open source. For legalese details, see LICENSE.txt and NOTICE.txt.
+
+For more information, contact jacob@voltvoodoo.com
View
29 LICENSE.txt
@@ -1,5 +1,5 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -10,7 +10,7 @@
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -112,7 +112,7 @@ modification follow. Pay close attention to the difference between a
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
- GNU LESSER GENERAL PUBLIC LICENSE
+ GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
@@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
-
+
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
@@ -344,7 +344,7 @@ permitted, and provided that you do these two things:
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
- where to replace the accompanying uncombined form of the same work.
+ where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
@@ -432,7 +432,7 @@ decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
- NO WARRANTY
+ NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
@@ -455,7 +455,7 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
- END OF TERMS AND CONDITIONS
+ END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
@@ -487,4 +487,17 @@ convey the exclusion of warranty; and each file should have at least the
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
View
59 LICENSES.txt
@@ -0,0 +1,59 @@
+RequireJS is released under two licenses: new BSD, and MIT. You may pick the
+license that best suits your development needs. The text of both licenses are
+provided below.
+
+
+The "New" BSD License:
+----------------------
+
+Copyright (c) 2010-2011, The Dojo Foundation
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of the Dojo Foundation nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
+MIT License
+-----------
+
+Copyright (c) 2010-2011, The Dojo Foundation
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
View
9 NOTICE.txt
@@ -0,0 +1,9 @@
+Requirejs-maven
+Copyright (c) 2002-2011 Jacob Hansson <jacob@voltvoodoo.com>
+
+Requirejs-maven is released under the LGPL. See LICENSE.txt.
+
+Third party libraries
+---------------------
+
+Require.js is licensed under the MIT or the new BSD license. See LICENSES.txt.
View
2  README.md
@@ -12,7 +12,7 @@ it manually:
cd requirejs-maven
mvn clean install
-Than, add the plugin to your pom:
+Then, add the plugin to your pom:
<plugins>
..
View
1  pom.xml
@@ -25,6 +25,7 @@
<maven.version>2.2.1</maven.version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
+ <short-name>requirejs-maven</short-name>
<git.repo>git@github.com:jakewins/requirejs-maven.git</git.repo>
<git.url>github.com/jakewins/requirejs-maven</git.url>
View
504 src/site/default-site.vm
@@ -1,504 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- Generated by Apache Maven Doxia at $dateFormat.format( $currentDate ) -->
-#macro ( link $href $name $target $img $position $alt $border $width $height )
- #set ( $linkTitle = ' title="' + $name + '"' )
- #if( $target )
- #set ( $linkTarget = ' target="' + $target + '"' )
- #else
- #set ( $linkTarget = "" )
- #end
- #if ( ( $href.toLowerCase().startsWith("http") || $href.toLowerCase().startsWith("https") ) )
- #set ( $linkClass = ' class="externalLink"' )
- #else
- #set ( $linkClass = "" )
- #end
- #if ( $img )
- #if ( $position == "left" )
- <a href="$href"$linkClass$linkTarget$linkTitle>#image($img $alt $border $width $height)$name</a>
- #else
- <a href="$href"$linkClass$linkTarget$linkTitle>$name #image($img $alt $border $width $height)</a>
- #end
- #else
- <a href="$href"$linkClass$linkTarget$linkTitle>$name</a>
- #end
-#end
-##
-#macro ( image $img $alt $border $width $height )
- #if( $img )
- #if ( ! ( $img.toLowerCase().startsWith("http") || $img.toLowerCase().startsWith("https") ) )
- #set ( $imgSrc = $PathTool.calculateLink( $img, $relativePath ) )
- #set ( $imgSrc = $imgSrc.replaceAll( '\\', '/' ) )
- #set ( $imgSrc = ' src="' + $imgSrc + '"' )
- #else
- #set ( $imgSrc = ' src="' + $img + '"' )
- #end
- #if( $alt )
- #set ( $imgAlt = ' alt="' + $alt + '"' )
- #else
- #set ( $imgAlt = ' alt=""' )
- #end
- #if( $border )
- #set ( $imgBorder = ' border="' + $border + '"' )
- #else
- #set ( $imgBorder = "" )
- #end
- #if( $width )
- #set ( $imgWidth = ' width="' + $width + '"' )
- #else
- #set ( $imgWidth = "" )
- #end
- #if( $height )
- #set ( $imgHeight = ' height="' + $height + '"' )
- #else
- #set ( $imgHeight = "" )
- #end
- <img class="imageLink"$imgSrc$imgAlt$imgBorder$imgWidth$imgHeight/>
- #end
-#end
-#macro ( banner $banner $id )
- #if ( $banner )
- #if( $banner.href )
- <a href="$banner.href" id="$id"#if( $banner.alt ) title="$banner.alt"#end>
- #else
- <div id="$id">
- #end
-##
- #if( $banner.src )
- #set ( $src = $banner.src )
- #if ( ! ( $src.toLowerCase().startsWith("http") || $src.toLowerCase().startsWith("https") ) )
- #set ( $src = $PathTool.calculateLink( $src, $relativePath ) )
- #set ( $src = $src.replaceAll( '\\', '/' ) )
- #end
- #if ( $banner.alt )
- #set ( $alt = $banner.alt )
- #else
- #set ( $alt = $banner.name )
- #end
- <img src="$src" alt="$alt" />
- #else
- $banner.name
- #end
-##
- #if( $banner.href )
- </a>
- #else
- </div>
- #end
- #end
-#end
-##
-#macro ( links $links )
- #set ( $counter = 0 )
- #foreach( $item in $links )
- #set ( $counter = $counter + 1 )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
- #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height )
- #if ( $links.size() > $counter )
- |
- #end
- #end
-#end
-##
-#macro ( breadcrumbs $breadcrumbs )
- #set ( $counter = 0 )
- #foreach( $item in $breadcrumbs )
- #set ( $counter = $counter + 1 )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
-##
- #if ( $currentItemHref == $alignedFileName || $currentItemHref == "" )
- $item.name
- #else
- #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height )
- #end
- #if ( $breadcrumbs.size() > $counter )
- &gt;
- #end
- #end
-#end
-##
-#macro ( displayTree $display $item )
- #if ( $item && $item.items && $item.items.size() > 0 )
- #foreach( $subitem in $item.items )
- #set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) )
- #set ( $subitemHref = $subitemHref.replaceAll( '\\', '/' ) )
- #if ( $alignedFileName == $subitemHref )
- #set ( $display = true )
- #end
-##
- #displayTree( $display $subitem )
- #end
- #end
-#end
-##
-#macro ( menuItem $item )
- #set ( $collapse = "none" )
- #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) )
-##
- #if ( $item && $item.items && $item.items.size() > 0 )
- #if ( $item.collapse == false )
- #set ( $collapse = "expanded" )
- #else
- ## By default collapsed
- #set ( $collapse = "collapsed" )
- #end
-##
- #set ( $display = false )
- #displayTree( $display $item )
-##
- #if ( $alignedFileName == $currentItemHref || $display )
- #set ( $collapse = "expanded" )
- #end
- #end
- <li class="$collapse">
- #if ( $item.img )
- #if ( $item.position == "left" )
- #if ( $alignedFileName == $currentItemHref )
- <strong>#image($item.img $item.alt $item.border $item.width $item.height) $item.name</strong>
- #else
- #link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height)
- #end
- #else
- #if ( $alignedFileName == $currentItemHref )
- <strong>$item.name #image($item.img $item.alt $item.border $item.width $item.height)</strong>
- #else
- #link($currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height)
- #end
- #end
- #else
- #if ( $alignedFileName == $currentItemHref )
- <strong>$item.name</strong>
- #else
- #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height )
- #end
- #end
- #if ( $item && $item.items && $item.items.size() > 0 )
- #if ( $collapse == "expanded" )
- <ul>
- #foreach( $subitem in $item.items )
- #menuItem( $subitem )
- #end
- </ul>
- #end
- #end
- </li>
-#end
-##
-#macro ( mainMenu $menus )
- #foreach( $menu in $menus )
- #if ( $menu.name )
- #if ( $menu.img )
- #if( $menu.position )
- #set ( $position = $menu.position )
- #else
- #set ( $position = "left" )
- #end
-##
- #if ( ! ( $menu.img.toLowerCase().startsWith("http") || $menu.img.toLowerCase().startsWith("https") ) )
- #set ( $src = $PathTool.calculateLink( $menu.img, $relativePath ) )
- #set ( $src = $src.replaceAll( '\\', '/' ) )
- #set ( $src = ' src="' + $src + '"' )
- #else
- #set ( $src = ' src="' + $menu.img + '"' )
- #end
-##
- #if( $menu.alt )
- #set ( $alt = ' alt="' + $menu.alt + '"' )
- #else
- #set ( $alt = ' alt="' + $menu.name + '"' )
- #end
-##
- #if( $menu.border )
- #set ( $border = ' border="' + $menu.border + '"' )
- #else
- #set ( $border = ' border="0"' )
- #end
-##
- #if( $menu.width )
- #set ( $width = ' width="' + $menu.width + '"' )
- #else
- #set ( $width = "" )
- #end
- #if( $menu.height )
- #set ( $height = ' height="' + $menu.height + '"' )
- #else
- #set ( $height = "" )
- #end
-##
- #set ( $img = '<img class="imageLink"' + $src + $alt + $border + $width + $height + "/>" )
-##
- #if ( $position == "left" )
- <h5>$img $menu.name</h5>
- #else
- <h5>$menu.name $img</h5>
- #end
- #else
- <h5>$menu.name</h5>
- #end
- #end
- #if ( $menu.items && $menu.items.size() > 0 )
- <ul>
- #foreach( $item in $menu.items )
- #menuItem( $item )
- #end
- </ul>
- #end
- #end
-#end
-##
-#macro ( copyright )
- #if ( $project )
- #if ( ${project.organization} && ${project.organization.name} )
- #set ( $period = "" )
- #else
- #set ( $period = "." )
- #end
-##
- #set ( $currentYear = ${currentDate.year} + 1900 )
-##
- #if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) )
- ${project.inceptionYear}-${currentYear}${period}
- #else
- ${currentYear}${period}
- #end
-##
- #if ( ${project.organization} )
- #if ( ${project.organization.name} && ${project.organization.url} )
- <a href="$project.organization.url">${project.organization.name}</a>.
- #elseif ( ${project.organization.name} )
- ${project.organization.name}.
- #end
- #end
- #end
-#end
-##
-#macro ( publishDate $position $publishDate $version )
- #if ( $publishDate && $publishDate.format )
- #set ( $format = $publishDate.format )
- #else
- #set ( $format = "yyyy-MM-dd" )
- #end
-##
- $dateFormat.applyPattern( $format )
-##
- #set ( $dateToday = $dateFormat.format( $currentDate ) )
-##
- #if ( $publishDate && $publishDate.position )
- #set ( $datePosition = $publishDate.position )
- #else
- #set ( $datePosition = "left" )
- #end
-##
- #if ( $version )
- #if ( $version.position )
- #set ( $versionPosition = $version.position )
- #else
- #set ( $versionPosition = "left" )
- #end
- #else
- #set ( $version = "" )
- #set ( $versionPosition = "left" )
- #end
-##
- #set ( $breadcrumbs = $decoration.body.breadcrumbs )
- #set ( $links = $decoration.body.links )
-
- #if ( $datePosition.equalsIgnoreCase( "right" ) && $links && $links.size() > 0 )
- #set ( $prefix = "&nbsp;|" )
- #else
- #set ( $prefix = "" )
- #end
-##
- #if ( $datePosition.equalsIgnoreCase( $position ) )
- #if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) )
- $prefix <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday</span>
- #if ( $versionPosition.equalsIgnoreCase( $position ) )
- &nbsp;| <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #end
- #elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) )
- <div id="lastPublished">
- <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday</span>
- #if ( $versionPosition.equalsIgnoreCase( $position ) )
- &nbsp;| <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #end
- </div>
- #elseif ( $datePosition.equalsIgnoreCase("left") )
- <div class="xleft">
- <span id="publishDate">$i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday</span>
- #if ( $versionPosition.equalsIgnoreCase( $position ) )
- &nbsp;| <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #end
- #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
- | #breadcrumbs( $breadcrumbs )
- #end
- </div>
- #end
- #elseif ( $versionPosition.equalsIgnoreCase( $position ) )
- #if ( ( $versionPosition.equalsIgnoreCase( "right" ) ) || ( $versionPosition.equalsIgnoreCase( "bottom" ) ) )
- $prefix <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) )
- <div id="lastPublished">
- <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- </div>
- #elseif ( $versionPosition.equalsIgnoreCase("left") )
- <div class="xleft">
- <span id="projectVersion">$i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}</span>
- #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
- | #breadcrumbs( $breadcrumbs )
- #end
- </div>
- #end
- #elseif ( $position.equalsIgnoreCase( "left" ) )
- #if ( $breadcrumbs && $breadcrumbs.size() > 0 )
- <div class="xleft">
- #breadcrumbs( $breadcrumbs )
- </div>
- #end
- #end
-#end
-##
-#macro ( poweredByLogo $poweredBy )
- #if( $poweredBy )
- #foreach ($item in $poweredBy)
- #if( $item.href )
- #set ( $href = $PathTool.calculateLink( $item.href, $relativePath ) )
- #set ( $href = $href.replaceAll( '\\', '/' ) )
- #else
- #set ( $href="http://maven.apache.org/" )
- #end
-##
- #if( $item.name )
- #set ( $name = $item.name )
- #else
- #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) )
- #set ( $name = "${name} Maven" )
- #end
-##
- #if( $item.img )
- #set ( $img = $item.img )
- #else
- #set ( $img = "images/logos/maven-feather.png" )
- #end
-##
- #if ( ! ( $img.toLowerCase().startsWith("http") || $img.toLowerCase().startsWith("https") ) )
- #set ( $img = $PathTool.calculateLink( $img, $relativePath ) )
- #set ( $img = $src.replaceAll( '\\', '/' ) )
- #end
-##
- #if( $item.alt )
- #set ( $alt = ' alt="' + $item.alt + '"' )
- #else
- #set ( $alt = ' alt="' + $name + '"' )
- #end
-##
- #if( $item.border )
- #set ( $border = ' border="' + $item.border + '"' )
- #else
- #set ( $border = "" )
- #end
-##
- #if( $item.width )
- #set ( $width = ' width="' + $item.width + '"' )
- #else
- #set ( $width = "" )
- #end
- #if( $item.height )
- #set ( $height = ' height="' + $item.height + '"' )
- #else
- #set ( $height = "" )
- #end
-##
- <a href="$href" title="$name" class="poweredBy">
- <img class="poweredBy" $alt src="$img" $border $width $height />
- </a>
- #end
- #if( $poweredBy.isEmpty() )
- <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy">
- <img class="poweredBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png" />
- </a>
- #end
- #else
- <a href="http://maven.apache.org/" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy">
- <img class="poweredBy" alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" src="$relativePath/images/logos/maven-feather.png" />
- </a>
- #end
-#end
-##
-<html xmlns="http://www.w3.org/1999/xhtml"#if ( $locale ) xml:lang="$locale.language" lang="$locale.language"#end>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
- <title>$title</title>
- <style type="text/css" media="all">
- @import url("$relativePath/css/maven-base.css");
- @import url("$relativePath/css/maven-theme.css");
- @import url("$relativePath/css/site.css");
- </style>
- <link rel="stylesheet" href="$relativePath/css/print.css" type="text/css" media="print" />
-#foreach( $author in $authors )
- <meta name="author" content="$author" />
-#end
-#if ( $dateCreation )
- <meta name="Date-Creation-yyyymmdd" content="$dateCreation" />
-#end
-#if ( $dateRevision )
- <meta name="Date-Revision-yyyymmdd" content="$dateRevision" />
-#end
-#if ( $locale )
- <meta http-equiv="Content-Language" content="$locale.language" />
-#end
- #if ( $decoration.body.head )
- #foreach( $item in $decoration.body.head.getChildren() )
- ## Workaround for DOXIA-150 due to a non-desired behaviour in p-u
- ## @see org.codehaus.plexus.util.xml.Xpp3Dom#toString()
- ## @see org.codehaus.plexus.util.xml.Xpp3Dom#toUnescapedString()
- #set ( $documentHeader = '<?xml version="1.0" encoding="UTF-8"?>' )
- #if ( $item.name == "script" )
- $StringUtils.replace( $item.toUnescapedString(), $documentHeader, "" )
- #else
- $StringUtils.replace( $item.toString(), $documentHeader, "" )
- #end
- #end
- #end
- $headContent
- </head>
- <body class="composite">
- <div id="banner">
- #banner( $decoration.bannerLeft "bannerLeft" )
- #banner( $decoration.bannerRight "bannerRight" )
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="breadcrumbs">
- #publishDate( "left" $decoration.publishDate $decoration.version )
- <div class="xright">#links( $decoration.body.links )#publishDate( "right" $decoration.publishDate $decoration.version )</div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- <div id="leftColumn">
- <div id="navcolumn">
- #publishDate( "navigation-top" $decoration.publishDate $decoration.version )
- #mainMenu( $decoration.body.menus )
- #poweredByLogo( $decoration.poweredBy )
- #publishDate( "navigation-bottom" $decoration.publishDate $decoration.version )
- </div>
- </div>
- <div id="bodyColumn">
- <div id="contentBox">
- $bodyContent
- </div>
- </div>
- <div class="clear">
- <hr/>
- </div>
- <div id="footer">
- <div class="xright">Copyright &#169;#copyright()All Rights Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version )</div>
- <div class="clear">
- <hr/>
- </div>
- </div>
- </body>
-</html>
View
19 src/site/site.xml
@@ -6,36 +6,25 @@
</bannerLeft>
<publishDate position="left" format="yyyy-MM-dd HH:mm" />
<version position="left"/>
- <poweredBy>
- <logo name="Click here to lend your support to: yuicompressor-maven-plugin and make a donation at www.pledgie.com !" href='http://www.pledgie.com/campaigns/13361' img='http://www.pledgie.com/campaigns/13361.png?skin_name=chrome'/>
+ <poweredBy>
<logo name="Build with Maven 2" href="http://maven.apache.org" img="images/logos/maven-feather.png" />
<logo name="CC-GNU LGPL" href="http://creativecommons.org/licenses/LGPL/2.1/" img="http://creativecommons.org/images/public/cc-LGPL-a.png" />
</poweredBy>
<body>
<links>
- <item name="changelog/scm" href="http://github.com/davidB/yuicompressor-maven-plugin/"/>
+ <item name="changelog/scm" href="https://github.com/jakewins/requirejs-maven"/>
</links>
<menu name="Overview">
<item name="Introduction" href="index.html" />
<item name="Distribution" href="index.html#Distribution" />
- <item name="Goals" href="plugin-info.html" />
- <item name="Usage: compress" href="usage_compress.html" />
- <item name="Usage: jslint" href="usage_jslint.html" />
+ <item name="Usage: build" href="usage_build.html" />
<!-- item name="FAQ" href="faq.html" /-->
</menu>
- <menu name="Examples">
- <item name="Aggregate" href="ex_aggregation.html" />
- <item name="Gzip" href="ex_gzip.html" />
- <item name="Fail on warning" href="ex_failOnWarning.html" />
- </menu>
-
<menu name="Links">
- <item name="YUI Compressor" href="http://developer.yahoo.com/yui/compressor/" />
- <item name="JSLint" href="http://jslint.com/" />
- <item name="Others..." href="links.html"/>
+ <item name="Require.js" href="http://requirejs.org/" />
</menu>
<menu ref="reports"/>
View
140 src/site/xdoc/ex_aggregation.xml
@@ -1,140 +0,0 @@
-<document>
-<properties>
- <author email="dwayneb@users.sourceforge.net">David Bernard</author>
- </properties>
- <body>
- <section name="Aggregation">
-<p>Good practice :
-<ul>
-<li>on web, is to download/call one big js file instead of several small files.</li>
-<li>in source code organisation is to have unit file (with one "concern").</li>
-</ul>
-</p>
-<p>The major js and css framework/lib provide source code in both version (one big, lot of small), or provide a online tool to generate the big.</p>
-<p>The following option allow you to use/store small files into your source and generate the big at build time. The aggregation is done after yuicompression</p>
-
-<subsection name="Basic sample">
-<p>To Compress every js and css files and aggregate every js file under ${project.build.directory}/${project.build.finalName}/static/ into all.js :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <nosuffix>true</nosuffix>
- <aggregations>
- <aggregation>
- <!-- remove files after aggregation (default: false)
- <removeIncluded>true</removeIncluded>
- -->
- <!-- insert new line after each concatenation (default: false) -->
- <insertNewLine>true</insertNewLine>
- <output>${project.build.directory}/${project.build.finalName}/static/all.js</output>
- <!-- files to include, path relative to output's directory or absolute path-->
- <!--inputDir>base directory for non absolute includes, default to parent dir of output</inputDir-->
- <includes>
- <include>${basedir}/src/licenses/license.js</include>
- <include>**/*.js</include>
- </includes>
- <!-- files to exclude, path relative to output's directory
- <excludes>
- <exclude>**/*.pack.js</exclude>
- <exclude>**/compressed.css</exclude>
- </excludes>
- -->
- </aggregation>
- </aggregations>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-</subsection>
-
-<subsection name="Removing included files">
-<p>Using removeIncluded option, remove file, but the war plugin will then add file.
-So if you want to remove file after aggregation and don't want war plugin copy them, then you need to use warSourceExcludes :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <nosuffix>true</nosuffix>
- <aggregations>
- <aggregation>
- <!-- remove files after aggregation (default: false) -->
- <removeIncluded>true</removeIncluded>
- <!-- insert new line after each concatenation (default: false) -->
- <insertNewLine>true</insertNewLine>
- <output>${project.build.directory}/${project.build.finalName}/static/all-2.js</output>
- <!-- files to include, path relative to output's directory -->
- <includes>
- <include>toAggregateAndRemove/**.js</include>
- </includes>
- </aggregation>
- </aggregations>
- </configuration>
- </plugin>
-...
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <warSourceExcludes>**/toAggregateAndRemove/**</warSourceExcludes>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-</subsection>
-<subsection name="Adding header (copyright)">
-<p>When aggregating minified js files, the copyright headers have been stripped out which is fine because we don't want to repeat it several times in the output file.
-However it would be great to be able to insert one at beginning of output file.
-</p>
-<p>For simple cases, the maven-license-plugin is enough if you use the same header for all files but it is not enough if you want to have a different header per aggregation (different libraries with different licensing schemes).</p>
-<ol>
-<li>you put license header in its own file (ex license_js.txt)</li>
-<li>aggregate a license header to minified files.</li>
-</ol>
-<source><![CDATA[
- <includes>
- <include>${project.build.sourceDirectory}/../webapp/js/mylib/copyright.txt</include>
- <include>mylib/**/*.js</include>
- </includes>
- ]]></source>
-
-</subsection>
-</section>
-</body>
-</document>
View
39 src/site/xdoc/ex_failOnWarning.xml
@@ -1,39 +0,0 @@
-<document>
-<properties>
- <author email="dwayneb@users.sourceforge.net">David Bernard</author>
- </properties>
- <body>
- <section name="Fail on warning">
-<p>FailOnWarning allow to stop the build process if some warning are raise.</p>
-<p>To Compress every js and css files and fail if warning (on jslint and/or compress):
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>jslint</goal>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <failOnWarning>true</failOnWarning>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-</section>
-</body>
-</document>
View
38 src/site/xdoc/ex_gzip.xml
@@ -1,38 +0,0 @@
-<document>
-<properties>
- <author email="dwayneb@users.sourceforge.net">David Bernard</author>
- </properties>
- <body>
- <section name="Enable Gzip">
-
-<p>To Compress every js and css files and generate a gzipped version (gzip option doesn't remove input file):
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <gzip>true</gzip>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-</section>
-</body>
-</document>
View
31 src/site/xdoc/links.xml
@@ -1,31 +0,0 @@
-<document>
-<properties>
- <author email="dwayneb@users.sourceforge.net">David Bernard</author>
- </properties>
- <meta name="keyword" content="YUI Compressor, mojo"/>
- <body>
-<section name="Related Links">
-<subsection name="Complementary docs">
-<ul>
-<li><a href="http://yuiblog.com/blog/2008/02/11/helping-the-yui-compressor/">Helping the YUI Compressor</a></li>
-</ul>
-</subsection>
-<subsection name="Complementary tools">
-<ul>
-<li><a href="">JSDoc</a>: a documentation tool for javascript</li>
-<li><a href="http://www.dev.abiss.gr/mvn-jstools/index.html">Maven JSTools</a>: provide JSDoc and JSLint report, and a Servlet Filter that loads Javascript files or other static resources from the runtime classpath.</li>
-<li><a href="http://jsunit.berlios.de/maven2.html">Maven JsUnit</a>: a plugin to run and to report <a href="http://jsunit.berlios.de/">JsUnit</a> test.</li>
-<li><a href="http://alchim.sf.net/winstone-maven-plugin/index.html">Winstone Maven Plugin</a>: Embed your warfile into/with the winstone JAR itself. This allows an all-in-one container plus web-application JAR file to run as a standalone application.</li>
-</ul>
-</subsection>
-
-<subsection name="Concurrent">
-<ul>
-<li><a href="http://ossi.mobilvox.com/maven-js-plugin/">MobilVox Maven JavaScript Plugin</a>: compress javascript file of a project</li>
-<li><a href="https://jawr.dev.java.net/">JAWR</a>: awr is a tunable packaging solution for Javascript and CSS which allows for rapid development of resources in separate module files</li>
-<li><a href="http://code.google.com/p/wro4j/">wro4j</a>: Web Resource Optimizer for Java</li>
-</ul>
-</subsection>
-</section>
-</body>
-</document>
View
50 src/site/xdoc/usage_build.xml
@@ -0,0 +1,50 @@
+<document>
+ <properties>
+ <author email="jacob@voltvoodoo.com">Jacob Hansson</author>
+ </properties>
+ <body>
+ <section name="Usage">
+
+ <subsection name="Without pom.xml change">
+ <p>
+ To build require.js module src/main/javascript/myapp.js :
+ <source><![CDATA[
+ $> mvn com.voltvoodoo.requirejs-maven:build -Drequirejs.module="myapp"
+ ]]></source>
+ </p>
+ </subsection>
+
+ <subsection name="With pom.xml change">
+ <p>
+ To build require.js module src/main/javascript/myapp.js :
+ <source><![CDATA[
+<project>
+...
+ <build>
+ <plugins>
+...
+ <plugin>
+ <groupId>com.voltvoodoo</groupId>
+ <artifactId>requirejs-maven</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <module>myapp</module>
+ </configuration>
+ </plugin>
+...
+ </plugins>
+ </build>
+...
+</project>
+ ]]></source>
+ </p>
+ </subsection>
+ </section>
+ </body>
+</document>
View
117 src/site/xdoc/usage_compress.xml
@@ -1,117 +0,0 @@
-<document>
-<properties>
- <author email="dwayneb@users.sourceforge.net">David Bernard</author>
- </properties>
- <body>
- <section name="Usage">
-
- <subsection name="Without pom.xml change">
-<p>To Compress every js and css files :
- <source><![CDATA[
- $> mvn net.alchim31.maven:yuicompressor-maven-plugin:compress
- ]]></source>
- with the -X option compressed file are listed.
-</p>
-
-<p>To force compress every js and css files and fail if warning :
- <source><![CDATA[
- $> mvn net.alchim31.maven:yuicompressor-maven-plugin:compress \
- -Dmaven.yuicompressor.force=true \
- -Dmaven.yuicompressor.failOnWarning=true \
- ]]></source>
-</p>
- </subsection>
-
-
-
- <subsection name="With pom.xml change">
-<p>To Compress every js and css files at process-resources phase (before compile) :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-
-<p>To Compress every js and css files but without renaming with suffix :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <nosuffix>true</nosuffix>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-
-<p>To Compress every js and css files except already compressed files like *.pack.js files and compressed.css :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <excludes>
- <exclude>**/*.pack.js</exclude>
- <exclude>**/compressed.css</exclude>
- </excludes>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-</subsection>
-</section>
-</body>
-</document>
View
80 src/site/xdoc/usage_jslint.xml
@@ -1,80 +0,0 @@
-<document>
-<properties>
- <author email="dwayneb@users.sourceforge.net">David Bernard</author>
- </properties>
- <body>
- <section name="Usage">
-
- <subsection name="Without pom.xml change">
-<p>To Check every js :
- <source><![CDATA[
- $> mvn net.alchim31.maven:yuicompressor-maven-plugin:jslint
- ]]></source>
-</p>
- </subsection>
-
-
-
- <subsection name="With pom.xml change">
-<p>To Check every js :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>jslint</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-
-<p>To check and compress every js and css files except already compressed files like *.pack.js files and compressed.css :
-<source><![CDATA[
-<project>
-...
- <build>
- <plugins>
-...
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>yuicompressor-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>jslint</goal>
- <goal>compress</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <excludes>
- <exclude>**/*.pack.js</exclude>
- <exclude>**/compressed.css</exclude>
- </excludes>
- </configuration>
- </plugin>
-...
- </plugins>
- </build>
-...
-</project>
- ]]></source>
-</p>
-</subsection>
-</section>
-</body>
-</document>
Please sign in to comment.
Something went wrong with that request. Please try again.