GVKun编程网logo

petalinux add pre-build application to rootfs compile faliure solution

4

在本文中,我们将详细介绍petalinuxaddpre-buildapplicationtorootfscompilefaliuresolution的各个方面,同时,我们也将为您带来关于AddingO

在本文中,我们将详细介绍petalinux add pre-build application to rootfs compile faliure solution的各个方面,同时,我们也将为您带来关于Adding Open Source 3D Physics to Your iOS Applications (3)Using Bullet in Your iOS Application、android – ApplicationStatus类E / SysUtils:ApplicationStat中的ApplicationContext为null、android – NotificationCompat.Builder(getApplicationContext(),CHANNEL_ID)无法处理Oreo Firebase通知、application.properties 在 maven-compiler-plugin 期间更改的有用知识。

本文目录一览:

petalinux add pre-build application to rootfs compile faliure solution

petalinux add pre-build application to rootfs compile faliure solution

Vivado Petalinux版本:2018.3

1. 按照UG1144 -> Chapter 7 Customizing the Rootfs -> Including Prebuilt Applications建立mygpio,结果编译无法通过,解决方法

 

1. Create an application with the following command.
$ petalinux-create -t apps --template install --name myapp --enable

2. Change to the newly created application directory.
$ cd <plnx-proj-root>/project-spec/meta-user/recipes-apps/myapp/files/

3. Remove existing myapp app and copy the prebuilt myapp into myapp/files directory.
$ rm myapp

$ cp <path-to-prebuilt-app> ./

 

编译rootfs

cmd:petalinux-build -c rootfs

如下报错:

ERROR: mygpio-1.0-r0 do_package: QA Issue: File ''/usr/bin/mygpio'' from mygpio was already stripped, this will prevent future debugging! [already-stripped]
ERROR: mygpio-1.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: mygpio-1.0-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /home/Kevin/petaprojects/xilinx-zc706-2018.3/build/tmp/work/cortexa9hf-neon-xilinx-linux-gnueabi/mygpio/1.0-r0/temp/log.do_package.50070
ERROR: Task (/home/Kevin/petaprojects/xilinx-zc706-2018.3/project-spec/meta-user/recipes-apps/mygpio/mygpio.bb:do_package) failed with exit code ''1''

 

解决方法:

mygpio.bb  添加如下string

INSANE_SKIP_mygpio = "ldflags"               //备注:mygpio为客户自己建立的app名称,在此example中为mygpio
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"

 

完整的mygpio.bb 如下:

# This file is the mygpio recipe.
#

SUMMARY = "Simple mygpio application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://mygpio \
"

S = "${WORKDIR}"


INSANE_SKIP_mygpio = "ldflags"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INHIBIT_PACKAGE_STRIP = "1"

do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/mygpio ${D}/${bindir}
}

 

重新编译rootfs,通过了

cmd:petalinux-build -c rootfs

 

End

Adding Open Source 3D Physics to Your iOS Applications (3)Using Bullet in Your iOS Application

Adding Open Source 3D Physics to Your iOS Applications (3)Using Bullet in Your iOS Application

Using Bullet in Your iOS Application

All that remains is to build an application that actually uses Bullet and displays 3D objects. Apple's GLKit framework makes it relatively easy.

Make the view controller class generated by Xcode's Single View Application template into a subclass of GLKViewController instead of UIViewCintroller. The PViewController.h file in the tutorial sample code contains the following lines:

#import <GLKit/GLKit.h>
 PViewController : @interfaceGLKViewController

Next,edit the MainStoryboard.storyboard file generated by Xcode's Single View Application template. Set the class of the generated view to GLKView using Xcode's Identity inspector,shown in figure 12.

Figure 12 Setting the view's class to GLKView

Add the GLKit and OpenGLES frameworks to the project. The easiest way is to edit the project's Build Phases,as shown in figure 13. Press the + button in the Link Binary with Libraries section to add frameworks.

Figure 13 GLKit and OpenGLES frameworks added to the project

If you build and run the tutorial project Now,you should see a black screen. The next step is to create a physics simulation and draw something more interesting.

The tutorial source code includes a file named PAppDelegate.mm. The .mm extension tells Xcode to compile the file as Objective-C++ code intermixing C++ and Objective-C. The following code declares instance variables to store Bullet physics objects:

#import "PAppDelegate.h"
#include "btBulletDynamicsCommon.h"
#include <map>


 < *,*> 
   GModelShapeMap;


  ()
{
    *collisionConfiguration;
    *dispatcher;
    *overlappingPairCache;
    *solver;
    *dynamicsWorld;
   *> collisionShapes;
   
    modelShapeMap;
}

