Skip to content

Commit 23f614c

Browse files
authored
remove plugins to restore source and javadoc jar (Azure#17680)
1 parent 3b021fd commit 23f614c

File tree

1 file changed

+0
-115
lines changed
  • sdk/spring/azure-spring-boot-starter-keyvault-certificates

1 file changed

+0
-115
lines changed

sdk/spring/azure-spring-boot-starter-keyvault-certificates/pom.xml

Lines changed: 0 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -53,121 +53,6 @@
5353
</rules>
5454
</configuration>
5555
</plugin>
56-
<!-- BEGIN: Empty Java Doc & Sources -->
57-
<!-- The following code will generate an empty javadoc with just a README.md. This is necessary
58-
to pass the required checks on Maven. The way this works is by setting the classesDirectory
59-
to a directory that only contains the README.md, which we need to copy. If the classesDirectory
60-
is set to the root, where the README.md lives, it still won't have javadocs but the jar file
61-
will contain a bunch of files that shouldn't be there. The faux sources directory is deleted
62-
and recreated with the README.md being copied every time to guarantee that, when building locally,
63-
it'll have the latest copy of the README.md file.
64-
-->
65-
<plugin>
66-
<groupId>org.apache.maven.plugins</groupId>
67-
<artifactId>maven-javadoc-plugin</artifactId>
68-
<version>3.1.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} -->
69-
<executions>
70-
<execution>
71-
<id>attach-javadocs</id>
72-
<goals>
73-
<goal>jar</goal>
74-
</goals>
75-
<configuration>
76-
<skip>true</skip>
77-
</configuration>
78-
</execution>
79-
</executions>
80-
</plugin>
81-
<plugin>
82-
<groupId>org.apache.maven.plugins</groupId>
83-
<artifactId>maven-jar-plugin</artifactId>
84-
<version>3.1.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} -->
85-
<executions>
86-
<!-- BEGIN: Empty Java Doc -->
87-
<execution>
88-
<id>empty-javadoc-jar-with-readme</id>
89-
<phase>package</phase>
90-
<goals>
91-
<goal>jar</goal>
92-
</goals>
93-
<configuration>
94-
<classifier>javadoc</classifier>
95-
<classesDirectory>${project.basedir}/javadocTemp</classesDirectory>
96-
</configuration>
97-
</execution>
98-
<!-- END: Empty Java Doc -->
99-
<!-- BEGIN: Empty Sources -->
100-
<execution>
101-
<id>empty-sources-jar-with-readme</id>
102-
<phase>package</phase>
103-
<goals>
104-
<goal>jar</goal>
105-
</goals>
106-
<configuration>
107-
<classifier>sources</classifier>
108-
<classesDirectory>${project.basedir}/sourceTemp</classesDirectory>
109-
</configuration>
110-
</execution>
111-
<!-- END: Empty Sources -->
112-
</executions>
113-
</plugin>
114-
<plugin>
115-
<groupId>org.apache.maven.plugins</groupId>
116-
<artifactId>maven-antrun-plugin</artifactId>
117-
<version>1.8</version> <!-- {x-version-update;org.apache.maven.plugins:maven-antrun-plugin;external_dependency} -->
118-
<executions>
119-
<execution>
120-
<id>copy-readme-to-javadocTemp</id>
121-
<phase>prepare-package</phase>
122-
<configuration>
123-
<target>
124-
<echo>Deleting existing ${project.basedir}/javadocTemp</echo>
125-
<delete includeEmptyDirs="true" quiet="true">
126-
<fileset dir="${project.basedir}/javadocTemp"/>
127-
</delete>
128-
<echo>Copying ${project.basedir}/README.md to
129-
${project.basedir}/javadocTemp/README.md
130-
</echo>
131-
<copy file="${project.basedir}/README.md" tofile="${project.basedir}/javadocTemp/README.md"/>
132-
</target>
133-
</configuration>
134-
<goals>
135-
<goal>run</goal>
136-
</goals>
137-
</execution>
138-
<execution>
139-
<id>copy-readme-to-sourceTemp</id>
140-
<phase>prepare-package</phase>
141-
<configuration>
142-
<target>
143-
<echo>Deleting existing ${project.basedir}/sourceTemp</echo>
144-
<delete includeEmptyDirs="true" quiet="true">
145-
<fileset dir="${project.basedir}/sourceTemp"/>
146-
</delete>
147-
<echo>Copying ${project.basedir}/README.md to
148-
${project.basedir}/sourceTemp/README.md
149-
</echo>
150-
<copy file="${project.basedir}/README.md" tofile="${project.basedir}/sourceTemp/README.md"/>
151-
</target>
152-
</configuration>
153-
<goals>
154-
<goal>run</goal>
155-
</goals>
156-
</execution>
157-
</executions>
158-
</plugin>
159-
<plugin>
160-
<groupId>org.apache.maven.plugins</groupId>
161-
<artifactId>maven-source-plugin</artifactId>
162-
<version>3.0.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-source-plugin;external_dependency} -->
163-
<executions>
164-
<execution>
165-
<id>attach-sources</id>
166-
<phase>none</phase> <!-- The way to skip the sources attach is to set the phase to none, the skip config doesn't work for sources -->
167-
</execution>
168-
</executions>
169-
</plugin>
170-
<!-- END: Empty Java Doc & Sources -->
17156
</plugins>
17257
</build>
17358
<properties>

0 commit comments

Comments
 (0)