Sweet! This looks like the answer to my problems, except that when I include the plugin in my pom.xml, I'm not able to download it. What repository should I be using? Here is what I get ...
mvn clean install jboss:redeploy [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom [INFO] Unable to find resource 'org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0' in repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom [INFO] Unable to find resource 'org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0' in repository maven2 (http://repo1.maven.org/maven2) Downloading: http://repository.jboss.com/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom [INFO] Unable to find resource 'org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0' in repository jboss (http://repository.jboss.com/maven2) Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom [INFO] Unable to find resource 'org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0' in repository ibiblio (http://mirrors.ibiblio.org/pub/mirrors/maven2) Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom [INFO] Unable to find resource 'org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-enforcer-plugin Version: 1.0 Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0 from the specified remote repositories: maven2 (http://repo1.maven.org/maven2), central (http://repo1.maven.org/maven2), Codehaus Snapshots (http://snapshots.repository.codehaus.org/), jboss (http://repository.jboss.com/maven2), ibiblio (http://mirrors.ibiblio.org/pub/mirrors/maven2) Thanks, - Dave Wayne Fay wrote: > >> If someone doesn't specify "-Denv=" in the build command, how can you >> warn >> them that they must include this parameter rather than the build "failing >> spectacularly". > > The enforcer plugin can help with that: > http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Building-using-different-files-based-on-a-build-flag--tp26634795p26645812.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