@endtypedefstd::mapPPhysicsObjectbtCollisionObject@interfacePAppDelegatebtDefaultCollisionConfigurationbtCollisiondispatcherbtbroadphaseInterfacebtSequentialImpulseConstraintSolverbtdiscreteDynamicsWorldbtAlignedobjectArray<btCollisionShapeGModelShapeMap

The GModelShapeMap modelShapeMap variable is used to store the relationships between Objective-C objects representing Boxes and spheres and the corresponding shapes simulated by Bullet. A C++ map is a standard class similar in function to Cocoa Touch'sNSDictionary class.

The physics simulation is initialized in PAppDelegate's -application:didFinishLaunchingWithOptions: method that's part of the Cocoa Touch standard application delegate protocol. The simulation is configured to use Earth's gravitational acceleration of -9.81 meters per second2. Comments explain the steps needed to initialize Bullet. Don't worry if it doesn't make much sense to you. It's boilerplate code.

/////////////////////////////////////////////////////////////////
// Creates needed physics simulation objects and configures
// properties such as the acceleration of gravity that seldom
// if ever change while the application executes.
- ()application:( *)application 
   didFinishLaunchingWithOptions:( *)launchOptions
{
    ///collision configuration contains default setup for memory,// collision setup. Advanced users can create their own 
   // configuration.
     =  
      ();
   
    ///use the default collision dispatcher. For parallel 
   // processing you can use a diffent dispatcher 
   // (see Extras/BulletMultiThreaded)
     = 	  
      ();
   
    ///btDbvtbroadphase is a good general purpose broadphase. You 
   // can also try out btAxis3Sweep.
     =  ();
   
    ///the default constraint solver. For parallel processing you 
   // can use a different solver (see Extras/BulletMultiThreaded)
     =  ;
   
     = 
       (,);
   
    ->setGravity(());
   
   return YES;
}BOOLUIApplicationNSDictionarycollisionConfigurationnewbtDefaultCollisionConfigurationdispatchernewbtCollisiondispatchercollisionConfigurationoverlappingPairCachenewbtDbvtbroadphasesolvernewbtSequentialImpulseConstraintSolverdynamicsWorldnewbtdiscreteDynamicsWorlddispatcheroverlappingPairCachesolvercollisionConfigurationdynamicsWorldbtVector30,-9.81,0

PAppDelegate's -applicationWillTerminate: method tears down the simulation built in -application:didFinishLaunchingWithOptions:. It's not necessary to implement -applicationWillTerminate: in the tutorial sample code because when the application terminates,iOS will automatically reclaim the memory and other resources consumed by the physics engine. The code is provided in PAppDelegate.mm as example to follow if you ever need to clean up the physics engine while the application continues to execute.

PAppDelegate provides the following -physicsUpdateWithelapsedtime: method. Call the method periodically to give the physics engine opportunities to recalculate object positions and orientations.

/////////////////////////////////////////////////////////////////
// Turn the crank on the physics simulation to calculate 
// positions and orientations of collision shapes if
// necessary. The simulation performs up to 32 interpolation
// steps depending on the amount of elapsed time,and each step
// represents 1/120 seconds of elapsed time.
- ()physicsUpdateWithelapsedtime:()seconds;
{
   dynamicsWorld->stepSimulation(seconds,/);
}voidNSTimeInterval321120.0f

That's all it takes to start using Bullet physics for iOS. The simulation doesn't produce any interesting results unless some objects are added and set in motion to collide with each other. It's time to create,register,and draw physics objects.

GLKit provides most of the features needed. The tutorial project includes files named sphere.h and cube.h containing data declarations for 3D shapes. The data consists of vertex positions and "normal" vectors. Each shape is drawn as a list of connected triangles. The normal vectors provide information used to calculate how much simulated light reflects from each triangle.

The PViewController class implements all of the drawing for the tutorial. The drawing code is suboptimal to keep the code simple,and it turns out not to matter at run time. Profiling the tutorial code reveals that less than 20% of the application's execution time is spent drawing. Even if the drawing code is removed entirely,the application only runs 20% faster.

PViewController declares the following properties. The baseEffect property stores an instance of GLKit's GLKBaseEffect class. Modern GPUs are programmable allowing almost unlimited flexibility when rendering 3D graphics. The programs running on the GPU are sometimes called effects. GLKBaseEffect encapsulates the GPU programs needed by simple applications so that you don't need to dive into GPU programming when getting started.

@interface  ()

@property (strong,nonatomic,readwrite)
    *baseEffect;
@property (strong,readwrite) 
    *BoxPhysicsObjects;
