{"action":"created","issue":{"url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/issues/12","labels_url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/issues/12/comments","events_url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/issues/12/events","html_url":"https://github.com/mojohaus/flatten-maven-plugin/issues/12","id":112684005,"number":12,"title":"maven.config, dependencyManagement, and systemPath causes flatten goal to fail","user":{"login":"rpatrick00","id":8006229,"avatar_url":"https://avatars.githubusercontent.com/u/8006229?v=3","gravatar_id":"","url":"https://api.github.com/users/rpatrick00","html_url":"https://github.com/rpatrick00","followers_url":"https://api.github.com/users/rpatrick00/followers","following_url":"https://api.github.com/users/rpatrick00/following{/other_user}","gists_url":"https://api.github.com/users/rpatrick00/gists{/gist_id}","starred_url":"https://api.github.com/users/rpatrick00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpatrick00/subscriptions","organizations_url":"https://api.github.com/users/rpatrick00/orgs","repos_url":"https://api.github.com/users/rpatrick00/repos","events_url":"https://api.github.com/users/rpatrick00/events{/privacy}","received_events_url":"https://api.github.com/users/rpatrick00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"hohwille","id":1923119,"avatar_url":"https://avatars.githubusercontent.com/u/1923119?v=3","gravatar_id":"","url":"https://api.github.com/users/hohwille","html_url":"https://github.com/hohwille","followers_url":"https://api.github.com/users/hohwille/followers","following_url":"https://api.github.com/users/hohwille/following{/other_user}","gists_url":"https://api.github.com/users/hohwille/gists{/gist_id}","starred_url":"https://api.github.com/users/hohwille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohwille/subscriptions","organizations_url":"https://api.github.com/users/hohwille/orgs","repos_url":"https://api.github.com/users/hohwille/repos","events_url":"https://api.github.com/users/hohwille/events{/privacy}","received_events_url":"https://api.github.com/users/hohwille/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/milestones/1","html_url":"https://github.com/mojohaus/flatten-maven-plugin/milestones/release:1.0.0","labels_url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/milestones/1/labels","id":1301105,"number":1,"title":"release:1.0.0","description":"","creator":{"login":"hohwille","id":1923119,"avatar_url":"https://avatars.githubusercontent.com/u/1923119?v=3","gravatar_id":"","url":"https://api.github.com/users/hohwille","html_url":"https://github.com/hohwille","followers_url":"https://api.github.com/users/hohwille/followers","following_url":"https://api.github.com/users/hohwille/following{/other_user}","gists_url":"https://api.github.com/users/hohwille/gists{/gist_id}","starred_url":"https://api.github.com/users/hohwille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohwille/subscriptions","organizations_url":"https://api.github.com/users/hohwille/orgs","repos_url":"https://api.github.com/users/hohwille/repos","events_url":"https://api.github.com/users/hohwille/events{/privacy}","received_events_url":"https://api.github.com/users/hohwille/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2015-09-11T13:37:45Z","updated_at":"2015-11-28T01:33:33Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-10-21T21:35:19Z","updated_at":"2015-11-28T02:07:53Z","closed_at":"2015-11-28T01:33:31Z","body":"I have relatively complex Maven project where in my acceptance tests, I need to specify a dependency with a scope of system to point to an older version of some software that does not supply a Maven POM.  As such, I am using the Maven 3.3 capability to define a .mvn/maven.config file where my team (and my Hudson jobs) specify the path to the software installation in their environment.  Unfortunately, the flatten plugin is choking on this with the following error:\r\n\r\n[ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.0.0-beta-5:flatten (flatten) on project apps: 1 problem was encountered while building the effective model for test:apps:1.0\r\n[ERROR] [ERROR] 'dependencyManagement.dependencies.dependency.systemPath' for com.oracle.weblogic:weblogic-jar:jar must specify an absolute path but is ${path-to-wls1036}/server/lib/weblogic.jar @\r\n\r\nThe variable path-to-wls1036 is defined in the .mvn/maven.config file as follows:\r\n\r\n-Dpath-to-wls1036=c:\\wls1036\\wlserver_10.3\r\n\r\nIf I comment out the flatten plugin, the build is successful.  I have a simple test case that demonstrates the problem.  Happy to send it in email since github does not allow me to attach the file to the issue...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/issues/comments/160238503","html_url":"https://github.com/mojohaus/flatten-maven-plugin/issues/12#issuecomment-160238503","issue_url":"https://api.github.com/repos/mojohaus/flatten-maven-plugin/issues/12","id":160238503,"user":{"login":"rpatrick00","id":8006229,"avatar_url":"https://avatars.githubusercontent.com/u/8006229?v=3","gravatar_id":"","url":"https://api.github.com/users/rpatrick00","html_url":"https://github.com/rpatrick00","followers_url":"https://api.github.com/users/rpatrick00/followers","following_url":"https://api.github.com/users/rpatrick00/following{/other_user}","gists_url":"https://api.github.com/users/rpatrick00/gists{/gist_id}","starred_url":"https://api.github.com/users/rpatrick00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpatrick00/subscriptions","organizations_url":"https://api.github.com/users/rpatrick00/orgs","repos_url":"https://api.github.com/users/rpatrick00/repos","events_url":"https://api.github.com/users/rpatrick00/events{/privacy}","received_events_url":"https://api.github.com/users/rpatrick00/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T02:07:53Z","updated_at":"2015-11-28T02:07:53Z","body":"H:\\projects\\forked\\flatten-maven-plugin\\src\\it\\projects\\system-scope-dep-variabl\r\ne>java -version\r\njava version \"1.8.0_60\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_60-b27)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)\r\n\r\nH:\\projects\\forked\\flatten-maven-plugin\\src\\it\\projects\\system-scope-dep-variabl\r\ne>mvn -version\r\nApache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T06:57:3\r\n7-05:00)\r\nMaven home: c:\\java\\apache-maven-3.3.3\r\nJava version: 1.8.0_60, vendor: Oracle Corporation\r\nJava home: c:\\java\\jdk1.8.0\\jre\r\nDefault locale: en_US, platform encoding: Cp1252\r\nOS name: \"windows 7\", version: \"6.1\", arch: \"amd64\", family: \"dos\"\r\n\r\nH:\\projects\\forked\\flatten-maven-plugin\\src\\it\\projects\\system-scope-dep-variabl\r\ne>mvn package\r\n[INFO] Scanning for projects...\r\n[INFO]\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Building system-scope-dep-variable 0.1-SNAPSHOT\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO]\r\n[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ system-sco\r\npe-dep-variable ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] skip non existing resourceDirectory H:\\projects\\forked\\flatten-maven-plug\r\nin\\src\\it\\projects\\system-scope-dep-variable\\src\\main\\resources\r\n[INFO]\r\n[INFO] --- flatten-maven-plugin:1.0.0-beta-5:flatten (flatten) @ system-scope-de\r\np-variable ---\r\n[INFO] Generating flattened POM of project org.codehaus.mojo.flatten.its:system-\r\nscope-dep-variable:jar:0.1-SNAPSHOT...\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 0.776 s\r\n[INFO] Finished at: 2015-11-27T20:06:14-06:00\r\n[INFO] Final Memory: 17M/491M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.0.0-beta\r\n-5:flatten (flatten) on project system-scope-dep-variable: 1 problem was encount\r\nered while building the effective model for org.codehaus.mojo.flatten.its:system\r\n-scope-dep-variable:0.1-SNAPSHOT\r\n[ERROR] [ERROR] 'dependencies.dependency.systemPath' for com.oracle.java:tools:j\r\nar must specify an absolute path but is ${java.home}/../lib/tools.jar @\r\n[ERROR] -> [Help 1]\r\n[ERROR]\r\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit\r\nch.\r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR]\r\n[ERROR] For more information about the errors and possible solutions, please rea\r\nd the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE\r\nxception\r\n\r\nH:\\projects\\forked\\flatten-maven-plugin\\src\\it\\projects\\system-scope-dep-variabl\r\ne>"}}