Troca de BUILD

1 resposta
sr.machado

Pessoal, to com uma dúvida porque NUNCA mexi com MAVEN.
Estou com um projeto aqui e ele está com a build de maven (pom.xml) e ele tenta baixar uns negócios mas infelizmente os espelhos estão quebrados, tenho as bibliotecas todas que ele tenta baixar no diretório libs aqui, será que existe jeito de converter o projeto para ser compilado no ant build?

Aqui está o arquivo para analisarem:
<?xml version="1.0" encoding="UTF-8"?>
<project>
	<parent>
		<artifactId>l2emuParent</artifactId>
		<groupId>l2emuproject</groupId>
		<version>1.0.3</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>l2emu-core</artifactId>
	<version>2.6.0</version>
	<url>http://l2emu-enterprise.net</url>

	<issueManagement>
		<system>Trac</system>
		<url>http://l2emu-dev.net</url>
	</issueManagement>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<pluginRepositories>
		<pluginRepository>
			<id>Maven Snapshots</id>
			<url>http://snapshots.maven.codehaus.org/maven2/</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</pluginRepository>

		<pluginRepository>
			<id>Central L2Emuproject</id>
			<name>Central L2Emuproject</name>
			<url>http://ns360719.ovh.net/maven</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

	<build>
		<defaultGoal>assembly:assembly</defaultGoal>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
		</resources>
		<filters>
			<filter>${basedir}/target/build-time.properties</filter>
		</filters>
		<testResources>
			<testResource>
				<directory>config/</directory>
			</testResource>
			<testResource>
				<directory>src/test/resources</directory>
			</testResource>
		</testResources>
		<finalName>${artifactId}</finalName>

		<!-- Plugins Section -->
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>2.1</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<!-- Generates the build-time.properties -->
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<mkdir dir="${project.build.directory}"/>
								<tstamp>
									<format property="last.updated" pattern="dd-MM-yyyy hh:mm:ss aa"/>
								</tstamp>
								<echo file="${basedir}/target/build-time.properties" message="build.time=${last.updated}"/>
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<forkMode>pertest</forkMode>
					<argLine>-enableassertions</argLine>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
					<descriptors>
						<descriptor>src/main/assembly/distribution.xml</descriptor>
					</descriptors>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<!-- Repositories Section -->
	<repositories>
		<repository>
			<releases />
			<snapshots />
			<id>L2EmuEnt Central F</id>
			<name>L2EmuEnt Repository</name>
			<url>http://forum.l2alpha.net/repo</url>
		</repository>
		<repository>
			<releases />
			<snapshots />
			<id>L2-Emu Repository</id>
			<name>L2-Emu Repository</name>
			<url>http://repo.l2-emu.net</url>
		</repository>
		<repository>
			<releases />
			<snapshots />
			<id>maven 2 (default)</id>
			<url>http://repo1.maven.org/maven2</url>
		</repository>
		<repository>
			<releases />
			<snapshots />
			<id>Maven Snapshots</id>
			<url>http://snapshots.maven.codehaus.org/maven2</url>
		</repository>
		<repository>
			<releases />
			<snapshots />
			<id>apache.snapshots</id>
			<name>Apache Snapshot Repository</name>
			<url>http://people.apache.org/repo/m2-snapshot-repository</url>
		</repository>
		<!-- <repository>
			<id>mevenide repo</id>
			<url>http://mevenide.codehaus.org/repository</url>
		</repository> -->
		<repository>
			<id>ibiblio maven2</id>
			<url>http://www.ibiblio.org/maven2</url>
		 </repository>
	</repositories>


	<dependencies>
		<!-- L2Emu-VCT Addons -->
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>l2emu-lglink</artifactId> <!-- if use with LG -->
			<version>1.0.0</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>l2emu-mmocore</artifactId>
			<version>1.0.21vs</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>l2emu-commons</artifactId>
			<version>3.0.1vs</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>javolution</artifactId>
			<version>5.5.1vs</version>
		</dependency>
	<!--	<dependency>
			<groupId>commons</groupId>
			<artifactId>commons-collections</artifactId>
			<version>3.2.1</version>
		</dependency> -->
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>commons-io</artifactId>
			<version>1.4</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>commons-lang</artifactId>
			<version>2.4</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
		</dependency>
	<!--	<dependency>
			<groupId>c3p0</groupId>
			<artifactId>c3p0</artifactId>
			<version>0.9.1.2</version>
		</dependency> -->
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.22</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>l2emu-dbpool</artifactId>
			<version>1.0.2vs</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>l2emu-geo</artifactId>
			<version>2.0.5</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.15</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>java-engine</artifactId>
			<version>1.0.3</version>
		</dependency>
		<dependency>
			<groupId>l2emu-vct</groupId>
			<artifactId>jython</artifactId>
			<version>2.2.2</version>
		</dependency>
		<!-- L2Emu-VCT Addons -->
		<!-- Dependencies Section: L2Emu Project -->
		<dependency>
			<groupId>l2emuproject</groupId>
			<artifactId>jython-engine</artifactId>
			<version>1.0.1</version>
		</dependency>
		<dependency>
			<groupId>l2emuproject</groupId>
			<artifactId>bsh-engine</artifactId>
			<version>1.0.1</version>
		</dependency>
		<!-- Dependencies Section: L2J Server -->
		<!--
		<dependency>
			<groupId>l2j</groupId>
			<artifactId>l2j-mmocore</artifactId>
			<version>1.0.10</version>
		</dependency> -->
		<!-- Dependencies Section: Others -->
		<dependency>
			<groupId>org.apache.bsf</groupId>
			<artifactId>bsf</artifactId>
			<version>2.0</version>
		</dependency>
		<dependency>
			<groupId>org.beanshell</groupId>
			<artifactId>bsh</artifactId>
			<version>2.0b5</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jdt</groupId>
			<artifactId>core</artifactId>
			<version>3.3.0</version>
		</dependency>
		<dependency>
			<groupId>org.schwering</groupId>
			<artifactId>irclib</artifactId>
			<version>1.10</version>
		</dependency>
		<dependency>
			<groupId>sshtools</groupId>
			<artifactId>j2ssh-daemon</artifactId>
			<version>0.2.2</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
		</dependency>
	</dependencies>
</project>

Obrigado

1 Resposta

sr.machado

bump

Criado 26 de março de 2013
Ultima resposta 26 de mar. de 2013
Respostas 1
Participantes 1