ã¯ããã«
Groovyã§ãGrapeã¨ããIvyãã¼ã¹ã®ãã¼ã«ããã£ã¦é¼»æ°´ã¡ãã¡ããããã»ã©ä¾¿å©(ry
ã¨ããããã§ãæè¿ã¯ã¡ããã¡ããMavenãªãã¸ããªãæ¤ç´¢ãããã¨ãããã¾ãã
Groovyã®ã³ã¼ããæ¸ãã¨ãã¯screen+vimã§ãã£ã¦ããã§ããã©ããããªãã¨ãä¸ã Webãã©ã¦ã¶çµç±ã§æ¤ç´¢ãã«è¡ãã®ããã£ããã«ãªã£ã¦ããããã§ãã
ã¨ããããã§ãããã°ã©ãã®ä¸å¤§ç¾å¾³ã§ãããç¡ç²¾ï¼Lazinessï¼ãã®åã®ä¸ã«ãMavenãªãã¸ããªãæ¤ç´¢ããGroovyã§ã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããããã¤ã«ãç¡ç²¾ï¼
ãã¡ãããMaven2ã®POMå½¢å¼ã¨ãGroovyã®Grapeå½¢å¼ã§çµæãåºåã§ãããªãã·ã§ã³ä»ãã§ãã
ãªããããèããã¨æ¢ã«ããããåä¾ãããããã§ãããè»è¼ªã®åçºæä¸çã§ãã
楽ããããä½ã£ããã ãä½ãæå¥ããããã®ééãã§ããããã¾ããã§ãã
ã¤ã³ã¹ãã¼ã«
å®è¡ã«å¿ è¦ãªã½ã¼ã¹ã³ã¼ãé¡ä¸å¼ã¯githubä¸ã«ç½®ãã¦ããã¾ãã
å®è¡ã«ã¯Groovy1.7以ä¸ãå¿
è¦ã§ããå¥éã¤ã³ã¹ãã¼ã«ãã¦ä¸ãããダウンロードはこちらã
æ®éã«âãªæãã§ã©ããã«cloneããå¾ãPATHãéãã¦ãã ããã
$ cd $INSTALL_DIR $ git clone git://github.com/nobeans/maven-tools.git $ export PATH=$PATH:$INSTALL_DIR/maven-tools/bin
åä½ç¢ºèªã¨ãã¦ãã«ãã表示ãã¦ã¿ã¦ãã ããããããªæãã§ãã
$ mvn-search -h usage: mvn-search [OPTIONS] KEYWORD..[KEYWORD] -g,--format-grape print Groovy Grape format -h,--help print this help message -p,--format-pom print Maven2 pom format -u,--with-url with URL of the artifact in mvnsearch.com -v,--with-version with retrieved versions (HEAVY)
使ã£ã¦ã¿ã
åæãããã£ããã¨ç¢ºèªãã
ã¾ãã¯æ¬²ãããããã¯ããè¦ã¤ããããã®æ¤ç´¢ã§ãã
çµæã¯1ã¢ã¼ãã£ãã¡ã¯ãã«ã¤ã1è¡ã§è¡¨ç¤ºããã¾ãã
$ mvn-search commons-io Commons IO - commons-io:commons-io Commons IO - org.apache.commons:commons-io Wrappers - Apache Commons I/O - com.kenai.nbpwr:org-apache-commons-io yac-io - net.sf.yac-io:yac-io Sulky I/O - de.huxhorn.sulky:de.huxhorn.sulky.io
ãªãªã¼ã¹æ¸ã¿ãã¼ã¸ã§ã³ã確èªãã
ææ°ãã¼ã¸ã§ã³ã¯ãªãã ã£ãï¼ã¨ããã¨ãã«ä¾¿å©ã§ãã
$ mvn-search -v commons-io ------------------------------------------------------------ >> Commons IO Commons IO - commons-io:commons-io versions: [1.4, 1.3.2, 1.3.1, 1.3, 1.2, 1.1, 1.0, 0.1, 20030203.000550] ------------------------------------------------------------ >> Commons IO Commons IO - org.apache.commons:commons-io versions: [1.3.2] ...(çç¥)...
POMãã¡ã¤ã«ã«ããè²¼ããXMLå½¢å¼ã§åºåãã
ããããªæ¤ç´¢ãã¼ã¯ã¼ããè¦ã¤ãã£ã¦ãæ¤ç´¢çµæãããããªãç¨åº¦ã«çµãè¾¼ãããããã®æ¤ç´¢ãã¼ã¯ã¼ãã使ã£ã¦ãPOMãã¡ã¤ã«ã®æçå½¢å¼ã§åºåãã¦ã¿ã¾ãã
$ mvn-search -pvu commons-io ------------------------------------------------------------ >> Commons IO <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>1.4</version> </dependency> versions: [1.4, 1.3.2, 1.3.1, 1.3, 1.2, 1.1, 1.0, 0.1, 20030203.000550] http://mvnrepository.com/artifact/commons-io/commons-io ------------------------------------------------------------ >> Commons IO <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-io</artifactId> <version>1.3.2</version> </dependency> versions: [1.3.2] http://mvnrepository.com/artifact/org.apache.commons/commons-io ...(çç¥)...
ãããªæãããªãã·ã§ã³ã®-pãPOMå½¢å¼åºåãæå®ãã¦ã¾ãã
-vãã¤ããã¨ããªãªã¼ã¹æ¸ã¿ãã¼ã¸ã§ã³ä¸è¦§ãåå¾ãã¦ããã¤ããã®å
é ã®ãã¼ã¸ã§ã³ãææ°ãã¼ã¸ã§ã³ã¨ã¿ãªãã¦ãpomå½¢å¼ã®XMLå
ã«å±éãã¦ããã¾ãã
-uã¯ãmvnrepository.comä¸ã®ã¢ã¼ãã£ãã¡ã¯ãã®è©³ç´°ãã¼ã¸ã¸ã®URLãåºåãããªãã·ã§ã³ã§ãã
-vã¨-uãå¤ãã¦ã¿ãã¨ããããªæãã
$ mvn-search -p commons-io ------------------------------------------------------------ >> Commons IO <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> </dependency> ------------------------------------------------------------ >> Commons IO <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-io</artifactId> </dependency> ...(çç¥)...
ãã¼ã¸ã§ã³ã¨URLãåºåããã¦ã¾ãããã
pomã«ãããã³ããããå ´åããã¼ã¸ã§ã³æå®ãçç¥ããããã¨ã«ãªãããã®æç¹ã®ææ°ãã¼ã¸ã§ã³ã使ãã¨ããæå®ã«ãªãã¾ãã
Groovyã¹ã¯ãªããã«ããè²¼ããGrapeå½¢å¼ã§åºåãã
ãã¡ããæããGrapeã®@Grabè¨æ³ã§ãåºåã§ãã¾ãã
$ mvn-search -guv commons-io ------------------------------------------------------------ >> Commons IO @Grab("commons-io:commons-io:1.4") versions: [1.4, 1.3.2, 1.3.1, 1.3, 1.2, 1.1, 1.0, 0.1, 20030203.000550] http://mvnrepository.com/artifact/commons-io/commons-io ------------------------------------------------------------ >> Commons IO @Grab("org.apache.commons:commons-io:1.3.2") versions: [1.3.2] http://mvnrepository.com/artifact/org.apache.commons/commons-io ...(çç¥)...
-vã¨-uãå¤ãã¦ã¿ãã¨ããããªæãã
$ mvn-search -g commons-io ------------------------------------------------------------ >> Commons IO @Grab("commons-io:commons-io:*") ------------------------------------------------------------ >> Commons IO @Grab("org.apache.commons:commons-io:*") ...(çç¥)...
ã³ããã§æ¥½ã ã§ããã
注æäºé
æ¤ç´¢ã®ã¯ã»
ãªããmvnrepository.comã®æ¤ç´¢ã«100%ä¾åãã¦ããã®ã§ãæå®ããæååã«å¯¾ãã¦ä½ãããããããã¯ãã¡ãã£ã¨ç´æçã§ã¯ãªãé¨åãããã¾ãããäºæ¿ãã ããã
- ä¾)
- åèªã®ä¸é¨ã ããæå®ãã¦ããããããªã("groo"ã¨æå®ãã¦"groovy"ç³»ãããã¯ãã¯ãããããªã)
- 空ç½åºåãã§è¤æ°ã®ãã¼ã¯ã¼ããæå®ããã¨ORæ¤ç´¢ã£ã½ã
-vãªãã·ã§ã³ã¯ãµã¼ãè² è·ãé«ã
-vãªãã·ã§ã³ãæå®ããå ´åã®ã¿ãæ¤ç´¢ãã¦è¦ã¤ãã£ãã¢ã¼ãã£ãã¡ã¯ããã¨ã«åå¥ã«è©³ç´°æ
å ±ãåå¾ãã«è¡ãã®ã§ãã¢ã¼ãã£ãã¡ã¯ãæ°ãå¤ãã¨ãµã¼ãã«é«è² è·ããããã¾ãã
æå³ããã«DoSæ»æã«ãªã£ã¦ãã¾ãã®ã¯ã¾ããã®ã§ãç¾ç¶ã§ã¯ä¸åº¦ã«10åã®ã¢ã¼ãã£ãã¡ã¯ãã¾ã§ãããã¼ã¸ã§ã³è§£æ±ºãã§ããªãããã«ãªã£ã¦ãã¾ãã
mvnsearch.groovyå
ã®å®æ°ãå¤æ´ãããã¨ã§ç·©åã§ãã¾ãããmvnrepository.comã®äººã«DoSæ»æã¨ã¿ãªããã¦ãã¾ã£ã¦ãå½æ¹ã§ã¯è²¬ä»»ã¯è² ãããã¾ããèªå·±è²¬ä»»ã§ãé¡ããã¾ãã
å²ã¨ã©ãã§ãè¯ããããããªãæå·§ã«ã¤ãã¦
- CliBuilderã«ãããã©ã¡ã¼ã¿å¦ç
- ã¡ãã£ã¨èéãå©ããªãã¨ããããããã©ããã®ãããã®ã¹ã¯ãªããã§ããã£ã¨ä½¿ãã«ã¯é常ã«ä¾¿å©ã
- JavaScriptã§ããããé«éé¢æ°ã£ã½ãè¨æ³
- printArtifactã¯ãã¼ã¸ã£ã®ã¨ãã¨ãã
- å¿ ç¶æ§ã¯ãã¶ãããªãã§ããæ¸ãã¦ã¿ããã£ãã ãã
- Gparsãå©ç¨ãã¦ãã«ãã¹ã¬ããå
- ã·ã³ã°ã«ã¹ã¬ããç´åã ã¨é ãã£ãã®ã§ã
- Actorã¨ãAsynchronizerã¯æ £ãã¦ããã¨ä¾¿å©ã
- ãããå¤é度ãããããã¨ãµã¼ãè² è·ãã¾ããã®ã§ãç¾ç¶ã§ã¯5ã¹ã¬ããã«ãã¦ããã¾ãã
ãããã«
å人çã«ã¯ããã使ãããã¼ã«ã«ãªã£ã¦ããæãã§ãã
githubã®Wikiã«ã¯ã¡ãã£ã¨ã ãæ¸ãã¦ããã¾ãããã¨ãããã¼ã«ã使ãã¨groovyãçéã«ãªã£ã¦æé«ãªãã§ãããããã¯"ãã¨ã§æ¸ã"ã