• Save
오픈강의 2014 webjars
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

오픈강의 2014 webjars

on

  • 404 views

 

Statistics

Views

Total Views
404
Views on SlideShare
404
Embed Views
0

Actions

Likes
1
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

오픈강의 2014 webjars Presentation Transcript

  • 1. 정적인컨텐츠 패키징 배포 webjars 사용방법 류지만 ryu.jiman@gmail.com 010-7373-1732
  • 2. 1. 기본 세팅 /Users/jimanryu/Project/workspace.fw.2014/webjar.flamingo.webroot/src/main/webapps/resources/lib/
  • 3. 1. 기본 세팅 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <upstreamVersion>1.0.1</upstreamVersion> <destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${upstreamVersion}</destDir> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.3.2</version> </plugin> </plugins> <resources> <resource> <directory>${project.basedir}/src/main/webapps/resources</directory> <targetPath>${destDir}</targetPath> </resource> </resources> </build>
  • 4. 1. 기본 세팅 <repositories> <repository> <id>lcnjf</id> <url>http://lcn.eknow.co.kr/nexus/content/repositories/lcnjf/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <distributionManagement> <repository> <id>lcnjf</id> <url>http://lcn.eknow.co.kr/nexus/content/repositories/lcnjf/</url> </repository> </distributionManagement>
  • 5. 1. 기본 세팅 <dependencies> <dependency> <groupId>webjars.flamingo</groupId> <artifactId>flamingowebroot</artifactId> <version>1.0.4</version> </dependency> </dependencies> <repositories> <repository> <id>lcnjf</id> <url>http://lcn.eknow.co.kr/nexus/content/repositories/lcnjf/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>
  • 6. 1. 기본 세팅 /src/main/webapp/WEB-INF/applicationContext-security.xml <http pattern="/webjars/**" security="none"/> <http pattern="/resources/lib/**" security="none"/> <http pattern="/" security="none"/> /src/main/webapp/WEB-INF/dispatcher-servlet.xml <mvc:resources mapping="/resources/**" location="/resources/"/> <!-- uses WebJars so Javascript and CSS libs can be declared as Maven dependencies (Bootstrap, jQuery...) --> <mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>