101
101
<target name =" compile-single" depends =" compile" />
102
102
103
103
<!-- Prepare additional ant task -->
104
- <path id =" maven-ant-tasks.classpath" >
105
- <pathelement location =" lib/animal-sniffer-ant-tasks-1.17.jar" />
106
- <pathelement location =" lib/maven-ant-tasks-2.1.3.jar" />
107
- </path >
108
- <typedef resource =" org/apache/maven/artifact/ant/antlib.xml"
109
- uri =" antlib:org.apache.maven.artifact.ant"
110
- classpathref =" maven-ant-tasks.classpath" />
111
- <typedef resource =" org/codehaus/mojo/animal_sniffer/antlib.xml"
112
- uri =" antlib:org.codehaus.mojo.animal_sniffer"
113
- classpathref =" maven-ant-tasks.classpath" />
114
104
115
105
<target name =" -prepare-anttools" >
116
106
<subant antfile =" build-ant-tools.xml" buildpath =" ${ basedir } " ></subant >
@@ -1409,50 +1399,50 @@ cd ..
1409
1399
</subant >
1410
1400
</target >
1411
1401
1412
- <target name =" install" depends =" dist,-bootstrap-maven " description =" Install jna and jna-platform artifacts into local maven repository" >
1413
- <artifact : mvn failonerror =" true" >
1402
+ <target name =" install" depends =" dist" description =" Install jna and jna-platform artifacts into local maven repository" >
1403
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1414
1404
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1415
1405
<arg value =" -DpomFile=${ pom } " />
1416
1406
<arg value =" -Dfile=${ dist-jar } " />
1417
1407
<arg value =" -Dsources=${ maven-sources-jar } " />
1418
1408
<arg value =" -Djavadoc=${ maven-javadoc-jar } " />
1419
- </artifact : mvn >
1409
+ </exec >
1420
1410
1421
- <artifact : mvn failonerror =" true" >
1411
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1422
1412
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1423
1413
<arg value =" -DpomFile=${ pom } " />
1424
1414
<arg value =" -Dfile=${ dist-aar } " />
1425
1415
<arg value =" -Dpackaging=aar" />
1426
- </artifact : mvn >
1416
+ </exec >
1427
1417
1428
- <artifact : mvn failonerror =" true" >
1418
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1429
1419
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1430
1420
<arg value =" -DpomFile=${ pom-jpms } " />
1431
1421
<arg value =" -Dfile=${ dist-jar-jpms } " />
1432
1422
<arg value =" -Dsources=${ maven-sources-jar } " />
1433
1423
<arg value =" -Djavadoc=${ maven-javadoc-jar } " />
1434
- </artifact : mvn >
1424
+ </exec >
1435
1425
1436
- <artifact : mvn failonerror =" true" >
1426
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1437
1427
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1438
1428
<arg value =" -DpomFile=${ pom-platform } " />
1439
1429
<arg value =" -Dfile=${ platform-jar } " />
1440
1430
<arg value =" -Dsources=${ platform-sources-jar } " />
1441
1431
<arg value =" -Djavadoc=${ platform-javadoc-jar } " />
1442
- </artifact : mvn >
1432
+ </exec >
1443
1433
1444
- <artifact : mvn failonerror =" true" >
1434
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1445
1435
<arg value =" org.apache.maven.plugins:maven-install-plugin:2.5:install-file" />
1446
1436
<arg value =" -DpomFile=${ pom-platform-jpms } " />
1447
1437
<arg value =" -Dfile=${ platform-jpms-jar } " />
1448
1438
<arg value =" -Dsources=${ platform-sources-jar } " />
1449
1439
<arg value =" -Djavadoc=${ platform-javadoc-jar } " />
1450
- </artifact : mvn >
1440
+ </exec >
1451
1441
</target >
1452
1442
1453
1443
<!-- NOTE: The 'deploy' target works only if the version (jna.version in build.xml) ends in '-SNAPSHOT'. -->
1454
- <target name =" deploy" depends =" dist,-bootstrap-maven " description =" deploy snapshot version to Maven snapshot repository" >
1455
- <artifact : mvn failonerror =" true" >
1444
+ <target name =" deploy" depends =" dist" description =" deploy snapshot version to Maven snapshot repository" >
1445
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1456
1446
<arg value =" org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
1457
1447
<arg value =" -Durl=${ maven-snapshots-repository-url } " />
1458
1448
<arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
@@ -1461,9 +1451,9 @@ cd ..
1461
1451
<arg value =" -Dfiles=${ maven-sources-jar } ,${ maven-javadoc-jar } ,${ dist-aar } " />
1462
1452
<arg value =" -Dtypes=jar,jar,aar" />
1463
1453
<arg value =" -Dclassifiers=sources,javadoc," />
1464
- </artifact : mvn >
1454
+ </exec >
1465
1455
1466
- <artifact : mvn failonerror =" true" >
1456
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1467
1457
<arg value =" org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
1468
1458
<arg value =" -Durl=${ maven-snapshots-repository-url } " />
1469
1459
<arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
@@ -1472,9 +1462,9 @@ cd ..
1472
1462
<arg value =" -Dfiles=${ platform-sources-jar } ,${ platform-javadoc-jar } " />
1473
1463
<arg value =" -Dtypes=jar,jar" />
1474
1464
<arg value =" -Dclassifiers=sources,javadoc" />
1475
- </artifact : mvn >
1465
+ </exec >
1476
1466
1477
- <artifact : mvn failonerror =" true" >
1467
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1478
1468
<arg value =" org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
1479
1469
<arg value =" -Durl=${ maven-snapshots-repository-url } " />
1480
1470
<arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
@@ -1483,9 +1473,9 @@ cd ..
1483
1473
<arg value =" -Dfiles=${ maven-sources-jar } ,${ maven-javadoc-jar } " />
1484
1474
<arg value =" -Dtypes=jar,jar" />
1485
1475
<arg value =" -Dclassifiers=sources,javadoc" />
1486
- </artifact : mvn >
1476
+ </exec >
1487
1477
1488
- <artifact : mvn failonerror =" true" >
1478
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1489
1479
<arg value =" org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file" />
1490
1480
<arg value =" -Durl=${ maven-snapshots-repository-url } " />
1491
1481
<arg value =" -DrepositoryId=${ maven-snapshots-repository-id } " />
@@ -1494,15 +1484,15 @@ cd ..
1494
1484
<arg value =" -Dfiles=${ platform-sources-jar } ,${ platform-javadoc-jar } " />
1495
1485
<arg value =" -Dtypes=jar,jar" />
1496
1486
<arg value =" -Dclassifiers=sources,javadoc" />
1497
- </artifact : mvn >
1487
+ </exec >
1498
1488
</target >
1499
1489
1500
1490
1501
1491
<property name =" version-maven-gpg-plugin" value =" 1.4" />
1502
1492
1503
- <target name =" stage" depends =" dist,-bootstrap-maven " description =" deploy release version to Maven staging repository" >
1493
+ <target name =" stage" depends =" dist" description =" deploy release version to Maven staging repository" >
1504
1494
<!-- sign and deploy the jna, artifact -->
1505
- <artifact : mvn failonerror =" true" >
1495
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1506
1496
<arg value =" org.apache.maven.plugins:maven-gpg-plugin:${ version-maven-gpg-plugin } :sign-and-deploy-file" />
1507
1497
<arg value =" -Durl=${ maven-staging-repository-url } " />
1508
1498
<arg value =" -DrepositoryId=${ maven-staging-repository-id } " />
@@ -1512,10 +1502,10 @@ cd ..
1512
1502
<arg value =" -Dclassifiers=sources,javadoc," />
1513
1503
<arg value =" -Dtypes=jar,jar,aar" />
1514
1504
<arg value =" -Dgpg.useagent=true" />
1515
- </artifact : mvn >
1505
+ </exec >
1516
1506
1517
1507
<!-- sign and deploy the platform artifact -->
1518
- <artifact : mvn failonerror =" true" >
1508
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1519
1509
<arg value =" org.apache.maven.plugins:maven-gpg-plugin:${ version-maven-gpg-plugin } :sign-and-deploy-file" />
1520
1510
<arg value =" -Durl=${ maven-staging-repository-url } " />
1521
1511
<arg value =" -DrepositoryId=${ maven-staging-repository-id } " />
@@ -1525,10 +1515,10 @@ cd ..
1525
1515
<arg value =" -Dclassifiers=sources,javadoc" />
1526
1516
<arg value =" -Dtypes=jar,jar" />
1527
1517
<arg value =" -Dgpg.useagent=true" />
1528
- </artifact : mvn >
1518
+ </exec >
1529
1519
1530
1520
<!-- sign and deploy the jna, artifact -->
1531
- <artifact : mvn failonerror =" true" >
1521
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1532
1522
<arg value =" org.apache.maven.plugins:maven-gpg-plugin:${ version-maven-gpg-plugin } :sign-and-deploy-file" />
1533
1523
<arg value =" -Durl=${ maven-staging-repository-url } " />
1534
1524
<arg value =" -DrepositoryId=${ maven-staging-repository-id } " />
@@ -1538,10 +1528,10 @@ cd ..
1538
1528
<arg value =" -Dtypes=jar,jar" />
1539
1529
<arg value =" -Dclassifiers=sources,javadoc" />
1540
1530
<arg value =" -Dgpg.useagent=true" />
1541
- </artifact : mvn >
1531
+ </exec >
1542
1532
1543
1533
<!-- sign and deploy the platform artifact -->
1544
- <artifact : mvn failonerror =" true" >
1534
+ <exec executable = " mvn" searchpath = " true " failonerror = " true " failifexecutionfails = " true " logError =" true" >
1545
1535
<arg value =" org.apache.maven.plugins:maven-gpg-plugin:${ version-maven-gpg-plugin } :sign-and-deploy-file" />
1546
1536
<arg value =" -Durl=${ maven-staging-repository-url } " />
1547
1537
<arg value =" -DrepositoryId=${ maven-staging-repository-id } " />
@@ -1551,29 +1541,7 @@ cd ..
1551
1541
<arg value =" -Dtypes=jar,jar" />
1552
1542
<arg value =" -Dclassifiers=sources,javadoc" />
1553
1543
<arg value =" -Dgpg.useagent=true" />
1554
- </artifact : mvn >
1555
- </target >
1556
-
1557
- <target name =" -bootstrap-maven" >
1558
- <artifact : remoteRepository id =" remote.mavenCentral" url =" https://repo1.maven.org/maven2/" />
1559
- <artifact : dependencies pathId =" dependency.dummy" >
1560
- <remoteRepository refid =" remote.mavenCentral" />
1561
- <dependency groupId =" org.apache.maven.plugins" artifactId =" maven-gpg-plugin" version =" 1.4" type =" maven-plugin" />
1562
- <dependency groupId =" org.apache.maven.plugins" artifactId =" maven-deploy-plugin" version =" 2.7" type =" maven-plugin" />
1563
- <dependency groupId =" org.apache.maven.plugins" artifactId =" maven-install-plugin" version =" 2.5" type =" maven-plugin" />
1564
- <dependency groupId =" org.apache.maven" artifactId =" apache-maven" version =" 2.0.10" />
1565
- <dependency groupId =" org.apache.maven" artifactId =" maven-model" version =" 2.0.10" />
1566
- <dependency groupId =" org.apache.maven" artifactId =" maven-artifact" version =" 2.0.10" />
1567
- <dependency groupId =" org.apache.maven" artifactId =" maven-project" version =" 2.0.10" />
1568
- <dependency groupId =" org.apache.maven" artifactId =" maven-artifact-manager" version =" 2.0.10" />
1569
- <dependency groupId =" org.apache.maven" artifactId =" maven-plugin-registry" version =" 2.0.10" />
1570
- <dependency groupId =" org.apache.maven" artifactId =" maven-plugin-api" version =" 2.0.10" />
1571
- <dependency groupId =" org.codehaus.plexus" artifactId =" plexus-utils" version =" 3.0.15" />
1572
- </artifact : dependencies >
1573
- <artifact : dependencies pathId =" dependency.dummy2" >
1574
- <remoteRepository refid =" remote.mavenCentral" />
1575
- <dependency groupId =" org.codehaus.plexus" artifactId =" plexus-utils" version =" 1.5.5" />
1576
- </artifact : dependencies >
1544
+ </exec >
1577
1545
</target >
1578
1546
1579
1547
<target name =" checkstyle" >
0 commit comments