@property (strong,readwrite) 
    *spherePhysicsObjects;
@property (strong,readwrite) 
    *immovableBoxPhysicsObjects;
   
@endPViewControllerGLKBaseEffectNSMutableArrayNSMutableArrayNSMutableArray

Other than baseEffect,the other properties all store arrays of Objective-C objects representing spheres and Boxes in the simulation. Bullet only recalculates positions for physics objects that have mass. Objects created with zero mass are therefore immovable within the simulation. They don't become displaced when other objects collide or fall in response to gravity. The immovableBoxPhysicsObjects property stores an array of zero mass Boxes used to form a floor. Without a few immovable objects in the simulation,all of the other objects would quickly fall out of view as the result of simulated gravity.

Two GLKViewController methods provide the key to drawing with GLKit: -update and -glkView:drawInRect:. The –update method is called periodically in sync with the iOS device display refresh rate. The display always refreshes 60 times per second,butGLKViewController's default behavior is to call –update at 30Hz. In other words, –update is called once for every two display refreshes. GLKViewController can be configured to call –update at other rates,but 30 times per second works well for simulations. Right after calling –update, GLKViewController tells the view it controls to display,and the view calls back to GLKViewController's -glkView:drawInRect:. Therefore,you implement simulation update in –update and implement custom 3D drawing code in -glkView:drawInRect:.

/////////////////////////////////////////////////////////////////
// This method is called automatically at the update rate of the 
// receiver (default 30 Hz). This method is implemented to
// update the physics simulation and remove any simulated objects
// that have fallen out of view.
- ()update
{
    *appDelegate = 
      [[] ];
   
   [appDelegate :
      .];

   // Remove objects that have fallen out of view from the 
   // physics simulation
   [ ];
}voidPAppDelegateUIApplication sharedApplicationdelegatephysicsUpdateWithelapsedtimeselftimeSinceLastUpdateselfremoveOutOfViewObjects

The following drawing code sets baseEffect properties to match the orientation of the iOS device,specifies perspective,positions a light,and prepares for drawing 3D objects. Theaspect ratio is the ratio of a view's width to its height. The aspect ratio may change when an iOS device is rotated from portrait orientation to landscape and back. Perspectivedefines how much of the 3D scene is visible at once and how objects in the distance appear smaller than objects up close.

In the real world,we only see objects that reflect light into our eyes. We perceive the shape of objects because different amounts of light reflect for different parts of the objects. Setting the baseEffect's light position controls how OpenGL calculates the amount of simulated light reflected off each part of a virtual 3D object. Calling [self.baseEffect preparetoDraw] tells the base effect to prepare a suitable GPU program for execution.

/////////////////////////////////////////////////////////////////
// GLKView delegate method: Called by the view controller's view
// whenever Cocoa Touch asks the view controller's view to
// draw itself. (In this case,render into a frame buffer that
// shares memory with a Core Animation Layer)
- ()glkView:( *)view drawInRect:()rect
{
   // Calculate the aspect ratio for the scene and setup a 
   // perspective projection
      aspectRatio = 
   ()view. / ()view.;
   
   // Set the projection to match the aspect ratio
   .. = 
   (
      (),// Standard field of view
      aspectRatio,// Don't make near plane too close
      ); // Far arbitrarily far enough to contain scene
   
   // Configure a light
   ... = 
   (,);// Directional light
      
   [. ];

   // Clear Frame Buffer (erase prevIoUs drawing)
   (|);
   
   [ ];
   [ ];      
}voidGLKViewCGRectconstGLfloatGLfloatdrawableWidthGLfloatdrawableHeightselfbaseEffecttransform.projectionMatrixGLKMatrix4MakePerspectiveGLKMathdegreesToradians35.0f0.2f200.0fselfbaseEffectlight0positionGLKVector4Make0.6f1.0f0.4f0.0fselfbaseEffectpreparetoDrawglClearGL_COLOR_BUFFER_BITGL_DEPTH_BUFFER_BITselfdrawPhysicssphereObjectsselfdrawPhysicsBoxObjects

OpenGL ES is a technology for controlling GPUs. Parts of OpenGL ES execute on the GPU itself,and other parts execute on the cpu. Programs call a library of C functions provided by OpenGL to tell OpenGL what to do. The glClear() function,called in the tutorial's -glkView:drawInRect:, erases prevIoUs drawing and discards prevIoUsly calculated information about which 3D objects are in front of others.

