-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MJAVADOC-639] include requires static from external dependencies for…
… all modules (#38) * [MJAVADOC-639] include requires static from external dependencies for all modules Signed-off-by: olivier lamy <olamy@apache.org> * [MJAVADOC-639] update plexus-java method name Signed-off-by: olivier lamy <olamy@apache.org> * add plexus snapshots repository Signed-off-by: olivier lamy <olamy@apache.org> * [MJAVADOC-639] plexus-java 1.0.5 Signed-off-by: olivier lamy <olamy@apache.org>
- Loading branch information
Showing
23 changed files
with
731 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/it/projects/MJAVADOC-639_aggr_static_modulepath/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
invoker.java.version = 9+ | ||
invoker.goals=javadoc:aggregate | ||
|
32 changes: 32 additions & 0 deletions
32
src/it/projects/MJAVADOC-639_aggr_static_modulepath/modulea/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more | ||
contributor license agreements. See the NOTICE file ~ distributed with this | ||
work for additional information ~ regarding copyright ownership. The ASF | ||
licenses this file ~ to you under the Apache License, Version 2.0 (the ~ | ||
"License"); you may not use this file except in compliance ~ with the License. | ||
You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ ~ Unless required by applicable law or agreed to in writing, ~ software | ||
distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the | ||
License for the ~ specific language governing permissions and limitations | ||
~ under the License. --> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>modulea</groupId> | ||
<artifactId>modulea</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
<configuration> | ||
<release>9</release> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
37 changes: 37 additions & 0 deletions
37
...9_aggr_static_modulepath/modulea/src/main/java/com/javamodularity/modulea/HelloWorld.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.javamodularity.modulea; | ||
|
||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* <p>Javadoc aggregation from module a.</p> | ||
*/ | ||
public class HelloWorld { | ||
|
||
/** | ||
* <p>method f does something</p> | ||
*/ | ||
public void f() { | ||
} | ||
|
||
public static void main(String... args) { | ||
System.out.println("Hello Modular World!"); | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/it/projects/MJAVADOC-639_aggr_static_modulepath/modulea/src/main/java/module-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* <p>modulea does something</p> | ||
*/ | ||
module modulea { | ||
exports com.javamodularity.modulea; | ||
} |
32 changes: 32 additions & 0 deletions
32
src/it/projects/MJAVADOC-639_aggr_static_modulepath/moduleb/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more | ||
contributor license agreements. See the NOTICE file ~ distributed with this | ||
work for additional information ~ regarding copyright ownership. The ASF | ||
licenses this file ~ to you under the Apache License, Version 2.0 (the ~ | ||
"License"); you may not use this file except in compliance ~ with the License. | ||
You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ ~ Unless required by applicable law or agreed to in writing, ~ software | ||
distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the | ||
License for the ~ specific language governing permissions and limitations | ||
~ under the License. --> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>moduleb</groupId> | ||
<artifactId>moduleb</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
<configuration> | ||
<release>9</release> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
37 changes: 37 additions & 0 deletions
37
...9_aggr_static_modulepath/moduleb/src/main/java/com/javamodularity/moduleb/HelloWorld.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.javamodularity.moduleb; | ||
|
||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* <p>Javadoc aggregation from module a.</p> | ||
*/ | ||
public class HelloWorld { | ||
|
||
/** | ||
* <p>method f does something</p> | ||
*/ | ||
public void f() { | ||
} | ||
|
||
public static void main(String... args) { | ||
System.out.println("Hello Modular World!"); | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/it/projects/MJAVADOC-639_aggr_static_modulepath/moduleb/src/main/java/module-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* <p>moduleb does something</p> | ||
*/ | ||
module moduleb { | ||
exports com.javamodularity.moduleb; | ||
} |
46 changes: 46 additions & 0 deletions
46
src/it/projects/MJAVADOC-639_aggr_static_modulepath/modulec/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more | ||
contributor license agreements. See the NOTICE file ~ distributed with this | ||
work for additional information ~ regarding copyright ownership. The ASF | ||
licenses this file ~ to you under the Apache License, Version 2.0 (the ~ | ||
"License"); you may not use this file except in compliance ~ with the License. | ||
You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ ~ Unless required by applicable law or agreed to in writing, ~ software | ||
distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the | ||
License for the ~ specific language governing permissions and limitations | ||
~ under the License. --> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>modulec</groupId> | ||
<artifactId>modulec</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
<configuration> | ||
<release>9</release> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>modulea</groupId> | ||
<artifactId>modulea</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>moduleb</groupId> | ||
<artifactId>moduleb</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<optional>true</optional> | ||
</dependency> | ||
</dependencies> | ||
</project> |
50 changes: 50 additions & 0 deletions
50
...gr_static_modulepath/modulec/src/main/java/com/javamodularity/modulec/WorldCollector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.javamodularity.modulec; | ||
|
||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* <strong>WorldCollector</strong> | ||
*/ | ||
public class WorldCollector { | ||
|
||
public void collect() | ||
{ | ||
getA().main(); | ||
|
||
try | ||
{ | ||
getB().main(); | ||
} | ||
catch ( Exception e ) | ||
{ | ||
// noop | ||
} | ||
} | ||
|
||
public com.javamodularity.modulea.HelloWorld getA() | ||
{ | ||
return new com.javamodularity.modulea.HelloWorld(); | ||
} | ||
|
||
public com.javamodularity.moduleb.HelloWorld getB() | ||
{ | ||
return new com.javamodularity.moduleb.HelloWorld(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/it/projects/MJAVADOC-639_aggr_static_modulepath/modulec/src/main/java/module-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* <p>modulec does something</p> | ||
*/ | ||
module modulec { | ||
requires modulea; | ||
requires static moduleb; | ||
|
||
exports com.javamodularity.modulec; | ||
} |
36 changes: 36 additions & 0 deletions
36
src/it/projects/MJAVADOC-639_aggr_static_modulepath/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more | ||
contributor license agreements. See the NOTICE file ~ distributed with this | ||
work for additional information ~ regarding copyright ownership. The ASF | ||
licenses this file ~ to you under the Apache License, Version 2.0 (the ~ | ||
"License"); you may not use this file except in compliance ~ with the License. | ||
You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ ~ Unless required by applicable law or agreed to in writing, ~ software | ||
distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the | ||
License for the ~ specific language governing permissions and limitations | ||
~ under the License. --> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>parent</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<modules> | ||
<module>modulea</module> | ||
<module>moduleb</module> | ||
<module>modulec</module> | ||
</modules> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>@project.version@</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.