오픈강의 2014 webjars

  • 141 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
141
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

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/"/>