PViewController's –drawPhysicssphereObjects and –drawPhysicsBoxObjects methods draw spheres and Boxes with positions and orientations calculated by the physics engine. Without going into a lot of detail,each of the methods calls OpenGL ES functions to specify where to find vertex data defining triangles. Then the triangles are drawn by calling code similar to the following:

      // Draw triangles using the first three vertices in the 
      // currently bound vertex buffer
      (,// Start with first vertex in currently bound buffer
         sphereNumVerts);glDrawArraysGL_TRIANGLES0

OpenGL ES can only draw points,lines segments,and triangles. Complex shapes are composed of many triangles. The shapes in this tutorial are defined in sphere.h and cube.h. The shapes were initially drawn in a free open source 3D modeling application called Blender. Modeling is the term used by artists who create 3D shapes. The created models are exported from Blender in .obj file format and then converted into C header files suitable for direct use with OpenGL. Conversion is performed by an open source Perl language script.

It takes a little more work to setup GLKit. PViewController's -viewDidLoad method shows representative boilerplate code. This article glosses over methods like PViewController's –addRandomPhysicsObject. The code for adding physics objects is straightforward and particular to this tutorial. You'll most likely add different objects with different logic in your physics simulation projects.

Conclusion

The simulation provides remarkably complex and varied interaction between objects. The downloadable code is available in two variants. The Physics zip file (3dphyslibios_physics.zip) contains a Physics folder with an Xcode project. If you have built the Bullet demo applications for Mac OS X,you can copy the Physics folder into your bullet-2.80-rev2531 folder,double-click the Physics.xcodeproj file and press Run. A separate larger PhysicsPlusBullet zip file (3dphyslibios_physicsplusbullet.zip) contains the tutorial example and the needed Bullet source code combined. As always with open source,it's better to get the source code directly from the maintainers instead of grabbing a snapshot preserved in a tutorial's .zip file. Nevertheless,if you're impatient,the PhysicsPlusBullet zip file will get you up and running quickly.

This article provided a whirlwind tour of two large and powerful frameworks,Bullet and GLKit. It's not difficult to combine the two technologies in iOS applications. Like many open source libraries,Bullet is relatively easy to compile for iOS in spite of quirks related to the tools and coding style used by the library's authors. GLKit enables development of interesting and visually complex 3D applications with very little code. The tutorial implements all of its drawing in about 200 lines of code including comments and blank lines.

If you are interested in a more thorough introduction to 3D graphics concepts and GLKit,my new book, Learning OpenGL ES for iOS: A Hands-on Guide to Modern 3D Graphics Programming,is complete and available Now as a Rough Cut electronic edition. Look for the title at your favorite bookstore in the fall. Free sample codefrom the book is available.

android – ApplicationStatus类E / SysUtils:ApplicationStat中的ApplicationContext为null

android – ApplicationStatus类E / SysUtils:ApplicationStat中的ApplicationContext为null

我不时在LogCat中收到此错误:

E / SysUtils:ApplicationStat中的ApplicationContext为null

有谁知道ApplicationStatus类?我没有在我的项目中

它发生在我在openGL中快速渲染纹理时

解决方法

在我的案例中,我成功地解决了这个问题.将参数传递给intent时,我得到一个NullPointerException.

我的问题是在打开新意图时直接传递额外的变量,如下所示.

>调用代码:

intent.putExtra("markerdata: ",assetVO);

>接收代码:

markerdata = (HashMap<String,Object>) getIntent().getSerializableExtra("markerdata");

2天前升级到Android Studio 1.3后,我总是变为空.

所以我的工作是将传递的信息捆绑在一起:

>调用代码:

Bundle b = new Bundle();
            b.putSerializable("markerdata",assetVO);
            intent.putExtras(b);

>接收代码:

Bundle extras = getIntent().getExtras();
markerdata = (HashMap<String,Object>) extras.getSerializable("markerdata");

现在它的工作原理.希望它可以帮助别人.

android – NotificationCompat.Builder(getApplicationContext(),CHANNEL_ID)无法处理Oreo Firebase通知

android – NotificationCompat.Builder(getApplicationContext(),CHANNEL_ID)无法处理Oreo Firebase通知

我试图在Oreo版本中使用Firebase显示通知,因此当我获得解决方案时它不显示
NotificationCompat.Builder(这个,CHANNEL_ID),但它显示我像这个

我的build.gradle文件是

