Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,23 @@ The discovery providers are responsible for finding the available endpoint descr

## Releasing

### Dry run the release

```bash
./mvnw clean release:prepare -DreleaseArguments="-DskipTests=true -Dbnd.testing.skip=true" -DdryRun
./mvnw release:perform -DreleaseArguments="-DskipTests=true -Dbnd.testing.skip=true" -DdryRun
# Check the generated poms and cleanup before real release
git add .
git reset --hard
rm release.properties
```

### Maven release

./mvnw clean release:prepare -DskipTests -Darguments=-DskipTests
./mvnw release:perform -DskipTests -Darguments=-DskipTests
```bash
./mvnw clean release:prepare -DreleaseArguments="-DskipTests=true -Dbnd.testing.skip=true"
./mvnw release:perform -DreleaseArguments="-DskipTests=true -Dbnd.testing.skip=true"
```

This creates a staging repository. After all artifacts are deployed login to the [Apache maven repo](https://repository.apache.org) and close the staging repository.

Expand Down
19 changes: 19 additions & 0 deletions discovery/mdns/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down
52 changes: 52 additions & 0 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,58 @@
<failOnMissing>false</failOnMissing>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<reportFile>${project.build.directory}/${project.build.finalName}.rat</reportFile>
<excludeSubProjects>false</excludeSubProjects>
<excludes>
<exclude>**/target/**/*</exclude>
<exclude>**/appended-resources/**/*</exclude>
<exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/velocity.log</exclude>
<exclude>**/DEPENDENCIES</exclude>
<!-- exclude IntelliJ IDEA generated files -->
<exclude>**/*.iml</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/*.iws</exclude>
<exclude>**/.idea/**/*</exclude>
<!-- exclude Eclipse IDE generated files -->
<exclude>**/.project</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/eclipse-classes/**/*</exclude>
<!-- manifest files don't support comments so don't contain the ASL2.0 header -->
<exclude>**/*.MF</exclude>
<!-- RAT doesn't recognize various licenses -->
<exclude>**/xml.xsd</exclude>
<exclude>.gitignore</exclude>
<exclude>README.md</exclude>
<exclude>**/*.cfg</exclude>
<exclude>**/README.md</exclude>
<exclude>**/Readme.md</exclude>
<exclude>**/NOTICE.vm</exclude>
<!-- Binary and generated files -->
<exclude>**/*.proto</exclude>
<exclude>**/*.class</exclude>
<exclude>**/*.jar</exclude>
<exclude>**/*.zip</exclude>
<exclude>**/*.tar.gz</exclude>
<!-- Properties files and generated files -->
<exclude>**/*.properties</exclude>
<exclude>**/generated/**/*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
12 changes: 1 addition & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@
<module>itests</module>
</modules>

<profiles>
<profile>
<id>rat</id>
<build>
<plugins>

</plugins>
</build>
</profile>
</profiles>

<build>
<defaultGoal>install</defaultGoal>
<plugins>
Expand Down Expand Up @@ -96,6 +85,7 @@
<autoVersionSubmodules>true</autoVersionSubmodules>
<mavenExecutorId>forked-path</mavenExecutorId>
<tagNameFormat>org.apache.aries.rsa-@{project.version}</tagNameFormat>
<arguments>-Daether.connector.basic.parallelPut=${releaseParallelPut} ${releaseArguments}</arguments>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* 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.
*/
package org.apache.aries.rsa.provider.tcp;

import org.apache.aries.rsa.provider.tcp.myservice.MyService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* 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.
*/
package org.apache.aries.rsa.annotations;

import org.osgi.annotation.bundle.Attribute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* 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.
*/
package org.apache.aries.rsa.annotations;

import org.osgi.annotation.bundle.Attribute;
Expand Down