On 8/16/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > Try "mvn compile". > > The name of the plugin is "compiler". The method you're executing is > named "compile". So the "long way" would be "mvn compiler:compile". > Note the "r" in the first one. But "mvn compile" is a short-cut.
It's not really a shortcut (they are not identical) 'mvn compiler:compile" executes one goal in the compiler plugin. 'mvn compile' executes all the phases in your lifecycle up to compile. So that would include generating sources, resources etc. The compiler:compile goal is included in the compile phase. Unless you know what you're doing, better use 'mvn compile"... Tom > > Wayne > > On 8/16/07, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > > > Ok this is very strange. I can't use mvn compile. I've tried it all. Delete > > all files in respository and try again. > > > > I then tried the mvn -e compile:compile and got the following error > > > > The plugin 'org.apache.maven.plugins:maven-compile-plugin' does not exist or > > no valid version could be found > > > > When I look in my respository the folder only contains a xml. I tried to > > download the maven-compile-plugin but i doesn't exist. It's only the > > "maven-compiler-plugin" notice the "COMPILER" and not "COMPILE" > > > > why is compile used? Why is it trying to download compile when I have sat > > compiler. Look at this POM file > > > > I'm near crying here. > > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > > http://maven.apache.org/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > <groupId>se.digitalsupport.ftc</groupId> > > <artifactId>FTC</artifactId> > > <packaging>jar</packaging> > > <version>1.0-SNAPSHOT</version> > > <name>FTC</name> > > <url>http://maven.apache.org</url> > > <dependencies> > > > > <dependency> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > > <version>3.8.1</version> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate</artifactId> > > <version>3.2.5.ga</version> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-annotations</artifactId> > > <version>3.3.0.ga</version> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-entitymanager</artifactId> > > <version>3.3.1.ga</version> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>jboss</groupId> > > <artifactId>jboss-common-core</artifactId> > > <version>2.2.0.GA</version> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-commons-annotations</artifactId> > > <version>3.3.0.ga</version> > > <scope>runtime</scope> > > </dependency> > > <dependency> > > <groupId>mysql</groupId> > > <artifactId>mysql-connector-java</artifactId> > > <version>5.0.5</version> > > <scope>runtime</scope> > > </dependency> > > > > <dependency> > > <groupId>c3p0</groupId> > > <artifactId>c3p0</artifactId> > > <version>0.9.0</version> > > <scope>runtime</scope> > > </dependency> > > </dependencies> > > <build> > > <pluginManagement> > > <plugins> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-compiler-plugin</artifactId> > > <configuration> > > <source>1.5</source> > > <target>1.5</target> > > </configuration> > > </plugin> > > <plugin> > > > > <groupId>org.codehaus.mojo</groupId> > > <artifactId>hibernate3-maven-plugin</artifactId> > > <version>2.0-alpha-2</version> > > <configuration> > > <executions> > > <execution> > > > > <phase>generate-sources</phase> > > <goals> > > > > <goal>hbm2ddl</goal> > > </goals> > > </execution> > > </executions> > > <components> > > > > <component> > > <name>hbm2ddl</name> > > > > <implementation>annotationconfiguration</implementation> > > > > </component> > > <component> > > <name>hbm2hbmxml</name> > > > > <outputDirectory>src/main/resources</outputDirectory> > > > > </component> > > </components> > > <componentProperties> > > <drop>true</drop> > > <create>true</create> > > > > <configurationfile>src/main/resources/hibernate.cfg.xml</configurationfile> > > > > <outputfilename>schema.sql</outputfilename> > > </componentProperties> > > </configuration> > > </plugin> > > </plugins> > > </pluginManagement> > > <resources> > > <resource> > > <directory>src/main/resources</directory> > > <filtering>true</filtering> > > </resource> > > </resources> > > </build> > > > > </project> > > > > -- > > View this message in context: > > http://www.nabble.com/Can%27t-compile-tf4281613s177.html#a12187911 > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]