apply plugin: 'com.android.application'

    dependencies {
    compile project(':library')
    compile project(':camerafragment')
    compile 'com.google.android.gms:play-services:11.0.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.mcxiaoke.volley:library:1.0.17'
    compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
    compile 'com.android.support:cardview-v7:26.0.0-alpha1'
    compile 'com.google.firebase:firebase-messaging:11.0.0'
    compile 'com.google.android.gms:play-services-maps:11.0.0'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.android.support:design:26.0.0-alpha1'
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.google.android.gms:play-services-auth:11.0.0'
    compile 'net.gotev:uploadservice:2.1'
    compile 'com.google.firebase:firebase-auth:11.0.0'
    compile 'com.google.code.gson:gson:2.8.0'
    compile 'com.android.support:support-v4:26.0.0-alpha1'
    }

    android {

    compileSdkVersion 27
    buildToolsversion "27.0.0"
    dexOptions {
        javaMaxHeapSize "4g"
    }
    defaultConfig {
        applicationId "com.trashmap"
        minSdkVersion 17
        targetSdkVersion 27

        // Enabling multidex support.
        multiDexEnabled true
        versionCode 17
        versionName "1.16"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
           // shrinkResources true//new add to reduce size
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }

    }



      sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            res.srcDirs = ['res']
        }
    }
}

apply plugin: 'com.google.gms.google-services'

解决方法

NotificationCompat.Builder (Context context)

This constructor was deprecated in API level 26.1.0.

use NotificationCompat.Builder(Context,String) instead. All posted Notifications must specify a NotificationChannel Id.

你已经定义了编译’com.android.support:support-v4:26.0.0-alpha1’所以你必须改变你的支持库的版本号.

application.properties 在 maven-compiler-plugin 期间更改

application.properties 在 maven-compiler-plugin 期间更改

如何解决application.properties 在 maven-compiler-plugin 期间更改?

Github 存储库

https://github.com/rennyong/demo

Maven 命令

mvn clean package -Pprod -Dmaven.test.skip=true

异常行为

如果您在 maven 命令运行时离开 target/classes/resources/application.properties,您将看到以下异常行为: 已删除 >> spring.profiles.active=prod spring.profiles.active=@spring.profiles.active@

预期结果/结果

应仅过滤以下属性!
spring.profiles.active=prod

POM.xml

<?xml version="1.0" encoding="UTF-8"?>
<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>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.4</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>
    <name>demo</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>8</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-validation</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.session</groupId>
            <artifactId>spring-session-core</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.microsoft.sqlserver</groupId>
            <artifactId>mssql-jdbc</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- File Download-->
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.6</version>
        </dependency>
        <!--metamodel Generator
        Auto generation of Meta model for specifications-->
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-jpamodelgen</artifactId>
            <version>5.4.29.Final</version>
            <scope>provided</scope>
        </dependency>
        <!--Mapping Dto-->
        <dependency>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct</artifactId>
            <version>1.4.2.Final</version>
        </dependency>
        <!-- 
        <dependency>
            <groupId>org.mapstruct</groupId>
            <artifactId>mapstruct-processor</artifactId>
            <version>${org.mapstruct.version}</version>
            <scope>provided</scope>
        </dependency> -->
        <!-- Auto Generation of getter/setter and constructor-->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.18</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-help-plugin</artifactId>
                <version>3.2.0</version>
                <executions>
                    <execution>
                        <id>show-profiles</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>active-profiles</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok</artifactId>
                            <version>${lombok.version}</version>
                        </path>
                        <!-- This is needed when using Lombok 1.18.16 and above -->
                        <path>
                            <groupId>org.projectlombok</groupId>
                            <artifactId>lombok-mapstruct-binding</artifactId>
                            <version>0.2.0</version>
                        </path>
                        <path>
                            <groupId>org.mapstruct</groupId>
                            <artifactId>mapstruct-processor</artifactId>
                            <version>1.4.2.Final</version>
                        </path>
                        <path>
                            <groupId>org.hibernate</groupId>
                            <artifactId>hibernate-jpamodelgen</artifactId>
                            <version>5.4.29.Final</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>prod</id>
            <properties>
                <spring.profiles.active>prod</spring.profiles.active>
            </properties>
        </profile>      
        <profile>
            <id>dev</id>
            <properties>
                <spring.profiles.active>dev</spring.profiles.active>
            </properties>
        </profile>
    </profiles>

</project>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

我们今天的关于petalinux add pre-build application to rootfs compile faliure solution的分享已经告一段落,感谢您的关注,如果您想了解更多关于Adding Open Source 3D Physics to Your iOS Applications (3)Using Bullet in Your iOS Application、android – ApplicationStatus类E / SysUtils:ApplicationStat中的ApplicationContext为null、android – NotificationCompat.Builder(getApplicationContext(),CHANNEL_ID)无法处理Oreo Firebase通知、application.properties 在 maven-compiler-plugin 期间更改的相关信息,请在本站查询。

本文标签: