lwr commented on issue #2: [MRESOLVER-98] resolver ant task doesn't obey 
dependencyManagement
URL: 
https://github.com/apache/maven-resolver-ant-tasks/pull/2#issuecomment-601667880
 
 
   @snoopyhzy I have abandon this project as a solution of maven ant integration
   
   this PR can workaround the DependencyManagement version issue but still have 
the scope issue, so I think the maven resolver is not a stable solution I can 
rely on this time.
   
   Now I switch back to use the deprecated 
[maven-ant-task](https://maven.apache.org/ant-tasks/) project, with a little 
patch
   
   ```xml
   <!-- patch super pom to workaround central repo policy change problem (http 
access forbidden) -->
   <unzip src="path/to/maven-ant-task-2.1.3.jar"
      dest="maven/target/workaround-central-repo-https">
       <patternset includes="**/pom-4.0.0.xml" />
   </unzip>
   <replace dir="maven/target/workaround-central-repo-https" encoding="utf8"
        token="http://repo1.maven.org/maven2"; 
value="https://repo1.maven.org/maven2"; />
   <typedef resource="org/apache/maven/artifact/ant/antlib.xml" 
uri="antlib:org.apache.maven.artifact.ant">
       <classpath path="maven/target/workaround-central-repo-https" />
       <classpath path="path/to/maven-ant-task-2.1.3.jar" />
   </typedef>
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to