mvn sysdeo-tomcat:generateã¨mvn sysdeo-tomcat:m2eclipseã®éã
mvn eclipse:eclipseとmvn eclipse:m2eclipseの違い
ã®ç¶ããä»åº¦ã¯ã
mvn sysdeo-tomcat:generate
ã¨ã
mvn sysdeo-tomcat:m2eclipse
ã§ãçæããããã¡ã¤ã«ã®ä¸èº«ãæ¯ã¹ã¦ã¿ãã
çµè«ã¨ãã¦ã¯ãsysdeo-tomcat:generateã®æ¹ã使ãã¹ãã
pom.xmlã®æºå
<build> ... <pluginManagement> <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sysdeo-tomcat-maven-plugin</artifactId> <version>1.1</version> </plugin> </plugins> </pluginManagement> <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sysdeo-tomcat-maven-plugin</artifactId> <version>1.1</version> </plugin> </plugins> </build>
.projectãã¡ã¤ã«
sysdeo-tomcat:generate
<projectDescription> <name>myproject_original</name> <comment></comment> <projects/> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> </buildCommand> <buildCommand> <name>org.maven.ide.eclipse.maven2Builder</name> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.maven.ide.eclipse.maven2Nature</nature> <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature> </natures> </projectDescription>
sysdeo-tomcat:m2eclipse
<projectDescription> <name>myproject_original</name> <comment></comment> <projects/> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> </buildCommand> <buildCommand> <name>org.maven.ide.eclipse.maven2Builder</name> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.maven.ide.eclipse.maven2Nature</nature> <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature> </natures> </projectDescription>
ã©ã£ã¡ãåãã§ã
<nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature>
ãã®è¡ã追å ãããã
.tomcatpluginãã¡ã¤ã«
sysdeo-tomcat:generate
<?xml version="1.0" encoding="UTF-8"?> <tomcatProjectProperties> <rootDir>src/main/webapp</rootDir> <exportSource>false</exportSource> <reloadable>true</reloadable> <redirectLogger>true</redirectLogger> <updateXml>true</updateXml> <warLocation></warLocation> <extraInfo> </extraInfo> <webPath>/myproject-1.0-SNAPSHOT</webPath> <webClassPathEntries> <webClassPathEntry>/myproject/target/classes</webClassPathEntry> <webClassPathEntry>M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar</webClassPathEntry> <webClassPathEntry>M2_REPO/org/apache/wicket/wicket/1.4-rc4/wicket-1.4-rc4.jar</webClassPathEntry> <webClassPathEntry>M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar</webClassPathEntry> <webClassPathEntry>M2_REPO/org/slf4j/slf4j-log4j12/1.4.2/slf4j-log4j12-1.4.2.jar</webClassPathEntry> </webClassPathEntries> </tomcatProjectProperties>
sysdeo-tomcat:m2eclipse
<?xml version="1.0" encoding="UTF-8"?> <tomcatProjectProperties> <rootDir>src/main/webapp</rootDir> <exportSource>false</exportSource> <reloadable>true</reloadable> <redirectLogger>true</redirectLogger> <updateXml>true</updateXml> <warLocation></warLocation> <extraInfo> </extraInfo> <webPath>/myproject-1.0-SNAPSHOT</webPath> <webClassPathEntries> <webClassPathEntry>/myproject/target/classes</webClassPathEntry> <webClassPathEntry>C:\Documents and Settings\tanamon\.m2\repository/log4j/log4j/1.2.14/log4j-1.2.14.jar</webClassPathEntry> <webClassPathEntry>C:\Documents and Settings\tanamon\.m2\repository/org/apache/wicket/wicket/1.4-rc4/wicket-1.4-rc4.jar</webClassPathEntry> <webClassPathEntry>C:\Documents and Settings\tanamon\.m2\repository/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar</webClassPathEntry> <webClassPathEntry>C:\Documents and Settings\tanamon\.m2\repository/org/slf4j/slf4j-log4j12/1.4.2/slf4j-log4j12-1.4.2.jar</webClassPathEntry> </webClassPathEntries> </tomcatProjectProperties>
sysdeo-tomcat:m2eclipseã®ã»ãã¯çµ¶å¯¾ãã¹ãåºåããã¦ãã¾ãã