How do you stop maven from trying to access http://repo.maven.apache.org?

All pom files inherit from the maven super POM http://maven.apache.org/ref/3.0.4/maven-model-builder/super-pom.html which contains this entry: <repositories> <repository> <id>central</id> <name>Central Repository</name> <url>http://repo.maven.apache.org/maven2</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> Try setting this in your pom (with <id>central</id>): <repositories> <repository> <id>central</id> <url>http://repo.dev.bloomberg.com/content/groups/public</url> <releases> <enabled>false</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://repo.dev.bloomberg.com/content/groups/public</url> <releases> <enabled>false</enabled> </releases> </pluginRepository> </pluginRepositories>

Maven managed dependencies – resolving ${project.version} from parent pom

You have to skip <version> tag in child, but keep the <parent><version> … </parent> tag. http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance One factor to note is that these variables are processed after inheritance as outlined above. This means that if a parent project uses a variable, then its definition in the child, not the parent, will be the one eventually … Read more

Maven: Overview for the values of Maven properties

As a workaround, add this to the <plugins> … </plugins> section inside your project’s pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <phase>validate</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <echoproperties /> </tasks> </configuration> </execution> </executions> </plugin> Now execute mvn validate. On the console, prefixed with [echoproperties], there will be the full list of system properties, including those … Read more

Is Maven ready for JDK9?

Here is the answer from one Maven PMC member (me): No, it is not. Robert Scholte is working on it. Jigsaw and other stuff introduced a lot of changes. There is no official timeframe where full compat (Maven + official plugins) will be given. The issue you see is actually not Maven but Plexus Archiver. … Read more

Changing the order of maven plugins execution

Since you say you are very new to Maven….Maven builds are executions of an ordered series of phases. These phases are determined by the lifecycle that is appropriate to your project based on its packaging. Therefore, you control when a plugin’s goal is executed by binding it to a particular phase. Hope that helps. EDIT: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)